Resolved once, upstream, from the user's role: someone without a given grant never sees the related tool offered at all — not a rejected call, an absent option. Decided before any request reaches a data source.
Independent of layer 1: every query to a data source carries the caller's access tags and filters by them at query time — so a tool that's available still can't surface a record outside the caller's grant.
Enforcement depth is matched to what each source actually needs — not every source gets the same treatment, and the table says so honestly.
▸ Design notes
- The two layers are owned by different services on purpose: the service that authenticates users resolves roles into access tags and a tool list; the service that talks to data sources trusts those tags and never re-derives a role itself — a clean split between who someone is and what a query is allowed to return
- Access tags are free-text strings, not a fixed enum — adding a new access tier is a new tag value, not a schema or code change to the filtering logic itself
- Visibility is additive: a record is visible if the caller holds any one of its tags, and nothing defaults to visible unless it's explicitly untagged or tagged public
- The trust boundary is written down, not assumed: the filtering layer documents that it relies on the upstream layer having set tags correctly — an honest architecture names where a guarantee actually lives instead of implying it's stronger than it is