Multi-tenancy - where we actually are

The short answer

Zero. Not partially, and not nearly. There is no isolation mechanism of any kind in the platform today, and everything runs inside one flat trust domain.

That is a defensible position for a single-operator development platform. It is not defensible for anything you sell, and it is definitely not the basis for a household product until the model is chosen deliberately.

The evidence, measured against the live estate

This is not a reading of the architecture. It is what the running system reports.

layermeasurementwhat it means
Database11 databases, every one owned by prodg, one shared instance, no connection limitsno database boundary exists. Every service can read every other service's data as the same role
Database roleprodg is rolsuper, rolcreatedb, rolcreateroletenant provisioning is possible, which is the one thing that is ready. Nothing uses it
Resource isolation0 of 40 containers have a memory limitone tenant's runaway container takes the host down with it. There is no ceiling to sell
Routing26 Caddy routes, no wildcard and no tenant segmentevery route is a hardcoded single-tenant subdomain. Tenancy would mean editing the proxy per customer
Tenant contextno TENANT, MULTISITE or equivalent anywhere in the environmentno request carries a tenant identity, so no service could enforce one if it wanted to
Backupsone global postgres directoryrestore is all-or-nothing. You cannot restore one tenant

The one genuinely positive result: the database role can create databases and roles, so per-tenant provisioning is a supported operation rather than a blocker.

The docs were claiming otherwise

The knowledge base index carried this row:

| Multi-tenant isolation model | roadmap/mainframe-launch-initiative.md |

The target document contains zero occurrences of the word "tenant". It is a phase plan covering authentication, a file server, a software-cloning pipeline, a loadout system, a playbook repository and partner registries. Isolation is not in it.

This matters more than a broken link. A founder decision (D3) settled that the docs must be truthful, and this was a claim about a capability that does not exist. It is the exact failure mode the platform is built to prevent: a confident statement in a document, no artefact behind it, and nobody checking because the document is the thing they trust.

Corrected, and the pointer now goes to the loadout registry and this document, which is where the answer actually lives.

Why zero is currently the right answer

The founder's own answer to the separation-of-duties question was: "This has only been the case since we are in development and I'm the only one with access." One operator, one trust domain, no isolation needed. Tenancy costs complexity, and paying it before there is a second person would be premature.

The mistake would be to now build enterprise tenancy for a household. Which brings us to the design.

The two-tier model

The platform needs two different isolation models, because it has two genuinely different threat models. Using one for both is the trap.

Tier A - personal and homeTier B - mainframe
Whoone household, 2 to 6 peopleorganisations, banks, government
Threataccidental disclosure, device loss, a curious household memberinsider fraud, a hostile tenant, an attacker, a regulator
Isolationshared services, per-user accounts, per-user spacesper-tenant databases, RBAC, audit trail
Enforced byapplication ACLs and filesystem ownershipdatabase boundaries plus network policy
Auditwho changed what, kept for the householdtamper-evident, retained, exportable
Hardware4 to 8 GB RAM, one small box62 GB, 12 cores, a fleet

The critical judgement: a family does not need per-tenant database isolation, and imposing it would make the product worse. Per-tenant databases mean per-tenant migrations, per-tenant backups, per-tenant restores, and a provisioning step every time someone joins. For four people sharing photos and a calendar, that is unmaintainable weight bought at the cost of the thing working.

What a family actually needs is per-user spaces inside shared services, which is what every consumer product in this space does, and which is honest about what it is: isolation enforced by the application, not by the platform.

What a family genuinely does need, and must not be waved away:

  1. A private space that is actually private. One member's journal or medical documents must not be readable by another, and "the app hides it" is weaker than "the database refuses it".
  2. A stated difference between shared and private. Which is which must be a decision, not a default nobody examined.
  3. A restore that works. A household has no IT department, so backup and restore must be one command and must be rehearsed.
  4. An honest upgrade path. Growing from personal to mainframe must not mean starting again.

What real tenancy would require, in order

If and when Tier B tenancy is genuinely needed, this is the sequence. Each step depends on the one before it.

  1. Pick the isolation pattern. Per-database is the right default at small tenant counts and the technology-skill recommendation. Row-level security only pays off beyond that.
  2. Stop running everything as prodg. One role per service, with the minimum it needs. Superuser is the finding here, not the tenant count.
  3. Resource limits on every container. Without a ceiling there is nothing to sell and no blast radius to contain. This is also the cheapest item on the list.
  4. Tenant identity in the request path. A header set by the proxy and enforced by services, not trusted from the client.
  5. Tenant-scoped backups and rehearsed restore. Until a single tenant can be restored alone, the platform cannot promise isolation it cannot deliver.
  6. Per-tenant routing. Wildcard or path routing in Caddy rather than a hardcoded block per customer.
  7. Then onboarding automation, templated rather than scripted per tenant.

Assessment verdict

Against the readiness indicators: not ready, with the foundation in place.

  • Infrastructure is stable and administrative automation is possible.
  • Database isolation is capable but unused.
  • Tenant context is entirely absent.
  • No resource boundaries exist.
  • Onboarding is manual.
  • Backup is global-only.

The next action is not to build tenancy. It is to decide which tier the next deployment is, and the answer for a household is Tier A, which needs a loadout rather than a tenant model.