Skip to content

fix(metadata-protocol)!: same-name reads that name no package answer the environment's doc first and read a disabled holder as absent - #38640

Merged
os-zhuang merged 9 commits into
mainfrom
claude/project-thread-3bely6
Nov 30, 2026
Merged

os-zhuang merged 9 commits into
mainfrom
claude/project-thread-3bely6

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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

维护者速读

  • 用户能看到什么变化:同名元数据在不点名包的读取下只给一个答案;环境自己的文档先答,停用包当作不存在,过去随保存或注册顺序变的答案不再变。
  • 为什么做:同名读取折叠组的读门半边(共八张卡,本 PR 收其中三张),写门与水合的半边另开第二个 PR。
  • 出错会怎样:依赖旧答案、不点名包去读共享名字的调用方会改拿环境条目或 409 冲突;点名包即可读回原来那份,改动可整体撤回。
  • 要你做什么:无(契约复审由席位送审)。

What changes

Three criteria, one commit each:

  1. 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 (04e0ebc, ruling 6942962369): 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 answers first on the bare plain read, /layers and both /published doors, as it already did beside two holders, agreeing with the registry and MetadataFacade. 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.
  2. metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5) #34190 (4bd9450): the in-process getMetaItemLayered naming no package, of a doc two or more enabled packages hold with no package-less entry, refuses 409 RESOURCE_CONFLICT naming each holder, as getMetaItem does; it swallowed the refusal and read the layers of the holder registered last. The HTTP transports already refused through their own step.
  3. metadata-protocol: a package-less row beside a disabled holder and served holders is served by save order on the plain read and /published, while /layers refuses naming the disabled package #34440 (586b7ed, seat choice A on the card's own acceptance): a package-less row beside a disabled holder's row and enabled holders' rows of a name no enabled package ships is judged over the served set (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 /layers named 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 (on main every 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-first and disabled-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:

Delta contract review 7266936020 (PASS, S1 to S3 and N1 closed, one new should-fix), fixed in one commit:

  • S4, N3 (2aa6a1c): the second entry's surface and the servedRowHolderOf jsdoc 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 on RestServer with the face's judgment as on main (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, /layers and /published answered 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

  • packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts: the [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).
  • packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts: [#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, /published and the execution read; each exact address its own row; ?package=D 404) and for one enabled holder (E's row on every bare door), before and after a reboot. 12 tests.
  • packages/rest/src/meta-disabled-package-doors.test.ts: [#34440] describe on RestServer with 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, /layers and /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, /layers and /published, with and without an environment item in the bare slot.

Acceptance notes

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 under scripts/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.
  • Full dogfood, pnpm build (123/123 tasks) then pnpm --filter @objectstack/dogfood test: lock VERDICT command-exit 0; Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68 skipped (4255); no failure.
  • Typecheck of metadata-protocol, runtime, rest and spec: exit 0 each.
FROM, then TO (#34440)

The new [#34440] RestServer pins against the pre-fix dist/ (head 4bd9450): 12 of 12 red, for example "expected [ 'plain', 200, undefined ] to deeply equal [ 'plain', 409, 'RESOURCE_CONFLICT' ]" with the body serving healthy row or package-less row by save order; "expected [ 'plain', 404, 'RESOURCE_NOT_FOUND' ] …" for one order; /layers 409 naming app.disabled_demo beside 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)
arm mutation pins red restored
#34452 the doc entry answers beside two or more holders again (>= 2) artifact-door [#34452]: 4 of 4 diff empty, marker absent
#34190 the layered read swallows the refusal again (try/catch) artifact-door [#34190]: 2 of 2 diff empty, marker absent
#34440 (a) if (rows.unbound) return undefined; put back rest [#34440] 12 of 12, runtime [#34440] 12 of 12 diff empty, marker absent
#34440 (b) the environment-item shortcut for callers off the item face put back runtime [#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 /layers named D); rest 0 of 12 (its store double hydrates no registry item) diff empty, marker absent

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-replace refused 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/objectstack after 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 missing dist/), and all eleven passed once pnpm build ran and the pinned fixture commit was fetched. pnpm check:type-check-debt passed 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 CLI migrate-meta-engine-guidance test 3 passed on 9a03d07, against a rebuilt spec dist/; check-adr-0087-registration OK; metadata-protocol and spec typecheck exit 0.
  • Ablation of S2: the restored guard made conditional on a marker, rebuilt, dist preflight saw the marker; the S2 CONTROL went red (2 of 2: the doors served healthy row), the 12 other [#34440] RestServer tests and the two contract review S4 tests the filter also ran stayed green; restored from HEAD, empty diff, rebuilt, preflight --absent clean.
  • S3 measurement: the stamp-less [#34452] and [#34248] pins run against PR 2's build with a temporary probe (removed): the plain read on both transports answered _packageId a holder and _provenance: package in the one-holder and the two-holder cell.
  • Gates: node scripts/pm/dispatch-gates.mjs --commands on 9a03d07, 100 commands each with < /dev/null, run after pnpm --filter @objectstack/spec build (an earlier run on db57853 read a spec dist/ 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.
  • S4 (2aa6a1c): the four new pins, with protocol-meta-item-face.ts swapped for its merge-base copy and metadata-protocol rebuilt, went 4 of 4 red ([ 'plain', 404, 'RESOURCE_NOT_FOUND' ]; a probe read 404 on /layers and /published too); 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, CLI migrate-meta-engine-guidance 3, check-adr-0087-registration OK, 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

…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>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 4 package(s): @objectstack/metadata-protocol, @objectstack/rest, @objectstack/runtime, @objectstack/spec, touching 13 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/permissions/system-context.mdx (via handleMetadataRequest (symbol, a top-level function))
What this run could not see
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 189 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 945334eb5377fcd0ebc230bce9330a5f8b634107 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ff2b5d8261f445ab05f5e3ed41c8989cde4feb61 — the merge of head 2aa6a1c4bf7496b84d91d65b0b6ce679d8a90bc8 into base 945334eb5377fcd0ebc230bce9330a5f8b634107, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 945334eb5377fcd0ebc230bce9330a5f8b634107 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-29T19:21Z · first review

席位核对

ACCEPT @ ef33907bdfb427aa9c6966d289e6822bd59e8514 (card #34452, with #34190 and #34440 in the group, Fixes; the seat's card thread). L2 is owed at CONTRACT_REVIEW_TIER on three counts: a Clause-②: no (narrowing) declaration, a ! title, and two new packages/spec/src/migrations/entries/semantic/19.* entries, which are published schema. The seat routes the L2, and the seat lands the PR after both pass on one head (Tier H). L1 does not land it.

Read at head:

  • 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: the doc entry is answered first beside one holder. refuseAmbiguousBareDocRead now returns the registry's package-less answer when packageScopedHoldersOf('doc', name) holds one or more holders, where it needed two. The layered read and both /published swaps follow that function, so the plain read, /layers and /published all serve the environment's entry, as ruling 6942962369 orders ("whatever number of packages hold the same name"). The [measured, unresolved] pin that held the FROM is replaced by the TO, and that is declared in the report's deviations.
  • metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5) #34190: the layered read throws its refusal. The try/catch that dropped a PackageScopedNameRefusedError is gone, so getMetaItemLayered naming no package refuses 409 naming each holder before reading any layer, as getMetaItem does.
  • metadata-protocol: a package-less row beside a disabled holder and served holders is served by save order on the plain read and /published, while /layers refuses naming the disabled package #34440: a disabled holder beside a package-less row.
    • servedRowHolderOf drops if (rows.unbound) return undefined; and the early environmentItem return. On the no-disabled path the early return was already a no-op: !refuseWithoutDisabled returns undefined at the !anyDisabled line either way.
    • With a disabled holder, the package-less row is now judged over the served set.
    • The pins cover the card's acceptance 1 to 5: two enabled holders refused naming exactly E and F; one enabled holder served; ?package=D withheld 404; both registration orders; before and after a reboot; three save orders each.
  • My own runs, in a clean worktree at this head:
  • The changeset flags for rest and runtime are false positives. rest/src/meta-item-history-routes.ts and runtime/src/domains/meta.ts change only a // comment inside a function body. I built both at this head and grepped dist/** (.js, .cjs, .d.ts). The new comment text is in neither, because esbuild drops line comments, so nothing they ship changes. metadata-protocol's code does change, and it carries its patch entry.
  • Changeset, read sentence by sentence. It is true: three bullets, each FROM → TO with its card, the BREAKING banner, "name the package" as the remedy, and the adr-0087 registration comment naming the two new semantic entries. Both entry files carry the surface, a replacement that names ?package=, a reason citing the ruling, and acceptance criteria. Shipping as patch follows the repo's no-major rule, with the banner.
  • Dogfood battery owed (! plus narrowing): recorded in the final report 7260412135 at this head, with a lock VERDICT exit 0: Test Files 495 passed / 3 skipped, Tests 4187 passed / 68 skipped.
  • Mechanical face. l1-face shows two flags, changeset and dogfood, both judged above. Checks at this head: 60 success, 11 expected skip, 0 failed. mergeable_state is clean. Fixes #34190 and Fixes #34440 bind cards already closed into this group, which is harmless.
  • Skills-docs: none. True: no author-written key changes, and the moved answers are reads that name no package.

Out of scope, for the seat:

  • The report's finding "REST GET /api/v1/meta/TYPE/NAME/diff?package=ID answers the by-name document, ignoring ?package=" is recorded as "carrier: seat · noted, not filed". It is a class (b) reach on a public door, so please run the filing gate on it.

Nits (non-blocking):

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 (Clause-②: no (narrowing), title !: three bare reads change answer — #34452 doc read beside a single holder, #34190 in-process layered read 409, #34440 disabled-holder package-less row judged on the served set) and published schema (two new ADR-0087 semantic entries under packages/spec/src/migrations/entries/semantic/). Metadata-protocol: none. L1 ACCEPT 7261229697. The PR takes needs:contract-review in this stroke. Tier H: after a same-head PASS the seat hands it to the approvers.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ef33907bdfb427aa9c6966d289e6822bd59e8514
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-read-judged-as-absent.ts, packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts + packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/rest/src/meta-item-history-routes.ts, packages/runtime/src/domains/meta.ts, packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, packages/rest/src/meta-disabled-package-doors.test.ts
Security-touching: no
Rule-change-verified: none

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 7213177e), and the check-runs on the head. Code outside the diff was read at the head with git show, never run.

① Derived judgments

  • Bare doc read beside ONE enabled holder and a package-less entry in the registry's bare slot (refuseAmbiguousBareDocRead, the holder count moves from two-or-more to one-or-more): the plain read, /layers and both /published doors move from the holder's doc to the environment's entry. Right: it is ruling 6942962369 on this card ("holds beside a single holder too, and the bare /meta doc doors move to agree with the registry"). The accept set of authored keys is untouched; the answer of an existing read changes, which is a narrowing for a caller that relied on the holder's doc. ?package=ID is unmoved (pinned).
  • In-process getMetaItemLayered of a doc two or more enabled packages hold, no entry: 200 with one holder's layers becomes a thrown 409 RESOURCE_CONFLICT. Right (card fold row metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5) #34190, ADR-0150 D3/D5). Public-surface change for in-process callers only. I read every non-test caller at the head: both /published doors wrap the call in try, fetchCurrentMetaDocument asks getMetaItem first (which already refused), both /layers doors already catch, and the two plugin-security readers ask permission types, never doc. No caller is newly broken.
  • servedRowHolderOf, two early returns removed (the environment-item shortcut for callers off the item face, and if (rows.unbound) return undefined beside a disabled holder): a package-less row beside a disabled holder's row and enabled holders' rows is judged over the served set. Right for the declared cells: it gives the 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 answer of the same rows without the disabled holder (two or more enabled: refused naming only them; one: served at its address). One save order moves from 404 to 200, so the move is a narrowing with a widening corner; the entry's own header comment says so.
  • Save door (servedPackagelessSaveAddress reads the same judgment): read against the code, the two declared cell shapes answer the same before and after (one enabled binding: that address through either path; two: refused naming the enabled ones). No write-door move in the declared cells. See S2 for the undeclared cell.
  • No schema key, no stored row shape, no REST route changes. Metadata-protocol: none is right.

② Semver level

Clause-②: no (narrowing) on the PR body and in the changeset, title carries !, and two ADR-0087 semantic entries are registered under step 19 with the adr-0087: registered marker naming both ids. That matches the diff: no accept set widens, three read answers change. The changeset bumps @objectstack/metadata-protocol and @objectstack/spec as patch; @objectstack/rest and @objectstack/runtime change comments and tests only, so no bump is owed there. Check Changeset (both runs) concluded success on the head. The breaking move ships as patch like the sibling step-19 entries in the tree (for example 33806-pending-confirmation-service-one-seam.md); accepted on the gate's verdict.

③ Boundary flags

  • Check-runs on the head: every run concluded success or skipped; none failed, none pending. Skipped runs are the opt-in harnesses, the matrix placeholder rows, Temporal Conformance and Queue verdict. Build Core, Test Core 1 to 12, Dogfood Regression Gate, Spec property liveness, Governed Surface Queue Guard and the type checks are green.
  • open_questions (dev report 7260412135), "contract review owed at head ef33907": answered by this record.
  • Deviation "the [measured, unresolved] pin replaced": answered, right. The pin held the FROM that ruling 6942962369 moves; it is replaced by two [#34452] pins that assert the TO on every bare door plus both registry readers, and the no-entry CONTROL is re-asserted after the entry is removed.
  • Out-of-scope finding (REST /diff ignores ?package=): outside this diff; the seat is the carrier and it needs a card. Not reviewed here.
  • metadata-protocol: a package-less row beside a disabled holder and served holders is served by save order on the plain read and /published, while /layers refuses naming the disabled package #34440's TO is not the literal sentence of ruling 6942962369 ("the environment's own item always answers first"): the package-less row is refused or passed over. Answered, holds: the seat withdrew its own rewrite in 7258829764 and kept the card text; ADR-0150 (the "package-less row that bears a package-held name is a customization, never a second item" clause, read at the head) and the 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 on main give the same answer for the twin cells with no disabled holder, and the ruling's own text on this card scopes the move to the /meta doc doors. The maintainer summary states the outcome ("a disabled package reads as absent"). Not escalated.
  • Dev flag in the PR body ("beside one holder the served entry wears the holder's envelope ... Recorded, not changed here"): NOT answered by a carrier. See S3.
  • SQL push-down: no new id materialisation and no in-app join. servedRowHolderOf still reads the item's active rows once and reuses them. Removing the environment-item shortcut means callers off the item face now make that one read when a package is disabled and the name has an environment item; one keyed read, no finding.

④ Design judgment

19.doc-bare-read-environment-entry-first.ts against ruling 6942962369 and its first consumer (refuseAmbiguousBareDocRead, the layered read, both /published doors): surface, replacement and acceptance criteria agree with the code and the pins, except:

S1 (should-fix) — the entry states the wrong FROM for #34190, twice (header comment and reason): "served the holder registered first". The measured reading on this card (7258726351: "200, one holder's layers (the one registered last)"), the new comment in protocol-meta-layered-reads.ts ("the holder the metadata service registered last"), the [#34190] pin's comment and the jsdoc of refuseAmbiguousBareDocRead all say LAST. A published ledger entry is what a caller reads to learn which answer it relied on, and this one names the opposite holder; the diff contradicts itself. Fix the entry (and the same words in the changeset and the PR body) to "registered last".

19.disabled-holder-package-less-row-bare-read-judged-as-absent.ts against the card's fold row #34440, the seat correction 7258829764 and servedRowHolderOf: surface ("held as stored rows by a disabled package and one or more enabled packages while a package-less row of the name is stored"), the ambiguous-in-environment reason, details.candidates, the execution read and the 404 at the disabled package's address all match the code and are pinned on both transports, three save orders, both registration orders, and across a reboot in the runtime file. Holds for the declared surface.

protocol-meta-item-face.ts (servedRowHolderOf), sentence by sentence:

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 if (rows.unbound) return undefined removed, a package-less row beside rows bound to exactly ONE enabled package now reaches served.length === 1 and is re-addressed whenever anyDisabled is true through the registry's holders (every, for example a disabled package that ships the name in code) and the registry holds no environment item of the name; when it does hold one, the retained guard (environmentItem and not more than one candidate) still returns undefined. So in that cell the judgment depends on what the bare slot holds, the move is outside the declared surface, and no pin covers it (every new pin gives the disabled package a stored row). The twin, storedRowHoldersRefusal, keeps exactly this guard (holding.unbound with fewer than two candidates returns undefined). I did not measure the door answers (read-only); the served address is probably the answer the read gave before, which is why this is not a must-fix. Either restore the guard the sentence describes, or correct the sentence and the entry's surface and pin the cell in both bare-slot states.

protocol-meta-item-reads.ts, protocol-meta-layered-reads.ts, meta-item-history-routes.ts, domains/meta.ts: the code agrees with its comments. One or more holders with a stamped registry answer still returns undefined, so a name one package holds with no entry is unmoved (CONTROL pinned); the throw for two holders with no entry now propagates from the layered read as the comment says; the /published swap condition is unchanged and only its comment moves.

S3 (should-fix) — the served answer in the moved one-holder cell is not coherent, and the entry does not say so. readMetaItem builds the envelope with lookupArtifactItem(type, name, envelopePackageId(undefined, item)); a stamp-less entry names no package, so the lone holder's artifact lends its protection: the environment's own doc is answered with packageId of the holder, _provenance: package and lock full (the PR body records exactly this, and the new pins assert labels only). The entry's acceptance says every read that names no package "answers the environment's entry", and the ruling says reads and writes give the same answer; a client that honours the envelope sees the environment's doc as the package's locked doc. Before this PR the one-holder cell answered the holder's doc under the holder's envelope, which was coherent. It needs a carrier before this lands: a follow-up card named in the changeset and the entry as a known deviation, or the PR 2 row (#34417, the same envelope on the hydrated entry) named as covering the stamp-less registration too.

Nits:

  • N1 — the first entry's surface reads "or a package-less sys_metadata row"; the code exempts only an entry in the registry's bare slot ("a package-less row only the store holds is no exemption"). True once the row is hydrated or saved through the door; the wording could say so.
  • N2 — the [#34440] runtime pins assert /published by substring for the two holders, not by details.candidates; the REST pins do the same. Enough beside the no-trace assertion.

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 (served is empty, undefined, as before).

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: claude/project-thread-3bely6
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 9a03d07 · 2026-11-30T02:19Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-30T02:20Z · delta review

席位核对

ACCEPT @ 9a03d077f4d953d470db9eda05f676621ea9b911 (#34452 group, PR1). This is the delta ef33907bdf..9a03d077, four commits answering L2 7265093897 (S1, N1, S2, S3). ACCEPT 7261229697 carries over to this head. The L2 re-review is with the reviewer who wrote 7265093897.

  • S2, the one code change. servedRowHolderOf (protocol-meta-item-face.ts:378) adds if (rows.unbound && rows.candidates.length < 2) return undefined;. This is the exact twin of storedRowHoldersRefusal's guard (:475, holding.unbound && holding.candidates.length < 2), so the jsdoc's "beside one bound package or none the read is left as it was" is now true of the code.
    • The new REST CONTROL (meta-disabled-package-doors.test.ts:1090, one per save order) pins that cell: one bound package, a package-less row and a disabled code holder. All three bare doors answer 404 as on main, whatever the bare slot holds.
    • The zone reports that removing the guard turns exactly those 2 red (200 with a healthy row) and leaves the other 14 green.
  • S1 + N1. metadata-protocol: the layered read of a doc name two enabled packages hold answers one holder's layers while the plain read refuses (ADR-0150 D3/D5) #34190's FROM now reads "registered last" in both the entry (header comment and reason) and the changeset. The entry's surface now says that a package-less sys_metadata row counts as the environment's entry only once it is hydrated or saved into the registry's bare slot, and that "a row only the store holds is no such entry".
  • S3. The changeset and the entry's acceptanceCriteria record the known deviation: the plain read naming no package serves the entry under a holder's envelope (_packageId that holder, _provenance package), as it already did beside two or more holders. It is carried by metadata bare read: the environment's own item is served under a package holder's envelope (_packageId, _provenance: package, lock full), so the read and the write disagree on who owns it #38659.
  • Read sentence by sentence. The three edited changeset sentences and the entry's edited surface, reason and acceptanceCriteria are true against the guard and the readings above. Every other sentence is unchanged from 7261229697.
  • Changeset flags. rest and runtime are still the false positives judged in 7261229697 (comment-only source edits, absent from dist). This delta adds only a rest test file, which ships nothing.
  • Dogfood: the battery at ef33907bdf (PR body, 495 / 4187, no failure) covers this head, in my judgement. The delta's only code change returns one undeclared cell to main's answer, which the new CONTROL pins against main, and the rest is entry and changeset text. The PR touches no file under packages/qa. The seat makes the landing call.
  • Checks. At 02:19Z this head read 60 success, 13 expected skip, 0 failed and 2 pending (PR-body guards, re-run on the body sync). They must be green before landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9a03d077f4d953d470db9eda05f676621ea9b911
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-read-judged-as-absent.ts, packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts + packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/rest/src/meta-item-history-routes.ts, packages/runtime/src/domains/meta.ts, packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, packages/rest/src/meta-disabled-package-doors.test.ts
Security-touching: no
Rule-change-verified: none

Delta round over ef33907b (record 7265093897, PASS with S1, S2, S3). The new head is a descendant of the reviewed one by four commits (e10d0b2, 65e2140, db57853, 9a03d07) touching four files, +41 -8. Read: the compare diff, the four files at the new head, the PR body at the new head, card #38659 (title and state), and the check-runs on the new head. Nothing built or run.

Prior findings:

  • S1: closed. The entry's header comment and reason, the changeset row and the PR body now say the in-process layered read served the holder registered last, as the card's reading, the code comment and the pin say.
  • S2: closed. See ④.
  • S3: closed. The entry's acceptanceCriteria and the changeset row name the known deviation (the plain read serves the entry under a holder's envelope), the entry's header comment and the changeset name the carrier metadata bare read: the environment's own item is served under a package holder's envelope (_packageId, _provenance: package, lock full), so the read and the write disagree on who owns it #38659, and that card is open with a title that states the defect. The printed guidance names no card number, as the CLI pin requires; the header comment carries it.
  • N1: closed. The surface now says a package-less row counts once it is hydrated or saved into the registry's bare slot, and that a row only the store holds is no such entry, which is what refuseAmbiguousBareDocRead does.
  • N2: left as it was, accepted.

① Derived judgments

② Semver level

Unchanged in level: Clause-②: no (narrowing) on the PR body and the changeset, ! on the title, the BREAKING paragraph with one FROM and TO row per criterion, patch on @objectstack/metadata-protocol and @objectstack/spec, both entries named on the adr-0087: registered marker. The delta edits two changeset rows (the S1 word, the S3 deviation) and both agree with the code and the entry. The narrowing arm still holds; it is no wider than its ground except for the surface wording in S4 below, where the code's reach is one cell wider than the entry says.

③ Boundary flags

④ Design judgment

protocol-meta-item-face.ts: the restored guard matches, word for word, the sentence the jsdoc already carried ("Beside one bound package or none the read is left as it was") and the twin storedRowHoldersRefusal (holding.unbound with fewer than two candidates). The new CONTROL in meta-disabled-package-doors.test.ts builds exactly the S2 cell (the disabled package holds the name only in code, one enabled package's row, a package-less row), in both registration orders and with and without an environment item in the bare slot, and pins 404 on the plain read, /layers and /published; the PR body reports it red with the guard ablated. The pin is on RestServer only, which is enough for a guard inside the shared judgment. S2 holds closed.

19.doc-bare-read-environment-entry-first.ts: surface, reason and acceptance now agree with the code and with the measured FROM. The deviation sentence says "as it already did beside two or more holders", which the PR body backs with a measurement; it omits the lock full the PR body and the card title name, which the card carries.

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. 19.disabled-holder-package-less-row-bare-read-judged-as-absent.ts says the name is "held as stored rows by a disabled package and one or more enabled packages", and the jsdoc of servedRowHolderOf says "rows bound to two or more packages a disabled one among them". The code asks only anyDisabled over the registry's holders and the rows together. So with two enabled packages' rows, a package-less row, and a disabled package that holds the name in code alone (the holder form the new S2 CONTROL builds), the judgment runs and every bare door refuses naming the two enabled packages, where the prior head's parent returned at rows.unbound and left the read to save order. The new answer is the right one (it is the #33210 answer without the disabled holder), but a caller in that cell is moved by a BREAKING change the ledger does not list, and no pin covers it. Widen the surface and the jsdoc sentence to a disabled package that holds the name as a stored row or in code, and pin the two-enabled cell with a code-only disabled holder. Not measured here (read-only); read from the code.

Nit:

  • N3 — the changeset's deviation sentence names _packageId and _provenance but not the lock; the card does.

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: claude/project-thread-3bely6
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 2aa6a1c · 2026-11-30T03:12Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv
L1-a, the seat's L1 thread · 2026-11-30T03:13Z · delta review

席位核对

ACCEPT @ 2aa6a1c4bf7496b84d91d65b0b6ce679d8a90bc8 (#34452 group, PR1). This is the delta 9a03d077..2aa6a1c4, one commit, and it answers S4 and N3 of L2 delta 7266936020. ACCEPT 7266927806 carries over to this head. The L2 delta review of S4 is the reviewer's who wrote 7266936020.

  • No code changes. In protocol-meta-item-face.ts, only the jsdoc of servedRowHolderOf changes. So S4 is a reading of the existing reach (the code asks anyDisabled over the registry's holders and the rows together), and the text now matches it.
  • S4, the text.
  • S4, the pin. The new it.each (meta-disabled-package-doors.test.ts:1083) builds that cell: the disabled PKG registers pl_s4_dash in code only, OTHER_PKG and THIRD_PKG lay rows, and a package-less row is laid. It runs both registration orders × two save orders. All three bare doors must answer 409 RESOURCE_CONFLICT, naming both enabled packages, with candidatesOf exactly [OTHER_PKG, THIRD_PKG] on the plain read and on /layers.
    • The zone reports that swapping the face back to merge-base 7213177e turns those 4 red (all 404), which is the FROM the text now states, and HEAD turns them green. I did not re-run them. The delta adds a pin and text only, and the pin reads as stated.
  • N3. The deviation sentence now names lock full beside _packageId and _provenance, as the card does.
  • Dogfood: the battery at ef33907bdf still covers this head, in my judgement. The delta since my last judgement adds a rest test, jsdoc and entry or changeset text, and no runtime code. The seat makes the landing call.
  • Checks. The zone read 60 success, 11 skipped and 0 failed at this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2aa6a1c4bf7496b84d91d65b0b6ce679d8a90bc8
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-read-judged-as-absent.ts, packages/spec/src/migrations/entries/semantic/19.doc-bare-read-environment-entry-first.ts + packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/rest/src/meta-item-history-routes.ts, packages/runtime/src/domains/meta.ts, packages/runtime/src/domains/meta-disabled-holder-artifact-door.test.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, packages/rest/src/meta-disabled-package-doors.test.ts
Security-touching: no
Rule-change-verified: none

Delta round over 9a03d077 (record 7266936020, PASS with S4 open and nit N3). The new head is a descendant of the reviewed one by one commit (2aa6a1c) touching four files, +42 -9. Read: the compare diff, the PR body at the new head, and the check-runs on the new head. Nothing built or run.

Prior findings:

  • S1, S2, S3: closed in the previous round; the delta touches none of their fixes.
  • S4: closed. See ④.
  • N3: closed. The changeset's deviation sentence now names lock full beside _packageId and _provenance.
  • N1: closed earlier. N2: accepted as it was.

① Derived judgments

② Semver level

Unchanged: Clause-②: no (narrowing) on the PR body and the changeset, ! on the title, the BREAKING paragraph, patch on @objectstack/metadata-protocol and @objectstack/spec, both entries on the adr-0087: registered marker. The #34440 changeset row now carries the code-only FROM (404). The narrowing arm holds and, with S4 closed, is no wider than its declared ground: every cell the code moves that I could find by reading is now named by an entry and held by a pin. A 404 becoming a 409 is one refusal replaced by another on a read; it widens no accept set.

③ Boundary flags

④ Design judgment

Reconciling the FROM. My record 7266936020 said that in the S4 cell the parent "returned at rows.unbound and left the read to save order". The first half was right and is what the code on main does: the judgment returned undefined there. The second half was my inference from the stored-row cells and was wrong; I marked it "not measured". The card thread measured the doors with the face's judgment as on main: 404 on the plain read, /layers and /published, both registration orders and both save orders. The measurement is right and my inference was not: "left as it was" names what the judgment returns, not what the door answers, and with the disabled package as the name's only code shipper the read that follows withholds the name. The S2 CONTROL already in this PR corroborates it: the same holder form beside one bound package, which this PR leaves to the same downstream read, is pinned at 404 on all three doors. So FROM 404, TO 409 is what the code gives, and the entry is right to write it that way.

19.disabled-holder-package-less-row-bare-read-judged-as-absent.ts: the surface now names both holder forms (a stored row; or code alone beside the stored rows of two or more enabled packages), and limits the code-only form to two or more enabled packages, which is exactly where the code moves it: beside one bound package the S2 guard returns first and the answer stays main's. The header comment and reason carry the measured 404. This agrees with anyDisabled in servedRowHolderOf, which unites the registry's holders with the rows' bindings. S4 holds closed.

protocol-meta-item-face.ts jsdoc: "with a disabled holder of the name (its own stored row among them, or the name in its code alone)" now matches the code sentence for sentence.

meta-disabled-package-doors.test.ts: four new pins build the S4 cell on RestServer (both registration orders, two save orders) and assert 409 RESOURCE_CONFLICT on the plain read, /layers and /published, details.candidates equal to the two enabled packages on the plain read and /layers, and no trace of the disabled package or the package-less row. The PR body reports them 4 of 4 red against the merge-base copy of the judgment. Enough for a cell inside the shared judgment; the execution read and the runtime transport are not pinned for this holder form, which I accept because they read the same judgment the 24 stored-row pins already hold on both.

Nit:

  • N4 — the entry's acceptanceCriteria still reads "with one enabled holder every read that names no package answers that holder's row" without saying it is the stored-row form; the surface already excludes the code-only form beside one enabled package (pinned 404 by the S2 CONTROL), so the two read together are right. Left as an accepted deviation.

No must-fix, no should-fix. S4: closed. N3: closed.

Implemented-by: claude/project-thread-3bely6
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot removed the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 2aa6a1c4bf7496b84d91d65b0b6ce679d8a90bc8 · Tier H (declared narrowing, maintainer-landed leg) · Fixes #34452 #34190 #34440

  1. Shape: PR 1 of the 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 fold group (the read doors); one Clause-② arm (narrowing); PR 2 (write doors and hydration) follows after merge on its own branch.
  2. Premise measured: the card thread re-measured every cell on origin/main before code, per 6957994370; the ruled side is 6942962369 (「全部按推荐」: the environment's own item answers first).
  3. Gates: all check-runs on this head concluded green or expected skips before this request.
  4. Accepted deviations: N2 and N4 of the contract records.
  5. Out of scope and where it went: the bare-read envelope deviation → metadata bare read: the environment's own item is served under a package holder's envelope (_packageId, _provenance: package, lock full), so the read and the write disagree on who owns it #38659; the disabled-holder 404 family (the S2 cell and its sibling) → PR 2's report, then a card from this seat.
  6. Landing: L1 ACCEPT 7261229697, deltas through 7267702453 (this head); L2 PASS 7265093897, deltas 7266936020 and 7267731245 (this head) with S1–S4 closed. Lands after os-zhuang approves.

ACCEPT → PR #38640 comment 7267702453 · Contract review → comment 7267731245

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 30, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 30, 2026 07:23
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46373393491 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/package-move-in.dogfood.test.ts > dogfood: POST /packages/:id/move-in, the move door (#38150) > A3 (#37468) and the set rule: flow, dataset and report
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected 404 to be 200 // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 7 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 9670e99 Nov 30, 2026
84 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-3bely6 branch November 30, 2026 08:05
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 30, 2026
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment