Repository navigation
Description
repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c
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. Step 1 (#35571) merged as c99156e (2026-11-20, 07:51 UTC); its close-out 7033733046 lists the carry-forwards below.
维护者速读
- 问题:一个成员在同一对象上被共享超过 5000 条后,多出来的共享静默失效(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)。ADR-0155 分 6 步修,第 1 步(spec 契约)已合并,这是第 2 步。
- 这一步做什么:让引擎认得并安全地传递第 1 步定义的"共享子查询叶子":哪里能放、哪个动作能用、为谁读,放错一律拒绝;驱动通过一个新声明说明自己能不能执行它。还没有任何地方真正生成这个叶子,用户可见行为不变。
- 不做会怎样:后面的驱动编译(第 3、4 步)和 plugin-sharing 切换(第 6 步)都无处接入,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 修不了。
- 要你做的:无。
Why (business)
Inherits #33787: customers with large sharing volumes silently lose access past 5,000 grants per member per object. ADR-0155 is the accepted fix. This card is its engine step, the seam every driver step and the plugin-sharing switch go through.
Scope (ADR-0155 Execution plan, step 2)
- Door admission and pass-through of the fixed-read leaves step 1 added (
admitFixedReadLeavesgets its first callers). - The position rule, and the verb rule (③ ruled A): the write form is admitted only in the
whereof a predicateupdate. On a read verb it is refused like any misplaced leaf. - The recipient rule, pinned on its four cases: the context's user, its delegator, a system context, and any other recipient (refused).
- The two recognised classes (② as ruled: R2 with R1 behind it for an object on another datasource, R1 for the host class); the descent into composed scopes; the refusal.
- The driver declaration R2 reads:
DriverCapabilities.fixedReadLeaves, a list of the fixed-read leaf brand names the driver evaluates, absence = none. One key covers both leaves, mirroring the door'sadmitFixedReadLeaves; it is declared here beside its reader (ADR-0078). The name was ruled by the seat under ADR-0155 O1 and recorded on ADR-0155 step 1 (spec): the share-grant semi-join leaf — brand, factory and guard, comparand door option, conformance cases, ISharingService / ISecurityService prose #35571. The card says how it relates to the existing booleanreadableIdsLeaf(packages/spec/src/data/driver.zod.ts), so that two capability spellings do not drift. - Carry-forwards from step 1's review:
packages/core/src/utils/filter-tokens.ts#resolveFilterTokenskeeps a fixed-read leaf by reference (isFixedReadLeaf). Today onlyReadableIdssurvives a token rebuild, so a scope carrying a token beside the leaf arrives unbranded and is refused with 400.@objectstack/coreis not in the ADR's consumer list; the card names it.- Seam cases for the write form on a read verb (refused) and for the leaf outside the
$incomparand (L2 N3).
- The cases of ADR-0147's anchor are pinned on the card that adds that leaf to the seam (plan step 2, last sentence), not here unless this card adds it.
- ⛔ No boot refusal on this card (plan step 5: "No card up to here refuses a boot"). ⛔ No producer writes the leaf yet (that is step 6).
- The card declares its own
Clause-②:and runs its own gates. Governing text:docs/adr/0155-sharing-scope-share-grants-lower-to-an-engine-internal-semi-join-leaf.md(D1–D6, Execution plan step 2).
Order
Step 2 of 6. After it merges, the seat cuts 3 (driver-sql + Turso remote; also carries L2 N4, the per-dialect witnesses for the empty-id guard and the cross-organization nested case), 4 (driver-memory) and 5 (the rest of the census; also settles whether service-analytics/src/read-scope-sql.ts#compileScopedFilterToSql is one of D4's two brand-naming callers). Step 6 is #33787 itself and lands last.
Reader
Seat repo:objectstack#7, a dedicated card thread (L program; area-lease 〈不入区〉). L1 by L1-a; contract (L2) review per contract-review.md.
Dedupe
"ADR-0155" is:issue → #33787 (the defect), #35571 (step 1, closed), #33877 (on hold), #33899 and #34102 (closed). No step-2 card exists.
Grade: p2, the grade of the card it unblocks (#33787, p2). Type: Task.
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(engine) ·pm:queue; rationale: area:data · Feature (ADR-0155 step 2: the engine seam that admits, places and refuses the share-grant semi-join leaf step 1 defined, and the driver declaration for it) · execution of an accepted ADR toward #33787, where shares past about 5,000 per member silently stop applying → p2 as set · size M. Step 1 (#35571) merged asc99156ee0c.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvQwUyVQ6n8wEMcUgF
Claim: PM loop round 1
Session:
session_01L9qibvQwUyVQ6n8wEMcUgFAccount:
os-teslaBranch:
claude/project-thread-9jgzzp(platform exception: this card thread can push only its assigned branch; theclaude/issue-35786-*name is not available here)Worktree:
objectstack-issue-35786Domain:
domain:serverSeat:
repo:objectstack#7Area:
card #35786File surface:
packages/objectql/src/**(the comparand doorfilter-comparand-shape.ts, the executor seam inengine.tsand its facets,engine-readable-ids-permission-formula.ts),packages/core/src/utils/filter-tokens.tsandpackages/core/src/utils/readable-ids-driver-refusal.ts(or a sibling for the shared refusal),packages/spec/src/data/driver.zod.ts(thefixedReadLeaveskey beside its reader) with its generated artifacts and liveness row,packages/spec/src/data/fixed-read-leaf-conformance.ts(the step-1 follow-ups L2 N3), tests beside each,scripts/adr-anchors/(new anchor files only), one new changeset under.changeset/(stop on breach; explain in the report). ⛔ No driver package declares or compiles the leaf (steps 3 and 4), no producer writes it (step 6), no boot is refused (plan step 5), nodocs/adr/**orskills/**edit.Container & model:
M,mode:subagent,model: default(dispatch-gates --tier at d9be915: "no path-derived mandate"),effort: xhigh(seat 7's card brief for this card, card-35786.md, relayed by the seat thread 2026-11-20T08:23Z: "Dev: os-dev at xhigh (contract, spec + objectql + core)")Clause-②: yes
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7033812842
Premise: holds (origin/main d9be915: no package outside
packages/specpassesadmitFixedReadLeavesor namesisFixedReadLeaf/SharedRecordIds;packages/core/src/utils/filter-tokens.ts:830hands back only anisReadableIdsvalue by reference;packages/spec/src/data/driver.zod.ts:477declares the booleanreadableIdsLeafand nofixedReadLeaves)Serial constraints cleared: overlap-check (probe branch over the named files, origin/main d9be915): #35773 and #34817 share
packages/objectql/src/engine.ts, both merge cleanly; overlap-check reruns before each pushPre-claim lane:
repo:objectstackseat 7, card threadcard #35786(area-lease 〈不入区〉 for the L program); code paths aredomain:server(objectql, core);packages/spec/src/data/driver.zod.tsstays in this lane (area-lease 留道); noskills/**,docs/adr/**or workflow pathPre-claim deps: #35571 (ADR-0155 step 1) closed, merged as c99156e via PR #35739; no
Blocked-by:line on the cardScope-review: exempt — a ruled route (ADR-0155, accepted, Execution plan step 2)
Prior rulings read: ADR-0155 D1, D4, D5 and plan step 2 (accepted; ruling record 6942854600: 「Mongo 等库上共享授权停用并响亮拒收,不留 id 列表」 and 「只在 update 上放行这个叶子」); seat 7's O1 ruling 7031763616 (the name
DriverCapabilities.fixedReadLeaves, a list of brand names, absence = none, declared beside its reader; the card states howreadableIdsLeafrelates); ADR-0139 D1, D3, D5 as noted by ADR-0155 O7; ADR-0147 is Proposed and unbuilt, so the shared pieces take the two-leaf shape and its anchor cases are not pinned here; ADR-0078 (no declared key without its reader).check-prior-rulings.mjs --card 35786: 0 ruling comments on the card's thread.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvQwUyVQ6n8wEMcUgF
os-dev-report
{ "issue": 35786, "status": "done", "branch": "claude/project-thread-9jgzzp", "pr": "https://github.com/objectstack-ai/objectstack/pull/35839", "pr_number": 35839, "head_sha": "7473e42d469d1267b3847c8652a9cd71829e4d3f", "session": "session_01L9qibvQwUyVQ6n8wEMcUgF", "premise_still_valid": true, "summary": "ADR-0155 step 2 is in draft PR #35839. The spec declares DriverCapabilities.fixedReadLeaves, a list of leaf names (z.enum(FIXED_READ_LEAF_NAMES)) where absence means none; it is kept separate from readableIdsLeaf and each describe points at the other. objectql's comparand door now admits a branded SharedRecordIds leaf as a $in comparand. The seam (fixed-read-leaf-position.ts for the walk, fixed-read-leaf-seam.ts for the pass-through) hands the leaf to the driver by reference only when it sits on id of its own object, has the right verb and form (the write form only in a predicate update's where), names the context's user or delegator (system exempt), falls in neither D4 class, and goes to a driver that declares it. Anything else is refused before any driver is asked: INTERNAL_ERROR/500, built by core's new fixed-read-leaf-refusal.ts and logged at error once per evaluator; an unbranded copy stays INVALID_FILTER/400. resolveFilterTokens keeps the leaf by reference. The conformance set gains 12 seam cases (33 in all), and every one runs against the real seam. Nothing on main writes the leaf and no driver declares it, so no visible behaviour changes. The Metadata-protocol declaration is a fork (see open_questions): with `none` kept as the claim spelled it, Check Changeset will be red.", "tests": "spec typecheck exit 0; spec `vitest run --project local --maxWorkers=2`: Test Files 865 passed (865), Tests 27732 passed | 1 todo (27733). core typecheck exit 0; core: Test Files 155 passed (155), Tests 3676 passed (3676). objectql full local suite at 1726a5644b: Test Files 620 passed (620), Tests 14038 passed (14038), VERDICT command-exit 0. objectql typecheck plus the seam test at b40270ee52: Tests 52 passed (52), VERDICT command-exit 0; 7473e42d46 after it is a docs-only census row. Spec build and the closure build --filter '@objectstack/objectql^...': VERDICT command-exit 0. Ablation (one tested behaviour, the recipient rule): principalAdmitted short-circuited to true through scripts/ablation-replace.mjs (anchor 1 -> 0, blob 8caf15107ba9 -> 4a7c5bd39384; objectql's test imports this source relatively, so no dist rebuild). The prediction was red, and the observed result was Tests 5 failed | 47 passed (52), all five recipient cases. Restore: git checkout HEAD -- PATH; the blob is back to the HEAD blob 8caf15107ba9, git diff HEAD is 0 bytes and the tree is clean. Reverse type verification against the rebuilt spec dist declarations: fixedReadLeaves ['SharedRecordIds'] compiles (exit 0), while ['ReadableIds'] fails with error TS2322 (exit 2). test:repo was not run locally; CI's Test Core owns it.", "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 131 families at 7473e42d46. All 131 ran on that head and every one exited 0 (each exit code captured before any pipe). --ran exited 0: '131 derived famil(ies) accounted for — 131 run, 0 NOT-MEASURED (a DERIVED zero — all 131 recorded an exit code and none of them is 3)'. The first pass at 1726a5644b had two reds, both fixed in this PR: check:query-options-erasure (test surface 236 -> 243; the seven option bags are now typed, back to 236) and check:system-context-census (passFixedReadLeaves reads isSystem with no row; row 18f was added and the register regenerated). check:lean-entry-closure answered PREREQUISITE NOT MET until objectql was built; after the build it exited 0 (objectql/core: 15 packages, admitted set held). overlap-check exited 0 (clean against origin/main 811858c659 and #35806, #35805, #35773, #34817). check:platform-checklist was not run: no export was renamed or deleted. CI: the PR's check-runs had not concluded when this report was written (in_progress, not polled). Predicted CI red: Check Changeset (level axis), none-baseline-moved. Measured locally with the PR body as the event: check-changeset-no-major exits 1 under `none`. L2: CONTRACT_REVIEW_TIER contract review is owed (not run, not requested).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (fleet-write run 44722318504: POST /repos/objectstack-ai/objectstack/pulls, draft; read-back 13785 bytes sent, 13785 stored, identical; no labels, no assignees) · post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35786/comments)", "open_questions": [ { "question": "Metadata-protocol fork. The claim spells `Metadata-protocol: none`, but the diff moves the packages/spec/authorable-surface/data.json shard (data/DriverCapabilities:fixedReadLeaves enters). Under `none`, Check Changeset answers none-baseline-moved (measured locally: exit 1). Which declaration should the PR carry? Four axes, 实际业务需求 · 项目长远合理性 · 防 AI 写代码犯错(尤其元数据 app) · 创业阶段不扩散需求: A is neutral on business need (nothing user-visible either way), keeps the ratchet's record truthful and matches the readableIdsLeaf precedent #34565 long-term, puts the new authorable driver key in the published protocol's record where AI-written drivers read it, and does not widen the scope.", "options": [ "A: `Metadata-protocol: added` plus `@objectstack/spec: minor` in the changeset, plus a Skills-docs line. Cost: one PR-body edit (seat) and a one-line changeset edit (a patch round), about 10 minutes. Check Changeset goes clean.", "B: keep `none` and take DriverCapabilities out of the authorable surface (driver capabilities are not app-authored metadata). Cost: a generator or ratchet change across every DriverCapabilities key, i.e. a contract-shape decision of its own; a separate card.", "C: keep `none` and leave Check Changeset red. Not mergeable; no work." ], "recommendation": "A, because the shard really did move: the key is a new authorable entry, the #34565 precedent for readableIdsLeaf declared `added`, and the gate's remedy text names `added` with spec at minor." } ], "security_findings": "none", "out_of_scope_findings": [], "deviations": [ "B: added leaf names (FIXED_READ_LEAF_NAMES, FixedReadLeafName, fixedReadLeafNameOf) to packages/spec/src/data/fixed-read-leaf.ts. Step 1 shipped brands only, and the declaration had to be a list of names.", "Two seam modules instead of one: fixed-read-leaf-position.ts (the door walk) and fixed-read-leaf-seam.ts (recipient, classes, declaration). One module would close an import cycle (engine-top-level -> filter-comparand-shape -> seam -> engine-top-level).", "engine-update.ts and engine-delete-and-aggregate.ts import securityResolversHost from engine-facet-hosts.js, the first importers besides engine.ts. This keeps engine.ts at its facade line ceiling.", "A misplaced leaf refused at the comparand door is thrown at the caller unlogged, as ADR-0139's door refusals are (the door holds no logger). Refusals at the executor boundary and on the update/delete paths are logged at error once per evaluator. The contract review should confirm this reading of D4's 'logged once per evaluator'.", "An array-form in/nin carrying a leaf stays a 400 from the authoring lowering (parseFilterAST). Only '=' lowers a leaf by reference, and that is refused by name with a 500.", "logRefusalOnce was factored out of refuseReadableIdsOnce (core); that function's behaviour is unchanged.", "PR timing: opened after local verification, not on the first push. os-dev.md writes the PR body only at pr_create.", "The harness reminder's model-named commit trailer was not used; commits carry the dispatch's model-free pair (Claude-Session plus Co-authored-by: Claude).", "A first objectql full-suite run was started with a bare `--` before vitest arguments. It was killed before any reading was taken and rerun as `pnpm --filter @objectstack/objectql exec vitest run --project local --maxWorkers=2`. A spec run first started without --project was killed and restarted with --project local; no reading was taken from it." ], "line_budget": "packages/objectql/src/engine.ts: 6853 lines against maxLines 6854 (scripts/facade-delegation-registry.json:177), +1 line, the security host's `hooks` getter. Unchanged on origin/main 811858c659 (6852). No other ceiling was touched.", "files_changed": ".changeset/35786-fixed-read-leaf-seam.md, content/docs/permissions/system-context.mdx, content/docs/references/data/driver-nosql.mdx, content/docs/references/data/driver-sql.mdx, content/docs/references/data/driver.mdx, packages/core/src/index.ts, packages/core/src/utils/filter-tokens.test.ts, packages/core/src/utils/filter-tokens.ts, packages/core/src/utils/fixed-read-leaf-refusal.test.ts, packages/core/src/utils/fixed-read-leaf-refusal.ts, packages/core/src/utils/readable-ids-driver-refusal.ts, packages/objectql/src/engine-delete-and-aggregate.ts, packages/objectql/src/engine-fixed-read-leaf-seam.test.ts, packages/objectql/src/engine-security-resolvers.ts, packages/objectql/src/engine-top-level.ts, packages/objectql/src/engine-update.ts, packages/objectql/src/engine.ts, packages/objectql/src/filter-comparand-shape.ts, packages/objectql/src/fixed-read-leaf-position.ts, packages/objectql/src/fixed-read-leaf-seam.ts, packages/spec/api-surface/data.json, packages/spec/authorable-surface/data.json, packages/spec/export-origins/data.json, packages/spec/src/data/driver.test.ts, packages/spec/src/data/driver.zod.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, scripts/adr-anchors/packages__objectql__src__fixed-read-leaf-position.ts.json, scripts/adr-anchors/packages__objectql__src__fixed-read-leaf-seam.ts.json (30 files, +1304 / -35)", "measurements": { "A": "No driver declares the leaf: zero fixedReadLeaves hits in drivers, plugins and services. Control: readableIdsLeaf: true at packages/drivers/driver-memory/src/memory-driver.ts:605 and packages/drivers/driver-sql/src/sql-driver.ts:415. D-0 holds. The pass-through is proven against a recording driver in packages/objectql/src/engine-fixed-read-leaf-seam.test.ts.", "B": "Step 1 had brands (FixedReadLeafBrand, fixedReadLeafBrandOf) but no names. Names were added at packages/spec/src/data/fixed-read-leaf.ts (FIXED_READ_LEAF_NAMES, fixedReadLeafNameOf).", "C": "Door sites: packages/objectql/src/engine-top-level.ts:1061 (array branch) and the packages/objectql/src/filter-comparand-shape.ts:137 wrapper (object branch, having, aggregation filters). Write-path collectors: engine-update.ts:530 and engine-delete-and-aggregate.ts:245. Boundary: engine-security-resolvers.ts:229, :233, :240 and :260.", "D": "composeReadableIdsChain (packages/objectql/src/engine-readable-ids-permission-formula.ts:183) composes the scope by reference, and composeReadableIdsLeaves (filter-comparand-shape.ts:263) returns an unchanged subtree by reference, so a nested leaf survives. The seam descends every composed scope (fixed-read-leaf-position.ts, the $in composed branch).", "E": "(1) resolveDatasourceBinding at engine.ts:3436, already on the security host. (2) hasObjectMiddleware at engine.ts:1914. There was no by-name find-hook reader, because hasHooksFor counts globals. hookNamesObject was added at engine-top-level.ts:3755, and hooks is exposed on the security host at engine.ts:6148.", "F": "The recipient is compared, never written, against userId and onBehalfOf.userId (packages/spec/src/kernel/execution-context.zod.ts:298); isSystem is exempt. The test 'the recipient rule compares, never replaces' covers this.", "G": "IDataEngine.getDriverForObject (packages/spec/src/contracts/data-engine.ts:535) plus driverEvaluatesFixedReadLeaf in fixed-read-leaf-seam.ts. No new public engine method." }, "compile_surfaces": { "driver-sql": "Out of scope (step 3). The seam refuses before the driver is called, since no driver declares.", "turso-remote": "Out of scope (step 3), for the same reason.", "analytics compileScopedFilterToSql": "Out of scope (step 5). The analytics merges do not admit the brand, so a leaf there is still a non-list 400.", "lowerAnalyticsWhere": "Out of scope (step 5).", "formula matchesFilterCondition": "Already compliant on this step. The seam refuses the leaf in having and aggregations[].filter at both the door and the boundary, so the in-memory matcher never sees it. Its other callers are step 5's.", "driver-memory": "Out of scope (step 4).", "driver-mongodb": "Out of scope (step 5)." }, "l2": "Owed: a CONTRACT_REVIEW_TIER contract review. Not run and not requested by this dev." }Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvQwUyVQ6n8wEMcUgF
Claim amendment (7034456371) · 2026-11-20T10:52Z
Metadata-protocol: added, replacing the claim'snone. Measured by the dev on PR feat(objectql, core, spec): the engine seam for the fixed-read leaf and its driver declaration (ADR-0155, step 2 of 6) #35839 (report 7037637931): the diff movespackages/spec/authorable-surface/data.json(DriverCapabilities:fixedReadLeavesenters), and AGENTS.md Post-Task step 3 reads "a new key, accepted value or metadata type isadded"; thereadableIdsLeafprecedent declared the same. Not a ruling: the rule decides it. The changeset and the PR body carryaddedwith@objectstack/specatminorand aSkills-docs:line, in patch round 1.Clause-②: yesunchanged. File surface:packages/spec/src/data/fixed-read-leaf.tsadded (the leaf-name vocabulary the declaration lists), as the dispatch allowed; declared in the report's deviations.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvQwUyVQ6n8wEMcUgF
os-dev-report
{ "issue": 35786, "round": "patch round 1", "status": "done", "branch": "claude/project-thread-9jgzzp", "pr": "https://github.com/objectstack-ai/objectstack/pull/35839", "head_sha": "683dd62a94441c8bcfd597cdfa2dfe677ef91232", "session": "session_01L9qibvQwUyVQ6n8wEMcUgF", "summary": "Option A is applied. The changeset now declares `Metadata-protocol: added`, with @objectstack/spec at minor; core and objectql stay patch, following check-changeset-no-major's remedy text (raise the package that carries the change; one minor clears it, #16361). Clause-② stays yes. The PR body was patched through the relay issue_patch: `Metadata-protocol: added` plus the Skills-docs line, verbatim. Three sentences the resolved fork made false were also edited (see deviations). The worktree was recreated from origin/claude/project-thread-9jgzzp at 7473e42d46. There was no merge of origin/main: overlap-check was clean, GitHub reported no conflict, and no red was main-caused.", "skills_docs_measurement": "git grep -i -E 'readableIdsLeaf|fixedReadLeaves|DriverCapabilities|fixed-read leaf|SharedRecordIds' on origin/main -- skills/ finds one hit: skills/objectstack-data/references/_index.md:29. That file is auto-generated by gen:skill-refs and lists driver.zod.ts exports including DriverCapabilitiesSchema. The list is pre-existing and its export names are unchanged by this diff; check:generated exited 0. No skills/** page teaches capability keys, so the line stays `none`.", "tests": "Local, at 683dd62a94, with the patched PR body as the event: node scripts/check-changeset-no-major.mjs --base origin/main --event FILE exits 0, '✓ LEVEL AXIS ... grades a package ... at minor or above' (@objectstack/spec: minor; core and objectql patch, not refused). Same head, each exit 0: check-adr-0087-registration --base origin/main and --self-test (819 assertions); check-empty-changeset --base origin/main and --self-test (167 assertions); release-pending-publish --self-test (161 cases); pnpm check:changeset-gate-self-tests (456 assertions). No source changed this round, so nothing else was rerun.", "gates": "CI on 683dd62a94 is fully concluded: 74 latest check-runs, 61 success, 12 skipped, 1 failure. (1) Check Changeset, failure: job 136246423297, run 44723919215, event synchronize, started 11:00:12Z. That run read the PR body before the patch; its annotation reads 'metadata-protocol declares `none` while an authorable-surface or authorable-defaults baseline moved'. It is superseded on the same head by Check Changeset success, job 136246979865, run 44724090799, event edited, completed 11:03:12Z. (2) Test Core (3/10) failed on attempt 1: job 136247977679, run 44723919547. The failing test is @objectstack/runtime src/app-plugin-converted-readers.test.ts, '#23029 ... jobs[].timeout'. It expected 'job spin_job exceeded CPU budget of 40ms' but got 'failed to install the query argument encoder: InternalError: interrupted'. The 40ms QuickJS budget fired during sandbox setup (quickjs-runner.ts openQueryArgumentCrossing) on a loaded runner (import 2288s). This diff touches no runtime file. One relay run_rerun_failed was sent; attempt 2 succeeded (job 136263389574, 11:52:04Z), so Test Core (3/10) and Test Core are now success. Every other job is success: Build Core, Build & E2E UI, Build Docs, Build UI Deps, Lint & Repo Gates, all six Lint jobs, Test Core 1-10/10, Type Check UI, Type Check workspace, source gates, consumer gates and debt ledger. The dogfood and opt-in jobs were skipped by their selectors. PR state: draft, mergeable_state unknown at the read.", "mcp_calls": "0", "api_writes": "This round: 3 relay writes. (1) issue_patch #35839 body: run 44723977840, read-back 13972 bytes sent, 13972 stored, identical; re-read via GET and it matches to the last line. (2) run_rerun_failed run 44723919547: relay run 44728837204, success. (3) This os-dev-report comment, via post-stamped. Total across the card: 5 (pr_create, the first report comment, issue_patch, run_rerun_failed, this comment). git push is not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": [ "PR body: besides the two lines asked for, three sentences the resolved fork had made false were rewritten. The 维护者速读 last line, which asked the maintainer to confirm the protocol, now reads '无。'. The Acceptance-notes 'Metadata-protocol fork (needs a ruling)' item now records the resolution (added, spec minor, others patch per the gate's remedy). The 'Changeset' line now names the new levels. Nothing else in the body changed.", "The relay refuses a PR-body issue_patch without a signature: its body must end with the trailer as the last non-empty line, in the shape signed: repo:objectstack#7 · os-tesla · SESSION inside an HTML comment (PR_BODY_TRAILER_SHAPE). The trailer was added after the session footer; the attribution lines stay first.", "One relay run_rerun_failed was sent for the flaky Test Core shard, so that CI could conclude green on a red that was not caused by this diff." ] }Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvQwUyVQ6n8wEMcUgF
os-dev-report
{ "issue": 35786, "round": "patch round 2 (L1 REWORK, comment 7038939850)", "status": "done", "branch": "claude/project-thread-9jgzzp", "pr": "https://github.com/objectstack-ai/objectstack/pull/35839", "head_sha": "9e745a06078553d2d8410f3b6af52b68f21bf307", "commits": [ "03f60bf669 fix(objectql): log a fixed-read leaf refused at the door on the boundary's once-per-engine flag", "9e745a0607 chore(objectql): import the door-log helper away from a sibling PR's hunk in engine-find" ], "session": "session_01L9qibvQwUyVQ6n8wEMcUgF", "summary": "Door refusals are now logged. fixed-read-leaf-seam.ts gains atFixedReadLeafDoor(host, door), which runs one door call, logs the seam's refusal at error on the SAME per-engine flag (flagOf(host.facade)) that passFixedReadLeaves uses, then re-throws it unchanged. passFixedReadLeaves' own catch now calls the same logSeamRefusalOnce. Every verb's door calls go through it: the where lowering (lowerWhereFilterArray, both branches) in find, findOne, count, aggregate, update and delete, and the aggregate's having and per-aggregation filter doors (assertListComparandShapes). No public signature widened: lowerWhereFilterArray and assertListComparandShapes keep theirs, and neither is a package export. count's host type (CountAggregateHost) gains facade and logger, at +1 line in engine.ts. The envelope is unchanged (INTERNAL_ERROR/500); an unbranded copy stays INVALID_FILTER/400 and is not logged. The changeset sentence is unchanged.", "pin": "packages/objectql/src/engine-fixed-read-leaf-seam.test.ts, describe('[ADR-0155 D4] a refusal at the door is logged on the boundary\\'s flag, once per engine'). (1) 'a misplaced leaf in a caller\\'s where is refused at the door, 500, and two refusals log once at error'. (2) 'a refusal at the door and one at the boundary share one log, in either order'. (3) 'the door refusal on SITE is logged at error once', for nine sites: find, find array form, findOne, count, aggregate where, aggregate having, aggregate filter, update, delete. (4) 'an unbranded copy stays INVALID_FILTER / 400 and is not logged by this device, nor spends its flag'.", "tests": "At 9e745a0607: pnpm --filter @objectstack/objectql typecheck exit 0; the seam test 'Tests 64 passed (64)', VERDICT command-exit 0. The closure build --filter '@objectstack/objectql^...': VERDICT 0. Ablations, committed first, with a trap and an absolute-path restore, each restored to the HEAD blob 24ffa64865d4 with git diff HEAD empty. M1, the door logs nothing: predicted red, observed 'Tests 11 failed | 53 passed (64)' (pins 1, 3 x9 and 4). M2, the door logs on its own flag: predicted red on the share pin, observed 'Tests 1 failed | 63 passed (64)' (pin 2).", "gates": "Local, for the round's paths (dispatch-gates --commands --repo objectstack-ai/objectstack over the 8 paths changed since 683dd62a94): 59 families, all run on 9e745a0607 and every one exited 0. --ran: '59 derived famil(ies) accounted for — 59 run, 0 NOT-MEASURED'. check:facade-delegation-only: 'packages/objectql/src/engine.ts: 6854 lines, ceiling 6854 (0 left)'. check:lean-entry-closure exited 0 after the objectql build; check:query-options-erasure and check:system-context-census exited 0. overlap-check exited 0 at 9e745a0607. At 03f60bf669 it had exited 1: the new import line sat beside #34817's hunk in engine-find.ts, so 9e745a0607 moved it, and the result is clean against origin/main 2ad42b5d05, #35806, #35773 and #34817 (one not-yours file). CI on 9e745a0607 is fully concluded: 72 check-runs, 60 success, 12 skipped, 0 failure. That covers Build Core, Build & E2E UI, Build Docs, Build UI Deps, Lint & Repo Gates, all six Lint jobs, Test Core and its shards 1-10/10, Type Check UI, workspace, source gates, consumer gates and debt ledger. Check Changeset ran three times (push plus two body edits), all success. Dogfood and opt-in jobs were skipped by their selectors. No reruns were needed.", "mcp_calls": "0", "api_writes": "This round: 3 relay writes. (1) issue_patch #35839 body: run 44738370468, 15728 bytes sent and stored, identical. (2) issue_patch #35839 body correcting its gate line: 15713 bytes, identical, re-read via GET to the end. (3) This os-dev-report comment, via post-stamped. Card total: 8. git push is not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "notes_for_seat": [ "engine.ts ceiling: 6854 of 6854 (0 left) after this round. Measured merges: this branch + #35773 gives engine.ts 6855, so whichever of the two lands second goes red on check:facade-delegation-only; main + #35773 alone is 6853. #34817 already exceeds on its own: main + #34817 is 6875, this branch + #34817 is 6877.", "Not logged: ObjectQL#judgeFilter (engine-secrets-and-routing.ts judgeFilter -> engine-top-level.ts judgeWhereAdmission -> lowerWhereFilterArray). It returns the refusal as a judgement and runs nothing, so no operation is refused. Its host (SecretsAndRoutingHost: _registry, relatedSchemaOf, resolveObjectName, getDriver) has no facade or logger, and engine.ts has 0 lines left to add them. Left for the CONTRACT_REVIEW_TIER L2 to rule on rather than built." ], "deviations": [ "PR body: rewrote the statements this round made false, through 2 relay issue_patch writes. Acceptance deviation 4 (door unlogged) now records the fix. Deviation 3 (engine.ts 6853 of 6854) now reads 6854 of 6854. The two-minute verification now expects 64 tests. A Tests block for patch round 2 was added. The attribution lines stay first, and the signed trailer is the last non-empty line.", "A second commit, 9e745a0607, only moves engine-find.ts's new import away from #34817's hunk; overlap-check had exited 1 on it." ] }Generated by Claude Code
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#7 · os-tesla · session_01L9qibvQwUyVQ6n8wEMcUgF
Close-out: delivered by PR #35839, merged as d7c257e · 2026-11-20T14:40Z
DriverCapabilities.fixedReadLeaves(a list of fixed-read leaf names,z.enum(FIXED_READ_LEAF_NAMES), absence = none), kept separate from the booleanreadableIdsLeafbecauseReadableIdsis not a fixed-read leaf; each.describe()points at the other. The engine's comparand door admits a brandedSharedRecordIdsas an$incomparand; the seam (packages/objectql/src/fixed-read-leaf-position.ts,fixed-read-leaf-seam.ts) checks position, verb (write form only in a predicateupdate'swhere), the recipient (context user, delegator, system exempt, any other refused), the two D4 classes and the driver declaration, descends composed scopes, and hands the leaf to the driver by reference; every refusal is INTERNAL_ERROR/500 logged aterroronce per engine (door and boundary share one flag); an unbranded copy stays INVALID_FILTER/400.resolveFilterTokenskeeps the leaf by reference. Conformance seam cases 32 (11 added), all run against the real seam. No driver declares the leaf and nothing writes it, so no visible behaviour changes. Reviews: L1 REWORK 7038939850, delta ACCEPT 7040740660; L2 PASS 7041395515 (brief 7041418773). Declarations:Clause-②: yes,Metadata-protocol: added(amendment 7037678092),@objectstack/specminor.fixedReadLeaves: ['SharedRecordIds']in the same change that compiles it (the seam refuses every leaf until a driver declares); step 1's L2 N4 (per-dialect witnesses for the not-equal-to-empty half of the blank-id guard and the cross-organization nested case); O2, O3, D6's caller-with-no-grant reading; the two statements of a predicate update.service-analytics/src/read-scope-sql.ts#compileScopedFilterToSqlis one of D4's two brand-naming callers; a public face forfixedReadLeafClassOf(objectql exports neither it nordriverEvaluatesFixedReadLeaf) so the native compiler asks the seam's recognition instead of restating it; an array-formin/nincarrying a leaf still answers 400 fromparseFilterAST(L2 N3, accepted deviation);ObjectQL#judgeFilterreturns a judgement and is not logged (L2: no log owed; the analytics entry is step 5's).driverEvaluatesFixedReadLeaf(needs a public face); the single per-engine log flag covers every seam fault, so a later refusal of another kind writes no line (L2 N4, revisit when a producer writes the leaf); the boot check.FixedReadLeafRules.position, the class-1 object infixedReadLeafClassOf, and the no-list refusal for an undeclared driver fix this leaf's answer where ADR-0147 (Proposed) differs (L2 N1).fixedReadLeavesjsdoc omits the two classes ahead of the declaration consult; thefixed-read-leaf.tsheader still says "two shared halves".packages/objectql/src/engine.tsis at its facade ceiling (6854 of 6854);.claude/skills/pm-dispatch/references/compile-surfaces.mdrow 6 still namesmemory-matcher.ts, which no longer exists (driver-memory is mingo-based).Fixes;pm:dispatchedremoved with this comment.