You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(server): createTenantStore — opinionated multi-tenant AccountStore with fail-closed isolation #457
Parent: #452
Depends on: #456 (AccountStore.sync_governance typed surface)
JS source
.changeset/create-tenant-store.md (6.7) — the headline 6.7 helper.
Problem solved
Resolves the class of bug "adopters routing by wire-supplied operator without cross-checking the auth principal could write across tenants." This is solved by baking the per-entry tenant gate INTO the framework — cross-tenant entries never reach adopter code.
If resolve_from_auth(ctx) returns None, every entry fails PERMISSION_DENIED regardless of operator.
accounts.upsert and accounts.sync_governance on the returned store are immutable (Python equivalent of JS's writable: false) so adopters can't override and bypass the gate.
Adopters with genuine custom needs use composition or write a plain AccountStore.
Acceptance criteria
create_tenant_store exported from adcp.decisioning.
Fail-closed test: resolve_from_auth returns None → every entry rejected with PERMISSION_DENIED.
Classification: Feature request Bucket(s): handlers (label gap — handlers not found in repo label list; bucket noted here) Status: deferred
My take:create_tenant_store's fail-closed tenant gate depends on the ResolveContext-bearing AccountStore.upsert/sync_governance signatures that #456 introduces. The API surface doesn't exist yet, so there's nothing to implement against. Deferring until #456 merges.
Activity
bokelley commentedon May 3, 2026
Triage
Classification: Feature request
Bucket(s): handlers (label gap —
handlersnot found in repo label list; bucket noted here)Status: deferred
My take:
create_tenant_store's fail-closed tenant gate depends on theResolveContext-bearingAccountStore.upsert/sync_governancesignatures that #456 introduces. The API surface doesn't exist yet, so there's nothing to implement against. Deferring until #456 merges.Blocked-on: #456 — resurfaces on merge
Triaged by Claude Code. Session: https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID}
Generated by Claude Code
feat(decisioning): create_tenant_store — opinionated multi-tenant Acc…
feat(decisioning): create_tenant_store — opinionated multi-tenant Acc…