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 1 (spec): the share-grant semi-join leaf — brand, factory and guard, comparand door option, conformance cases, ISharingService / ISecurityService prose #35571
Filing gate: ④ an execution card of an accepted cross-layer ADR · Source: fleet (ADR-0155, accepted in PR #34735, merge 64ccf6b, ruling 6942854600; its Execution plan says the seats cut the cards in order). Part of #33787.
Inherits #33787: customers with large sharing volumes (team-shared account lists, rule-based bulk shares) silently lose access past 5,000 grants per member per object, and #33683's one-row-per-rule shares make that come sooner. ADR-0155 is the accepted fix; this card is its first step and every later step reads the contract it adds.
The brand, its factory and guard beside ReadableIds (packages/spec).
The comparand door's option; the fixed inner read's description.
The conformance case-set.
The ISharingService and ISecurityService prose, including: a narrowing of reads of sys_record_share registered for that table by name is never read around and gets the second class's answer as ② is ruled (R1 at boot, with the seam's refusal behind it); a narrowing that names no object is not run on the share arm from the switch on (D4's boundary). The shared pieces take the two-leaf shape (D4).
⛔ No runtime behaviour change and no boot refusal on this card (plan step 5: "No card up to here refuses a boot").
The card declares its own Clause-②: and runs its own gates (plan intro). Governing text: docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md (Decision D1–D6, Execution plan step 1).
Order
Step 1 of 6. Later steps are cut by the seat as each one becomes current (rolling): 2 engine seam → 3 driver-sql + Turso remote → 4 driver-memory → 5 census rest → 6 plugin-sharing switch, which is #33787 itself and lands last, after O8's census is recorded in its body.
Reader
Seat repo:objectstack#7, a dedicated card thread (L program, packages/spec/**; area-lease 〈不入区〉 for the program). L1 by L1-a; contract (L2) review per contract-review.md.
Dedupe
"ADR-0155" is:issue → #33787 (the defect), #33877 (on hold), #33899 and #34102 (closed). No execution card exists.
Grade: p2 — a blocker card takes the highest grade of the open cards it blocks (#33787, p2). Type: Task.
Triage note · 2026-11-19T15:45Z · this card was filed with domain:spec and pm:queue, which are triage's first touch (lanes/objectstack.md). The label door refuses taking pm:queue off with no next state, so the labels stay as filed and triage is asked by mailbox to confirm or correct them. ⛔ Not a claim; the seat claims only after triage's audit.
Triage: lands in domain:spec · pm:queue; rationale: area:data · Feature (ADR-0155 step 1: the share-grant semi-join leaf in spec) · execution of an accepted ADR under #33787 → p2 as set.
Claim: PM loop round 1 · card thread for ADR-0155 (seat 7 hand-off: step 1 of the execution split 7014164429 on #33787; triage audit 7014461861) · 2026-11-19T16:10Z
Area: card #35571
Session: session_01L9qibvMi1U7R2kBd3JbTPu
Account: os-tesla
Branch: claude/project-thread-dr6px1
Worktree: objectstack-issue-35571
Domain: domain:spec
Seat: repo:objectstack#7
File surface: packages/spec/src/data/ (a new share-grant leaf module beside readable-ids.ts, with its brand, factory and guard; filter-comparand-shape.ts for the comparand door's option; a conformance case-set beside readable-ids-conformance.ts; index.ts exports), packages/spec/src/contracts/sharing-service.ts and packages/spec/src/contracts/security-service.ts (prose only), their tests, generated spec artefacts the generators rewrite, root .changeset/. ⛔ No docs/adr/**, no runtime package, no boot refusal (ADR-0155 plan step 5: "No card up to here refuses a boot"). Stop on breach and report.
Container & model: L, mode:subagent, model: default — dispatch-gates --tier at 97f34203: "no path-derived mandate"; contract (L2) review at CONTRACT_REVIEW_TIER per contract-review.md, effort: xhigh (contract surface, seat 7's word)
Clause-②: yes
Metadata-protocol: none
Responsibility: plugin-sharing's buildReadFilter / buildWriteFilter in objectstack read grant rows at limit 5000 (#33787); the fix's first piece is this spec contract (ADR-0155 D1) | no platform path covers it: no leaf for share grants exists | every member past 5,000 grants on one object; the later steps 2–6 read this contract
Thread-read: 7014461861
Premise: holds — git grep -c SharedRecordIds origin/main -- packages 0 hits at 97f3420; ADR-0155 accepted (PR #34735 merged, ruling 6942854600)
Serial constraints cleared: none — open PRs naming ADR-0147, ReadableIds or the sharing service: 0 (search at claim time); readable-ids.ts, filter-comparand-shape.ts, sharing-service.ts last changed a5ddeb6 (merged); ADR-0147's leaf is not on main, so the shared pieces are shaped for two leaves here (D4) and that card follows
Pre-claim lane: domain:spec (packages/spec/** only)
Pre-claim deps: ADR-0155 accepted with rulings recorded (Status line, 6942854600); no Blocked-by: on this card
Prior rulings read: ADR-0155, share grant, semi-join, ReadableIds, comparand → 6942854600 (「三问都按 ADR 推荐」: ① A, ② recommended column, ③ A), 6895275749 (「只做根治」), ADR-0139 D1 (the brand device), ADR-0147 D-a (one brand, one meaning); check-prior-rulings: 66 ⛔/id hit lines in the three files, read by the dev as module constraints; none conflicts
Progress · 2026-11-20T04:05Z · the dev hit an API usage limit mid-sweep last night and resumed at 04:03Z. Branch claude/project-thread-dr6px1 is pushed at eb69b994 (packages/spec only: the SharedRecordIds leaf, the door option, the fixed-read case-set, contract prose); one local commit on top. Next: gate sweep, draft PR, then L1-a.
{
"issue": 35571,
"status": "done",
"branch": "claude/project-thread-dr6px1",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35739",
"session": "session_01L9qibvMi1U7R2kBd3JbTPu",
"premise_still_valid": true,
"head": "d475dae31ffc99ca82c3522608d5607422a17e49",
"summary": "ADR-0155 plan step 1 is in @objectstack/spec only. It adds the SharedRecordIds leaf: a Symbol.for brand, non-enumerable, on a frozen value, with read and write factories, a strict guard and innerRead. It adds D4's shared pieces in the two-leaf shape: the FixedInnerRead description over sys_record_share/record_id with tenantScope 'none', and the one brand dispatch. It also adds the comparand door's admitFixedReadLeaves option (no caller passes it, so every door still refuses the leaf with INVALID_FILTER/400), the FIXED_READ_LEAF_CASE_SETS conformance data (13 evaluator cases and 21 seam cases), and the ISharingService and ISecurityService prose, including the host notice for a narrowing registered by name versus one registered for no object. Nothing writes the leaf, no runtime package is touched, and no boot is refused.",
"tests": "At d475dae31f, under the verify lock: pnpm --filter @objectstack/spec test gives 'Test Files 858 passed (858) · Tests 27466 passed | 1 todo', VERDICT command-exit 0. pnpm --filter @objectstack/spec test:repo gives 'Test Files 92 passed (92) · Tests 1562 passed (1562)', VERDICT command-exit 0; it was run locally because the diff adds the share-table reconcile to the repo project. pnpm --filter @objectstack/spec typecheck gives 'check:test-typecheck: OK … 52 file(s) / 240 error(s) / 131 pinned signature(s) held', VERDICT command-exit 0, and tsc --listFilesOnly lists all three new test files. The new local tests are 2 files and 76 tests, plus 4 repo-project tests. Ablation: ablation-replace changed the door's anchor 'return brands !== undefined && isFixedReadLeaf(comparand, brands);' to 'return isFixedReadLeaf(comparand);' and reported 'anchor 1 -> 0, blob b0f6d51493eb -> 14485576ae28'. Under it, 1 test failed and 29 passed ('refuses the same branded leaf for every caller that names no brand'). It was restored with git checkout HEAD --, and the blob after restore equals the HEAD blob b0f6d51493eb with git diff HEAD empty. No dist leg applies, because the test imports source relatively.",
"gates": "The derived list (dispatch-gates --commands --repo objectstack-ai/objectstack) at d475dae31f has 91 commands, all exit 0, each exit captured before any pipe. The --ran reconciliation with exit codes says: '91 derived, 91 run, 0 NOT-MEASURED, 0 UNRUN … a DERIVED zero — all 91 recorded an exit code and none of them is 3'. The first sweep at 6449d5aba4 had two reds, both fixed in this branch: check:cross-package-test-inputs (fixed in 83a573b715 by moving the reconcile to the repo project) and check:where-matcher (fixed in d475dae31f, where the reference evaluator refuses a $-key). It also had three exit-3 gates: check:doc-formula-expressions, check:dual-build-cjs-loads and check:lean-entry-closure; all three exited 0 after the closures were built. The changeset gate check-changeset-no-major --event with the final PR body exits 0 ('LEVEL AXIS … a non-protocol change at patch'); the same gate with minor at 6449d5aba4 exits 1 (refused). check-adr-0087-registration --event exits 0, and overlap-check at d475dae31f gives 'VERDICT clean exit 0' against origin/main a3a74f2702. Local-only: check:dev-prereqs exits 1, because 35 of 108 workspace packages have no dist in this container (local state, not this diff). The derivation printed STALE TREE (62 commits behind origin/main, 10 derivation files changed); per the coordinator the branch was not merged. CI check-runs on PR 35739 are in_progress or not yet read: the report is delivered without waiting for CI.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"line_budget": "n/a — no skills/** and no line-ratcheted ledger in the diff; 14 files, +1934/-13, under the 3000-line human-merge threshold",
"files_changed": [
".changeset/35571-shared-record-ids-leaf.md",
"packages/spec/api-surface/data.json",
"packages/spec/export-origins/data.json",
"packages/spec/src/contracts/security-service.ts",
"packages/spec/src/contracts/sharing-service.ts",
"packages/spec/src/data/filter-comparand-shape.ts",
"packages/spec/src/data/fixed-read-leaf-conformance.test.ts",
"packages/spec/src/data/fixed-read-leaf-conformance.ts",
"packages/spec/src/data/fixed-read-leaf.ts",
"packages/spec/src/data/index.ts",
"packages/spec/src/data/shared-record-ids-share-table.test.ts",
"packages/spec/src/data/shared-record-ids.test.ts",
"packages/spec/src/data/shared-record-ids.ts",
"packages/spec/vitest.repo-tests.json"
],
"mcp_calls": "0 — no MCP GitHub call of any kind",
"api_writes": "2 — (1) relay pr_create: POST /repos/objectstack-ai/objectstack/dispatches, executed as POST /repos/objectstack-ai/objectstack/pulls and POST /repos/objectstack-ai/objectstack/issues/35739/assignees; the read-back says the body is byte-identical (19193 bytes) and the assignees are os-tesla. (2) the os-dev-report comment through post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/35571/comments. git push is not counted.",
"deviations": [
"The changeset is graded patch, not the dispatch's minor. The PR declares Metadata-protocol: none, and AGENTS.md ruling A says none takes patch. Measured: check-changeset-no-major --event refuses minor beside none (exit 1) and passes patch (exit 0).",
"The claim's file surface grew. packages/spec/vitest.repo-tests.json gained one line, and packages/spec/src/data/shared-record-ids-share-table.test.ts was split out of shared-record-ids.test.ts. check:cross-package-test-inputs demands that registration for a test that reads plugin-sharing source.",
"PR body order follows os-dev.md, which puts the declaration lines before 维护者速读; the dispatch listed 速读 first.",
"The relay refuses a draft key on pr_create, because it forces draft itself. The dispatch's draft:true was dropped from the actions file.",
"The AGENTS.md PD13 ADR anchor for the new module was not added, because scripts/adr-anchors/ is outside the claim's surface. See open_questions.",
"Per the coordinator, origin/main was not merged: overlap-check is clean. The gate derivation therefore read a tree 62 commits behind main, which it flags as STALE TREE.",
"check:dev-prereqs exits 1 locally, reporting unbuilt workspace packages in this container."
],
"open_questions": [
{
"question": "What should D4's fourth shared piece, the driver declaration, be named and shaped? Step 2 declares it beside its reader.",
"options": [
"A DriverCapabilities.fixedReadLeaves: a list of the fixed-read leaf names the driver evaluates, one key for both leaves",
"B one boolean capability per leaf (sharedRecordIds, and ADR-0147's own)"
],
"recommendation": "A, because D4 builds the declaration once in the two-leaf shape, and a list mirrors the door's admitFixedReadLeaves brand list."
},
{
"question": "Where does the PD13 ADR anchor for packages/spec/src/data/shared-record-ids.ts land?",
"options": [
"A a seat-owned follow-up adds scripts/adr-anchors/packages__spec__src__data__shared-record-ids.ts.json",
"B widen this claim's surface and add it on this PR"
],
"recommendation": "A, because the claim names no scripts/ path and the anchor has no runtime bearing."
},
{
"question": "What does the engine seam answer when a write-form leaf arrives on a read verb (find, findOne, count or aggregate)? D1 names each form's verbs, but not that cross.",
"options": [
"A refuse with INTERNAL_ERROR/500, like any other misplaced leaf, and pin it in step 2's seam cases",
"B admit it as a narrower read"
],
"recommendation": "A, because D1 refuses the leaf 'anywhere else', and admitting a narrower read silently would hide a producer bug."
}
],
"security_findings": "none",
"out_of_scope_findings": []
}
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Addendum to the os-dev-report above: the PD13 anchor, added under the seat's answer to open question 2 (option B)
New head:98693f5, pushed to claude/project-thread-dr6px1. It is one commit on top of d475dae.
The added file:scripts/adr-anchors/packages__spec__src__data__shared-record-ids.ts.json pins ADR-0139 and ADR-0155 in packages/spec/src/data/shared-record-ids.ts, with the leaf's invariant. Nothing else changed.
Deviation: the claim's file surface widens by that one file, as the seat ruled. One acceptance note in PR 35739's body, "No ADR anchor file for the new module", is now stale. os-dev.md leaves edits to the PR body to the seat, so the correction is recorded here.
pnpm check:adr-anchors: exit 0, "check-adr-anchors: OK (117 anchored file(s), every governing ADR still referenced …".
The families the added path derives, each exit 0: check:agent-test-spelling, check:bash32-floor, check:cli-command-ids, check:entry-guard, check:parse-guard, check:pnpm-filter-targets, check:pnpm-flag-spellings and check:scripts-symbol-anchors.
pnpm check:nul-bytes: exit 0.
overlap-check: "VERDICT clean exit 0" against origin/main 03bce5c.
Open questions 1 and 3 (the driver declaration name, and a write-form leaf on a read verb) go with the seat to step 2's card, with recommendations A and A.
ADR-0155 O1 · the driver declaration's name, fixed on the spec card · 2026-11-20T05:55Z
Seat 7's call (ADR-0155 O1: "The seat's call, fixed on the spec card"), escalated by contract review 7031725737 open question 1, ruled by the seat thread at 2026-11-20T05:55Z:
The name is DriverCapabilities.fixedReadLeaves: a list of the fixed-read leaf brand names the driver evaluates; absence means none. One key covers both leaves (this card's SharedRecordIds and ADR-0147's), mirroring the comparand door's admitFixedReadLeaves.
For the step-2 card: the existing boolean readableIdsLeaf (packages/spec/src/data/driver.zod.ts) is the precedent and sits beside it. The step-2 card states whether readableIdsLeaf stays separate or is later expressed through fixedReadLeaves, so two capability spellings do not drift.
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Addendum to the os-dev-report above: fix round on PR 35739, after contract review 7031725737
New head:fb5b67c, one commit on 98693f5, pushed to claude/project-thread-dr6px1. main was not merged: overlap-check reads "VERDICT clean exit 0" against origin/main 0e2de25.
S1, the guard.isSharedRecordIds and SharedRecordIds.innerRead now share one reading. It requires:
the factories' prototype, Object.prototype;
a data descriptor for every own key;
the brand as the only symbol, non-enumerable and holding true;
only the three input keys, each enumerable.
It reads object, recipient and accessLevels, including each level, from the descriptors it judged. Four look-alike tests were added: an accessor recipient, inherited object and recipient, an inherited empty accessLevels, and a non-enumerable own key (an extra key, and a hidden recipient). Each asserts the guard, isFixedReadLeaf, innerRead and the door refuse it with INVALID_FILTER/400.
N1.admitsEngineLeaf tests options == null. A null options is pinned in the no-brand refusal test.
N2. The buildReadFilter doc and the changeset now say "never match it with a generic matcher", and the changeset says "at most 5,000 grants per read". N3 and N4 are untouched.
Red first. The new tests were run before the fix, against 98693f5's source: Tests 5 failed | 25 passed (30), VERDICT command-exit 1. The failures were the four look-alikes ("expected true to be false") and the null options ({ code: undefined, status: undefined } instead of { code: 'INVALID_FILTER', status: 400 }). After the fix: Test Files 2 passed (2), Tests 80 passed (80), VERDICT command-exit 0.
The 88 families dispatch-gates derives for the five changed files: 88 of 88 exit 0. The reconciliation reads "88 derived, 88 run, 0 NOT-MEASURED, 0 UNRUN".
check:dual-build-cjs-loads first answered PREREQUISITE NOT MET (exit 3). A later gate in the run built the missing dists, and the re-run exited 0.
Spec suite: Test Files 858 passed (858), Tests 27470 passed | 1 todo, VERDICT command-exit 0.
Adjacent door and ReadableIds tests: 159 passed, 1 todo. Spec typecheck: exit 0.
Close-out: delivered by PR #35739, merged as c99156e · 2026-11-20T07:52Z
Delivered (ADR-0155 plan step 1, spec only). The SharedRecordIds leaf (brand, factories, strict own-descriptor guard), the fixed inner read in the two-leaf shape (FixedInnerRead, fixedInnerReadOf, isFixedReadLeaf), the comparand door's admitFixedReadLeaves option (no caller passes it yet), the conformance case-set (13 evaluator cases, 21 seam cases), and the ISharingService / ISecurityService prose. Runtime behaviour is unchanged. Reviews: L1 ACCEPT 7031355417, delta 7032331937; L2 PASS 7031725737, delta PASS 7032452829; Regen-provenance 7033069698.
Left to seat 7, for step 2's card (engine seam):
the driver declaration, named DriverCapabilities.fixedReadLeaves by the seat's O1 ruling on this card (a list of leaf names, beside its reader);
the write form arriving on a read verb is refused like any misplaced leaf, plus seam cases for the leaf outside $in (L2 N3);
packages/core/src/utils/filter-tokens.ts#resolveFilterTokens must keep a fixed-read leaf by reference (isFixedReadLeaf), or a scope that carries a token beside the leaf arrives unbranded and is refused with 400.
Left for steps 3 and 5: the per-dialect witnesses for the empty-id guard and the cross-organization nested case (step 3, L2 N4); and whether the analytics native compiler's entry (service-analytics/src/read-scope-sql.ts#compileScopedFilterToSql) is one of D4's two brand-naming callers (step 5).
State: card closed by Fixes; pm:dispatched removed with this comment.
Activity
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c
Triage note · 2026-11-19T15:45Z · this card was filed with
domain:specandpm:queue, which are triage's first touch (lanes/objectstack.md). The label door refuses takingpm:queueoff with no next state, so the labels stay as filed and triage is asked by mailbox to confirm or correct them. ⛔ Not a claim; the seat claims only after triage's audit.objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec·pm:queue; rationale: area:data · Feature (ADR-0155 step 1: the share-grant semi-join leaf in spec) · execution of an accepted ADR under #33787 → p2 as set.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Claim: PM loop round 1 · card thread for ADR-0155 (seat 7 hand-off: step 1 of the execution split 7014164429 on #33787; triage audit 7014461861) · 2026-11-19T16:10Z
Area: card #35571
Session:
session_01L9qibvMi1U7R2kBd3JbTPuAccount:
os-teslaBranch:
claude/project-thread-dr6px1Worktree:
objectstack-issue-35571Domain:
domain:specSeat:
repo:objectstack#7File surface:
packages/spec/src/data/(a new share-grant leaf module besidereadable-ids.ts, with its brand, factory and guard;filter-comparand-shape.tsfor the comparand door's option; a conformance case-set besidereadable-ids-conformance.ts;index.tsexports),packages/spec/src/contracts/sharing-service.tsandpackages/spec/src/contracts/security-service.ts(prose only), their tests, generated spec artefacts the generators rewrite, root.changeset/. ⛔ Nodocs/adr/**, no runtime package, no boot refusal (ADR-0155 plan step 5: "No card up to here refuses a boot"). Stop on breach and report.Container & model:
L,mode:subagent,model: default — dispatch-gates --tier at 97f34203: "no path-derived mandate"; contract (L2) review at CONTRACT_REVIEW_TIER per contract-review.md,effort: xhigh(contract surface, seat 7's word)Clause-②: yes
Metadata-protocol: none
Responsibility:
plugin-sharing's buildReadFilter / buildWriteFilter in objectstack read grant rows at limit 5000 (#33787); the fix's first piece is this spec contract (ADR-0155 D1) | no platform path covers it: no leaf for share grants exists | every member past 5,000 grants on one object; the later steps 2–6 read this contractThread-read: 7014461861
Premise: holds —
git grep -c SharedRecordIds origin/main -- packages0 hits at 97f3420; ADR-0155 accepted (PR #34735 merged, ruling 6942854600)Serial constraints cleared: none — open PRs naming ADR-0147, ReadableIds or the sharing service: 0 (search at claim time);
readable-ids.ts,filter-comparand-shape.ts,sharing-service.tslast changed a5ddeb6 (merged); ADR-0147's leaf is not on main, so the shared pieces are shaped for two leaves here (D4) and that card followsPre-claim lane:
domain:spec(packages/spec/**only)Pre-claim deps: ADR-0155 accepted with rulings recorded (Status line, 6942854600); no
Blocked-by:on this cardPrior rulings read: ADR-0155, share grant, semi-join, ReadableIds, comparand → 6942854600 (「三问都按 ADR 推荐」: ① A, ② recommended column, ③ A), 6895275749 (「只做根治」), ADR-0139 D1 (the brand device), ADR-0147 D-a (one brand, one meaning); check-prior-rulings: 66 ⛔/id hit lines in the three files, read by the dev as module constraints; none conflicts
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Progress · 2026-11-20T04:05Z · the dev hit an API usage limit mid-sweep last night and resumed at 04:03Z. Branch
claude/project-thread-dr6px1is pushed ateb69b994(packages/spec only: theSharedRecordIdsleaf, the door option, the fixed-read case-set, contract prose); one local commit on top. Next: gate sweep, draft PR, then L1-a.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
os-dev-report
{ "issue": 35571, "status": "done", "branch": "claude/project-thread-dr6px1", "pr": "https://github.com/objectstack-ai/objectstack/pull/35739", "session": "session_01L9qibvMi1U7R2kBd3JbTPu", "premise_still_valid": true, "head": "d475dae31ffc99ca82c3522608d5607422a17e49", "summary": "ADR-0155 plan step 1 is in @objectstack/spec only. It adds the SharedRecordIds leaf: a Symbol.for brand, non-enumerable, on a frozen value, with read and write factories, a strict guard and innerRead. It adds D4's shared pieces in the two-leaf shape: the FixedInnerRead description over sys_record_share/record_id with tenantScope 'none', and the one brand dispatch. It also adds the comparand door's admitFixedReadLeaves option (no caller passes it, so every door still refuses the leaf with INVALID_FILTER/400), the FIXED_READ_LEAF_CASE_SETS conformance data (13 evaluator cases and 21 seam cases), and the ISharingService and ISecurityService prose, including the host notice for a narrowing registered by name versus one registered for no object. Nothing writes the leaf, no runtime package is touched, and no boot is refused.", "tests": "At d475dae31f, under the verify lock: pnpm --filter @objectstack/spec test gives 'Test Files 858 passed (858) · Tests 27466 passed | 1 todo', VERDICT command-exit 0. pnpm --filter @objectstack/spec test:repo gives 'Test Files 92 passed (92) · Tests 1562 passed (1562)', VERDICT command-exit 0; it was run locally because the diff adds the share-table reconcile to the repo project. pnpm --filter @objectstack/spec typecheck gives 'check:test-typecheck: OK … 52 file(s) / 240 error(s) / 131 pinned signature(s) held', VERDICT command-exit 0, and tsc --listFilesOnly lists all three new test files. The new local tests are 2 files and 76 tests, plus 4 repo-project tests. Ablation: ablation-replace changed the door's anchor 'return brands !== undefined && isFixedReadLeaf(comparand, brands);' to 'return isFixedReadLeaf(comparand);' and reported 'anchor 1 -> 0, blob b0f6d51493eb -> 14485576ae28'. Under it, 1 test failed and 29 passed ('refuses the same branded leaf for every caller that names no brand'). It was restored with git checkout HEAD --, and the blob after restore equals the HEAD blob b0f6d51493eb with git diff HEAD empty. No dist leg applies, because the test imports source relatively.", "gates": "The derived list (dispatch-gates --commands --repo objectstack-ai/objectstack) at d475dae31f has 91 commands, all exit 0, each exit captured before any pipe. The --ran reconciliation with exit codes says: '91 derived, 91 run, 0 NOT-MEASURED, 0 UNRUN … a DERIVED zero — all 91 recorded an exit code and none of them is 3'. The first sweep at 6449d5aba4 had two reds, both fixed in this branch: check:cross-package-test-inputs (fixed in 83a573b715 by moving the reconcile to the repo project) and check:where-matcher (fixed in d475dae31f, where the reference evaluator refuses a $-key). It also had three exit-3 gates: check:doc-formula-expressions, check:dual-build-cjs-loads and check:lean-entry-closure; all three exited 0 after the closures were built. The changeset gate check-changeset-no-major --event with the final PR body exits 0 ('LEVEL AXIS … a non-protocol change at patch'); the same gate with minor at 6449d5aba4 exits 1 (refused). check-adr-0087-registration --event exits 0, and overlap-check at d475dae31f gives 'VERDICT clean exit 0' against origin/main a3a74f2702. Local-only: check:dev-prereqs exits 1, because 35 of 108 workspace packages have no dist in this container (local state, not this diff). The derivation printed STALE TREE (62 commits behind origin/main, 10 derivation files changed); per the coordinator the branch was not merged. CI check-runs on PR 35739 are in_progress or not yet read: the report is delivered without waiting for CI.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "n/a — no skills/** and no line-ratcheted ledger in the diff; 14 files, +1934/-13, under the 3000-line human-merge threshold", "files_changed": [ ".changeset/35571-shared-record-ids-leaf.md", "packages/spec/api-surface/data.json", "packages/spec/export-origins/data.json", "packages/spec/src/contracts/security-service.ts", "packages/spec/src/contracts/sharing-service.ts", "packages/spec/src/data/filter-comparand-shape.ts", "packages/spec/src/data/fixed-read-leaf-conformance.test.ts", "packages/spec/src/data/fixed-read-leaf-conformance.ts", "packages/spec/src/data/fixed-read-leaf.ts", "packages/spec/src/data/index.ts", "packages/spec/src/data/shared-record-ids-share-table.test.ts", "packages/spec/src/data/shared-record-ids.test.ts", "packages/spec/src/data/shared-record-ids.ts", "packages/spec/vitest.repo-tests.json" ], "mcp_calls": "0 — no MCP GitHub call of any kind", "api_writes": "2 — (1) relay pr_create: POST /repos/objectstack-ai/objectstack/dispatches, executed as POST /repos/objectstack-ai/objectstack/pulls and POST /repos/objectstack-ai/objectstack/issues/35739/assignees; the read-back says the body is byte-identical (19193 bytes) and the assignees are os-tesla. (2) the os-dev-report comment through post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/35571/comments. git push is not counted.", "deviations": [ "The changeset is graded patch, not the dispatch's minor. The PR declares Metadata-protocol: none, and AGENTS.md ruling A says none takes patch. Measured: check-changeset-no-major --event refuses minor beside none (exit 1) and passes patch (exit 0).", "The claim's file surface grew. packages/spec/vitest.repo-tests.json gained one line, and packages/spec/src/data/shared-record-ids-share-table.test.ts was split out of shared-record-ids.test.ts. check:cross-package-test-inputs demands that registration for a test that reads plugin-sharing source.", "PR body order follows os-dev.md, which puts the declaration lines before 维护者速读; the dispatch listed 速读 first.", "The relay refuses a draft key on pr_create, because it forces draft itself. The dispatch's draft:true was dropped from the actions file.", "The AGENTS.md PD13 ADR anchor for the new module was not added, because scripts/adr-anchors/ is outside the claim's surface. See open_questions.", "Per the coordinator, origin/main was not merged: overlap-check is clean. The gate derivation therefore read a tree 62 commits behind main, which it flags as STALE TREE.", "check:dev-prereqs exits 1 locally, reporting unbuilt workspace packages in this container." ], "open_questions": [ { "question": "What should D4's fourth shared piece, the driver declaration, be named and shaped? Step 2 declares it beside its reader.", "options": [ "A DriverCapabilities.fixedReadLeaves: a list of the fixed-read leaf names the driver evaluates, one key for both leaves", "B one boolean capability per leaf (sharedRecordIds, and ADR-0147's own)" ], "recommendation": "A, because D4 builds the declaration once in the two-leaf shape, and a list mirrors the door's admitFixedReadLeaves brand list." }, { "question": "Where does the PD13 ADR anchor for packages/spec/src/data/shared-record-ids.ts land?", "options": [ "A a seat-owned follow-up adds scripts/adr-anchors/packages__spec__src__data__shared-record-ids.ts.json", "B widen this claim's surface and add it on this PR" ], "recommendation": "A, because the claim names no scripts/ path and the anchor has no runtime bearing." }, { "question": "What does the engine seam answer when a write-form leaf arrives on a read verb (find, findOne, count or aggregate)? D1 names each form's verbs, but not that cross.", "options": [ "A refuse with INTERNAL_ERROR/500, like any other misplaced leaf, and pin it in step 2's seam cases", "B admit it as a narrower read" ], "recommendation": "A, because D1 refuses the leaf 'anywhere else', and admitting a narrower read silently would hide a producer bug." } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Addendum to the os-dev-report above: the PD13 anchor, added under the seat's answer to open question 2 (option B)
claude/project-thread-dr6px1. It is one commit on top of d475dae.scripts/adr-anchors/packages__spec__src__data__shared-record-ids.ts.jsonpins ADR-0139 and ADR-0155 inpackages/spec/src/data/shared-record-ids.ts, with the leaf's invariant. Nothing else changed.pnpm check:adr-anchors: exit 0, "check-adr-anchors: OK (117 anchored file(s), every governing ADR still referenced …".check:agent-test-spelling,check:bash32-floor,check:cli-command-ids,check:entry-guard,check:parse-guard,check:pnpm-filter-targets,check:pnpm-flag-spellingsandcheck:scripts-symbol-anchors.pnpm check:nul-bytes: exit 0.files_changedis now 15.api_writesis now 3; this comment is the third, at POST /repos/ADR-0155 step 1 (spec): the share-grant semi-join leaf — brand, factory and guard, comparand door option, conformance cases, ISharingService / ISecurityService prose #35571/comments.mcp_callsis 0.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
ADR-0155 O1 · the driver declaration's name, fixed on the spec card · 2026-11-20T05:55Z
Seat 7's call (ADR-0155 O1: "The seat's call, fixed on the spec card"), escalated by contract review 7031725737 open question 1, ruled by the seat thread at 2026-11-20T05:55Z:
DriverCapabilities.fixedReadLeaves: a list of the fixed-read leaf brand names the driver evaluates; absence means none. One key covers both leaves (this card'sSharedRecordIdsand ADR-0147's), mirroring the comparand door'sadmitFixedReadLeaves.readableIdsLeaf(packages/spec/src/data/driver.zod.ts) is the precedent and sits beside it. The step-2 card states whetherreadableIdsLeafstays separate or is later expressed throughfixedReadLeaves, so two capability spellings do not drift.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Addendum to the os-dev-report above: fix round on PR 35739, after contract review 7031725737
New head: fb5b67c, one commit on 98693f5, pushed to
claude/project-thread-dr6px1.mainwas not merged: overlap-check reads "VERDICT clean exit 0" against origin/main 0e2de25.S1, the guard.
isSharedRecordIdsandSharedRecordIds.innerReadnow share one reading. It requires:Object.prototype;true;It reads
object,recipientandaccessLevels, including each level, from the descriptors it judged. Four look-alike tests were added: an accessor recipient, inherited object and recipient, an inherited empty accessLevels, and a non-enumerable own key (an extra key, and a hidden recipient). Each asserts the guard,isFixedReadLeaf,innerReadand the door refuse it with INVALID_FILTER/400.N1.
admitsEngineLeaftestsoptions == null. Anulloptions is pinned in the no-brand refusal test.N2. The
buildReadFilterdoc and the changeset now say "never match it with a generic matcher", and the changeset says "at most 5,000 grants per read". N3 and N4 are untouched.Red first. The new tests were run before the fix, against 98693f5's source:
Tests 5 failed | 25 passed (30), VERDICT command-exit 1. The failures were the four look-alikes ("expected true to be false") and the null options ({ code: undefined, status: undefined }instead of{ code: 'INVALID_FILTER', status: 400 }). After the fix:Test Files 2 passed (2),Tests 80 passed (80), VERDICT command-exit 0.Gates at fb5b67c:
check:dual-build-cjs-loadsfirst answered PREREQUISITE NOT MET (exit 3). A later gate in the run built the missing dists, and the re-run exited 0.Test Files 858 passed (858),Tests 27470 passed | 1 todo, VERDICT command-exit 0.check-changeset-no-major --event: exit 0.check-adr-0087-registration --event: exit 0.Counts:
api_writesis 4; this comment is the fourth, at POST /repos/ADR-0155 step 1 (spec): the share-grant semi-join leaf — brand, factory and guard, comparand door option, conformance cases, ISharingService / ISecurityService prose #35571/comments.mcp_callsis 0.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu
Close-out: delivered by PR #35739, merged as c99156e · 2026-11-20T07:52Z
SharedRecordIdsleaf (brand, factories, strict own-descriptor guard), the fixed inner read in the two-leaf shape (FixedInnerRead,fixedInnerReadOf,isFixedReadLeaf), the comparand door'sadmitFixedReadLeavesoption (no caller passes it yet), the conformance case-set (13 evaluator cases, 21 seam cases), and theISharingService/ISecurityServiceprose. Runtime behaviour is unchanged. Reviews: L1 ACCEPT 7031355417, delta 7032331937; L2 PASS 7031725737, delta PASS 7032452829; Regen-provenance 7033069698.DriverCapabilities.fixedReadLeavesby the seat's O1 ruling on this card (a list of leaf names, beside its reader);$in(L2 N3);packages/core/src/utils/filter-tokens.ts#resolveFilterTokensmust keep a fixed-read leaf by reference (isFixedReadLeaf), or a scope that carries a token beside the leaf arrives unbranded and is refused with 400.service-analytics/src/read-scope-sql.ts#compileScopedFilterToSql) is one of D4's two brand-naming callers (step 5).Fixes;pm:dispatchedremoved with this comment.