Why Organisation Context Should Be Explicit in Multi-Team Software
Most multi-tenant software hides the tenant boundary in a query filter and calls it architecture. The boundary should be a thing in the model, not an assumption every engineer has to remember.

Here is the orthodox move, and it works, which is why nearly everyone makes it. You have one database. You have many customers. You add an organisation_id column to every table that needs isolating, you write a filter that scopes every query to the current tenant, and you trust your engineers to never forget it. It's cheap, it's fast to ship, and it genuinely runs for years without incident in a lot of products.
The cost shows up later, and it shows up as a question nobody can answer quickly: whose setting is this, actually? Whose membership governs this action? Who does this permission belong to, right now, for this user, in this request? If the answer lives only in a WHERE clause that some function remembered to apply, the boundary isn't part of the system. It's part of the discipline of the people writing queries against it. Discipline is not architecture.
The filter is not the boundary
A query filter tells you which rows come back. It does not tell you what an organisation is, who belongs to it, or what's true for everyone inside it. Those are different questions, and a mature multi-team product needs all three answered by something you can point at, not inferred from the fact that every query happens to include the same clause.
In Team and Tricks, the organisation is a real object. It holds the people, the projects, the clients and vendors, the plan, and a short, fixed list of organisation-wide settings, chat on in projects, chat on in tasks, whether managers or members can see every project, whether time entries need approval, TAI on or off. Those settings aren't computed per request from somebody's role and a join. They're set once, for the organisation, and every person and every automated action reads the same answer. If an admin turns TAI off, that's not a flag some query has to remember to check. It's a fact about the organisation, and nothing downstream gets to disagree with it.
Membership works the same way. A person doesn't get access to an organisation because a row happens to match their user_id in a filtered table somewhere. They belong, explicitly, with a role, Owner, Admin, Manager, Member, Guest, and that role is a property of the membership, not a side effect reconstructed from permission checks scattered across the codebase. One account can belong to several organisations at once, each with its own role, its own settings, its own people. Nothing about being an Admin in one organisation leaks into being anything at all in another. That's not a security feature bolted on afterward. It's what the membership object is for.

Where the orthodox approach is actually right
I want to be straight about who the filter-and-trust model is right for, because the architecture essay that refuses to admit a tradeoff is worse than useless. If you have one tenant table, a handful of engineers who all know the schema cold, and a product that never asks "what can a guest see" or "what happens when someone belongs to two organisations," the explicit model is overhead you don't need. You're not managing ambiguous ownership. You don't have ownership complicated enough to be ambiguous. Build the filter, write the test that checks it, move on.
The explicit model earns its cost the moment a person can belong to more than one tenant, or a tenant can grant partial access to someone who isn't really a member, or an automated process acts on behalf of a human and needs to inherit exactly what that human can do, no more, no less. That's three different real situations, and all three show up in Team and Tricks, which is why the model has to carry the boundary instead of hoping the query layer remembers it.
Guests are the case that breaks the filter model
Guests are the sharpest test of this, because a guest is neither inside the organisation the way a Member is, nor outside it the way a stranger is. They see exactly what's been granted, specific projects, specific tasks, and nothing else, not by convention, by an explicit grant attached to that guest. Public visibility settings that apply to Members never apply to a Guest, because a Guest's access was never derived from the organisation's general rules in the first place. It was handed to them, one grant at a time.
If that distinction lived only in a query filter, somebody would eventually write a report, or a search feature, or a notification job, that forgot the guest exception and showed a client something they were never meant to see. Not because the engineer was careless. Because the boundary wasn't a thing they could look up. It was a rule they had to remember to re-derive, correctly, every single time they touched a new code path. An explicit grant object doesn't rely on anyone remembering anything. It's just there to be checked.

The hardest version of this problem is an assistant, not a person
The case that actually worries engineers, once they've thought about it for more than a minute, is automation acting on a human's behalf. An assistant that can create tasks, reassign work, approve time entries and touch documents across an organisation is a much bigger attack surface than any one person clicking buttons, precisely because it moves faster and touches more things per request. If its access is a separately configured permission set, "AI can read projects X and Y", then you now have two permission systems to keep in sync, and they will drift, because two of anything drift.
TAI doesn't get its own permission set. It acts as the person who invoked it, through the same membership and role that person already has. If a Member can't reassign a task, TAI can't either, and it says so, the same way the interface would. There's no separate AI access to configure because there's no separate boundary to maintain, it inherits the one that already exists on the membership object. That's only possible because the boundary is explicit enough for an automated actor to inherit it cleanly. A filter clause has nothing to hand an assistant. A membership with a role does.
Settings that apply to everyone, including the parts of the system you haven't built yet
The quieter benefit of an explicit organisation object is what it does for features nobody has designed yet. When "require time entry approval" is a property of the organisation rather than a condition threaded through every time-tracking query, the next report, the next notification type, the next mobile screen, all inherit the same answer without anyone writing the check again. The boundary doesn't have to be rediscovered by every new feature. It's read off the same object everything else reads it off.
That's the actual argument, and it isn't about security theatre or compliance checkboxes. It's about where the fact lives. If "who does this belong to" is answerable by pointing at an object, this organisation, this membership, this grant, then every new thing you build inherits the right answer for free. If it's answerable only by reading the query and trusting that whoever wrote it got the filter right, you're re-deriving the boundary, correctly, forever, and betting that nobody gets tired on a Thursday.



