Skip to content

fix(metadata-protocol)!: a bare save or delete counts the holders the bare read counts (ADR-0150 D3/D5) - #34324

Merged
objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/area-E1b-34144
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 12 commits into
mainfrom
claude/area-E1b-34144

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #34144
Part of #33955
Part of #34262

#33955 and #34262 are folded into this PR and are closed by the area on merge (seat ruling, 2026-11-16T13:57Z); they are Part of so the landing gate reads one delivered card, #34144.

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — a git grep of skills/ finds no text that teaches a bare save or delete of a name two enabled packages hold or only disabled packages hold

BREAKING (declared narrowing). Every moved answer goes from accepted (or, for a bare delete or draft discard over no stored row, the no-op receipt) to refused, and nothing that was refused is now accepted. A bare save in these states that a later gate already refused now answers this 409 first: refused to refused. The changeset carries the ADR-0087 marker (not-required (no-migration-prescription)).

Follows #33995 (merged). This branch has origin/main with #33995 merged in, and flips #33995's review#2 S3 save pin (packages/objectql/src/disabled-holder-packageless-row-doors.test.ts) to this refusal. The pin's delete half, its shipped-member 403 NOT_OVERRIDABLE CONTROL and its re-enable CONTROL are unchanged. The FROM and TO are in the table below and in the changeset.

维护者速读

  • 改了什么:不带包名保存或删除一个名字时,现在按读取的规则数持有者。两个以上启用中的包持有时,拒绝(409)并列出这些包。只有停用的包持有时,拒绝并提示用 ?package=,不点名任何包。这两种状态下,没有存储行时的删除和草稿丢弃也从“无操作成功”改为拒绝。
  • 为什么改:读取已经这样回答(409 列出两个包,或 404),保存却返回 200,悄悄改写某个包的行,或写出一条读不到的行。这违反 ADR-0150 红线 2(有歧义就报告,不猜),也违反裁决 A。
  • 风险与回滚:这是声明过的收窄,原来能保存的现在被拒绝。只影响两种状态,带 ?package= 的写入和环境自己的条目不变。回滚就是撤销这个 PR,不涉及存储行。
  • 先看:packages/metadata-protocol/src/protocol-save.ts 文件末尾的 packagelessHolderRefusal 和两处调用;protocol-diff-delete-load.ts 里删除的那一处调用;packages/objectql/src/disabled-holder-packageless-row-doors.test.ts 里翻转的 S3 保存断言。
  • 两分钟验证:pnpm --filter @objectstack/metadata-protocol build && cd packages/runtime && pnpm exec vitest run --project local src/domains/meta-disabled-holder-served-stack.test.ts,预期 1 个文件、全部用例通过。
  • 需要你做的:无,席位落地。

What changes

A write that names no package (PUT / DELETE /meta/:type/:name with no ?package=, saveMetaItem / deleteMetaItem with no packageId) took its address from the stored rows' bindings alone (packagelessAddress), while the bare read counts the name's holders. One new judgment, packagelessHolderRefusal in protocol-save.ts, runs after the existing judgments (servedPackagelessSaveAddress and the two-bindings refusal), so neither of their answers moves. It is asked by the publish-mode bare save, the draft-mode bare save, and the bare delete (protocol-diff-delete-load.ts, the delete half only).

Commits: one per card, then the #33995 follow-up. #34144 is the disabled-only arm, its pins and the flipped #33889 CONTROL. #33955 is the resolver arm and its pins. #34262 is a pin only: the #34144 arm already covers that cell. After merging origin/main (with #33995), one commit flips #33995's S3 save pin and one adds that FROM and TO to the changeset. Then three review#1 commits: the jsdoc gap and the shared recogniser in the resolver catch (N1), the no-row delete pins (S2, N2), and the changeset corrections (S2, N3, N4). At takeover, one commit (e378b62) adds a sentence to this PR's changeset that supersedes the stale line of .changeset/33385-disabled-holders-env-404.md (prose only).

Door (no package named) State FROM TO
publish save only disabled D holds, D's row alone 200, D's row updated 409 RESOURCE_CONFLICT, ?package= remedy, no package named; D's row byte-unchanged
publish save only disabled D ships it, no stored row 200, package-unbound row written (every read withholds it) 409 as above, nothing written
publish save only disabled D ships it, D's row 200, D's row updated 409 as above, row unchanged
draft save only disabled D ships it, no stored row 200, package-unbound draft written 409 as above, nothing written
delete only disabled D ships it, D's row 200, D's row removed 409 as above, row stays
publish save, email_template every holder disabled, a member D never ships (#34262) and the member it ships 200, package-unbound row stored and withheld 409 as above, nothing stored
publish save, email_template (#33995's S3 pin, objectql engine) the package disabled, fr-FR, a member it never ships success: true, state: 'active', package-less row stored, hidden until re-enable 409 RESOURCE_CONFLICT, ?package= remedy, naming no package, no row stored
publish save two enabled packages ship it, no stored row 200, package-unbound row written 409 naming both, nothing written
publish save two enabled ship it, one package's row (either) 200, that row updated 409 naming both, row unchanged
draft save two enabled ship it, no stored row 200, package-unbound draft written 409 naming both
delete two enabled ship it, E's row 200, E's row removed 409 naming both, row stays
delete and draft discard (state: 'draft') two enabled ship it, no stored row the no-op receipt (success: true, reset: false) 409 naming both
delete and draft discard (state: 'draft') only disabled D ships it, no stored row the no-op receipt (success: true, reset: false) 409 with the ?package= remedy, no package named

Unchanged, pinned as CONTROLs: a row of each of two enabled holders (409 before and after); ?package=D and ?package=E saves and deletes; a name one enabled package holds; every #32605 cell (an enabled beside a disabled holder); a name no package holds; a package-unbound row at the address (the save edits it and the delete removes it); and every bare write once the package is enabled again.

Tests

Readings, head 6401aad (origin/main 43dd565 merged in)
  • meta-disabled-holder-served-stack.test.ts at 504dd1f after building metadata-protocol: Test Files 1 passed (1), Tests 128 passed (128).
  • pnpm --filter @objectstack/metadata-protocol test at 504dd1f: Test Files 344 passed, 9 skipped (353); Tests 22946 passed, 45 skipped.
  • pnpm --filter @objectstack/metadata-protocol typecheck and pnpm --filter @objectstack/runtime typecheck at 504dd1f: exit 0, exit 0.
  • After the merge, at 6401aad, with a fresh install and the runtime, rest and dogfood closure built under the verify lock: pnpm --filter @objectstack/runtime test gave Test Files 607 passed (607), Tests 11144 passed, 19 skipped. pnpm --filter @objectstack/rest test gave Test Files 413 passed (413), Tests 8491 passed, 350 skipped.
  • Dogfood battery at 6401aad (pnpm --filter @objectstack/dogfood test, no shard, no path): VERDICT command-exit 0. Test Files 470 passed, 3 skipped (473); Tests 3985 passed, 42 skipped. It was not re-run on the later heads; the Dogfood Regression Gate in CI carries it.
Ablations (one per arm, each rebuilt into dist and checked there)
  • S2, at e378b62 (this round). The no-row refusal of the bare delete and draft discard was ablated at its call site in protocol-diff-delete-load.ts. The anchor if (request.packageId == null) { was replaced so the holder judgment runs only when a row is addressed (... && rowsAtAddress.candidates.length > 0 && String('ABLATION_S2_NOROW') !== ''). ablation-replace reported anchor 1 to 0, blob 0efc25873118 to 02c67f22e2df. ablation-dist-preflight found the marker in 2 built files (dist/index.cjs, dist/index.js), exit 0. Result: Tests 8 failed, 128 passed (136). The 8 are exactly the two S2 pins (d_norow_dash, two_norow_dash) in all four transport and order cases. Every other pin, the row-present delete pins included, stayed green. Restore: blob equal to HEAD (0efc25873118), git diff HEAD empty. After the rebuild, --absent exit 0 (marker absent from all 24 built files, tree clean), and the file passed again: Tests 136 passed (136).

  • Disabled-only arm: the anchor return disabledHoldersOnlyRefusal(...) was replaced with a guarded copy carrying the marker ABLATION_34144_NEVER. ablation-replace reported anchor 1 to 0, blob 38624bc72dbf to 006312afca07. ablation-dist-preflight found the marker present in 2 built files. Result: Tests 20 failed, 108 passed. The 20 are exactly the five ruling-A pins in all four transport and order cases, including the metadata-protocol: with every holder of a name disabled, a package-less save at a member the holder never ships is accepted and stored, then hidden from every read and list #34262 pin. Every CONTROL stayed green.

  • Enabled-holders arm: the held.length > 1 refusal was guarded with the marker ABLATION_33955_NEVER, giving blob 38624bc72dbf to fbc5c93f2c63, with the marker present in 2 built files. Result: Tests 16 failed, 112 passed. The 16 are the three new metadata-protocol: a bare save of a name two ENABLED packages ship answers 200 (writes a package-unbound row or updates one package's row) while the bare read refuses 409 naming both #33955 rows plus the draft and delete pin, in all four cases. The "row of each" CONTROL stayed green, refused by the stored rows' own refusal as before.

  • Restore: git diff HEAD was empty after both. After the rebuild, ablation-dist-preflight --absent passed for both markers (exit 0, exit 0).

  • fix(metadata-protocol,rest,runtime)!: a name only disabled packages hold answers 404 at _env, and its package-less customization is withheld (ADR-0150 D3, D4) #33995's S3 save pin (objectql), at 0deac3e: the disabled-only anchor replaced with return void 'ABLATE_S3_34144', blob 38624bc72dbf to 0a2d9ce3926e, the marker present in 2 built files. Result: Tests 1 failed, 4 passed; the flipped pin failed with expected [ undefined, undefined ] to deeply equal [ 409, 'RESOURCE_CONFLICT' ] (the save accepted). Restored (blob equal to HEAD, git diff HEAD empty); rebuilt, --absent exit 0. A first run used a comment marker the build strips, so its dist proof failed (marker absent) and it is not counted.

Acceptance notes

Follow-ups

Verification

Verified at head e378b62 (the review#1 round at 7b1880f plus the changeset sentence; no code change since 7b1880f). This takeover round ran on a fresh worktree from origin/claude/area-E1b-34144, with the runtime, rest, metadata-protocol and dogfood closure built under the verify lock (VERDICT command-exit 0). origin/main was not merged in that round. The area then merged origin/main cfcba539 by update-branch (K was 31): head 18533305, the PR's patch-id unchanged; the dogfood battery is re-run on that head and recorded on #34144.

Readings at e378b62
  • meta-disabled-holder-served-stack.test.ts (runtime, metadata-protocol rebuilt): Test Files 1 passed (1), Tests 136 passed (136). That is 128 before plus the two S2 pins in four cases.
  • pnpm --filter @objectstack/metadata-protocol test: Test Files 345 passed, 9 skipped (354); Tests 22956 passed, 45 skipped.
  • pnpm --filter @objectstack/objectql test (the flipped fix(metadata-protocol,rest,runtime)!: a name only disabled packages hold answers 404 at _env, and its package-less customization is withheld (ADR-0150 D3, D4) #33995 pin's package): Test Files 600 passed (600); Tests 13387 passed.
  • pnpm --filter @objectstack/runtime test: Test Files 607 passed (607); Tests 11206 passed, 19 skipped.
  • pnpm --filter @objectstack/rest test: Test Files 413 passed (413); Tests 8552 passed, 350 skipped.
  • typecheck of metadata-protocol, runtime, rest and objectql: VERDICT command-exit 0 for each run.
  • Dogfood battery, once on this head (pnpm --filter @objectstack/dogfood test, no shard, no path): VERDICT command-exit 0; Test Files 473 passed, 3 skipped (476); Tests 4003 passed, 42 skipped; no failures.
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 71 families from this diff (5 paths). All 71 were run, each recorded with its exit code. --ran: "71 derived famil(ies) accounted for — 71 run, 0 NOT-MEASURED". Three first ran with exit 3 and were re-run to exit 0: check-plugin-teardown-shape --self-test (its pinned control commit was fetched), check:type-check-debt (the lock queue timed out; the re-run re-measured OK), and check:dual-build-cjs-loads (after that full build: 123 entries across 72 packages load). The derivation warned that this tree is behind origin/main and that 2 of its gate files changed there (check-skills-token-ratchet.mjs, label-write.mjs); neither is a family this diff derives.
  • CI on e378b62: 35 success, 16 skipped, none failed. That includes Lint & Repo Gates, TypeScript Type Check, Test Core (8/8), Build Core, Governed Surface Queue Guard, Check Changeset, Dogfood Regression Gate and Live E2E UI.
  • Overlap with fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238 is unchanged: this PR lands first, and fix(metadata-protocol)!: a package-less action save on an object no package binds the name to writes the environment's own action #34238 reconciles protocol-save.ts when it merges main.

Earlier rounds' readings:

Local gates and overlap

Generated by Claude Code

…d packages hold is refused, naming no package

A disabled package holds no name (ADR-0150 D3), so the bare read of a name
only disabled packages hold answers 404. The bare publish save, the bare
draft save and the bare delete now answer it the same way: 409
RESOURCE_CONFLICT with the ?package= remedy, naming no package (ruling A).
They edited the disabled package's row, wrote a package-unbound row every
read withheld, or removed the disabled package's row. A write naming the
package, the environment's own item and a package-unbound row at the
address are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…packages hold is refused naming both

The bare read of a name two or more enabled packages hold refuses 409
naming them (the package-scoped resolver, ADR-0150 D3/D5). The bare
publish save, draft save and delete took their address from the stored
rows alone: over no row they wrote a package-unbound row, over one
package's row they updated or removed it. They now ask the same resolver
and refuse naming the holders (red line 2: ambiguity is reported, never
guessed). The environment's own item, a package-unbound row at the
address, one holder and a write naming a package are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
…hips is refused like the rest of its name

With every holder of a bundled name disabled, a bare save at a member the
holder never ships was accepted and stored, then withheld by every read
until the package was enabled again. It is a bare save of a name only
disabled packages hold, so it is refused naming no package with the
?package= remedy (ruling A). Pinned on a booted kernel, with re-enable as
the control.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@github-actions github-actions Bot added size/m 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 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/metadata-protocol, touching 12 documentable anchor(s).

16 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json cfcba539205a2b11e363168ccc2647e74addac0d.

⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 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; 123 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 — 10 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 cfcba539205a2b11e363168ccc2647e74addac0d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from d4da3544c5261d5ecd877a60daeda0bf2d6ff6f6 — the merge of head 18533305469c6cb51551b62f6c2b14cf6ea5d939 into base cfcba539205a2b11e363168ccc2647e74addac0d, 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 d4da3544c5261d5ecd877a60daeda0bf2d6ff6f6 && git checkout d4da3544c5261d5ecd877a60daeda0bf2d6ff6f6
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin cfcba539205a2b11e363168ccc2647e74addac0d 18533305469c6cb51551b62f6c2b14cf6ea5d939 && git checkout -B drift-repro cfcba539205a2b11e363168ccc2647e74addac0d && git merge --no-ff 18533305469c6cb51551b62f6c2b14cf6ea5d939

node scripts/docs-audit/affected-docs.mjs --json cfcba539205a2b11e363168ccc2647e74addac0d

⚠️ 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 cfcba539205a2b11e363168ccc2647e74addac0d → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… refusal

A package-less save at a member the disabled package never ships is now
refused 409 RESOURCE_CONFLICT with the ?package= remedy, naming no
package, and stores no row. Re-enabled, the same save is kept (CONTROL).
The shipped-member NOT_OVERRIDABLE refusal and the delete of the stored
package-less row while disabled are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-mickey · session_01ASNY8Ywba8ySbMdWvra2vS

Contract-review-claim: session_01ASNY8Ywba8ySbMdWvra2vS · head 07a5f78 · 2026-11-16T08:24Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-mickey · session_01ASNY8Ywba8ySbMdWvra2vS

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 07a5f786ce8ee8da1fe3e3268690b3848848266e
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts + packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-environment-rows.ts, packages/objectql/src/registry.ts, packages/objectql/src/package-scoped-resolver.ts, packages/objectql/src/package-scoped-read.ts, packages/core/src/package-scoped-resolution.ts, packages/metadata-core/src/customization-pair-lookup.ts (cited code, read on main, never reviewed); .changeset/34144-bare-save-holder-judgment.md judged for ② only
Security-touching: no

Face: narrowing (Clause-②: no (narrowing) on the PR body and the changeset). Read: the three cards with every comment, the PR body, file list, comments and net diff against main, the 51 check-runs on this head, AGENTS.md and ADR-0150 on main, and the cited code. Nothing was built or run; every judgment below is a reading of the tree.

① Derived judgments

The diff adds one judgment, packagelessHolderRefusal, at three call sites, each placed after the existing refusals. It only returns a refusal or undefined, so no answer that was refused becomes accepted. RIGHT.

Moved, accepted to refused, as the tree reads:

  • Two or more enabled holders, publish save, over no row or over one package's row: 200 to 409 RESOURCE_CONFLICT naming the enabled holders. RIGHT; it is the resolver's own refusal (resolveItem naming no package), the call the bare read makes in protocol-meta-item-reads.ts.
  • Same state, draft save (?mode=draft): 200 to 409 naming them. RIGHT.
  • Same state, bare delete over one package's row: removed to 409 naming them, row stays. RIGHT.
  • Every holder disabled, publish save over the disabled package's row, over no row, and at a bundled member the holder never ships (metadata-protocol: with every holder of a name disabled, a package-less save at a member the holder never ships is accepted and stored, then hidden from every read and list #34262): 200 to 409 with the ?package= remedy, naming no package. RIGHT; the message is built from the verb, type and name alone.
  • Same state, draft save and bare delete over the disabled package's row: 200 to 409 naming none. RIGHT.
  • Row bound to a customization pair of a disabled holder: counted as that holder, as the read face's isHoldersPairRow withholds it. RIGHT.

Not moved, confirmed by reading:

Named WRONG or incomplete:

  • The changeset says the bare delete "used to remove the one package's row". The same call also moves the bare delete and the bare draft discard over NO stored row. That path answered success: true, reset: false (the no-op receipt, after the registry self-heal) and now answers 409 in both states. Undeclared and unpinned: S2.
  • "Every moved answer goes from accepted to refused" is not the whole motion. A bare save in these two states that a later gate refused (an invalid body, a read-only inherited package) now answers this 409 first. Still refused, and the same rank as the existing two-bindings refusal: nit N4.

② Semver level

  • Level: '@objectstack/metadata-protocol': patch. AGENTS.md Post-Task 3: the level follows the Metadata-protocol: kind alone, none takes patch, and a non-protocol breaking change ships patch with its banner and disposition. Correct.
  • Metadata-protocol: none: no key, accepted value or metadata type changes; the same item is still writable by naming its package. Correct.
  • Clause-②: no (narrowing): line-initial in the PR body and the changeset, a legal pairing, BREAKING. The BREAKING banner is in both.
  • !: on the PR title and the changeset summary line.
  • ADR-0087 marker: exactly one, not-required (no-migration-prescription). The reason holds: no schema key, export or stored row changes.
  • Lint & Repo Gates, Check Changeset and PR-body guards are success on this head.

③ Boundary flags

④ Design judgment

The narrowing makes the spec's own refusal real; it takes no declared capability away. ADR-0150 D5 on main: a bare address resolves while the name has one holder and answers 409 otherwise, "never a silent pick", with no new code minted. D3: a caller with no package gets the environment's item first, else the unique holder, else the refusal. The save and delete now give that answer through the read's own resolver call, with the existing RESOURCE_CONFLICT. The disabled-only arm rests on ruling A on #34144 and the registry's served-holder rule (#32183), not on ADR text: N3.

Does the write door count holders as the bare read does, cell by cell:

Leak check on the disabled-only refusal: it names no package. disabledHoldersOnlyRefusal takes only the verb, the shown type and the name; the delete rethrows it as it is. It does disclose that some disabled package holds the name (409 where a free name saves), which is inherent to ruling A.

S1 (should-fix) — one cell of #33955 survives on the publish save, by reading. State: two enabled packages E and F hold the name, and the stored rows are bound to a disabled package and to exactly one enabled package (E). servedPackagelessSaveAddress reads no served address, sees the disabled binding, keeps the one enabled binding and returns E. The new judgment sits in the other branch and is never asked. The save writes E's row (200); the bare read refuses 409 naming E and F. Unchanged from main and outside the cards' measured states, so not a regression. Either ask the resolver arm before the enabled-bindings pick, or file the follow-up card with the mixed delete and draft cells before Fixes #33955 closes the card. Until then the helper's jsdoc ("answer the name as the bare read does") overclaims.

S2 (should-fix) — declare and pin the no-row delete. A bare delete or bare draft discard over no stored row moves from the no-op success receipt to 409 in both states. Add the FROM-TO to the changeset and one pin per state, or guard the delete call on a row being addressed.

S3 (should-fix) — file the decision card for the package-unbound-row cells (③): beside a disabled-only name (read 404, save 200 hidden) and beside two enabled holders (read 409, save 200).

No must-fix.

Implemented-by: claude/area-E1b-34144
Reviewed-by: session_01ASNY8Ywba8ySbMdWvra2vS

VERDICT: PASS

…rough the shared recogniser

The jsdoc of servedPackagelessSaveAddress and packagelessHolderRefusal no
longer claims every cell answers as the bare read does: it names the mixed
enabled-plus-disabled-binding gap left to a follow-up card, and says the
no-row bare delete and draft discard are refused too. The resolver catch
reads the refusal through packageScopedRefusalOf, so a copied error class
is still recognised.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
In both states (two enabled holders; only disabled holders) a bare delete
and a bare draft discard over no stored row are refused, where they
answered the no-op receipt. Naming the package answers the receipt as
before (CONTROL). The disabled-only delete pins now also assert the
?package= remedy and that no package is named.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Hand-off (maintainer order: push and hand off; area S5 clocks out)

State. review#1's contract record 6911434197 PASSed at 07a5f786ce with should-fix items S1 to S3 and nits N1 to N5. The final round is pushed:

Not measured at this head. The commits after 07a5f786ce were pushed before their local run:

  • the runtime pin-file run and the S2 ablations (prepared script, never run);
  • the metadata-protocol, runtime and rest suites and the typecheck;
  • 19 of 71 derived gate families;
  • the dogfood battery (last reading at 6401aad2f3: 470 files and 3985 tests passed).

CI on this head is the first reading.

Owed reviews.

  • L2 delta from review#1 (os-mickey), on the final head. S2 adds a declared narrowing, and only the original reviewer closes a should-fix.
  • L1 delta from review-c.
  • Then the landing sequence.

Open for the next seat.

…sabled-holders note

Claude-Session: https://claude.ai/code/session_01FEkQ5obaLbqgzRUR9xXfft
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-mickey · session_01ASNY8Ywba8ySbMdWvra2vS

Contract-review-claim: session_01ASNY8Ywba8ySbMdWvra2vS · head e378b62 · 2026-11-16T11:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-mickey · session_01ASNY8Ywba8ySbMdWvra2vS

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e378b62f30969c2b0466666b8572af1d686f6aec
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts + packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-environment-rows.ts, packages/objectql/src/registry.ts (cited code, read on main and at this head, never reviewed); .changeset/34144-bare-save-holder-judgment.md judged for ② only
Security-touching: no

Face: narrowing (Clause-②: no (narrowing) on the PR body and the changeset). This is the delta record after PASS 6911434197 at 07a5f786ce8ee8da1fe3e3268690b3848848266e. Read: the three cards with every comment, follow-up cards #34346 and #34348, the PR body, file list, comments, the net diff against main, the round's delta 07a5f786..e378b62f, the 51 check-runs on this head, AGENTS.md and ADR-0150 on main, and the cited code. Nothing was built or run; every judgment is a reading of the tree.

① Derived judgments

The round's delta is four commits over four files. By reading, no answer moves relative to 07a5f786:

  • protocol-save.ts: the resolver catch in packagelessHolderRefusal now reads the refusal through packageScopedRefusalOf (the read's own recogniser, exported from protocol-meta-item-reads.ts) in place of instanceof alone. Same answer for the class instance. A copied class of the same shape is now recognised and restated as the write's refusal, where before it was rethrown as the resolver's 409: refused to refused. Anything else is still rethrown. RIGHT.
  • protocol-save.ts and protocol-diff-delete-load.ts: otherwise jsdoc and comments only. The two "Known gap" paragraphs name the surviving mixed cells, and the helper's claim is narrowed to "in the two states below".
  • Test file: two new pins and one firmer assertion helper. No harness behaviour changes.
  • Changeset: wording only (②).

The moved answers of the whole PR, as the tree reads on this head, are the earlier record's list plus the one it found undeclared, now declared:

  • A bare delete or bare draft discard over NO stored row, in both states: the no-op receipt (success: true, reset: false) to 409 RESOURCE_CONFLICT. Two enabled holders: naming both. Only disabled holders: the ?package= remedy, naming none. RIGHT. The delete call site asks the judgment whenever no package is named, before the row probe, and the changeset and the PR table now say so.

Not moved, re-confirmed on this head:

  • Every call site is still guarded on no package named.
  • address.unbound and getEnvironmentScopedItem still return before either arm.
  • A delete naming the package over no row is still the no-op receipt (pinned as CONTROL in both new pins).

main has not touched protocol-save.ts, protocol-diff-delete-load.ts or protocol-meta-item-reads.ts since the merge base 66f6638fa4, so the base brings no semantic drift into these doors.

② Semver level

  • Level '@objectstack/metadata-protocol': patch, Metadata-protocol: none, Clause-②: no (narrowing) line-initial in PR body and changeset, ! on title and summary, BREAKING banner in both, one ADR-0087 marker not-required (no-migration-prescription): unchanged and still correct (AGENTS.md Post-Task 3).
  • The changeset now declares the no-row delete and draft discard FROM-TO in both states.
  • It cites ruling A and the registry's served-holder rule (objectql + metadata-protocol + runtime: by-name doors judge a name's holders over the served list, so a disabled package neither refuses nor is named (ADR-0150 D3; #32101 F4 class) #32183) for "a disabled package holds no name", not ADR text.
  • It qualifies the 403 NOT_OVERRIDABLE line ("where the package door refuses it").
  • It lists the types not read by package and the save's refused-to-refused move under "Not moved".
  • It states that it supersedes the "accepted and kept, as before" line of .changeset/33385-disabled-holders-env-404.md (line 19 on main, left unedited): N8.
  • Check Changeset, Lint & Repo Gates and PR-body guards are success on this head.

③ Boundary flags

④ Design judgment

The narrowing still makes the spec's own refusal real and takes no declared capability away. ADR-0150 D5 on main: an ambiguous bare address answers 409, "never a silent pick", with no new code. D3: the environment's item first, else the unique holder, else the refusal. Refusing the no-row delete and draft discard is consistent with that: over no row the address is as ambiguous (two enabled holders) or as unheld (only disabled holders) as it is for the save, and the write named by ?package= still answers the receipt. The disabled-only refusal still takes only the verb, the shown type and the name, so it names no package; the new helper expectDeleteRefusedNamingNone now pins that on the delete.

Earlier items against this head:

S1: closed.
S2: closed.
S3: closed.
N1: closed.
N2: closed.
N3: closed.
N4: closed.
N5: kept.

No must-fix, no should-fix.

N6 (nit) — #34346's acceptance names only the state with two enabled holders and a disabled binding. Its own Read section, and the jsdoc of packagelessHolderRefusal, also describe the draft save and delete with ONE enabled and one disabled holder (the disabled holder's row written or removed while the read serves the enabled one). CONTROL 2 of that card ("one enabled holder plus D's row unchanged") could be read as pinning it. Add the cell to the card's acceptance. Card text, not this tree.

N7 (nit) — the two no-row pins were pushed without a local run or an ablation (the PR body says so). CI on this head reads their TO; the FROM is by reading only. The pins also go through the protocol only, as the other delete pins do.

N8 (nit) — two unreleased notes of one release will contradict each other on the never-shipped-member save: .changeset/33385-disabled-holders-env-404.md line 19 says "accepted and kept, as before", and this changeset says it supersedes that line. The reader of the release notes gets both sentences. Correcting the older line is the cleaner end state, in this PR if the seat widens the file surface, or at release assembly.

N9 (nit) — two small residues by reading, neither pinned nor declared. (a) A bare no-row delete of an origin-gated code-defined item in these two states now answers this 409 before the origin-gated refusal that answered it; the changeset's refused-to-refused line names the save only. (b) The draft discard judges the draft rows alone, while the draft save judges the active rows and the drafts. With a package-unbound ACTIVE row the registry does not hold as the environment's item, and no draft, the draft save is left alone and the discard is refused where it answered the receipt. This is the same package-unbound class #34348 decides.

Implemented-by: claude/area-E1b-34144
Reviewed-by: session_01ASNY8Ywba8ySbMdWvra2vS

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft

Final head declared · PR #34324 (Fixes #34144, folds #33955 and #34262) · area o1-D · 2026-11-16T13:51Z
Head-sha: 18533305469c6cb51551b62f6c2b14cf6ea5d939

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-mickey · session_01ASNY8Ywba8ySbMdWvra2vS

Contract-review-claim: session_01ASNY8Ywba8ySbMdWvra2vS · head 1853330 · 2026-11-16T13:53Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn

席位核对 · PR #34324 · L1-b · 2026-11-16T13:55Z

Head-sha: 18533305469c6cb51551b62f6c2b14cf6ea5d939

L1 · ACCEPT(内容面;入队前另欠两项读数,见下) · area o1-D 定稿评论 6918352668 所钉 head;首读全 diff(5 文件,merge-base cfcba53920)。本 head 是 e378b62f 干净合入 main 的结果,patch-id 相同。

已过(本 L1 亲核):

入队前须具备(不需要改代码):

  1. dogfood battery 钉终 head:标题带 !,清单第 48 行要求 battery 钉 head、全量;label-write --land 只认 os-dev-report 中钉 head 的 dogfood。「同 patch-id 干净合 main 只保 ACCEPT」保住的是审核结论,不包括 battery。dev 报告 6918268962 的 battery 在 e378b62f,须在 18533305(或落地前最终 head)上再跑一次全量,写进报告。
  2. 门禁:本核对时,本 head 有 48 条 check-runs,其中 Test Core 1–8、Build Core、Live E2E UI、Type Check · workspace 等仍为 in_progress,尚无失败。入队前须全 check 绿。

nit:正文〈Verification〉仍写「origin/main was not merged in」,那是 e378b62f 时的情况,应补一句本 head 合入 main 的 sha 与 patch-id 相同。

落地条款:非受管路径,427 行,由区线程自行落地,须先于 #34238;review#1 的 delta PASS 6915421707 在 e378b62f,按同 patch-id 干净合入的规则继续有效。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#1 · os-mickey · session_01ASNY8Ywba8ySbMdWvra2vS

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 18533305469c6cb51551b62f6c2b14cf6ea5d939
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts + packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/objectql/src/registry.ts, packages/objectql/src/registry-package-addressing.ts, packages/objectql/src/package-scoped-read.ts (main-side files touching the same doors, read on main cfcba539 and at this head, never reviewed); .changeset/34144-bare-save-holder-judgment.md judged for ② only
Security-touching: no

Face: narrowing (Clause-②: no (narrowing) on the PR body and the changeset). This is the merge-only delta record after PASS 6915421707 at e378b62f30969c2b0466666b8572af1d686f6aec; the substance of the narrowing is judged there and is not re-judged here. Read: the PR body, file list and comments (final-head comment 6918352668 included), the net diff against main, the 31 commits main gained between the two merge bases, the 55 check-runs on this head, and the cited code. Nothing was built or run; every judgment is a reading of the tree.

① Derived judgments

The head is a clean update-branch merge and the PR's own patch is unchanged:

  • First-parent history: this head is one merge commit with parents e378b62f (first, the reviewed head) and cfcba539 (main). No other commit was added.
  • Its tree (7a46f497) equals the automatic merge tree of those two parents (git merge-tree --write-tree). No conflict, no hand edit.
  • The PR's net diff: against merge base 66f6638fa4 at the old head and against cfcba539 at this head, the file list is the same five paths and the whole-diff patch-id is the same (b19f3e61). Each of the five per-file patch-ids is equal too. The changeset and both test files are blob-identical at the two heads.

What main brought into the doors this PR narrows, and whether it moves a refusal, its wording, a pin or the changeset:

Nothing main merged interacts with this PR's narrowing. The moved answers and the unmoved CONTROLs are those of 6915421707.

② Semver level

Unchanged from 6915421707 and still correct: '@objectstack/metadata-protocol': patch, Metadata-protocol: none, Clause-②: no (narrowing), the BREAKING banner, and the one ADR-0087 marker. The changeset text is byte-identical. Its claims re-read against main cfcba539:

③ Boundary flags

④ Design judgment

The narrowing holds as judged in 6915421707: it makes ADR-0150 D3/D5's own refusal real at the bare write and takes no declared capability away. The merge changes neither the code that refuses nor the code it cites in a way that reaches these doors, so that judgment carries to this head unchanged.

N5: kept.

No must-fix, no should-fix.

Implemented-by: claude/area-E1b-34144
Reviewed-by: session_01ASNY8Ywba8ySbMdWvra2vS

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5obaLbqgzRUR9xXfft

Landing · PR #34324 (Fixes #34144, Part of #33955, Part of #34262) · area o1-D · 2026-11-16T17:01Z
Head-sha: 18533305469c6cb51551b62f6c2b14cf6ea5d939

Probe Reading
L2 CONTRACT_REVIEW_TIER merge-only delta PASS 6919013626 (review#1) at this head, on delta PASS 6915421707 at e378b62f; no must-fix or should-fix
L1 ACCEPT 6918432890 (L1-b) at this head
Dogfood battery 18533305 VERDICT command-exit 0, Tests 4009 passed, 42 skipped, no failures (report 6923199985 on #34144)
check-governed-merges --pr 34324 NOT governed, 427 changed lines
Check-runs at this head 37 success, 18 skipped, none failed or pending; mergeable_state: clean
K (first-parent commits on main since the merge base) 10 (< 15)

Lands before #34238 (both touch protocol-save.ts). On merge, Fixes #34144 closes the card; the area closes #33955 and #34262 (folded here; seat ruling) and clears pm:dispatched and lease:o1-D on all three.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 17:01
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 20bf222 Nov 16, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-E1b-34144 branch November 16, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant