Repository navigation
fix(metadata-protocol)!: a dependent's bundle-member row moves no bare read across a restart, and a row-held base's own member is the base's - #34644
Conversation
…e read across a restart, and a row-held base's own member is the base's Cell 1: over a base that ships a bundled name only in another member, the layered read no longer reports a dependent's row of the canonical member as an orphan of the base's name (the code layer was the base's other member), so `/published` stops serving it before a restart; and naming no member, a hydrated row in the registry's bare slot no longer displaces the shipped member the code layer reads, so `/layers` keeps the base's member after a restart. Both doors now answer as with no dependent row stored. Cell 2: a member a row-held base and a dependent both store is the base's (the dependent's row is a bundle addition): the item face and the layered door serve the base's row where they refused naming both. Registers ADR-0087 `shipped-base-dependent-canonical-row-not-published`. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmRPxhTmqbUbMrqygh4
📓 Docs Drift CheckThis PR changes 2 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 67a7dbd26521767a579382080822f6d6d7c9f50a && git checkout 67a7dbd26521767a579382080822f6d6d7c9f50a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 8bc080847291127d590cb260215a7ce652603d43 6acd3f1290e7bd689f2bca73b94c252cf49696b6 && git checkout -B drift-repro 8bc080847291127d590cb260215a7ce652603d43 && git merge --no-ff 6acd3f1290e7bd689f2bca73b94c252cf49696b6
node scripts/docs-audit/affected-docs.mjs --json 8bc080847291127d590cb260215a7ce652603d43
|
…ctive-row read The #34441 cell-2 judgment now reads the item's active rows for the canonical member too, so readMetaItemFace's judge host read them a second time after the served-holder judgment (objectql protocol-meta #24371 one-read pins). The judge host now hands back the rows it read already for the same item: one read per face call, as before. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmRPxhTmqbUbMrqygh4
|
repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4 Final head: Delta since At this head:
The body's Verification section is updated to this head. The PR stays draft: Generated by Claude Code |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 1aff827 · 2026-11-17T06:03Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmTPcB6fZEwhd2hNQwC 席位核对L1 verdict: REWORK · PR #34644 · card #34441 (Fixes) · first review · L1-c2 of seat repo:objectstack#2 · read 2026-11-17T06:06Z Head-sha: Read from GitHub and the diff at this head (merge base Checked and holding
R1 (REWORK) · cell 2's moved answers are listed and pinned only at
On Required:
Deviation for the seat, not a REWORK item: premise correction 6938023903 said the fix "does not touch L2 owed: yes. Landing tier: |
…changeset The cell-2 arm also answers the canonical member, which the plain read, /layers, /published and the execution read naming no member address. S2 now asserts those four doors for both holdings, both registration orders, before and after a reboot; the changeset lists them as moved and the shipped holding's unchanged answers under Not moved. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmRPxhTmqbUbMrqygh4
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Inputs read: card #34441 body and all six comments (triage 6925765766, the folded cell 6933869894, the premise correction 6938023903, claim 6938068147 and its two amendments); PR #34644 body, file list (6 files) and the net diff against merge base 31096af; the 71 check-runs on this head: every one completed, success or skipped, none failed, none pending. ① Derived judgmentsCell 1 (base A ships
Cell 2 (no shipper; A stores
Outside both cells, wrong: the same arm now runs for every type the registry reads by package, bundled or not (M1). Call-site ledger: the one new ② Semver level
③ Boundary flags
④ Design judgmentThe entry (the The narrowing. It makes the published rule real and takes no declared capability away. M1 (must-fix) — S1 (should-fix) — the contract of S2 (should-fix) — the changeset's list headed every moved answer is incomplete, and one of the missing moves is unpinned. Missing: cell 2 N1 (nit) — the entry's M1 moves the head; this record does not cover the fix, and S1 and S2 ride the same round. Implemented-by: VERDICT: FAIL |
A type with no members has no bundle additions: the registry names every package holding such a name a holder, so a base and its dependent storing rows of it stay two holders, refused naming both (#32607). The judgment now answers only for a bundled type, judged before the rows are read. Pin: a dashboard both store is refused naming both on every door naming no package, before and after a reboot. Docblocks state the cell-2 exception on the layered door's contract and that the writes naming no package still refuse; the changeset lists the cell-1 /layers overlay move and the unmoved writes and non-bundled names; the semantic entry names the item read in its acceptance criteria. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmRPxhTmqbUbMrqygh4
|
repo:objectstack#2 · os-steve · session_01ADHkmRPxhTmqbUbMrqygh4 Final head: Delta since
At this head:
The PR stays draft; landing is the seat's Tier H. Generated by Claude Code |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 6acd3f1 · 2026-11-17T07:09Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmTPcB6fZEwhd2hNQwC 席位核对L1 verdict: ACCEPT (delta) · PR #34644 · card #34441 (Fixes) · delta over L1-c2 REWORK 6940248328 (at Head-sha: Read from GitHub and the commits at this head, not from the report. The first-parent delta is two fast-forward commits, R1: closed.
Also in this delta (L2 FAIL 6940385771), read for L1
Prose: I checked the rewritten changeset bullets and the "Not moved" additions against the code and pins above, sentence by sentence. "Bundled types only (a type with no members has no additions)" matches the M1 guard. "The writes naming no package do not move" matches: no write door calls Gates: 71 check-runs on this head, all L2 owed: yes. A delta on this head is not on record. The latest record is FAIL 6940385771 at Landing tier: NOT governed, +350/−38 = 388 lines ≤ 3000. The PR touches |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Delta review of record 6940385771 (FAIL on head 1aff827). Inputs read: that record; the change between the two heads on the PR's own files (five files move: the changeset, protocol-meta-item-face.ts, protocol.ts, the served-stack test, the semantic entry; two commits, no merge of ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentThe entry (the The narrowing itself is unchanged from 6940385771: it makes the published rule real and takes no declared capability away. M1: closed. The judgment is kept to bundled types at its single entry point, so every caller is covered by one guard, and the docblock states it. The new S1: closed. The contract docblock in protocol.ts now states the exception (a bundled type with no shipper, the base and its additions at the member, still refused beside a package-less row) and that the save, delete, publish, draft and history doors naming no package still refuse the same rows. True of the code: S2: closed. The changeset and the PR table now carry cell 2 N1: closed. No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-17T07:15Z · Head-sha: 6acd3f1 维护者速读
席位意见:同意合并。方向由 #28802 R2 已定,本 PR 让两扇门在重启前后答同一个答案;收窄那一格只影响「依赖包追加了基础包没发的规范成员」这一种少见形态,已登记迁移条目。 席位核对
|
Requested by Steve · project thread
Fixes #34441
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none —
skills/objectstack-platform/SKILL.md(the ADR-0146 paragraph) andcontent/docs/concepts/metadata-lifecycle.mdxteach that a locale a dependent adds under a base's name is served only under its own?package=. This change makes/publishedand/layershold to that for the canonical member of a base that ships only another member, before and after a restart, and makes a row-held base's own member the base's. No taught sentence moves.Scope is the card as narrowed by the premise correction 6938023903 (claim 6938068147, branch amendment 6938092219).
维护者速读
fr-FR、依赖包存了规范成员en-US行时:/published重启前会答依赖包那行,现在答 404;/layers(不点成员)重启后会 404,现在答基础包的fr-FR。两扇门都和「没有依赖包那行」时一样,重启前后一致。(2) 基础包和依赖包都以存储行持有同一成员(如en-US)时:不带包的读取、/layers、执行面从 409 点名两者,改为答基础包的行,和基础包在代码里发布时一样。<base>.custompair is read by name but never listed or sent, so a send in that locale renders the base's (#28779 follow-up) #28802 R2:依赖包追加的成员只在它自己的?package=下服务,不带包的读取看基础包。(1) 是层读把依赖包那行误报为基础包的「孤儿行」,而/published读的正是 overlay 层;重启后水合行占了注册表的裸名槽位,代码层读不到基础包的成员。(2) 是行持有判定没看依赖关系,把追加当成了第二个持有者。/published那一格是收窄(200→404),已登记 ADR-0087 条目(新增一个packages/spec/src/migrations/entries/semantic文件),所以本 PR 走 Tier H。其余两格是把拒绝改成服务基础包自己的内容。回滚即还原本 PR。protocol-meta-layered-reads.ts的孤儿判定(加了isWantedMember(code))和代码层兜底;protocol-meta-item-face.ts的rowHeldBaseAddressOf(拆出rowHeldBaseJudgment,新增「基础包在该成员也有行」一臂)。pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-disabled-holder-served-stack.test.ts -t "cell 1|S2,",预期 6 个用例全绿(cell 1 两个注册序,S2 四个)。What changes
packages/metadata-protocol/src/protocol-meta-layered-reads.ts(getMetaItemLayered).customdeclared override, and a withdrawn public form stays withdrawn #28409 orphan report now requires the code layer to be the member the read addresses (isWantedMember(code)). Naming no member, a bundle whose base ships no canonical member takes the base's other member as its code layer; a dependent's canonical row is then the dependent's addition, not a row the base's document shadows. Reported as an orphan it wasoverlay, which/publishedserves.packagelessLayeredReadRefusalno longer refuses two row holders of a member when one is the base and the other rows are bundle additions to it (rowHeldBaseAddressOf); beside a package-less row it still refuses (metadata-protocol: a package-less row beside two packages' rows of one name (no shipper) is served by store order on the plain read while /layers refuses — follow-ups of PR #33182 (#32607) #33210).packages/metadata-protocol/src/protocol-meta-item-face.tsrowHeldBaseAddressOfis split:rowHeldBaseJudgmentcomputes the row-grain base (unchanged rules: no shipper, readsByPackage, no environment item, every row at the member bound and not declined, no disabled holder, exactly one base by per-package dependency closure). A new arm answers the base at any member the base itself holds as a row beside one or more dependents' rows of it (cell 2). The existing arm (a member only additions hold) still moves a named non-canonical member only (the S1 guard). An optionalprereadtakes rows already read.storedRowHoldersRefusal(the item face's no-disabled arm) serves that base instead of refusing, when the base is among the holders at the member and no package-less row is beside them.rowHeldBaseJudgmentanswers only for a bundled type (overlayMemberValuedefined), judged before the rows are read: a type with no members has no bundle additions, so its row holders stay holders (L2 M1). Docblocks state the exception and that the writes naming no package still refuse (L2 S1, N3).packages/metadata-protocol/src/protocol.ts: the contract docblock ofpackagelessLayeredReadRefusalstates the cell-2 exception and the writes' unchanged refusal (L2 S1).packages/spec/src/migrations/entries/semantic/18.shipped-base-dependent-canonical-row-not-published.ts: the ADR-0087 semantic entry for the/publishednarrowing.packages/metadata-protocol/src/protocol.lookup-artifact-item-call-sites.test.ts: the newlookupArtifactItemsite recorded, dispositionno(the code layer: body and envelope are one artifact)..changeset/34441-shipped-base-canonical-member-one-answer.md:patchon@objectstack/metadata-protocoland@objectstack/spec.FROM → TO (every moved answer; runtime dispatcher, both registration orders)
main31096af)fr-FRonly, D (declares A) storesen-US/published/layers(no member)fr-FR,overlayD's row; after 404fr-FR,overlaynull, both (CONTROL)?member=en-US,/layers?member=en-US, execution readfr-FR/ 404 / 404 / A'sfr-FR, both sidesen-US, D storesen-USandfr-FR, no shipper?member=en-US,/layers?member=en-US, execution read aten-USRESOURCE_CONFLICTnaming A and D (execution: throwsPackageScopedNameRefusedError)en-US): plain read,/layers,/published, execution readRESOURCE_CONFLICT(execution: throws), both sides of a rebootpackageIdA;/layerseffective and overlay A's row;/publishedA's row)en-US(CONTROL)?member=en-US, its/layers, execution read; plain read and execution read naming no memberen-US/layersand/publishednaming no member?package=D&member=en-USdashboard): A and D (declares A) both store rows, no shipper/layers,/published, execution readRESOURCE_CONFLICTnaming A and DM1 guard)Tests
packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, describe[#32607 M1, M2]:cell 1(both registration orders): with no D row, then with D'sen-USrow before a restart, then after a restart, the plain read,?member=en-US,/layers(effective and overlay),/layers?member=en-US,/publishedand both execution reads equal the CONTROL read on the same boot;?package=D&member=en-USserves D's row on both sides.S2flipped (row-held cells):?member=en-USnaming no package,/layers?member=en-USand the execution read serve A's row (packageIdA) before and after a reboot, and?package=D&member=en-USserves D's; the shipped CONTROL cells assert the same answers.M1 guard(L2 M1), both registration orders: adashboardbase A and dependent D (declares A) both store, no shipper; the plain read,/layers,/publishedand the execution read refuse409 RESOURCE_CONFLICTnaming A and D before and after a reboot, and each?package=serves its own row.S2, doors naming no member (L1 R1): the plain read,/layers,/publishedand the execution read naming no member, asserted for both holdings, both registration orders, before and after a reboot. All four serve A'sen-US. They differ by holding only in the overlay layer and/published: over a row-held base that is A's own row; over a shipped base A holds no row and it is D's row, the metadata-protocol: one effective read — package-less, base-named, layered, the env-wide list and export serve the.customdeclared override, and a withdrawn public form stays withdrawn #28409 shadowed-overlay report, unchanged frommain.Acceptance notes
/publishedbefore a restart and/layersafter one give the CONTROL's answers, each pinned against the CONTROL across a restart; cell 2 resolved as the card states, pinned for both holdings.?package=D&member=en-USwith D holding nothing answers 409) is the rulednot-held-by-qualifierrefusal (ADR-0150 D5, ruling 6917064203), not a defect.main's baseline in the cell-1 shape, where/publishedand?member=en-USanswer 404 beside the plain read's 200 A'sfr-FR(L2 ③).?package=read answers its own package's item or a 409 naming the holders, and a bare doc read beside two holders serves the environment's own entry #34347 also editsprotocol-meta-layered-reads.ts;git merge-treeof this head against its branch and against PR fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238's is clean.Verification
Final head
6acd3f1290(merge baseorigin/main31096af). Rounds since the first cut258cbe15:d4500af04dplaced the code-layer fallback belowif (regItem !== undefined) code = regItem;and recorded the call site;1aff827bd5has the item face's judge host hand back the active rows it already read (objectql #24371 one-read pins);6fe5e956bepins cell 2's doors naming no member (L1 R1);6acd3f1290keeps the row-held base judgment to bundled types, pins a non-bundled name as still refused, and states the read doors' exception and the writes' unchanged refusal in the docblocks and changeset (L2 M1, S1, S2, N1–N3).6acd3f1290: metadata-protocol full suite 23046 passed / 45 skipped (348 files, lock VERDICT 0); objectqlsrc/protocol*1189/1189; runtimesrc/domains6628/6628 (221 files; served-stack 161/161); restsrc/meta*2213/2213; specsrc/migrations198/198; typecheck metadata-protocol exit 0 and runtimecheck:test-typecheckOK.dispatch-gates.mjs --ran97 derived, 97 run, 0 NOT-MEASURED, all exit 0. 93 ran after a full closure build atd4500af04d/1aff827bd5; the 4 the newprotocol.tspath adds (check:adr-symbol-anchors,check:facade-delegation-only,check:filter-alias-parity,check:wildcard-fallthrough) and the ADR-0087 and changeset gates ran at6acd3f1290.6acd3f1290: 478 passed / 3 skipped files, 4055 passed / 68 skipped tests, VERDICT command-exit 0.6acd3f1290: 56 success, 11 skipped, 0 failed.Ablations (each through
scripts/ablation-replace.mjs, metadata-protocol rebuilt, restored to the HEAD blob,git diff HEADempty)isWantedMember(code)dropped):cell 1red in both orders.cell 1red in both orders.storedRowHoldersRefusal):S2row-held red ×2.S2row-held red ×2.rowHeldBaseAddressOf:S2row-held red ×2.Runs 1–5: 2 failed, 13 passed of the 15 cases in the M1/M2/S1/S2/cell 1 set.
1aff827bd5line): objectqlprotocol-meta.test.tsred ×2 (findcalled 2 times, not 1), as CI read it atd4500af04d.atMember.has(base)returns undefined): the S2 row-held cells red ×2 at the no-member doors; with the assertions relaxed, the same run measured the FROM: 409RESOURCE_CONFLICTon the plain read,/layers,/publishedand the execution read (throws), both orders, before and after a reboot.rowHeldBaseJudgment: theM1 guardcells red ×2, nothing else. Log: area share34441-ablation.log.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmRPxhTmqbUbMrqygh4