Skip to content

Commit ee8b666

Browse files
committed
docs(adr): ADR-0139 notes say ADR-0155 is decided, not built
Review record 6944283386 on #34735. S1: the ADR-0139 D1, D3 and O4 notes now say each records a decision ADR-0155's execution cards will implement, and O4 says the capped grant read stands until the plugin-sharing switch under #33787 lands, and not before. N2: the D3 note names the refusal envelope it means and marks ADR-0147 Proposed. N1: ADR-0155 O7 separates the authoring diff's history from the landing of the notes. Claude-Session: https://claude.ai/code/session_01ADHkmSLi1reMd27fT62jJ3 Co-authored-by: Claude <noreply@anthropic.com>
1 parent daf666a commit ee8b666

2 files changed

Lines changed: 17 additions & 11 deletions

‎docs/adr/0139-engine-internal-semi-join-leaf-readable-parent-ids.md‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ any position but a `$in` comparand, the engine refuses it loudly. ⛔ No second
157157
> mode of `ReadableIds` or of ADR-0147's leaf. It is the second record to do so, and a new leaf still needs a Tier H
158158
> record of its own. It also revisits this D1's read-verbs sentence for that leaf alone (its ③, ruled A): the leaf's
159159
> write form is legal in the `where` of a predicate `update`, and nowhere else. For `ReadableIds`, for ADR-0147's leaf
160-
> and on `delete`, the sentence stands as written. "No `EXISTS`, no correlated form" stands.
160+
> and on `delete`, the sentence stands as written. "No `EXISTS`, no correlated form" stands. This note records a
161+
> decision that ADR-0155's execution cards will implement: until they land, `main` admits no such leaf, and this D1
162+
> holds as written for every verb.
161163
162164
### D2 — ObjectQL composes the scope, once per parent object per request, fail closed
163165

@@ -213,12 +215,14 @@ restriction".
213215

214216
> **Amendment note (2026-11-17, [ADR-0155](./0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md) — ruling record [`6942854600`](https://github.com/objectstack-ai/objectstack/issues/33787#issuecomment-6942854600) on #33787).**
215217
> The refusal bullet's "⛔ No `DriverCapabilities` bit returns" is revisited for ADR-0155's leaf alone, as ADR-0147
216-
> revisits it for its own. Under ADR-0155's ②, ruled R2 for the storage that cannot run that leaf, a driver declares
218+
> (Proposed) revisits it for its own. Under ADR-0155's ②, ruled R2 for the storage that cannot run that leaf, a driver declares
217219
> whether it evaluates such leaves, and the declaration is read up front: on an object whose evaluator does not
218220
> declare it, the producer writes no share arm and share grants are refused as inert (ADR-0111 D7, as noted there).
219-
> A leaf that still reaches a driver that cannot run it is refused in this bullet's envelope (its R1). The
220-
> declaration's name is ADR-0155's O1, and where ADR-0147's declaration is the same one, it is built once (ADR-0155
221-
> D4). This note moves nothing this section says about `ReadableIds`.
221+
> A leaf that still reaches a driver that cannot run it is refused in the refusal bullet's envelope (status 500,
222+
> `INTERNAL_ERROR`, logged at `error` once per driver; ADR-0155's R1). The declaration's name is ADR-0155's O1, and
223+
> where ADR-0147's declaration is the same one, it is built once (ADR-0155 D4). This note moves nothing this section
224+
> says about `ReadableIds`. It records a decision that ADR-0155's execution cards will implement: until they land,
225+
> `main` has no such declaration and no such leaf.
222226
223227
### D4 — The six consumers emit one leaf per parent object, and no pre-scan
224228

@@ -392,9 +396,11 @@ change is #33696's, and by the ruling it lands only after this amendment merges.
392396
`limit: 5000` with no warning; that scope rides into the subquery unchanged. A separate finding, not this record's.
393397
**Answered** (2026-11-17): [ADR-0155](./0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md)
394398
(Accepted; ruling record
395-
[`6942854600`](https://github.com/objectstack-ai/objectstack/issues/33787#issuecomment-6942854600) on #33787) lowers
396-
the share arm to its own engine-internal semi-join leaf over `sys_record_share`, with no cap, so every grant counts.
397-
The amendment notes under D1 and D3 say what that record revisits here.
399+
[`6942854600`](https://github.com/objectstack-ai/objectstack/issues/33787#issuecomment-6942854600) on #33787) decides
400+
that the share arm will lower to its own engine-internal semi-join leaf over `sys_record_share`, with no cap, so
401+
every grant counts. The amendment notes under D1 and D3 say what that record revisits here. This records a decision
402+
that ADR-0155's execution cards will implement: the capped read above stands until the plugin-sharing switch under
403+
#33787 lands, and not before.
398404
- **O5** — whether `controlled_by_parent`'s id set becomes a seventh consumer (D6). **Answered** (2026-10-21): the
399405
ruling is recorded verbatim in D6, as amended.
400406

‎docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,9 @@ ADR-0147's leaf and `delete` keep it as written. B and C were not taken.
836836
declaration); ADR-0111 D7 (② ruled R2); and a cross-reference from ADR-0147 D-a for the shared
837837
seam and what its recipient rule checks on that record's anchor (D4). They land with the governed edit that records
838838
the maintainer's rulings in this record's Status line. The first acceptance criterion already requires that edit,
839-
and the same rulings decide which notes are owed. None is in this record's diff, which adds this record and its
840-
index row and edits no other record. **Landed** (2026-11-17): all five, dated and append-only, in the edit that
841-
records the rulings in the Status line.
839+
and the same rulings decide which notes are owed. When this record was first written (2026-11-15), its diff added
840+
only this record and its index row and carried none of the notes. **Landed** (2026-11-17): all five, dated and
841+
append-only, in the later edit that records the rulings in the Status line.
842842
- **O8** — Readers of `buildReadFilter` and of the security service's read filter outside this repository (the cloud
843843
repository's packages) were not read from this tree, and neither was any host that registers an object-scoped
844844
middleware or a find hook for `sys_record_share` by name (D4), an opt-in of that table into record-view auditing

0 commit comments

Comments
 (0)