Design: multi-tenant isolation model#12
Open
imkp1 wants to merge 1 commit into
Open
Conversation
Design for hosting Dexiask as a central multi-tenant cloud while keeping self-hosting a first-class single-tenant mode on one codebase. Covers the tenancy hierarchy (org = physical boundary, workspace = logical scope), shared-pool compute with per-turn org-scoped mounts, per-store data-at-rest isolation, web-egress handling, and per-org envelope encryption. Isolation model only; onboarding, billing, audit, and RBAC are deferred to their own spec cycles. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Design spec for hosting Dexiask as a central multi-tenant cloud, while keeping self-hosting a first-class single-tenant mode on one codebase. This is a design for review — no implementation. It's the foundation the other cloud subsystems (onboarding, billing, ops) will build on, so it's worth agreeing on the boundaries before any code.
Spec:
docs/superpowers/specs/2026-07-06-multi-tenant-isolation-design.mdKey decisions (please weigh in)
DEXIASK_TENANCY_MODE = single | multi— self-hostedsinglekeeps today's exact zero-config behavior; cloud runsmulti. No forked repo.Bash/Write), so no micro-VM sandbox is needed — the invariant is "no worker process ever has two orgs' data in view at once."org_idchokepoint + RLS; Qdrant shared with a mandatory indexedorg_idpartition; memory + code/session physically per-org.multi(main exfil vector for a read-only agent); allowlist-proxy deferred.Out of scope (deferred to their own specs)
Onboarding/workspace lifecycle, billing/metering, audit logging, egress-proxy build, RBAC beyond admin/member.
Ask
Review the boundaries and enforcement invariants (§8). Once the design is approved, the implementation plan follows as a separate PR.
🤖 Generated with Claude Code