Repository navigation
Commit d55c14e
committed
docs(adr): ADR-0147 — membership-scoped RLS lowers to an engine-internal org-member semi-join leaf (Proposed)
Proposes that `FIELD in current_user.org_user_ids` keep its spelling and
lower to a branded sibling of ReadableIds that the SQL family compiles to
`IN (SELECT user_id FROM sys_member WHERE organization_id = :org ...)`,
with the caller OR-ed in from the resolver's own (org, caller) anchor and
the exact completion-read array as the floor for every evaluator that
does not compile it. A same-set invariant (D-0) holds the visible set to
exactly what the resolver answers today; options that change it are
listed as rejected. ADR-0057-erp D3 gains an amendment note: the
`org_user_ids` cap it cites no longer exists. Index regenerated.
Claude-Session: https://claude.ai/code/session_01ADHkmSNasUm3e1dfbV5aaD
Co-authored-by: Claude <noreply@anthropic.com>1 parent cafe8ee commit d55c14e
3 files changed
Lines changed: 357 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
163 | 171 | | |
164 | 172 | | |
165 | 173 | | |
| |||
0 commit comments