You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit daf666a
Browse filesBrowse the repository at this point in the historyBrowse files
ADR-0155 Acceptance criterion 2 has O7's dated, append-only pointer
notes land in the edit that records the rulings. Under ruling record
6942854600 all five are owed: ADR-0139 D1 (one more leaf, and its
read-verbs sentence for that leaf alone), ADR-0139 O4 (answered),
ADR-0139 D3 (that leaf's driver declaration under R2), ADR-0111 D7
(R2's inert-grant arm, effective at the switch) and a cross-reference
from ADR-0147 D-a (the shared seam's recipient rule on its anchor).
ADR-0155 O7 records that they landed. No decision in those records
moves beyond the note each names.
Claude-Session: https://claude.ai/code/session_01ADHkmSLi1reMd27fT62jJ3
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/adr/0111-record-share-management-authority-and-verb-boundary.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,8 @@ Three write-time refusals so a persisted share always means something:
139
139
2.**`grant()` validates the object is in an enforcing posture** — `effectiveSharingModel` is `private` or `read`**and** the object has an `owner_id` field. Otherwise → **422** (`SHARING_NOT_ENABLED`): a share on a public / bypass / owner-less object enforces nothing. `controlled_by_parent` is refused explicitly (Salesforce parity — a detail record is not independently shareable; its access follows the master).
140
140
141
141
*Amended 2026-10-24 (ruling 6377844010 on objectstack-ai/objectstack#25549, letter A; landed in #25591).* An external principal meets an owner-only floor on every object (ruling 6355206139, letter B), so a share row on a public object IS consulted for that population. On an object whose effective model is `public` and whose `owner_id` is real (not a federated phantom anchor), `grant()` therefore admits a `user` recipient whose `sys_member.role` in the record's organization is exactly `external`; every other recipient keeps the 422. The verdict reads the object and the recipient's population, never the granter. A sharing rule materialises rows for its external recipients only and reports the skipped half in one line. `controlled_by_parent` stays refused for every recipient.
142
+
143
+
*Amendment note 2026-11-17 ([ADR-0155](./0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md), Accepted; ruling record [`6942854600`](https://github.com/objectstack-ai/objectstack/issues/33787#issuecomment-6942854600) on #33787, its ② ruled R2).* This rule gains one more arm. A share on an object whose evaluator cannot run ADR-0155's share-grant leaf (`driver-mongodb`, `driver-odata`, a driver this repository does not ship that does not declare it evaluates the leaf, or an object bound to another datasource than `sys_record_share`) enforces nothing, so `grant()` and the sharing-rule save door refuse it as inert with the same **422** (`SHARING_NOT_ENABLED`), and no gate consults existing grants on that object; owner, queue and approval access is unchanged. The arm takes effect with ADR-0155's plugin-sharing switch, with the boot report and changelog entry D10 asks for, and not before. Nothing else in D7 moves.
142
144
3.**Manual and rule shares coexist by `source`.** The upsert key becomes `(object, record, recipient, source)` so a manual grant no longer clobbers a `source: 'rule'` row and vice versa. When multiple rows grant the same recipient, the widest `access_level` wins (Salesforce's RowCause model — grants are additive, never subtractive).
143
145
144
146
### D8 — Share-link re-share semantics are made explicit
0 commit comments