Kind: Interface
Source: atloria-monorepo/apps/api/src/reader-access/visibility.util.ts
D4 content segmentation — the ONE pure visibility evaluator.
A visibility rule is a JSON tree of attribute conditions over the reader's
canonical claims (ReaderClaims.attrs: role / plan / region / custom):
{ "allOf": [
Semantics (fail-closed by design):
- null / undefined rule → visible (public — no restriction)
- missing claim → the condition FAILS (incl.
neq) - claim values may be arrays → eq/in match on intersection
- allOf: [] → true (vacuous)
- anyOf: [] → false (nothing can satisfy it)
- malformed rule node → false (a broken rule must never expose content)
Category rules CASCADE: a document's effective rule is its own rule ANDed with every rule up its category ancestor chain (see composeRules).
Properties
| Property | Type |
|---|---|
attr | string |
op | `'eq' |
value | `string |
Was this page helpful?