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 73df76d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,8 +285,8 @@ Name the set once, so every later sentence can point at it:
285
285
D1's reason for one leaf as this: one brand carries one meaning, so no composer has to ask which meaning it holds.
286
286
This record keeps that reason the same way, by giving each further meaning a brand of its own.
287
287
-**What it carries: the inputs of G and nothing else.** The object's name, the recipient's user id, and the admitted
288
-
access levels: none on the read form, which admits every level, and `WRITE_ACCESS_LEVELS` on the write form (③ A),
289
-
supplied by the producer so the level vocabulary keeps its one home. `recipient_type = 'user'` is fixed, not
288
+
access levels: none on the read form, which admits every level, and `WRITE_ACCESS_LEVELS` on the write form
289
+
(③ ruled A), supplied by the producer so the level vocabulary keeps its one home. `recipient_type = 'user'` is fixed, not
290
290
carried. It carries no organization, no caller scope and no reading context. The inputs are ordinary enumerable
291
291
properties, as `ReadableIds`' object name is, so two users' leaves never compare or serialise as equal; only the
292
292
brand is non-enumerable. The rest of its representation is the spec card's.
@@ -437,8 +437,7 @@ After the switch the read scope is:
437
437
ADR-0139 D5.2's class, and a find hook, `beforeFind` or `afterFind`
438
438
(`packages/objectql/src/engine.ts#registerHook`), which this record adds for this table. ⛔ The seam never reads
439
439
around either. What each class answers is ②'s, as ruled, and each is a row of Q2's census. No package in this
440
-
repository names
441
-
the table in either kind of registration on its own. plugin-audit registers its record-view hook for the objects a
440
+
repository names the table in either kind of registration on its own. plugin-audit registers its record-view hook for the objects a
442
441
host opts in, so a host that opts this table in is in the class. That hook returns at once on a system read
443
442
(`packages/plugins/plugin-audit/src/read-audit.ts#installReadAuditWriter`, through its record-view handler), which
444
443
the grant read is.
@@ -818,8 +817,8 @@ ADR-0147's leaf and `delete` keep it as written. B and C were not taken.
818
817
819
818
## Open items (not blocking acceptance; each becomes a reading on its card)
820
819
821
-
-**O1** — Names. `SharedRecordIds`, and the driver declaration's name (② as ruled consults one). The seat's call, fixed on
822
-
the spec card, and shared with ADR-0147's O1 where the declaration is shared.
820
+
-**O1** — Names. `SharedRecordIds`, and the driver declaration's name (② as ruled consults one). The seat's
821
+
call, fixed on the spec card, and shared with ADR-0147's O1 where the declaration is shared.
823
822
-**O2** — Key comparison. The subquery compares two columns where today a column meets bound strings. On the tables
824
823
the platform manages both are strings. The driver card pins the comparison, type and collation, on every dialect
825
824
`driver-sql` ships, and answers an outer key of another type with the same rows (D-0).
@@ -877,9 +876,10 @@ names.
877
876
2.**Engine: the seam.** Door admission, pass-through, the position rule, the verb rule (③ ruled A: the write form
878
877
admitted in the `where` of a predicate `update`, nowhere else) and the recipient rule, the two recognised classes
879
878
(② as ruled: R2 with R1 behind it for an object on another datasource, R1 for the host class), the descent into
880
-
composed scopes, the refusal, and the consult of the driver declaration that R2 reads (② as ruled). The recipient rule is pinned on its four cases: the context's user, its
881
-
delegator, a system context, and any other recipient, which is refused. The cases of ADR-0147's anchor are pinned
882
-
on the card that adds that leaf to the seam: the reading context's own anchor; ADR-0147 D-c's context, the
879
+
composed scopes, the refusal, and the consult of the driver declaration that R2 reads (② as ruled).
880
+
The recipient rule is pinned on its four cases: the context's user, its delegator, a system context, and any
881
+
other recipient, which is refused. The cases of ADR-0147's anchor are pinned on the card that adds that leaf to
882
+
the seam: the reading context's own anchor; ADR-0147 D-c's context, the
883
883
delegator's rebuilt one, reading under the anchor it carries; a system context; and an anchor that differs in its
884
884
caller or in its organization, or a context that carries none, each refused.
885
885
3.**`driver-sql` and the Turso remote transport: the compile.** The subquery with no tenant scope (① ruled A), the
@@ -889,8 +889,8 @@ names.
889
889
4.**`driver-memory`: the in-process evaluation**, on reads and on the update path (③ ruled A).
890
890
5.**The rest of the census, as ② is ruled**: the storage rows' refusal for this brand (R1, behind R2), the analytics
891
891
compilers (the native compiler compiles the leaf; the engine strategy's merge admits the brand), the explainer's
892
-
record pass (resolved at the record). The native compiler's card carries the recognition of D4's two classes and the decline to
893
-
the engine strategy. ⛔ No card up to here refuses a boot.
892
+
record pass (resolved at the record). The native compiler's card carries the recognition of D4's two classes and
893
+
the decline to the engine strategy. ⛔ No card up to here refuses a boot.
894
894
6.**plugin-sharing: the switch.** The seat that cuts this card first produces O8's census and records it in the
895
895
card's body; without the census the card is not cut. `buildReadFilter` and `buildWriteFilter` write the leaf, and
896
896
the approval ids become a disjunct of their own. Each tightening lands here, at the moment it takes effect: R2's
0 commit comments