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
ADR-0155 step 5: the rest of the census — storage refusal for the share-grant leaf, the analytics compilers, the explainer record pass #35874
Filing gate: ④ an execution card of an accepted cross-layer ADR · Source: fleet (ADR-0155, accepted in PR #34735, merge 64ccf6b, ruling 6942854600). Part of #33787. Step 2 (#35786) merged as d7c257e via PR #35839 (2026-11-20, 14:40 UTC); its close-out 7042346562 lists what this step carries.
Inherits #33787. Dashboards, analytics and the access explainer read through the same sharing scope; each must handle the leaf before the switch, or those surfaces break or disagree with list views.
Scope (ADR-0155 Execution plan, step 5, as ② is ruled)
The storage rows' refusal for this brand (R1, behind R2).
The analytics compilers: the native compiler compiles the leaf; the engine strategy's merge admits the brand. The native compiler's card part carries the recognition of D4's two classes and the decline to the engine strategy.
The explainer's record pass (resolved at the record).
Carry-forwards:
Settle whether service-analytics/src/read-scope-sql.ts#compileScopedFilterToSql is one of D4's two brand-naming callers, and reconcile D4's "no other caller admits it" with ② letting the native compiler compile the leaf.
Give fixedReadLeafClassOf a public face (objectql exports neither it nor driverEvaluatesFixedReadLeaf), so the native compiler asks the seam instead of restating it.
The array-form in/nin carrying a leaf still answers 400 from parseFilterAST (L2 N3, accepted deviation on step 2). Decide it here.
⛔ No boot refusal on this card.
Reader
Seat repo:objectstack#7, a dedicated card thread (L program; area-lease 〈不入区〉). L1 by L1-a; contract (L2) review per contract-review.md. Governing text: docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md (D1–D6, Execution plan). Carry-forward ledger: comment 7042346562 on #35786.
Order
Steps 3, 4 and 5 each depend only on step 2 and may run in parallel. Step 6 is #33787 itself and lands last, after O8's census is recorded in its body. ⛔ No card up to step 5 refuses a boot (plan step 5).
Triage: lands in domain:server · pm:queue; rationale: area:data · Task · ADR-0155 step 5: the rest of the census for the share-grant leaf (storage refusal, both analytics compilers, the access explainer record pass), so dashboards, analytics and "why can I see this" do not break at the switch; part of #33787 → p2 as filed · size L (three surfaces; may be split by the claimant).
Maintainer ruling · 2026-11-20T18:07Z · the rest of ADR-0155 counts as work in hand
The seat asked whether the remaining ADR-0155 steps (this card, step 5, and #33787, step 6, both p2) stop under the p1-only dispatch word (2026-11-20T17:07Z). At 2026-11-20T18:06Z Tesla chose 「算在手任务,整链做完」. This card is dispatched when step 3's card thread (#35872, PR #35893) lands, in the same thread, and #33787 follows. Step 4 (#35873) stays on hold and is no longer a prerequisite of #33787. The PG non-text-key fork #35906 goes to the maintainer before step 6.
Claim: PM loop round 1
Session: session_01L9qibyXo4gSy8DJPNz4ANz
Account: os-tesla
Branch: claude/project-thread-thptm0 (platform exception: this card thread can push only its assigned branch; it is recreated from origin/main 643fe3b, step 3's PR #35893 having merged from it)
Worktree: objectstack-issue-35874
Domain: domain:server
Seat: repo:objectstack#7
Area: card #35874
File surface: packages/services/service-analytics/src/** (read-scope-sql.ts: compileScopedFilterToSql at :831 compiles the leaf, assertReadScopeComparandsRunnable at :1165 admits the brand, the dry-run echo prints the subquery; strategies/native-sql-strategy.ts: the decline to the engine strategy beside readScopeCarriesReadableIds at :951 for D4's two classes), packages/plugins/plugin-security/src/** (explain-engine.ts#matchUnderDeclaredColumns at :1736: the leaf resolved at the record, one indexed sys_record_share read; the published rowFilter never carries the leaf), packages/objectql/src/index.ts plus fixed-read-leaf-seam.ts (a public face for fixedReadLeafClassOf / driverEvaluatesFixedReadLeaf, at :125 / :86, so the native compiler asks the seam and restates nothing), packages/drivers/driver-odata/src/** (the storage row's refusal of the brand beside refuseReadableIds at :622), packages/spec/src/data/filter.zod.ts (only if the array-form in/nin decision moves parseFilterAST's 400), packages/spec/src/data/fixed-read-leaf*.ts (only the N5 doc residue if touched), tests beside each, scripts/adr-anchors/ (new anchor files only), one new changeset .changeset/35874-*.md (stop on breach; explain in the report). ⛔ No producer writes the leaf (step 6, plugin-sharing untouched), no boot is refused (plan step 5), no driver-mongodb edit (frozen under #5499, and the maintainer's word on 2026-11-20 「内存驱动,mongodb 驱动,都可以暂停」: the step-2 seam's refusal is that row's R1 until it ships), no driver-memory edit (#35873 on hold), packages/objectql/src/engine.ts does not grow (6854 of 6854), no docs/adr/** or skills/** edit. A diff projected over 3,000 lines stops and reports a split.
Container & model: L, mode:subagent, model: default (dispatch-gates --tier at 643fe3b over the planned paths: "no path-derived mandate"), effort: xhigh (FRAME: "XL/security/contract xhigh"; this card changes the explainer's published rowFilter content and admits a brand at a second door)
Clause-②: yes
Clause-② basis: the explainer's published rowFilter changes content (ADR-0155 Q2 consequences, "The card that lands it declares that under its own Clause-②"), and the analytics merge admits the brand at a second door.
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7047007471
Premise: holds (origin/main 643fe3b: rg 'SharedRecordIds|fixedReadLeaf' packages/services packages/plugins/plugin-security → 0 non-test hits; objectql's index exports neither fixedReadLeafClassOf nor driverEvaluatesFixedReadLeaf; driver-odata refuses only ReadableIds (refuseReadableIds :622); driver-sql declares fixedReadLeaves: ['SharedRecordIds'] since step 3, 643fe3b, and exports fixedInnerReadPredicates)
Serial constraints cleared: overlap-check (probe commit over read-scope-sql.ts, native-sql-strategy.ts, analytics-service.ts, explain-engine.ts, odata-driver.ts, objectql/src/index.ts, fixed-read-leaf-seam.ts, origin/main 643fe3b): merges cleanly; 1 open PR head shares a file (#34817, objectql/src/index.ts) and merges cleanly; overlap-check reruns before each push. Step 6 (#33787) waits for this card and #35906.
Pre-claim lane: repo:objectstack seat 7, card thread card #35874 (area-lease 〈不入区〉 for the L program, the same thread that landed step 3); code paths are domain:server (services, plugin-security, objectql, drivers); a packages/spec/src/** hit, if any, is limited to the two rows named above; no skills/**, docs/adr/** or workflow path
Pre-claim deps: #35786 (step 2) closed, merged as d7c257e; #35872 (step 3) closed, merged as 643fe3b via PR #35893; #35873 (step 4) on hold and not a dependency (maintainer 「走第二条」, notice 7045719428); no Blocked-by: line on the card
Scope-review: exempt — a ruled route (ADR-0155, accepted, Execution plan step 5)
Prior rulings read: ADR-0155 D-0, D1, D4 (admission, the recipient rule, the two classes), D5, Q2's ruled rows (storage rows R2 with R1 behind; analytics native compiler compiles the leaf and declines for D4's two classes; engine strategy merge admits the brand and the echo prints the subquery; explainer resolves the leaf at the record) and plan step 5 (accepted in PR #34735; ruling record 6942854600: 「三问都按 ADR 推荐」); maintainer ruling 7047007471 on this card (「算在手任务,整链做完」); step 2's close-out 7042346562 and L2 N3 (array-form in/nin 400, decided here); step 3's close-out 7048322381 (envelope INTERNAL_ERROR/500; fixedInnerReadPredicates as the single source); #5499 and the 2026-11-20 freeze word above. check-prior-rulings.mjs --card 35874: ADR-0155 D1, D5, ADR-0044 D3; thread: none beyond 7047007471.
The dev's relay pr_create was refused in the dev's sandbox before anything was sent; the card thread opened the same payload (assignees dropped, per the dispatch) as #35945. The dev's report, as returned, with pr and status brought to the opened PR:
{
"issue": 35874,
"status": "needs_decision",
"branch": "claude/project-thread-thptm0",
"pr": 35945,
"head": "646a10ecf607fbf227a09e2f36e149fa5c039130",
"base": "17ed9e7bf",
"premise_still_valid": true,
"line_budget": "1632 (+1611/-21), 22 files, under 3000",
"tests": "New: service-analytics fixed-read-leaf-native-compile.test.ts 27/27 (11 SHARED_RECORD_IDS_CASE_SET rows live on SQLite; write-form and composed rows refused 500; 6 misplaced shapes refused by compiler and merge, logged once; native agrees with engine path; no hook -> decline; beforeFind hook on sys_record_share -> decline + engine 500; echo prints the subquery; 5 where spellings refused on both strategies, no recipient in message). plugin-security explain-fixed-read-leaf.test.ts 7/7 (both rowFilter shapes for read and update; serialized decision holds no recipient / sharedRecordIds / leaf; one keyed read for [SHARED, UNSHARED]; $nin leaf refused INTERNAL_ERROR/500 logged once; failing share read -> not visible, no rowFilter). driver-odata odata-driver.test.ts 34/34. objectql engine-fixed-read-leaf-seam.test.ts 68/68. spec shared-record-ids.test.ts 30/30. Full suites before rebase: spec 865 files (27797), objectql 624/624 (14169), service-analytics 221/221 (5643), plugin-security 285/285 (7075), driver-odata 9/9 (1455). After rebase: plugin-security 285/285 (7079 passed / 45 skipped); typecheck exit 0 for spec, objectql, service-analytics, plugin-security, driver-odata. objectql full suite not rerun after rebase (CI's).",
"ablation": "driver-odata find's refuseFixedReadLeaf(query.where) replaced by a marker (committed first): predicted find red, count green; observed 12 failed (11 find + message test), 22 passed; find returned rows (B5's pre-change behaviour). Restored to the HEAD blob d5cb1fece2b0, git diff HEAD empty.",
"gates": "dispatch-gates --commands at 646a10ecf: 112 derived, 110 run exit 0, 2 NOT MEASURED exit 3 (check:dual-build-cjs-loads and check:i18n need a full workspace build). Two reds at 65d8e8fc8 fixed in 646a10ecf: check:logger-receiver-detach (field renamed logger), check:engine-double-contract (--write, one row). Spec dist gates exit 0 after a full spec build with DTS. overlap-check VERDICT clean (#34817 shares objectql/src/index.ts, merges cleanly).",
"measurements": {
"B1": "Measured shut: analytics' runtime deps are core/spec/types; IObjectQLEngine offers no class recognition; an engine member breaches the engine.ts ceiling and needs a spec contract row; restating the classes violates D4. Delivered: AnalyticsServiceConfig.fixedReadLeafClassOf hook + fail-closed decline, unwired in AnalyticsServicePlugin. spec fixedInnerReadOf is the shared description (no driver-sql edge).",
"B2": "Leaf compiles beside the $in arm, bound, no splice, recipient never in statement text, no tenant scope on the subquery. Decline beside readScopeCarriesReadableIds as readScopeCarriesUncompilableFixedReadLeaf. A leaf nested in ReadableIds never reaches the native path.",
"B3": "assertReadScopeComparandsRunnable admits the brand for callers passing admitFixedReadLeaves; otherwise READ_SCOPE_COMPILE_FAILED/500 as before. Echo = ObjectQLStrategy.generateSql via compileScopedFilterToSql, prints the subquery.",
"B4": "No .zod.ts change (rowFilter is an unknown record). Read reuses fixedInnerReadOf(leaf) under a system context. Every explain record pass, single and batch; update-operation explain (the attachment/comment gate shape) pinned for both shapes.",
"B5": "Before: odata find dropped the predicate and returned rows; count refused as incomplete. Now find and count refuse INTERNAL_ERROR/500 before any request (unlogged; refuseReadableIds precedent). The seam refuses first anyway.",
"B6": "Moved to D4's envelope: parseFilterAST answers an array-form in/nin leaf with 500 INTERNAL_ERROR naming the leaf and table, no recipient (the 400 printed the recipient id). Unbranded copy keeps 400. Step 2's pin replaced. Spec src change: Clause-② wider, said in the PR.",
"B7": "1632 lines, one PR."
},
"compile_surfaces": {
"1 compileScopedFilterToSql": "changed here",
"2 lowerAnalyticsWhere": "changed here (any leaf in a query's where refused 500, no recipient; before: 400 printing the recipient, or read as a relation condition)",
"3 assertReadScopeComparandsRunnable": "changed here (brand-naming callers only)",
"4 native decline": "changed here (fail-closed)",
"5 echo": "changed here",
"6 explainer": "changed here (resolved at the record before matchUnderDeclaredColumns)",
"7 driver-odata": "changed here (find and count refuse)",
"8 driver-mongodb": "out of scope (frozen); R1 = step-2 seam passFixedReadLeaves in fixed-read-leaf-seam.ts",
"9 driver-memory": "out of scope (#35873 on hold); same seam refusal",
"10 formula / having": "already compliant (atFixedReadLeafDoor before applyHaving; matcher sees a sharing filter only via the explainer, which now resolves first)",
"11 driver-sql / Turso": "already compliant (step 3, 643fe3bcb)"
},
"d4_admission_reconciliation": "Analytics' brand-naming callers are those passing admitFixedReadLeaves: withReadScope, relatedReadScope, the plugin's label read, and compileScopedFilterToSql (the native compiler's own door, admitting exactly what it compiles). D4's admission line and Q2's 'the native compiler compiles it' read as one ② row with two doors. No ADR amendment needed; a pointer note is optional for the seat.",
"open_questions": [{
"question": "B1: how does AnalyticsServicePlugin ask the engine seam's D4 class recognition, so the native path compiles leaf scopes in production?",
"options": [
"A: optional IObjectQLEngine member fixedReadLeafClassOf?(leaf) delegating to fixedReadLeafClassOfEngine; plugin wires engine.fixedReadLeafClassOf?.(leaf) ?? null. Precedent judgeFilter / hasObjectMiddleware. Cost: spec contract row (contract review) + maintainer engine.ts ceiling raise (6853 vs 6854; needs ~3-5 lines). ~30 lines, own card before step 6.",
"B: runtime dependency service-analytics -> @objectstack/objectql. No cycle. Cost: new package edge; the function takes the concrete ObjectQL class, so a cast or instanceof. ~10 lines.",
"C: objectql's plugin registers the recognition as a named kernel service read via ctx.getService. Cost: a new service-name contract.",
"D: leave unwired (this PR). Correct rows on every host. Cost: from step 6 every sharing-scoped analytics query leaves native SQL; native-only shapes refused for sharing-scoped users on every object."
],
"recommendation": "A (four axes in the dev's report: step 6 makes D degrade every sharing-scoped dashboard; A is contract-first and matches facets the plugin already reads; a typed optional member that declines fail-closed when absent; smallest change, its one cost the maintainer's engine.ts ceiling ruling). Must land before step 6."
}],
"security_findings": "none",
"out_of_scope_findings": [
"noted, not filed: the spec comparand door still answers a branded leaf with INVALID_FILTER/400 for callers naming no brand, and its message prints the leaf's inputs (shapePreview). Dormant (no producer; JSON cannot carry the brand). In PR Acceptance notes.",
"noted for the seat: an optional ADR pointer note naming compileScopedFilterToSql among analytics' brand-naming callers."
],
"deviations": [
"relay pr_create refused in the dev's sandbox before sending; opened by the card thread as #35945 without assignees (the dispatch said do not assign).",
"push: the remote ref had been deleted after #35930 merged, so a plain push created it; no force used.",
"scripts/engine-double-contract.pinned.json outside the claim surface: check:engine-double-contract mandated one row.",
"compile surface 2 (filter-normalizer.ts where-face guard) goes beyond B6: same-class gap closed with tests and a changeset bullet.",
"three refusals with no logger (spec parseFilterAST, the analytics where face, driver-odata) are unlogged, per the refuseReadableIds precedent, not D4's 'logged once'.",
"objectql full suite not rerun after the rebase (typecheck and the seam file passed)."
],
"files_changed": 22,
"api_writes": "dev 0; card thread 1 (pr_create)",
"mcp_calls": 0
}
The claim 7048435857 file surface gains one path outside it: scripts/engine-double-contract.pinned.json, one row (packages/plugins/plugin-security/src/explain-fixed-read-leaf.test.ts, findOne, pinned 1). check:engine-double-contract requires the row for the new explainer test's engine double, and it was written with --write. The path is not governed. Recorded on L1 7051798358 required item 3, as on #34352. Nothing else in the claim changes.
81da4605fa: test-only, +36 / −18 in three files. Three ablation legs had a pin that an earlier assertion in the same test masked. Each now has a pin of its own, as the brief allows ("add the missing pin in the same round"):
(e) the five where spellings, one it each;
(d) the unbranded array-form 400, its own it;
(f) the no-leaf-on-the-wire check, its own it over read/update × granted/not granted, plus the batch.
One line changed: the analytics native bullet gains one sentence at its end. The rest of the line is byte-identical. It carries the subquery SQL, which holds an angle-bracket operator, so it is elided here.
… A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf.
+ `AnalyticsServicePlugin` wires no answer in this release (#35946), so on every host today the native path declines a scope carrying the leaf and the engine path answers.
Ablation record (L1 required item 2), every leg at head 81da4605fa
Each mutation was written with scripts/ablation-replace.mjs on the committed head. The tool checks the anchor count 1→0 and the replacement 0→1, and it restores by git checkout HEAD. Every restore below printed blob == HEAD and an empty git diff HEAD.
Leg (d) resolves through @objectstack/spec's dist/:
mutate: build, then ablation-dist-preflight showed the marker present in 2 built files;
restore: a full spec build with DTS, then ablation-dist-preflight --absent showed the marker absent from all 608 built files, and the tree clean against HEAD.
Leg
Mutation (file, blob HEAD → mutated)
Predicted red
Observed (red / green)
Restore
(a)
compileScopedFilterToSql compiles the leaf as no restriction. read-scope-sql.ts, 5f30359088ad → 29d39c1e8d5c
live SQLite case-set rows (the n3 row, n5)
12 / 19 of 31. Red: 9 case-set rows, the binds pin, native-vs-engine agreement, the echo.
blob == HEAD 5f30359088ad, diff empty
(b)
constant tenant predicate inside the native subquery. read-scope-sql.ts → 0ded3298be1c
nested-under-tenant case, g7
7 / 24 of 31. Red: read form, read scope's shape, leaf ANDs, $not, g7 (inner read carries no tenant scope), the binds exact-SQL pin, native-vs-engine agreement.
the refuseFixedReadLeafAtParse call replaced by a marker. filter.zod.ts, 6f2164044a7d → 379f76f18ad5
branded array-form pins red with 400; unbranded 400 pin green
spec 1 / 30 of 31: the branded pin answered 400 INVALID_FILTER. objectql seam 2 / 66 of 68: array-form in and nin answered 400. The unbranded 400 pin passed (src run -t "array form": 1 passed).
blob == HEAD 6f2164044a7d, diff empty; dist restored (above)
(e)
refuseFixedReadLeafInWhere skipped on both faces. filter-normalizer.ts, d19a7585b145 → 31fdaff7d18d
the five-spelling pins
5 / 26 of 31. Red: all five spelling pins.
blob == HEAD d19a7585b145, diff empty
(f)
the explainer passes the read filter through unresolved. explain-engine.ts, 8001b415448e → 1d5c6118bcd0
the two rowFilter shape pins, the no-recipient pin
8 / 0 of 8. Red: both shapes for read and update, the wire pin, the batch, the misplaced-leaf refusal and the failing-read pin.
blob == HEAD 8001b415448e, diff empty
Where the observation departs from the prediction:
(a) and (b), the nested rows. The n3/n5 nested rows and the nested-under-tenant case stay green. They are composed scopes, which the analytics door refuses 500 before the native compiler runs, so neither mutation reaches them. Their own 500 pins hold them. This is no missing pin.
(e) before the split (head 103f93b7ac): 1 red of 27. The five spellings shared one it, which stopped at the first failure.
(d) before the split: the unbranded check sat in the branded it, after the failing assertion, so it was never read.
(f) before the split: 7 red of 7. The no-recipient check was reached only after the rowFilter assertions, which failed first.
81da4605fa gives each of these its own pin. The table above is the re-run on that head.
Gates
Changeset gates. At 103f93b7ac, all 12 changeset families exit 0. The changeset is the same at 81da4605fa.
Families that read the three test files. At 81da4605fa, all exit 0: check:nul-bytes, check:engine-double-contract, check:cross-package-test-inputs, check:test-source-alias, check:agent-test-spelling, check:where-matcher, check:objectql-double-limit, check:tier-file-adoption.
Derived set. A re-run of all 112 at 81da4605fa had 51 done, all exit 0, when this was written. The rest is superseded by the next head (L2's S1/S2 round), where the derived set runs again.
Tests at 81da4605fa. plugin-security explain-fixed-read-leaf.test.ts 8/8, spec shared-record-ids.test.ts 31/31, analytics fixed-read-leaf-native-compile.test.ts 31/31. Typecheck exit 0 for analytics and plugin-security, and spec check:test-typecheck exit 0.
New head 74cac048492c37f8be30631dbef4b0d5ab441ade, a plain fast-forward from 81da4605fa:
3a1aae104c is the S1 and S2 fix.
74cac04849 rewords the changeset clause.
N1 to N4 are unchanged, as instructed.
S1, closed: parseFilterAST's type door
The type door now runs inside the same try as the shape door. If either door refuses a condition that carries a branded leaf, the answer is INTERNAL_ERROR / 500. The message names the leaf and its table, not the recipient. Unbranded copies keep INVALID_FILTER / 400.
The exported jsdoc now names that exception. The refuseFixedReadLeafAtParse jsdoc now names both doors and their shapes. The message no longer says "admits in no position": an array-form = is still passed on by reference.
Pins:
spec shared-record-ids.test.ts:
"a leaf the type door refuses is D4's envelope too: a list member and a scalar operator's comparand". It covers where.id.$in[0], where.id.$ne, and where.$and[1].id.$gt. Each asserts code + status, the message, and no recipient.
"an unbranded copy of the array form keeps the author's INVALID_FILTER / 400 …". It now also covers the list member and the != copy, each answering 400.
objectql engine-fixed-read-leaf-seam.test.ts, both through the engine's find:
"the leaf as an array-form in list member is refused INTERNAL_ERROR / 500, naming no recipient, as its object spelling is"
"the leaf as an array-form != comparand is refused …"
Each also asserts that the object spelling { id: { $in: [leaf] } } answers the same 500.
Reverse evidence:
Spec ablation: the type door moved back outside the try, in filter.zod.ts (511abdb4ec2f → c2106ee07672). Result: 1 red / 31 green. The red one is the type-door pin; the unbranded pin stayed green. Restored: blob == HEAD, git diff HEAD empty.
The two objectql pins against the pre-fix spec dist/ (built from 81da4605fa): 2 red / 68 green, both INVALID_FILTER / 400. After the spec rebuild: 70 / 70.
S2, closed: the explainer walks roles
resolvableLeavesOf now walks the way the engine's seam and the analytics findUnservedFixedReadLeaf do:
A node's keys are combinators and fields.
A field's plain-object value is an operator map.
Only an operator map's $in under id, naming the explained object, holds a leaf that it resolves.
Every other leaf is refused in D4's envelope, logged once. That covers a list member, a bare value, a relation condition's inner { id: { $in: leaf } }, and anything inside a composed ReadableIds scope, which is refused outright.
"a leaf inside a relation condition (a self-relation) is refused in D4's envelope, logged once, never resolved or published"
"a leaf inside a composed ReadableIds scope is refused in D4's envelope, logged once, never resolved or published"
Each asserts INTERNAL_ERROR / 500, the path, no recipient, one log line over two calls, and no read under the leaf's predicate. The composed shape is reachable at the explainer's input, which is the sharing service's read filter. No producer writes it today.
Reverse evidence: an ablation put the pre-fix key-based walk back in place of the role walk, in explain-fixed-read-leaf.ts (3ca8ca272d2d → 2342b68f56b2). Result: 2 red / 8 green, exactly the two new pins. Restored: blob == HEAD, diff empty.
Derived set.dispatch-gates --commands derives 112 families, and all 112 exit 0. That includes check:dual-build-cjs-loads and check:i18n, which were exit 3 on the first round. The --ran check: 112 derived, 112 run, 0 NOT-MEASURED, 0 UNRUN.
Merged as 0a3dd40863 via PR #35945 (head 74cac04849, 2026-11-21 00:52 UTC). Reviews: L1 REWORK 7051798358, then delta ACCEPT 7053458192. CONTRACT_REVIEW_TIER PASS 7052365884 (S1, S2), then delta PASS 7053910455 (S1: closed, S2: closed). Dev report 7051244258, ablation record 7052432230, fix-round amendment 7053428791, claim amendment 7051811974.
What landed:
The analytics native compiler compiles a placed read-form SharedRecordIds leaf from spec's fixedInnerReadOf. It is bound and carries no tenant scope. It declines a leaf scope to the engine strategy unless the host hook AnalyticsServiceConfig.fixedReadLeafClassOf answers null. The engine merges and the label read admit the brand. The echo prints the subquery. A leaf in a query's where is refused in every spelling.
The explainer resolves each leaf at the judged record. It does one keyed sys_record_share read per batch, admits a leaf by role only, and refuses one in a relation condition, a list or a composed scope. The published rowFilter is [id] in the share arm or leaves the arm out, and never carries the leaf.
driver-odata: find and count refuse the leaf.
spec, B6: parseFilterAST answers a branded leaf refused at either door (array-form in/nin, a list member, a scalar operator's comparand) with INTERNAL_ERROR/500 and no recipient in the message. An unbranded copy keeps INVALID_FILTER/400.
objectql exports fixedReadLeafClassOfEngine and driverEvaluatesFixedReadLeaf.
Noted, not filed: the spec comparand door still answers a branded leaf with INVALID_FILTER/400, printing shapePreview, for a caller that names no brand. It is dormant, because JSON cannot carry the brand. The dev's D4 admission reading needs no ADR amendment, and the seat skipped the pointer note.
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:data · Task · ADR-0155 step 5: the rest of the census for the share-grant leaf (storage refusal, both analytics compilers, the access explainer record pass), so dashboards, analytics and "why can I see this" do not break at the switch; part of #33787 → p2 as filed · size L (three surfaces; may be split by the claimant).objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c
Maintainer ruling · 2026-11-20T18:07Z · the rest of ADR-0155 counts as work in hand
The seat asked whether the remaining ADR-0155 steps (this card, step 5, and #33787, step 6, both p2) stop under the p1-only dispatch word (2026-11-20T17:07Z). At 2026-11-20T18:06Z Tesla chose 「算在手任务,整链做完」. This card is dispatched when step 3's card thread (#35872, PR #35893) lands, in the same thread, and #33787 follows. Step 4 (#35873) stays on hold and is no longer a prerequisite of #33787. The PG non-text-key fork #35906 goes to the maintainer before step 6.
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Claim: PM loop round 1
Session:
session_01L9qibyXo4gSy8DJPNz4ANzAccount:
os-teslaBranch:
claude/project-thread-thptm0(platform exception: this card thread can push only its assigned branch; it is recreated from origin/main 643fe3b, step 3's PR #35893 having merged from it)Worktree:
objectstack-issue-35874Domain:
domain:serverSeat:
repo:objectstack#7Area:
card #35874File surface:
packages/services/service-analytics/src/**(read-scope-sql.ts:compileScopedFilterToSqlat :831 compiles the leaf,assertReadScopeComparandsRunnableat :1165 admits the brand, the dry-run echo prints the subquery;strategies/native-sql-strategy.ts: the decline to the engine strategy besidereadScopeCarriesReadableIdsat :951 for D4's two classes),packages/plugins/plugin-security/src/**(explain-engine.ts#matchUnderDeclaredColumnsat :1736: the leaf resolved at the record, one indexedsys_record_shareread; the publishedrowFilternever carries the leaf),packages/objectql/src/index.tsplusfixed-read-leaf-seam.ts(a public face forfixedReadLeafClassOf/driverEvaluatesFixedReadLeaf, at :125 / :86, so the native compiler asks the seam and restates nothing),packages/drivers/driver-odata/src/**(the storage row's refusal of the brand besiderefuseReadableIdsat :622),packages/spec/src/data/filter.zod.ts(only if the array-formin/nindecision movesparseFilterAST's 400),packages/spec/src/data/fixed-read-leaf*.ts(only the N5 doc residue if touched), tests beside each,scripts/adr-anchors/(new anchor files only), one new changeset.changeset/35874-*.md(stop on breach; explain in the report). ⛔ No producer writes the leaf (step 6,plugin-sharinguntouched), no boot is refused (plan step 5), nodriver-mongodbedit (frozen under #5499, and the maintainer's word on 2026-11-20 「内存驱动,mongodb 驱动,都可以暂停」: the step-2 seam's refusal is that row's R1 until it ships), nodriver-memoryedit (#35873 on hold),packages/objectql/src/engine.tsdoes not grow (6854 of 6854), nodocs/adr/**orskills/**edit. A diff projected over 3,000 lines stops and reports a split.Container & model:
L,mode:subagent,model: default(dispatch-gates --tier at 643fe3b over the planned paths: "no path-derived mandate"),effort: xhigh(FRAME: "XL/security/contract xhigh"; this card changes the explainer's publishedrowFiltercontent and admits a brand at a second door)Clause-②: yes
Clause-② basis: the explainer's published
rowFilterchanges content (ADR-0155 Q2 consequences, "The card that lands it declares that under its own Clause-②"), and the analytics merge admits the brand at a second door.Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7047007471
Premise: holds (origin/main 643fe3b:
rg 'SharedRecordIds|fixedReadLeaf' packages/services packages/plugins/plugin-security→ 0 non-test hits; objectql's index exports neitherfixedReadLeafClassOfnordriverEvaluatesFixedReadLeaf;driver-odatarefuses onlyReadableIds(refuseReadableIds:622);driver-sqldeclaresfixedReadLeaves: ['SharedRecordIds']since step 3, 643fe3b, and exportsfixedInnerReadPredicates)Serial constraints cleared: overlap-check (probe commit over
read-scope-sql.ts,native-sql-strategy.ts,analytics-service.ts,explain-engine.ts,odata-driver.ts,objectql/src/index.ts,fixed-read-leaf-seam.ts, origin/main 643fe3b): merges cleanly; 1 open PR head shares a file (#34817,objectql/src/index.ts) and merges cleanly; overlap-check reruns before each push. Step 6 (#33787) waits for this card and #35906.Pre-claim lane:
repo:objectstackseat 7, card threadcard #35874(area-lease 〈不入区〉 for the L program, the same thread that landed step 3); code paths aredomain:server(services, plugin-security, objectql, drivers); apackages/spec/src/**hit, if any, is limited to the two rows named above; noskills/**,docs/adr/**or workflow pathPre-claim deps: #35786 (step 2) closed, merged as d7c257e; #35872 (step 3) closed, merged as 643fe3b via PR #35893; #35873 (step 4) on hold and not a dependency (maintainer 「走第二条」, notice 7045719428); no
Blocked-by:line on the cardScope-review: exempt — a ruled route (ADR-0155, accepted, Execution plan step 5)
Prior rulings read: ADR-0155 D-0, D1, D4 (admission, the recipient rule, the two classes), D5, Q2's ruled rows (storage rows R2 with R1 behind; analytics native compiler compiles the leaf and declines for D4's two classes; engine strategy merge admits the brand and the echo prints the subquery; explainer resolves the leaf at the record) and plan step 5 (accepted in PR #34735; ruling record 6942854600: 「三问都按 ADR 推荐」); maintainer ruling 7047007471 on this card (「算在手任务,整链做完」); step 2's close-out 7042346562 and L2 N3 (array-form
in/nin400, decided here); step 3's close-out 7048322381 (envelope INTERNAL_ERROR/500;fixedInnerReadPredicatesas the single source); #5499 and the 2026-11-20 freeze word above.check-prior-rulings.mjs --card 35874: ADR-0155 D1, D5, ADR-0044 D3; thread: none beyond 7047007471.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
os-dev-report · #35874 · PR #35945 (draft) · head 646a10e
The dev's relay
pr_createwas refused in the dev's sandbox before anything was sent; the card thread opened the same payload (assignees dropped, per the dispatch) as #35945. The dev's report, as returned, withprandstatusbrought to the opened PR:{ "issue": 35874, "status": "needs_decision", "branch": "claude/project-thread-thptm0", "pr": 35945, "head": "646a10ecf607fbf227a09e2f36e149fa5c039130", "base": "17ed9e7bf", "premise_still_valid": true, "line_budget": "1632 (+1611/-21), 22 files, under 3000", "tests": "New: service-analytics fixed-read-leaf-native-compile.test.ts 27/27 (11 SHARED_RECORD_IDS_CASE_SET rows live on SQLite; write-form and composed rows refused 500; 6 misplaced shapes refused by compiler and merge, logged once; native agrees with engine path; no hook -> decline; beforeFind hook on sys_record_share -> decline + engine 500; echo prints the subquery; 5 where spellings refused on both strategies, no recipient in message). plugin-security explain-fixed-read-leaf.test.ts 7/7 (both rowFilter shapes for read and update; serialized decision holds no recipient / sharedRecordIds / leaf; one keyed read for [SHARED, UNSHARED]; $nin leaf refused INTERNAL_ERROR/500 logged once; failing share read -> not visible, no rowFilter). driver-odata odata-driver.test.ts 34/34. objectql engine-fixed-read-leaf-seam.test.ts 68/68. spec shared-record-ids.test.ts 30/30. Full suites before rebase: spec 865 files (27797), objectql 624/624 (14169), service-analytics 221/221 (5643), plugin-security 285/285 (7075), driver-odata 9/9 (1455). After rebase: plugin-security 285/285 (7079 passed / 45 skipped); typecheck exit 0 for spec, objectql, service-analytics, plugin-security, driver-odata. objectql full suite not rerun after rebase (CI's).", "ablation": "driver-odata find's refuseFixedReadLeaf(query.where) replaced by a marker (committed first): predicted find red, count green; observed 12 failed (11 find + message test), 22 passed; find returned rows (B5's pre-change behaviour). Restored to the HEAD blob d5cb1fece2b0, git diff HEAD empty.", "gates": "dispatch-gates --commands at 646a10ecf: 112 derived, 110 run exit 0, 2 NOT MEASURED exit 3 (check:dual-build-cjs-loads and check:i18n need a full workspace build). Two reds at 65d8e8fc8 fixed in 646a10ecf: check:logger-receiver-detach (field renamed logger), check:engine-double-contract (--write, one row). Spec dist gates exit 0 after a full spec build with DTS. overlap-check VERDICT clean (#34817 shares objectql/src/index.ts, merges cleanly).", "measurements": { "B1": "Measured shut: analytics' runtime deps are core/spec/types; IObjectQLEngine offers no class recognition; an engine member breaches the engine.ts ceiling and needs a spec contract row; restating the classes violates D4. Delivered: AnalyticsServiceConfig.fixedReadLeafClassOf hook + fail-closed decline, unwired in AnalyticsServicePlugin. spec fixedInnerReadOf is the shared description (no driver-sql edge).", "B2": "Leaf compiles beside the $in arm, bound, no splice, recipient never in statement text, no tenant scope on the subquery. Decline beside readScopeCarriesReadableIds as readScopeCarriesUncompilableFixedReadLeaf. A leaf nested in ReadableIds never reaches the native path.", "B3": "assertReadScopeComparandsRunnable admits the brand for callers passing admitFixedReadLeaves; otherwise READ_SCOPE_COMPILE_FAILED/500 as before. Echo = ObjectQLStrategy.generateSql via compileScopedFilterToSql, prints the subquery.", "B4": "No .zod.ts change (rowFilter is an unknown record). Read reuses fixedInnerReadOf(leaf) under a system context. Every explain record pass, single and batch; update-operation explain (the attachment/comment gate shape) pinned for both shapes.", "B5": "Before: odata find dropped the predicate and returned rows; count refused as incomplete. Now find and count refuse INTERNAL_ERROR/500 before any request (unlogged; refuseReadableIds precedent). The seam refuses first anyway.", "B6": "Moved to D4's envelope: parseFilterAST answers an array-form in/nin leaf with 500 INTERNAL_ERROR naming the leaf and table, no recipient (the 400 printed the recipient id). Unbranded copy keeps 400. Step 2's pin replaced. Spec src change: Clause-② wider, said in the PR.", "B7": "1632 lines, one PR." }, "compile_surfaces": { "1 compileScopedFilterToSql": "changed here", "2 lowerAnalyticsWhere": "changed here (any leaf in a query's where refused 500, no recipient; before: 400 printing the recipient, or read as a relation condition)", "3 assertReadScopeComparandsRunnable": "changed here (brand-naming callers only)", "4 native decline": "changed here (fail-closed)", "5 echo": "changed here", "6 explainer": "changed here (resolved at the record before matchUnderDeclaredColumns)", "7 driver-odata": "changed here (find and count refuse)", "8 driver-mongodb": "out of scope (frozen); R1 = step-2 seam passFixedReadLeaves in fixed-read-leaf-seam.ts", "9 driver-memory": "out of scope (#35873 on hold); same seam refusal", "10 formula / having": "already compliant (atFixedReadLeafDoor before applyHaving; matcher sees a sharing filter only via the explainer, which now resolves first)", "11 driver-sql / Turso": "already compliant (step 3, 643fe3bcb)" }, "d4_admission_reconciliation": "Analytics' brand-naming callers are those passing admitFixedReadLeaves: withReadScope, relatedReadScope, the plugin's label read, and compileScopedFilterToSql (the native compiler's own door, admitting exactly what it compiles). D4's admission line and Q2's 'the native compiler compiles it' read as one ② row with two doors. No ADR amendment needed; a pointer note is optional for the seat.", "open_questions": [{ "question": "B1: how does AnalyticsServicePlugin ask the engine seam's D4 class recognition, so the native path compiles leaf scopes in production?", "options": [ "A: optional IObjectQLEngine member fixedReadLeafClassOf?(leaf) delegating to fixedReadLeafClassOfEngine; plugin wires engine.fixedReadLeafClassOf?.(leaf) ?? null. Precedent judgeFilter / hasObjectMiddleware. Cost: spec contract row (contract review) + maintainer engine.ts ceiling raise (6853 vs 6854; needs ~3-5 lines). ~30 lines, own card before step 6.", "B: runtime dependency service-analytics -> @objectstack/objectql. No cycle. Cost: new package edge; the function takes the concrete ObjectQL class, so a cast or instanceof. ~10 lines.", "C: objectql's plugin registers the recognition as a named kernel service read via ctx.getService. Cost: a new service-name contract.", "D: leave unwired (this PR). Correct rows on every host. Cost: from step 6 every sharing-scoped analytics query leaves native SQL; native-only shapes refused for sharing-scoped users on every object." ], "recommendation": "A (four axes in the dev's report: step 6 makes D degrade every sharing-scoped dashboard; A is contract-first and matches facets the plugin already reads; a typed optional member that declines fail-closed when absent; smallest change, its one cost the maintainer's engine.ts ceiling ruling). Must land before step 6." }], "security_findings": "none", "out_of_scope_findings": [ "noted, not filed: the spec comparand door still answers a branded leaf with INVALID_FILTER/400 for callers naming no brand, and its message prints the leaf's inputs (shapePreview). Dormant (no producer; JSON cannot carry the brand). In PR Acceptance notes.", "noted for the seat: an optional ADR pointer note naming compileScopedFilterToSql among analytics' brand-naming callers." ], "deviations": [ "relay pr_create refused in the dev's sandbox before sending; opened by the card thread as #35945 without assignees (the dispatch said do not assign).", "push: the remote ref had been deleted after #35930 merged, so a plain push created it; no force used.", "scripts/engine-double-contract.pinned.json outside the claim surface: check:engine-double-contract mandated one row.", "compile surface 2 (filter-normalizer.ts where-face guard) goes beyond B6: same-class gap closed with tests and a changeset bullet.", "three refusals with no logger (spec parseFilterAST, the analytics where face, driver-odata) are unlogged, per the refuseReadableIds precedent, not D4's 'logged once'.", "objectql full suite not rerun after the rebase (typecheck and the seam file passed)." ], "files_changed": 22, "api_writes": "dev 0; card thread 1 (pr_create)", "mcp_calls": 0 }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Claim amendment · 2026-11-20T22:09Z · file surface
The claim 7048435857 file surface gains one path outside it:
scripts/engine-double-contract.pinned.json, one row (packages/plugins/plugin-security/src/explain-fixed-read-leaf.test.ts,findOne, pinned 1).check:engine-double-contractrequires the row for the new explainer test's engine double, and it was written with--write. The path is not governed. Recorded on L1 7051798358 required item 3, as on #34352. Nothing else in the claim changes.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
os-dev-report · amendment, patch round 1 · #35874 · PR #35945 (draft) · head 81da460
New head
81da4605fae7b790a0ecf701d1e68f2435433b5d, a plain fast-forward from103f93b7ac. Two commits in this round:103f93b7ac: the changeset sentence (L1 required item 1). The PR body's decline bullet, the B1 acceptance note and the 速读 last line were brought into line through one relayissue_patchon feat(service-analytics, plugin-security, driver-odata): compile, resolve at the record, and refuse the SharedRecordIds leaf (ADR-0155 step 5) #35945. The first line and the signed trailer were kept.81da4605fa: test-only, +36 / −18 in three files. Three ablation legs had a pin that an earlier assertion in the same test masked. Each now has a pin of its own, as the brief allows ("add the missing pin in the same round"):wherespellings, oneiteach;it;itover read/update × granted/not granted, plus the batch.No source file changed.
Changeset diff (
.changeset/35874-fixed-read-leaf-census-rest.md,646a10ecf6..103f93b7ac)One line changed: the analytics native bullet gains one sentence at its end. The rest of the line is byte-identical. It carries the subquery SQL, which holds an angle-bracket operator, so it is elided here.
… A host that wires no answer keeps today's behaviour: the native path declines every scope that carries the leaf. + `AnalyticsServicePlugin` wires no answer in this release (#35946), so on every host today the native path declines a scope carrying the leaf and the engine path answers.Ablation record (L1 required item 2), every leg at head
81da4605faEach mutation was written with
scripts/ablation-replace.mjson the committed head. The tool checks the anchor count 1→0 and the replacement 0→1, and it restores bygit checkout HEAD. Every restore below printed blob == HEAD and an emptygit diff HEAD.Leg (d) resolves through
@objectstack/spec'sdist/:ablation-dist-preflightshowed the marker present in 2 built files;ablation-dist-preflight --absentshowed the marker absent from all 608 built files, and the tree clean against HEAD.compileScopedFilterToSqlcompiles the leaf as no restriction.read-scope-sql.ts,5f30359088ad→29d39c1e8d5c5f30359088ad, diff emptyread-scope-sql.ts→0ded3298be1c$not, g7 (inner read carries no tenant scope), the binds exact-SQL pin, native-vs-engine agreement.5f30359088ad, diff emptyreadScopeCarriesUncompilableFixedReadLeafanswers false.native-sql-strategy.ts,cbd87fa7639f→e8c6b808fd33cbd87fa7639f, diff emptyrefuseFixedReadLeafAtParsecall replaced by a marker.filter.zod.ts,6f2164044a7d→379f76f18ad5inandninanswered 400. The unbranded 400 pin passed (src run-t "array form": 1 passed).6f2164044a7d, diff empty; dist restored (above)refuseFixedReadLeafInWhereskipped on both faces.filter-normalizer.ts,d19a7585b145→31fdaff7d18dd19a7585b145, diff emptyexplain-engine.ts,8001b415448e→1d5c6118bcd08001b415448e, diff emptyWhere the observation departs from the prediction:
103f93b7ac): 1 red of 27. The five spellings shared oneit, which stopped at the first failure.it, after the failing assertion, so it was never read.81da4605fagives each of these its own pin. The table above is the re-run on that head.Gates
103f93b7ac, all 12 changeset families exit 0. The changeset is the same at81da4605fa.81da4605fa, all exit 0:check:nul-bytes,check:engine-double-contract,check:cross-package-test-inputs,check:test-source-alias,check:agent-test-spelling,check:where-matcher,check:objectql-double-limit,check:tier-file-adoption.81da4605fahad 51 done, all exit 0, when this was written. The rest is superseded by the next head (L2's S1/S2 round), where the derived set runs again.81da4605fa. plugin-securityexplain-fixed-read-leaf.test.ts8/8, specshared-record-ids.test.ts31/31, analyticsfixed-read-leaf-native-compile.test.ts31/31. Typecheck exit 0 for analytics and plugin-security, and speccheck:test-typecheckexit 0.81da4605faagainst origin/main170ca481f0: VERDICT clean. feat(messaging): Slack DM delivery — slack channel, per-person link store, approval requests by DM (Part of #34730) #35789 and fix(audit): a search the server widens never names a column the caller may not query #34817 merge cleanly.81da4605fa, read 2026-11-20T22:43Z: 46 check-runs, 15 success, 10 skipped, 21 in progress, 0 failed. At103f93b7acnone failed.Writes this round: 1 relay
issue_patch(#35945 body) and this comment. MCP calls: 0.Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
os-dev-report · amendment, L2 fix round · #35874 · PR #35945 (draft) · head 74cac04
New head
74cac048492c37f8be30631dbef4b0d5ab441ade, a plain fast-forward from81da4605fa:3a1aae104cis the S1 and S2 fix.74cac04849rewords the changeset clause.N1 to N4 are unchanged, as instructed.
S1, closed:
parseFilterAST's type doorThe type door now runs inside the same
tryas the shape door. If either door refuses a condition that carries a branded leaf, the answer isINTERNAL_ERROR/ 500. The message names the leaf and its table, not the recipient. Unbranded copies keepINVALID_FILTER/ 400.The exported jsdoc now names that exception. The
refuseFixedReadLeafAtParsejsdoc now names both doors and their shapes. The message no longer says "admits in no position": an array-form=is still passed on by reference.Pins:
spec
shared-record-ids.test.ts:where.id.$in[0],where.id.$ne, andwhere.$and[1].id.$gt. Each asserts code + status, the message, and no recipient.!=copy, each answering 400.objectql
engine-fixed-read-leaf-seam.test.ts, both through the engine'sfind:Each also asserts that the object spelling
{ id: { $in: [leaf] } }answers the same 500.Reverse evidence:
try, infilter.zod.ts(511abdb4ec2f→c2106ee07672). Result: 1 red / 31 green. The red one is the type-door pin; the unbranded pin stayed green. Restored: blob == HEAD,git diff HEADempty.dist/(built from81da4605fa): 2 red / 68 green, bothINVALID_FILTER/ 400. After the spec rebuild: 70 / 70.S2, closed: the explainer walks roles
resolvableLeavesOfnow walks the way the engine's seam and the analyticsfindUnservedFixedReadLeafdo:$inunderid, naming the explained object, holds a leaf that it resolves.Every other leaf is refused in D4's envelope, logged once. That covers a list member, a bare value, a relation condition's inner
{ id: { $in: leaf } }, and anything inside a composedReadableIdsscope, which is refused outright.Pins (plugin-security
explain-fixed-read-leaf.test.ts):Each asserts
INTERNAL_ERROR/ 500, the path, no recipient, one log line over two calls, and no read under the leaf's predicate. The composed shape is reachable at the explainer's input, which is the sharing service's read filter. No producer writes it today.Reverse evidence: an ablation put the pre-fix key-based walk back in place of the role walk, in
explain-fixed-read-leaf.ts(3ca8ca272d2d→2342b68f56b2). Result: 2 red / 8 green, exactly the two new pins. Restored: blob == HEAD, diff empty.Changeset and PR body
AnalyticsServicePluginpasses no answer, so the native path declines a scope carrying the leaf and the engine path answers, until [Decision] ADR-0155 step 5: how the analytics native compiler asks the engine seam which objects decline the share-grant leaf #35946 wires it." It holds whichever release feat(spec,objectql,service-analytics): IObjectQLEngine.fixedReadLeafClassOf, wired into the analytics native path (ADR-0155 D4) #35954 ships in.issue_patchon feat(service-analytics, plugin-security, driver-odata): compile, resolve at the record, and refuse the SharedRecordIds leaf (ADR-0155 step 5) #35945 brought five sentences into line, and the two-minute check now expects 31 tests, not 27. The read-back was identical (13550 bytes), and the first line and the signed trailer are kept. The five sentences:Gates and tests at
74cac04849Derived set.
dispatch-gates --commandsderives 112 families, and all 112 exit 0. That includescheck:dual-build-cjs-loadsandcheck:i18n, which were exit 3 on the first round. The--rancheck: 112 derived, 112 run, 0 NOT-MEASURED, 0 UNRUN.Overlap check against origin/main
cf2e321bf7: VERDICT clean. feat(spec,objectql,service-analytics): IObjectQLEngine.fixedReadLeafClassOf, wired into the analytics native path (ADR-0155 D4) #35954 (stacked, shares two analytics files) and fix(audit): a search the server widens never names a column the caller may not query #34817 both merge cleanly.Suites:
src/data: 183 files, 6649 tests.All ran against the rebuilt spec
dist/.Typechecks.
typecheckandcheck:test-typecheckexit 0 for spec, objectql and plugin-security.CI, read 2026-11-20T23:43Z:
81da4605fa: 69 check-runs, 58 success, 11 skipped, 0 failed.74cac04849: 40 check-runs so far, 6 success, 12 skipped, 22 in progress, 0 failed.Writes this round: 1 relay
issue_patch(#35945 body) and this comment. MCP calls: 0.Generated by Claude Code
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#7 · os-tesla · session_01L9qibyXo4gSy8DJPNz4ANz
Close-out · 2026-11-21T00:53Z · ADR-0155 step 5 landed
Merged as
0a3dd40863via PR #35945 (head74cac04849, 2026-11-21 00:52 UTC). Reviews: L1 REWORK 7051798358, then delta ACCEPT 7053458192. CONTRACT_REVIEW_TIER PASS 7052365884 (S1, S2), then delta PASS 7053910455 (S1: closed,S2: closed). Dev report 7051244258, ablation record 7052432230, fix-round amendment 7053428791, claim amendment 7051811974.What landed:
SharedRecordIdsleaf from spec'sfixedInnerReadOf. It is bound and carries no tenant scope. It declines a leaf scope to the engine strategy unless the host hookAnalyticsServiceConfig.fixedReadLeafClassOfanswersnull. The engine merges and the label read admit the brand. The echo prints the subquery. A leaf in a query'swhereis refused in every spelling.sys_record_shareread per batch, admits a leaf by role only, and refuses one in a relation condition, a list or a composed scope. The publishedrowFilteris[id]in the share arm or leaves the arm out, and never carries the leaf.driver-odata:findandcountrefuse the leaf.parseFilterASTanswers a branded leaf refused at either door (array-formin/nin, a list member, a scalar operator's comparand) withINTERNAL_ERROR/500 and no recipient in the message. An unbranded copy keepsINVALID_FILTER/400.fixedReadLeafClassOfEngineanddriverEvaluatesFixedReadLeaf.Carried to step 6 (#33787) and beside it:
AnalyticsServicePluginpasses no answer, so the native path declines and the engine path answers. plugin-sharing: a member with more than 5000 share grants on one object silently loses access to the grants past 5000 (list misses rows, GET answers 404) #33787 isBlocked-by: #35946.RAW(16)keys: driver-sql: the share-grant subquery on Oracle for a RAW(16) uuid key (ADR-0155 O2, ruling A applied to Oracle) #35952. plugin-sharing: a member with more than 5000 share grants on one object silently loses access to the grants past 5000 (list misses rows, GET answers 404) #33787 is Blocked-by both.[evaluator]prefix. N2, three refusals are unlogged (therefuseReadableIdsprecedent). N3, for feat(spec,objectql,service-analytics): IObjectQLEngine.fixedReadLeafClassOf, wired into the analytics native path (ADR-0155 D4) #35954: the hook's prescribed filling does not consultdriverEvaluatesFixedReadLeaf. N4:data-engine.zod.tsturnsparseFilterAST's 500 into a schema issue.INVALID_FILTER/400, printingshapePreview, for a caller that names no brand. It is dormant, because JSON cannot carry the brand. The dev's D4 admission reading needs no ADR amendment, and the seat skipped the pointer note.driver-mongodb(frozen, [裁决] driver-memory / driver-mongodb 投入冻结 —— 维护者 2026-08-05 口径(跨单锚点) #5499) anddriver-memory(ADR-0155 step 4 (driver-memory): evaluate the share-grant leaf in process, on reads and the predicate update path #35873 on hold) answer through the step-2 seam's refusal (R1). Nothing writes the leaf before step 6.