Design and implement per-user tenancy #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a tenancy model so AMCS can safely separate data by user, tenant, or workspace instead of assuming a single shared memory space.
Why
Per-user tenancy is listed as a deferred feature in the implementation plan. It becomes important if AMCS is used by multiple users, agents, or client applications that should not share the same thought/project namespace.
Scope ideas
Acceptance criteria
Source
Deferred feature from
llm/plan.md: per-user tenancy.Implemented on branch
issue-10-per-user-tenancyand opened PR: git.warky[.]dev/wdevs/amcs/pulls/40Commit:
4b3f0b1b55Verification:
make testpassedmake buildpassedSummary:
CI repair pushed for PR #40.
Branch: issue-10-per-user-tenancy
Commit:
e3a4a3c5c7PR: git.warky[.]dev/wdevs/amcs/pulls/40
Verification:
Root cause: CI ran go test before building embedded Svelte UI assets, so internal/app/ui_assets.go failed on missing ui/dist. The workflow now builds UI assets before Go tests. Also aligned tenancy DBML/migration metadata for tenant_key on future-scoped tables and dropped the old global project-name unique constraint during migration.
Added the requested tenancy design plan to PR #40.
Branch: issue-10-per-user-tenancy
Commit:
cd010fc7a1Plan: docs/per-user-tenancy-plan.md
Verification:
The plan covers tenant identity source, schema/model changes, query scoping, migration/backfill, authorization checks, affected backend/API/UI surfaces, test cases, assumptions, and blockers.