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.
| layer | measurement | what it means |
|---|---|---|
| Database | 11 databases, every one owned by prodg, one shared instance, no connection limits | no database boundary exists. Every service can read every other service's data as the same role |
| Database role | prodg is rolsuper, rolcreatedb, rolcreaterole | tenant provisioning is possible, which is the one thing that is ready. Nothing uses it |
| Resource isolation | 0 of 40 containers have a memory limit | one tenant's runaway container takes the host down with it. There is no ceiling to sell |
| Routing | 26 Caddy routes, no wildcard and no tenant segment | every route is a hardcoded single-tenant subdomain. Tenancy would mean editing the proxy per customer |
| Tenant context | no TENANT, MULTISITE or equivalent anywhere in the environment | no request carries a tenant identity, so no service could enforce one if it wanted to |
| Backups | one global postgres directory | restore 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 home | Tier B - mainframe | |
|---|---|---|
| Who | one household, 2 to 6 people | organisations, banks, government |
| Threat | accidental disclosure, device loss, a curious household member | insider fraud, a hostile tenant, an attacker, a regulator |
| Isolation | shared services, per-user accounts, per-user spaces | per-tenant databases, RBAC, audit trail |
| Enforced by | application ACLs and filesystem ownership | database boundaries plus network policy |
| Audit | who changed what, kept for the household | tamper-evident, retained, exportable |
| Hardware | 4 to 8 GB RAM, one small box | 62 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:
- 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".
- A stated difference between shared and private. Which is which must be a decision, not a default nobody examined.
- A restore that works. A household has no IT department, so backup and restore must be one command and must be rehearsed.
- 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.
- 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.
- Stop running everything as
prodg. One role per service, with the minimum it needs. Superuser is the finding here, not the tenant count. - 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.
- Tenant identity in the request path. A header set by the proxy and enforced by services, not trusted from the client.
- Tenant-scoped backups and rehearsed restore. Until a single tenant can be restored alone, the platform cannot promise isolation it cannot deliver.
- Per-tenant routing. Wildcard or path routing in Caddy rather than a hardcoded block per customer.
- 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.