Design and implement per-user tenancy #40

Merged
warkanum merged 4 commits from issue-10-per-user-tenancy into main 2026-07-15 10:48:24 +00:00
Member

Implements per-user tenant scoping for AMCS using the authenticated API key/OAuth client id as an opaque tenant boundary.

Changes:

  • Add tenant context propagation from auth middleware.
  • Add tenant_key schema/migration for projects, thoughts, files, learnings/plans/chat history future-proofing.
  • Scope project lookup/list/touch, core thought CRUD/search/stats, and stored file create/read/list by tenant.
  • Add middleware test proving tenant context propagation.

Verification:

  • make test
  • make build

Closes #10

Implements per-user tenant scoping for AMCS using the authenticated API key/OAuth client id as an opaque tenant boundary. Changes: - Add tenant context propagation from auth middleware. - Add tenant_key schema/migration for projects, thoughts, files, learnings/plans/chat history future-proofing. - Scope project lookup/list/touch, core thought CRUD/search/stats, and stored file create/read/list by tenant. - Add middleware test proving tenant context propagation. Verification: - make test - make build Closes #10
sgcommand added 1 commit 2026-07-15 03:05:51 +00:00
feat: add per-user tenant scoping
CI / build-and-test (push) Failing after 1m53s
CI / build-and-test (pull_request) Failing after 1m43s
4b3f0b1b55
sgcommand added 1 commit 2026-07-15 03:51:59 +00:00
fix: build UI assets in CI
CI / build-and-test (pull_request) Successful in 1m20s
CI / build-and-test (push) Successful in 1m23s
e3a4a3c5c7
sgcommand added 1 commit 2026-07-15 04:00:20 +00:00
docs: plan per-user tenancy model
CI / build-and-test (push) Successful in 2m30s
CI / build-and-test (pull_request) Successful in 2m35s
cd010fc7a1
warkanum added 1 commit 2026-07-15 10:48:17 +00:00
Merge branch 'main' of git.warky.dev:wdevs/amcs into issue-10-per-user-tenancy
CI / build-and-test (push) Successful in 1m39s
CI / build-and-test (pull_request) Successful in 2m3s
4f8f2f4190
warkanum merged commit 631bb64109 into main 2026-07-15 10:48:24 +00:00
warkanum deleted branch issue-10-per-user-tenancy 2026-07-15 10:48:40 +00:00
Sign in to join this conversation.