Repository navigation
fix(metadata-protocol)!: same-name reads that name no package answer the environment's doc first and read a disabled holder as absent - #38640
Conversation
…try beside one enabled holder Beside one enabled holder of a doc name, a package-less entry in the registry's bare slot (a stamp-less registration, or the hydrated package-less row) is the environment's own item, and it answers first, as it already does beside two holders. The bare plain read, /layers and both /published doors now serve it, agreeing with the registry and MetadataFacade.get; the holder's own address still reads its doc. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
… enabled packages hold, as the plain read does Criterion (#34190): getMetaItemLayered naming no package, of a doc two or more enabled packages hold with no package-less environment entry, refuses 409 RESOURCE_CONFLICT naming each holder (refusal.candidates), as getMetaItem does; each holder's address reads its own layers. It swallowed the refusal and served the layers of the holder registered first. The HTTP transports already refused through their own step; the environment entry beside them still answers first (#34452, ruling 6942962369). Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
…eads as it does without that holder Criterion (#34440): a name no enabled package ships, held as stored rows by a disabled package and enabled ones beside a package-less row, reads on every bare door (plain, /layers, /published, execution) as it reads when the disabled holder is absent (#33210): two or more enabled holders are refused 409 naming exactly them, never the disabled package and never serving the package-less row; one enabled holder is served. Every save order, both registration orders, before and after a reboot; ?package=DISABLED stays 404. The served-set judgment left a package-less row beside a disabled holder as it was, so the read followed save order (the order D, package-less, E answered 404) and /layers named the disabled package. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
…ves, with their changeset Two semantic entries under step 19: doc-bare-read-environment-entry-first (#34452, #34190) and disabled-holder-package-less-row-bare-read-judged-as-absent (#34440). The changeset declares the narrowing and its FROM and TO. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 4 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 189 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 ff2b5d8261f445ab05f5e3ed41c8989cde4feb61 && git checkout ff2b5d8261f445ab05f5e3ed41c8989cde4feb61
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 945334eb5377fcd0ebc230bce9330a5f8b634107 2aa6a1c4bf7496b84d91d65b0b6ce679d8a90bc8 && git checkout -B drift-repro 945334eb5377fcd0ebc230bce9330a5f8b634107 && git merge --no-ff 2aa6a1c4bf7496b84d91d65b0b6ce679d8a90bc8
node scripts/docs-audit/affected-docs.mjs --json 945334eb5377fcd0ebc230bce9330a5f8b634107
|
|
repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv 席位核对ACCEPT @ Read at head:
Out of scope, for the seat:
Nits (non-blocking):
|
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract-review-handoff: repo:objectstack#1 — CONTRACT_REVIEW_TIER unavailable (project rule: the maintainer bars the ceiling tier in this seat, 「契约复审交 review 席位,不用 fable」; no l2-review or review seat is seated, mailbox list read 2026-11-29T19:23Z) · head ef33907 Faces: narrowing ( |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head ef33907 · 2026-11-30T00:10Z The seat takes the tier itself from here (the maintainer, 2026-11-30 「你现在有fable」); the earlier handoff to repo:objectstack#1 is withdrawn on its mailbox #38524. |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Inputs read: card #34452 (body and all 11 comments, rulings 6942962369 and 6957994370, the seat correction 7258829764, the dev report 7260412135), PR #38640 (body, 11 files, net diff against merge-base ① Derived judgments
② Semver levelClause-②: no (narrowing) on the PR body and in the changeset, title carries ③ Boundary flags
④ Design judgment
S1 (should-fix) — the entry states the wrong FROM for #34190, twice (header comment and
S2 (should-fix) — the new jsdoc says "[#34440] Beside rows bound to two or more packages a disabled one among them, it is judged below ... Beside one bound package or none the read is left as it was", and the entry's surface says the same (the disabled package holds the name as a stored row). The code has no such guard. With
S3 (should-fix) — the served answer in the moved one-holder cell is not coherent, and the entry does not say so. Nits:
Tried to break: a doc name one package holds with a stamped answer (unmoved); in-process layered callers of other types (unreached, the judge is doc-only); the save door in the declared cells (same address before and after); only-disabled holders beside a package-less row ( No must-fix. Three should-fix (S1, S2, S3) are open on this head and each earns a delta review of its fix. Implemented-by: VERDICT: PASS |
…d served, the one registered last Contract review S1 and N1 on #38640: the entry's header and reason, and the changeset's #34190 FROM, said the in-process layered read served the holder registered FIRST; the card's measured reading, the layered read's comment and the [#34190] pin say LAST. The entry's surface now says a package-less row is the environment's entry once it is in the registry's bare slot (a row only the store holds is no exemption), as refuseAmbiguousBareDocRead reads it. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
…ss row is left as it was beside a disabled holder too Contract review S2 on #38640 (#34440). With `if (rows.unbound) return undefined` removed, a package-less row beside rows bound to ONE enabled package, the disabled package holding the name only as code, reached the served-set judgment and was re-addressed to that package: every bare door moved from 404 to 200 serving the enabled package's row, outside the declared surface (rows bound to two or more packages, a disabled one among them) and unpinned. The guard its twin storedRowHoldersRefusal keeps (unbound, fewer than two bound packages) is restored, and a CONTROL pins the cell at its main answer with and without an environment item in the registry's bare slot. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
…on, tracked in #38659 Contract review S3 on #38640: beside one holder the plain read naming no package now serves the environment's entry, but under the holder's envelope (`_packageId` that holder, `_provenance: package`): the read grafts the envelope from the artifact the name lookup answers. It did the same beside two or more holders before this change, and #34417's hydration fix does not reach it (measured). The entry's acceptance and the changeset name it as a known deviation with its carrier. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
…ker for its known deviation The CLI pin that every semantic entry's printed guidance carries no tracker number (migrate-meta-engine-guidance) read #38659 in the acceptance added by db57853. The acceptance now says a follow-up card carries the deviation; the entry's header comment names the card. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 9a03d07 · 2026-11-30T02:19Z |
|
repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv 席位核对ACCEPT @
|
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Delta round over Prior findings:
① Derived judgments
② Semver levelUnchanged in level: ③ Boundary flags
④ Design judgment
S4 (should-fix) — the second entry's surface is narrower than the code's reach, on code this delta did not change and that my S2 named only for the one-bound cell. Nit:
No must-fix. S1, S2, S3: closed. S4 (should-fix) is open on this head and earns a delta review of its fix. Implemented-by: VERDICT: PASS |
…name in code alone, and a pin holds that cell Contract review S4 on #38640: the entry's surface and the servedRowHolderOf jsdoc said the disabled package holds the name as a stored row, but the judgment asks whether any holder of the name is disabled, registry holders and rows together. So with two enabled packages' rows, a package-less row and a disabled package holding the name in code alone, every bare door now refuses 409 naming the two enabled packages; on main (measured, the face's judgment as on main) the plain read, /layers and /published answered 404. The surface, the reason, the jsdoc and the changeset's FROM now name that holder form, and a RestServer pin holds the cell in both registration orders and two save orders. N3: the changeset's deviation sentence names the lock too. Claude-Session: https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 2aa6a1c · 2026-11-30T03:12Z |
|
repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv 席位核对ACCEPT @
|
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z Contract reviewServed-tier: Delta round over Prior findings:
① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentReconciling the FROM. My record 7266936020 said that in the S4 cell the parent "returned at
Nit:
No must-fix, no should-fix. S4: closed. N3: closed. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z 维护者速读
Seat opinion: land as is. Three contract rounds closed every graded finding (S1–S4); each moved door answer is declared in an ADR-0087 entry with its FROM → TO and pinned, and the last cell (a disabled package holding the name in code alone) was measured on main (404) and on this head (409 naming the enabled holders). 席位核对ACCEPT at head
ACCEPT → PR #38640 comment 7267702453 · Contract review → comment 7267731245 |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46373393491 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
… that name no package give the answer the read names (objectstack-ai#38752) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9BzWvmsAKskRGFXQ4iwDJDW)_ Fixes objectstack-ai#34452 Refs objectstack-ai#34346, objectstack-ai#34417, objectstack-ai#33904, objectstack-ai#34258 (the fold's members, closed into objectstack-ai#34452 on 2026-11-20) and objectstack-ai#33127 (heal 2 only) Clause-②: no (narrowing) Metadata-protocol: none Skills-docs: none — no key an author writes changes; the moved answers are writes, a restart and action reads that name no package, which the skills already teach as "name the package" ## 维护者速读 - 用户能看到什么变化:同名元数据在不点名包时,写入、重启后的读取、动作的读取,都和读取给出同一个答案:停用包当作不存在,环境自己的条目先答,不再随保存或注册顺序变化。 - 为什么做:这是同名读取折叠组 objectstack-ai#34452 的写门与水合半边(读门半边是已合并的 objectstack-ai#38640),合并即关 objectstack-ai#34452;四张成员卡与 objectstack-ai#33127(只修第二处 heal 2)随折叠组关闭。 - 出错会怎样:不点名包、去写或读共享名字的调用方,会改拿 409 冲突或环境自己的条目;点名包就能拿回原来那份。改动可以整体撤回。 - 要你做什么:无(契约复审由席位送审)。 ## What changes Five criteria, one commit each, on `main` after objectstack-ai#38640: 1. **objectstack-ai#34346** (9d731b0): two enabled packages ship a name, and its stored rows are bound to a disabled package D and to one of them, E. The bare publish save, the bare draft save and the bare delete now refuse 409 naming the two enabled holders, as the bare read does. They never name D, and they write or remove nothing. `?package=E` saves and deletes as before. Before, the publish save wrote E's row (200), and the draft save and the delete refused naming E and D. (packages/metadata-protocol/src/protocol-save.ts, protocol-diff-delete-load.ts) 2. **objectstack-ai#34417** (0a14e90, criterion rewritten by the seat to ruling 6942962369): the environment's package-less doc row, hydrated after the artifacts registered (`loadMetaFromDb`), answers first on every bare door, on both transports and in both registration orders. Each holder's exact address (the plain read and `/layers`) reads that holder's own doc. Before, the hydrator grafted the first registered holder's envelope onto the row, so `?package=FIRST` served the environment's row under that holder's name and the bare doors refused 409. (protocol-registry-hydration.ts) 3. **objectstack-ai#33127 heal 2** (a8bf411, `Refs`): for the three healed overlay types, a package-less row with no holder served wears no envelope and is recorded with no holder, by the hydrator and by the heal alike. The enable that later serves one holder builds the row under that holder's envelope, as the hydrator lays it then. Before, the lookup that names no package answered a disabled holder's artifact, and the heal dropped the record. No door's answer moves (registry-only; the pins are in packages/objectql/src/package-scoped-exact-qualifier.test.ts). 4. **objectstack-ai#33904** (616d76d, b61bcd2, 73c2de8 and 9910fbc, ADR-0150 D4, ruling 6942962369): a package's action of a name on one object, and the environment's own package-less action of the name on another object that no package's action of the name binds, are separate items at D4's key `(package, objectName, name)`. One predicate, `holdsEnvironmentOwnAction` (sys-metadata-repository.ts), reads the environment's own action off the item's active rows. The read naming no package serves its row and version, the merged list slots an action by `(name, object)` where a package's action of the name binds that object, an object-less action being a key of its own (elsewhere, by name as on `main`, so a platform item and the environment's object-less row of its name stay one slot, which `/actions/_env/OBJECT/NAME` reads as the platform item's key: runtime action-package-addressing.test.ts), and the delete naming no package removes the environment's row and retires the registry's bare-slot entry it left. With no such row, every door answers as before. Before, the plain read, `/layers` `effective` and `/published` served the package's item, the list named only it, and the delete removed the package's row. The same holds with the package's action object-less and the environment's on an object (73c2de8; before it, the list named only the package's). **List cells with no environment-own action** (73c2de8, declared in the changeset bullet "The merged action list where a package binds the object" and in the `environment-action-on-another-object-answers-first` entry). Two packages P1 on `account` and P2 on `contact`, a package-less row on `account`: FROM the row listed under both packages and P2's own action dropped, TO the row listed as P1's customization and P2's own action listed. A list scoped to a code package on `account`, the environment's row on `contact` passed as a stand-in: FROM the package's slot serving the environment's body, TO the package's own action. A platform action of the name (no package, no stored row) on `lead`, or object-less, beside a package's action on `account` or object-less (9910fbc, the contract review's S3): FROM the platform action dropped, TO both listed (the bound variant moved at 616d76d, the object-less one at 73c2de8); the bare read already refuses that name 409 naming both, so the list now names the two candidates the refusal names. Pins: packages/metadata-protocol/src/protocol.action-list-slot-key.test.ts, red on `main` (8) and on b61bcd2 (3: the object-less cells). 5. **objectstack-ai#34258** (fa54140, ADR-0150 D3/D4): a package-less action row is withheld or served by the holders at its own `(object, name)` key, not the name's. With two or more holders bound to the key, the envelope lookup (`lookupArtifactItem`, protocol-artifact-lookup.ts) lends the ONE enabled holder's envelope; with two enabled holders, or none, it answers as before. The face's withhold judges the key's holders (`actionKeyHoldersOf`, protocol-meta-item-face.ts). Before, a disabled and an enabled holder on the row's object made the row wear the disabled one's envelope when it registered first, and the read withheld it (404). And an enabled package holding the name on another object kept a key whose every holder is disabled served. **Narrowing cell.** Every holder on the row's object disabled (A and B on `account`), an enabled C holding the name on `contact`, the environment's row on `account`: the read naming no package moves FROM 200 serving the row (the name's holders were judged, and C is enabled) TO 404, as a key whose every holder is disabled answers with no other holder of the name. The `!` and `Clause-②: no (narrowing)` cover it. Pin: rest `[objectstack-ai#34258]` "A and B disabled on `account`, C enabled on `contact`" (the "objectstack-ai#34258 key" ablation arm turns it red). The changeset bullet, the `package-less-action-row-judged-at-its-key` entry and the pin title give it as FROM 200 → TO 404 (b0e3f1d, text only). Plus (10c011f) four ADR-0087 semantic entries under step 19: `bare-write-beside-disabled-row-refused-naming-shippers`, `hydrated-doc-row-wears-no-holder-envelope`, `environment-action-on-another-object-answers-first` and `package-less-action-row-judged-at-its-key`. Also the changeset `.changeset/34452-same-name-writes-and-hydration.md` (BREAKING banner, FROM and TO per criterion; objectstack-ai#33127 heal 2 noted as moving no door). What `Fixes objectstack-ai#34452` leaves open, each with its home: - objectstack-ai#34452's scope appendix 7259555802 listed an `_env` cell (the `_env` draft and layered reads answering 409 naming the disabled registry holder). It is moved out of this PR on the seat's ruling, because it is a different mechanism: `admitEnvironmentQualifier` falls back to registry holders, disabled ones included. Filed as objectstack-ai#38753. - objectstack-ai#33127 heal 1 (see Acceptance notes): filed as objectstack-ai#38754. - A bare read of a name whose every holder is disabled answers 404: not to be done, ruled on objectstack-ai#34348 (7187668758). - With ONE enabled shipper beside a disabled one, the bare draft save and the bare delete still refuse 409 naming the disabled package: filed by the seat as objectstack-ai#38769, closed as a duplicate into objectstack-ai#38753 (the `packagelessHolderRefusal` docblock names it as a known gap, citing objectstack-ai#38753). - The hydrated doc row's envelope with one shipper: filed by the seat as objectstack-ai#38770. ## Tests Flipped pins (each pinned the FROM the criterion moves): - packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts: the review M1 CONTROL that pinned objectstack-ai#34417's FROM is replaced by the criterion's `[objectstack-ai#34417]` pin. - packages/metadata-protocol/src/protocol.packageless-save-address.test.ts: the objectstack-ai#33904 FROM pins (the read and the delete naming no package answering P's item) now assert the TO. - packages/qa/dogfood/test/action-save-packageless-other-object.dogfood.test.ts and action-list-packageless-other-object.dogfood.test.ts: the objectstack-ai#33904 FROM legs (read, delete, list) now assert the TO. New pins: - `[objectstack-ai#34346]` in packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts: the three bare writes refuse naming the two shippers and nothing moves, plus a `?package=E` CONTROL. - `[objectstack-ai#34417]` in meta-disabled-holder-artifact-door.test.ts: both transports, both registration orders. - `[objectstack-ai#33127 heal 2]` in packages/objectql/src/package-scoped-exact-qualifier.test.ts: the enable while no holder is served, and the hydrator run in that state. - packages/runtime/src/domains/meta-environment-action-other-object-33904.test.ts (new file): every door naming no package, the list, a restart, the delete, the version, plus CONTROLs with no environment row. - packages/metadata-protocol/src/protocol.action-list-slot-key.test.ts (new file, 73c2de8): the list's slot key, cell by cell with each FROM in the title, plus five CONTROLs (a platform action on the package's object sharing its slot, a customization on the package's object, an object-less customization, a platform item with the environment's object-less row kept one slot, another type slotted by name). - `[objectstack-ai#33904] P's action OBJECT-LESS, the environment's on \`task\`` in protocol.packageless-save-address.test.ts (73c2de8): the list names both, the bare read serves the environment's, the bare delete removes the environment's row. - `[objectstack-ai#34258]` in packages/rest/src/meta-qualified-item-route.test.ts: two disabled holders on the key beside an enabled one on another object (404, both orders), plus the card's CONTROL (one disabled and one enabled on the key: served as C's customization). ## Acceptance notes - objectstack-ai#33127 heal 1 (S1) is not done, on the seat's ruling (objectstack-ai#38754): an install sends no notice, so there is no trigger for it. With an install in that state, every door answers 409 naming E and F in all three states. Only the registry's scoped read of E and the execution list keep the row until the next unscoped hydration. Reported to the seat. - objectstack-ai#34258: the name-grain stored-row check (`enabledRowHolds`) stays as on `main`. A key-grain filter was written and ablated. It turned no pin red, because a sealed holder's rows are declined first (`declinesStoredRow`), so it was dropped as unreachable. - The envelope lookup keeps its earlier answer for two enabled holders at one key (`protocol-artifact-lookup.action-owner-key.test.ts` CONTROL, unchanged). The bare read refuses that name before any envelope. - Rebased over objectstack-ai#38594 (merged), which added `rollback` to the disabled-holders verb. The two helpers this PR adds (`enabledHoldersRefusal`, `disabledRowHoldersRefusal`) take every verb but `rollback`: no rollback door calls them, and the 409 message has no rollback wording. ## Verification Head 5db4acc. It adds two commits to 73c2de8: 9910fbc (the contract review's S3: the platform-action list cell declared in the changeset bullet and the `environment-action-on-another-object-answers-first` entry, the count corrected to three cells, three pins and a CONTROL; no code moves) and 5db4acc (N5: the known-gap note cites objectstack-ai#38753). On them, under the lock (`VERDICT command-exit 0` each): spec build, `gen:migration-registry` no diff, spec migrations 209/209, spec `test:repo` 1608/1608, the two metadata-protocol list and save-address files 120/120 (the list file 13/13), typecheck of metadata-protocol and spec; gate families 1 to 81 of the 103 ran on 9910fbc and 82 to 103 plus `check-issue-citations` on 5db4acc (the two differ by one comment), every one exit 0, `dispatch-gates --ran`: 103 derived, 103 run, 0 NOT-MEASURED; overlap-check `VERDICT clean exit 0` against `origin/main` 6ba8ddd. On 73c2de8 every CI check passed, `Dogfood battery (opt-in)` included (66 success, 13 skipped); a new run is owed on this head. On 73c2de8, on `main` cb8d853 (after objectstack-ai#38640, objectstack-ai#38594, objectstack-ai#38699 and objectstack-ai#38712), in this container, heavy runs under `scripts/pm/os-verify-lock.sh` (shared box). 73c2de8 answers the contract review (S1, S2, N1 to N3): a package's object-less action is a list key of its own, the two list cells that moved are measured, pinned and declared FROM and TO, and three text fixes (the `packagelessHolderRefusal` docblock keeps its known gap; the bare-write entry's surface excludes a stored package-less row; the hydrated-doc entry counts a disabled shipper). On it, under the lock (`VERDICT command-exit 0`, held 1h27m40s): `pnpm build` 123/123; `gen:migration-registry` no diff; spec migrations 209/209; metadata-protocol 23813 passed / 45 skipped; runtime, the whole package, 658 files, 12568 passed / 27 skipped; rest 9099 / 351 skipped; objectql 14570; the two dogfood files 6/6; `test:repo` of objectql, rest, runtime, spec, core and types; typecheck of metadata-protocol, runtime, rest, spec and objectql; all 103 derived gate families exit 0 (`dispatch-gates --ran`: 103 derived, 103 run, 0 NOT-MEASURED); overlap-check `VERDICT clean exit 0` against `origin/main` bb86347. b61bcd2 fixes two CI reds of b0e3f1d, both from objectstack-ai#33904's list slot: the local helper's name `actionObjectKey` was the objectstack-ai#14878 dead member the tree-wide repo pins refuse (renamed `actionSlotSuffix`), and slotting EVERY action by object split a platform item from the environment's object-less row of its name, so `/actions/_env/lead/approve` served the platform item instead of 404 (runtime action-package-addressing.test.ts; bisected with rebuilt dists: `main` and the first three commits green, 616d76d red). On b61bcd2, under the lock (`VERDICT command-exit 0`): metadata-protocol 23803 passed / 45 skipped; runtime, the WHOLE package, 658 files, 12568 passed / 27 skipped; `test:repo` of runtime, objectql, rest, spec, core and types; rest 9099 / 351 skipped; the two dogfood files 6/6; typecheck of metadata-protocol and runtime; `check:issue-citations`, `check-nul-bytes`, `check:adr-symbol-anchors`, `check:slot-lookup`, `check:type-check-debt`, `check:query-options-erasure`, `check:undeclared-dep-imports`, each exit 0; overlap-check clean. The earlier local runtime reading covered `src/domains` only, which is how this cell was missed. b0e3f1d (the L1 delta) changes text only: the changeset bullet, the entry, a pin title and two docblocks. On it, under the lock (`VERDICT command-exit 0`): spec build, `gen:migration-registry` (no diff), spec migrations 209/209, the CLI `migrate-meta-engine-guidance` pin 3/3, `check-adr-0087-registration`, `check-changeset-no-major`, `check-empty-changeset`, rest `meta-qualified-item-route.test.ts` 439/439, metadata-protocol typecheck, `check:upgrade-guide`, `check:issue-citations`, `check-nul-bytes`, each exit 0; overlap-check clean. <details><summary>Suites</summary> Under the verify lock: `VERDICT command-exit 0` (held 1h12m59s). | run | exit | result | |:--|:--|:--| | `pnpm install --frozen-lockfile` | 0 | | | `pnpm --filter @objectstack/spec gen:migration-registry` | 0 | no diff | | `pnpm --filter @objectstack/spec exec vitest run src/migrations` | 0 | 5 files, 209 tests | | `pnpm build` | 0 | 123/123 tasks | | `pnpm --filter @objectstack/metadata-protocol test` | 0 | 376 passed, 9 skipped files; 23803 passed, 45 skipped tests | | `pnpm --filter @objectstack/objectql test` | 0 | 641 files, 14570 tests | | `pnpm --filter @objectstack/rest test` | 0 | 442 files; 9099 passed, 351 skipped tests | | `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains` | 0 | 245 files; 7487 passed, 6 skipped tests | | dogfood, the two files this PR changes (`action-save-packageless-other-object`, `action-list-packageless-other-object`) | 0 | 2 files, 6 tests | | `typecheck` of metadata-protocol, runtime, rest, spec, objectql | 0 each | | The full dogfood battery is not run locally: this PR's title carries `!`, so it is owed by the opt-in CI lane (`Dogfood battery (opt-in)`) on this head. For reference, an earlier full dogfood run on the same commits over `main` 830ff8b passed: 495 passed and 3 skipped files, 4187 passed and 68 skipped tests. That earlier run also found three type errors after the rebase onto objectstack-ai#38594 (the verb above, and an `undefined` narrowing in `lookupArtifactItem`). They were fixed in the commits that introduced them, and the runs above are on the fixed head. </details> <details><summary>Ablation (dev-ablation.md: commit first, mutate with ablation-replace, rebuild, dist preflight, run, restore from HEAD, prove an empty git diff HEAD, rebuild, preflight --absent)</summary> Run on the branch before the rebuild from `main`. The code is the same, apart from the two type-only fixes named under Suites, which move no runtime path. | arm | mutation | pins red | restored | |:--|:--|:--|:--| | objectstack-ai#34346 | the bare-write refusal beside a disabled binding made conditional (two guards in protocol-save.ts) | runtime `[objectstack-ai#34346]` 4 | diff empty, marker absent | | objectstack-ai#34417 | the hydrated environment doc grafts the holder's envelope again | artifact-door `[objectstack-ai#34417]` 2 | diff empty, marker absent | | objectstack-ai#33127 heal 2 | the no-holder-served branch and its record made conditional | objectql `[objectstack-ai#33127 heal 2]` 2 | diff empty, marker absent | | objectstack-ai#33904 predicate | `holdsEnvironmentOwnAction` answers false | metadata-protocol 3, runtime 3 | diff empty, marker absent | | objectstack-ai#33904 list slot | the list slots actions by name again | metadata-protocol 2, runtime 2 | diff empty, marker absent | | objectstack-ai#33904 list slot, b61bcd2 | arm A: by name again; arm B: every bound object joins the slot (the b0e3f1d rule) | A: metadata-protocol 2, runtime 2, dogfood list 2; B: runtime `action-package-addressing` 1 | each: `git status --porcelain` empty, rebuilt, marker absent | | objectstack-ai#33904 list slot, 73c2de8 | an object-less action is no key of its own again (the b61bcd2 rule) | metadata-protocol 3 (the two object-less list cells and the object-less pin in packageless-save-address); runtime 0 | `git status --porcelain` empty, rebuilt, marker absent | | objectstack-ai#33904 delete heal | the bare-slot entry is not retired on delete | runtime 1 | diff empty, marker absent | | objectstack-ai#34258 lookup | the one enabled holder at the key no longer lends the envelope | rest `[objectstack-ai#34258]` 1 (the CONTROL) | diff empty, marker absent | | objectstack-ai#34258 key | the face's key-grain withhold made conditional | rest `[objectstack-ai#34258]` 1 | diff empty, marker absent | | objectstack-ai#34258 stored rows | a key-grain filter on `enabledRowHolds` (since dropped) | 0: unreachable, see Acceptance notes | diff empty, marker absent | The lookup leg was run again after the fix kept the earlier answer for two enabled holders (the lookup CONTROL in metadata-protocol had gone red in the full suite): 1 red, restored. An `ablation-dist-preflight --absent` reading exits 3 while untracked files are in the tree, even when the dist reading passes; the final readings were taken on a clean tree. </details> <details><summary>Gates</summary> `node scripts/pm/dispatch-gates.mjs --commands` derived 103 families for this diff. All 103 ran on 73c2de8, again across 9910fbc and 5db4acc (see Verification), and before them on 10c011f, after the build above, each with `< /dev/null`, and every one exited 0. This includes `check:type-check-debt`, `check:query-options-erasure` and the `migrate-meta-engine-guidance` CLI pin. `dispatch-gates --ran`: 103 derived, 103 run, 0 NOT-MEASURED, 0 UNRUN. `node scripts/pm/overlap-check.mjs`: merges cleanly with `origin/main` 6ba8ddd, `VERDICT clean exit 0`. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56 <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmQmQ1jpFsNcARMbY56 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steve · project thread
Fixes #34452
Fixes #34190
Fixes #34440
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no key an author writes changes; the moved answers are reads that name no package, which the skills teach as "name the package" already
维护者速读
What changes
Three criteria, one commit each:
/layersand both/publisheddoors, as it already did beside two holders, agreeing with the registry andMetadataFacade. The holder's address still reads its own doc.refuseAmbiguousBareDocRead(packages/metadata-protocol/src/protocol-meta-item-reads.ts) now answers the entry beside one or more enabled holders.getMetaItemLayerednaming no package, of a doc two or more enabled packages hold with no package-less entry, refuses 409RESOURCE_CONFLICTnaming each holder, asgetMetaItemdoes; it swallowed the refusal and read the layers of the holder registered last. The HTTP transports already refused through their own step.servedRowHolderOf, packages/metadata-protocol/src/protocol-meta-item-face.ts), giving the answer the doors give when the disabled holder is absent (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 pins): two or more enabled holders are refused naming exactly them, one is served. The judgment had left such a row "as it was", so the read followed save order (D, package-less, E answered 404) and/layersnamed the disabled package. The disabled holder may hold the name as a stored row, or in code alone beside two or more enabled packages' rows (onmainevery bare door answered 404 in that form; contract review S4, 2aa6a1c). Beside rows bound to ONE package the read is left as it was (contract review S2, 65e2140).Plus (ef33907) two ADR-0087 semantic entries under step 19,
doc-bare-read-environment-entry-firstanddisabled-holder-package-less-row-bare-read-judged-as-absent, and the changeset.changeset/34452-same-name-bare-reads.md(BREAKING banner, FROM and TO per criterion).Contract review 7265093897 (PASS, three should-fix), fixed in four commits:
if (rows.unbound) return undefinedremoved, a package-less row beside rows bound to ONE enabled package, the disabled package holding the name only as code, was re-addressed to that package: measured onRestServer, every bare door moved from 404 to 200 serving the enabled package's row, outside the declared surface. The guard its twinstoredRowHoldersRefusalkeeps (unbound, fewer than two bound packages) is restored, so the cell answers 404 as onmain(the same early return there), with or without an environment item in the bare slot. Whether that 404 is right is outside this PR; the seat carries it._packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659.migrate-meta-engine-guidance, Test Core 2/12 on db57853) read#38659in that acceptance; the acceptance now says a follow-up card carries it, and the entry's header comment names metadata bare read: the environment's own item is served under a package holder's envelope (_packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659.Delta contract review 7266936020 (PASS, S1 to S3 and N1 closed, one new should-fix), fixed in one commit:
servedRowHolderOfjsdoc said the disabled package holds the name as a stored row; the judgment asks whether any holder of the name is disabled, the registry's holders and the rows together. Measured onRestServerwith the face's judgment as onmain(merge-base 7213177): with two enabled packages' rows, a package-less row and a disabled package holding the name in code alone, the plain read,/layersand/publishedanswered 404 in both registration orders and both save orders; at this head they refuse 409 naming exactly the two enabled packages. The surface, the reason, the jsdoc and the changeset's FROM now name that holder form, and four RestServer pins hold the cell. The changeset's deviation sentence names the lock (full) too.Tests
[measured, unresolved]pin for metadata-protocol: beside one enabled holder of a doc, the bare /meta doc doors serve the holder's doc while the registry and MetadataFacade.get serve the environment's stamp-less entry #34452 is replaced (forced change: it pinned the FROM) by two[#34452]pins (a stamp-less bare entry, and a hydrated package-less row, beside one holder: every bare door and both registry readers answer the entry, the holder's address its own doc), and one[#34190]pin (in process, the layered read naming no package refuses 409 naming both; each holder's address reads its own layers).[#34440]describe, booted kernel with sqlite, both registration orders, three save orders each for two enabled holders (409 naming exactly E and F on the plain read,/layers,/publishedand the execution read; each exact address its own row;?package=D404) and for one enabled holder (E's row on every bare door), before and after a reboot. 12 tests.[#34440]describe onRestServerwith the real protocol and registry, same matrix without a reboot. 12 tests, plus four S4 pins (both registration orders, two save orders: two enabled rows and a package-less row beside a disabled code holder are refused 409 naming exactly the two enabled packages on the plain read,/layersand/published) and the S2 CONTROL (2 tests, both registration orders): an enabled package's row and a package-less row beside a disabled code holder answer 404 on the plain read,/layersand/published, with and without an environment item in the bare slot.Acceptance notes
_packageId,_provenance: package, lockfull) on the plain read; the pins check labels. Known deviation, tracked in metadata bare read: the environment's own item is served under a package holder's envelope (_packageId,_provenance: package, lockfull), so the read and the write disagree on who owns it #38659 (contract review S3)./diffwith?package=) is outside this PR's file surface:fetchCurrentMetaDocumentin packages/rest/src/rest-server.ts reads by name and ignores?package=. Reported to the seat.servedPackagelessSaveAddress); for the two cell shapes it answered the same before and after (two enabled holders: 409 naming them; one: that holder's address). The write-door cells (metadata-protocol: with two enabled holders and a stored row bound to a disabled holder, a bare save writes one enabled holder's row and a bare draft save or delete addresses the disabled holder's row, while the bare read refuses 409 #34346, metadata-protocol: after hydration, the first holder's exact address of a doc two packages ship serves the environment's package-less row instead of that package's own doc #34417) are PR 2.Verification
The details below were measured on head
ef33907bdf(or its parent for runs made before the changeset commit, which touches no code); the contract review delta is measured on the new head (last block). All in this container, heavy runs underscripts/pm/os-verify-lock.sh(shared box).Suites
pnpm --filter @objectstack/metadata-protocol test: Test Files 372 passed, 9 skipped; Tests 23649 passed, 45 skipped.pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains: Test Files 244 passed; Tests 7447 passed, 6 skipped.pnpm --filter @objectstack/rest test: Test Files 441 passed; Tests 9065 passed, 351 skipped.pnpm build(123/123 tasks) thenpnpm --filter @objectstack/dogfood test: lock VERDICT command-exit 0; Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68 skipped (4255); no failure.FROM, then TO (#34440)
The new
[#34440]RestServer pins against the pre-fixdist/(head 4bd9450): 12 of 12 red, for example "expected [ 'plain', 200, undefined ] to deeply equal [ 'plain', 409, 'RESOURCE_CONFLICT' ]" with the body servinghealthy roworpackage-less rowby save order; "expected [ 'plain', 404, 'RESOURCE_NOT_FOUND' ] …" for one order;/layers409 namingapp.disabled_demobeside one enabled holder. After the fix and a rebuild: the file's 75 tests pass, and the 12 runtime[#34440]pins pass (193 in the file).Ablation (dev-ablation.md: commit first, mutate with ablation-replace, rebuild, dist preflight, run, restore from HEAD, prove an empty git diff HEAD, rebuild, preflight --absent)
>= 2)[#34452]: 4 of 4[#34190]: 2 of 2if (rows.unbound) return undefined;put back[#34440]12 of 12, runtime[#34440]12 of 12[#34440]2 of 12 (one holder, saved E, D, package-less, both registration orders: the hydrated package-less row is the registry's environment item, and/layersnamed D); rest 0 of 12 (its store double hydrates no registry item)After every leg was restored: artifact-door 49 passed (6 skipped), runtime
[#34440]12 passed, rest[#34440]12 passed. The first attempt at leg (a) was a no-op:ablation-replacerefused it because the replacement contained its anchor and restored the file itself, so the script stopped; both #34440 legs then ran with a changed anchor text.Gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackafter the last commit: 192 commands, plus the four package typechecks, each run with< /dev/null. Reconciled with--ran: "100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN". Eleven first failed for a missing prerequisite (ten exit 3 for an unbuilt package or the shallow clone; the CLI test exit 1 for create-objectstack's missingdist/), and all eleven passed oncepnpm buildran and the pinned fixture commit was fetched.pnpm check:type-check-debtpassed under the lock.node scripts/pm/overlap-check.mjs: clean against origin/main 1d19acf. The CI-only families (Build Core, the dogfood shards, Temporal Conformance) are read from this PR's check-runs.Contract review deltas (heads 9a03d07 and 2aa6a1c)
pnpm --filter @objectstack/metadata-protocol test: Tests 23649 passed, 45 skipped.pnpm --filter @objectstack/rest test: Tests 9067 passed, 351 skipped.pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains: Tests 7447 passed, 6 skipped (these three at 65e2140; the two later commits change ledger and changeset text only). Spec migrations 209 passed and the CLImigrate-meta-engine-guidancetest 3 passed on 9a03d07, against a rebuilt specdist/;check-adr-0087-registrationOK; metadata-protocol and spec typecheck exit 0.healthy row), the 12 other[#34440]RestServer tests and the twocontract review S4tests the filter also ran stayed green; restored from HEAD, empty diff, rebuilt, preflight--absentclean.[#34452]and[#34248]pins run against PR 2's build with a temporary probe (removed): the plain read on both transports answered_packageIda holder and_provenance: packagein the one-holder and the two-holder cell.node scripts/pm/dispatch-gates.mjs --commandson 9a03d07, 100 commands each with< /dev/null, run afterpnpm --filter @objectstack/spec build(an earlier run on db57853 read a specdist/older than the entry edit, which is how the CLI pin passed locally and failed in CI). Reconciled with--ran: "100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN".node scripts/pm/overlap-check.mjs: clean against origin/main. Check-runs on 9a03d07: 60 success, 11 skipped, none failed.protocol-meta-item-face.tsswapped for its merge-base copy and metadata-protocol rebuilt, went 4 of 4 red ([ 'plain', 404, 'RESOURCE_NOT_FOUND' ]; a probe read 404 on/layersand/publishedtoo); with the file restored from HEAD (empty diff) and rebuilt, 4 of 4 green.pnpm --filter @objectstack/rest test: Tests 9071 passed, 351 skipped. Spec migrations 209, CLImigrate-meta-engine-guidance3,check-adr-0087-registrationOK, metadata-protocol and spec typecheck exit 0, after a spec and metadata-protocol rebuild. Gates on 2aa6a1c: 100 commands,--ran"100 derived, 100 run, 0 NOT-MEASURED, 0 UNRUN"; overlap-check clean. Check-runs on 2aa6a1c: 60 success, 11 skipped, none failed.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmQmQ1jpFsNcARMbY56