September 17, 2026 · Arjun
Isolation you cannot violate by accident
We have a hard rule: no tenant’s data, raw or derived, reaches another tenant.
Not aggregated, not anonymised, not “just for benchmarking”.
Rules like that are normally enforced by code review, which means they are enforced until
somebody is in a hurry.
Why review is not enough
The dangerous violations are not the obvious ones. Nobody writes a query joining two tenants.
What happens is that a reporting feature aggregates across a table, a cache key omits a tenant
discriminator, or a derived metric gets computed once and served to everyone because it looked
like a constant.
Each of those is a small, reasonable-looking change. Each is a breach. And a reviewer checking
for correctness will not necessarily see it.
What we do instead
The isolation property is derived from the schema rather than asserted in prose. Every table
carrying tenant-scoped data is marked as such, and a check walks the query surface to establish
that no path can produce a row set spanning more than one tenant without passing through an
explicitly declared and separately reviewed boundary.
A violation fails the build. Not a warning, not a lint note — the build.
What it cost
Genuine friction. Legitimate cross-tenant work — operational dashboards, capacity planning —
now requires an explicit declaration rather than just working. That is irritating roughly once a
month.
It is the correct trade. The alternative is a property that holds until the week somebody
ships a reporting feature at speed.
The general principle
If a property is load-bearing, it should not depend on everyone remembering it. Anything
enforced by convention is enforced probabilistically, and the probability gets worse as the team
grows.