Skip to content

fix(spec,metadata-protocol): name the row-held-base exception's whole cell in the packageId texts; the read-only-base rollback pin restores a real version - #38639

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-gfa4ej
Nov 30, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-gfa4ej

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Requested by Steve · project thread

Fixes #35529

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:没有。只改协议说明文字、三处代码注释和一条测试,服务端行为不变。
  • 为什么做:写操作跟随基座包上线后的契约复审留了三个小尾巴,说明文字漏了两种情形,注释还按旧规则写。
  • 出错会怎样:不改的话,读协议文档的人会以为代码里自带同名项时也能按名字写,或以为只有一个依赖包;改错只影响文字,可直接撤回。
  • 要你做什么:无。

What changes

Nits N4–N6 of the contract review on the parent change (record 7011078775, VERDICT PASS), each re-checked on origin/main 681fec2 before editing.

  • N4 — packages/spec/src/api/protocol.zod.ts. The row-held-base exception in the packageId descriptions of the save (active and draft), per-item publish, delete and history/diff/rollback requests (HISTORY_PACKAGE_SELECTOR_DESCRIPTION) now names the two conditions the texts left out (a name no package ships in code; one or more dependents) of the cell the server applies (rowHeldBaseJudgment in packages/metadata-protocol/src/protocol-meta-item-face.ts): a bundled type's member of a name no package ships in code, whose active rows a base package and one or more packages declaring it hold, with no package-unbound row beside them. The delete's consequence sentence no longer assumes one dependent: after the base's row goes, the next bare request is judged over the dependents' rows alone (one dependent: served next, a second bare delete removes it; two or more: judged by the same rule). The deletion is bounded to the base holding no other member, or the canonical member; at a named non-canonical member while the base holds another, the bare read still takes the base's address (404). The draft-save sentence refers back to the save's and is unchanged. Regenerated: packages/spec/docs/references/api/protocol.md, protocol.part-2.md, protocol.part-3.md (check:docs; the card's content/docs/references/api/protocol.mdx path no longer exists, the generated reference lives here now).
  • N5 — packages/metadata-protocol/src/protocol-door-requests.ts. The publish, rollback and delete request docblocks state the row-held-base exception beside the two-package 409, pointing at packagelessRowHeldBaseAddress. Comment-only.
  • N6 — packages/runtime/src/domains/meta-bare-write-doors-follow-base-34681.test.ts. The read-only-base pin seeds one sys_metadata_history version of the base's slot before the rollback, so toVersion: 1 is a real restore, and asserts that the bare rollback restored that version into the base's row with the dependent's row untouched, as ?package=BASE does.
  • Changeset .changeset/35529-spec-row-held-base-texts.md (@objectstack/spec patch: the describe text ships in the package; @objectstack/metadata-protocol patch: the three request types' comments ship in its dist/index.d.ts).

No schema shape, key, accepted value, error code or server answer moves.

Tests

  • meta-bare-write-doors-follow-base-34681.test.ts: 11/11 pass.
  • Ablation of N6 (seed line removed, test file only): the pin goes red, both bare and named rollback answering 404 VERSION_NOT_FOUND with the rows unchanged, which is what the pin measured before this change. Restored from the commit.
Ablation reading
"rollback":["VERSION_NOT_FOUND",404],"rolledRows":["active:com.qa.writeaddon:addon en","active:com.qa.writebase:base en"]
Tests  1 failed | 10 skipped (11)

Acceptance notes

  • None filed. The read-only (code) base's rows are restored, discarded and removed in process by a system caller, bare and named alike; this pin records that equality and judges nothing about it.

Verification

Read first: the delete sentence in protocol.zod.ts (the one text whose meaning moved), then the N6 hunk.

Two-minute check: pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-bare-write-doors-follow-base-34681.test.ts prints Tests 11 passed (11).

Local gates at 0ee1576
  • node scripts/pm/dispatch-gates.mjs --commands derived 94 commands; all 94 run, each exit 0; --ran reconciliation: 94 derived, 94 run, 0 NOT-MEASURED. Three first answers were not verdicts and were re-run: the teardown-shape self-test exit 3 (shallow clone; re-run after git fetch --unshallow), check:dual-build-cjs-loads exit 3 (no full build) and check:lean-entry-closure exit 1 (packages/spec/dist being rebuilt under it by a concurrent build), both re-run after turbo run build (123/123).
  • pnpm --filter @objectstack/spec check:generated: stale check:docs regenerated with --fix, re-check all 14 up to date.
  • pnpm --filter @objectstack/runtime typecheck: exit 0.
  • node scripts/pm/overlap-check.mjs: clean against origin/main and the two open PRs sharing a file.
  • Not run locally: @objectstack/metadata-protocol tests (comment-only diff there); CI carries the rest of the farm.

Generated by Claude Code

… and dependent cases in the packageId texts and door-request comments

Claude-Session: https://claude.ai/code/session_01ADHkmT5it85jhPpGaNANG7
Co-authored-by: Claude <noreply@anthropic.com>
…ck pin so it restores a real row

Claude-Session: https://claude.ai/code/session_01ADHkmT5it85jhPpGaNANG7
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s 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 2 package(s): @objectstack/metadata-protocol, @objectstack/spec, touching 7 documentable anchor(s). ⚠️ 3 changed file(s) yielded no anchor (packages/spec/docs/references/api/protocol.md, packages/spec/docs/references/api/protocol.part-2.md, packages/spec/docs/references/api/protocol.part-3.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/kernel/services-checklist.mdx (via DeleteMetaItemRequest (symbol, a top-level type))
What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/docs/references/api/protocol.md, packages/spec/docs/references/api/protocol.part-2.md, packages/spec/docs/references/api/protocol.part-3.md) — pages documenting those are invisible to this run
  • 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 — 183 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 f5da514b07bcbb402e3b17790465615ca726b3b3 → packageMentionDocs.

Which tree this was computed on

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

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

⚠️ 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 f5da514b07bcbb402e3b17790465615ca726b3b3 → 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-29T18:58Z · first review

席位核对

REWORK @ 0ee1576a85f1b7756ec7bb3bf969e2018fa52539 (card #35529, Fixes, zone o3-P). There is one must-fix, a changeset entry. Everything else reads true at this head. L2 is owed at CONTRACT_REVIEW_TIER for the packages/spec/src/api/protocol.zod.ts .describe() texts, which are the published-schema surface; the seat sends it separately.

Must-fix:

  1. @objectstack/metadata-protocol ships the changed comments and has no changeset entry. The package is published (files: [dist, README.md, CHANGELOG.md]). protocol-door-requests.ts exports the three edited request types (:184), and protocol.ts imports them, so their JSDoc reaches the built declarations. I built it at this head: dist/index.d.ts:2240-2243, :2296-2300 and :2329-2333 (and index.d.cts) carry the new "but where the read naming no package serves the row-held base" text. The checklist rule is that a touched private: false package whose shipped files change gets a changeset entry, whatever the size of the change. Add '@objectstack/metadata-protocol': patch to .changeset/35529-spec-row-held-base-texts.md, with one sentence saying the door-request type comments now state the row-held-base exception. @objectstack/runtime needs nothing: its only file is a *.test.ts, which tsconfig.json excludes and tsup does not enter.

Read at head (these stand for the delta):

  • The new texts match the server. rowHeldBaseJudgment (metadata-protocol/src/protocol-meta-item-face.ts:706+) applies "over a name no package ships", and storedRowHoldersRefusal returns early when any enabled package ships the name (:445). rowHeldBaseAddressOf serves the base when atMember.size >= 2, that is the base plus one or more dependents (:696). The five .describe() texts and HISTORY_PACKAGE_SELECTOR_DESCRIPTION now name both conditions. The delete text's "two or more are judged by the rule above" follows, since after the base row goes, the dependents' rows are judged by the same refusal.
  • The three door-request comments (N5) now carry the exception at publish, rollback and delete, and link packagelessRowHeldBaseAddress.
  • The generated reference is regenerated in packages/spec/docs/references/api/protocol*.md. The card's content/docs/references/api/protocol.mdx no longer exists at this head. That is not a defect.
  • N6 pin, run myself in a clean worktree at this head: meta-bare-write-doors-follow-base-34681.test.ts gives 11 passed (11). My ablation: removing the seeded layHistory row turns the read-only-base case red (1 failed | 10 passed), so the rollback now restores a real version into the base's row. Restored, tree clean.
  • Changeset (spec entry). Read sentence by sentence and true: both conditions, the delete-text change, "description text only".
  • Mechanical face. The only l1-face flag is the changeset item: metadata-protocol is judged above, and the runtime flag is a false positive. Checks at this head: 60 success, 11 expected skip, 0 failed.

Delta review after the fix: only the changeset file should move.

…, which ship in its declarations

Claude-Session: https://claude.ai/code/session_01ADHkmT5it85jhPpGaNANG7
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m and removed size/s labels Nov 29, 2026
@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:30Z · delta review (answers REWORK 7260909961)

席位核对

ACCEPT @ 2ab554b0d03e8e93c6c57ec4d9fbe0492c58f449 (card #35529, Fixes). L2 is still owed at CONTRACT_REVIEW_TIER for the packages/spec/src/api/protocol.zod.ts .describe() texts; the seat routes it at this head.

Delta read (0ee1576a85 → 2ab554b0d0, one file):

  • Must-fix 1 is met. .changeset/35529-spec-row-held-base-texts.md now lists '@objectstack/metadata-protocol': patch. Its new paragraph is true: it names the publish, rollback and delete request-type comments that ship in the built declarations, which I read at dist/index.d.ts:2240-2243, :2296-2300 and :2329-2333 on the first round, and it says "comment text only". No other file moved, so the first round's reads stand.
  • Checks at this head: 62 success, 13 expected skip, 0 failed, 0 pending. mergeable_state is clean. The only l1-face flag left is @objectstack/runtime, and that is a false positive: its one file is a *.test.ts that the build excludes.

Nit (non-blocking): the PR body's changeset line still names only the spec patch. The card thread has asked the seat to correct it with the signed body refresh.

@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:31Z) · head 2ab554b

Face: published schema (packages/spec/src/api/protocol.zod.ts non-test: the packageId describe text of the save, publish, delete and history/diff/rollback requests). Clause-②: no, Metadata-protocol: none. L1 ACCEPT 7261338918 (delta over 7260909961). The PR takes needs:contract-review in this stroke.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 2ab554b · 2026-11-30T00:09Z

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: 2ab554b0d03e8e93c6c57ec4d9fbe0492c58f449
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts + packages/metadata-protocol/src/protocol-door-requests.ts
Security-touching: no
Rule-change-verified: none

Read: card #35529 (body, two triage comments, the claim, the os-dev-report), PR #38639 (body, 7 files, net diff 681fec23..2ab554b0), the check-runs on the head. Code read to judge, not reviewed: rowHeldBaseJudgment and rowHeldBaseAddressOf (packages/metadata-protocol/src/protocol-meta-item-face.ts), packagelessRowHeldBaseAddress (protocol-save.ts), the delete door (protocol-diff-delete-load.ts), the publish door (protocol-history-and-publish.ts), historySlotOf (protocol-history-slots.ts), and the header of meta-bare-save-dependent-only-member-35524.test.ts. The remainder of the diff (the runtime test, the three generated packages/spec/docs/references/api/protocol*.md files, the changeset) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set: unchanged. Every hunk in protocol.zod.ts is inside a .describe() string or the HISTORY_PACKAGE_SELECTOR_DESCRIPTION constant; no key, type, optionality or refinement moves. Right.
  • Public surface: the packageId description text of the save, per-item publish, delete and history/diff/rollback requests changes, and with it the generated reference and any JSON Schema description built from it. Text only. Right.
  • protocol-door-requests.ts: three docblocks only; they ship in the package's declarations and no type moves. Right.
  • Server answers: none moves; no file under packages/metadata-protocol/src changes outside those comments. Right.
  • Gates on the head: Check Changeset, Lint · docs & code guards, Lint · repo & tooling gates, Spec property liveness, Type Check · workspace, Test Core 1-12/12, Governed Surface Queue Guard and PR-body guards all concluded success; the skipped runs are opt-in or schedule-only.

② Semver level

.changeset/35529-spec-row-held-base-texts.md declares @objectstack/spec patch and @objectstack/metadata-protocol patch. Both match what the diff publishes: description text in one, declaration comments in the other, nothing a caller's code can observe. @objectstack/runtime changes in a test only and needs no entry. Clause-②: no on the PR body and in the changeset is right: nothing accepted before is refused now, and nothing is narrowed.

③ Boundary flags

  • Dev deviation 1 (the card names content/docs/references/api/protocol.mdx, which no longer exists; the generated reference is the three packages/spec/docs/references/api/protocol*.md files): accepted; the docs gate on the head is green over them.
  • Dev deviation 2 (a four-line maintainer summary where the order asked for six): accepted, no contract effect.
  • Dev deviation 3 (@objectstack/metadata-protocol tests not run locally on a comment-only diff): answered by Test Core on the head, all shards success.
  • open_questions: none filed.
  • SQL push-down: no product code changes. The one new read is the test helper layHistory, which reads sys_metadata_history and takes the highest event_seq in the test process; it runs over a per-test temporary store to number a seeded fixture row. No finding.

④ Design judgment

packages/spec/src/api/protocol.zod.ts, against rowHeldBaseJudgment and its callers:

  • "of a name no package ships in code": holds. rowHeldBaseJudgment returns undefined when shippingPackageIds(host.shippedArtifactsOf(type, name)) is non-empty, before any row is read.
  • "a base package and one or more packages declaring it": holds. bases is every row-holding package that is no addition to another holder, judged per package against its own dependency closure; the exception needs exactly one, and any number of dependents may sit beside it. packagelessRowHeldBaseAddress returns the base when two or more packages hold the member and the base is one of them.
  • "with no package-unbound row beside them": holds (address.unbound and the packageOf(row) === undefined exclusion).
  • Publish and history/diff/rollback texts: hold. The publish door asks packagelessRowHeldBaseAddress only on an ambiguous draft address; historySlotOf asks it only when more than one slot holds the name, and re-enters naming the base.

S1 (should-fix) — the rewritten delete sentence, "the next request naming no package is judged over them alone: one dependent's row is served next and a second delete naming no package removes it too", is false in one reachable cell of the exception it describes. Take base A holding en-US and fr-FR and dependent D holding fr-FR, the name shipped by no package. The bare delete at the named member fr-FR removes A's fr-FR row, as the text says. A still holds en-US, so rowHeldBaseJudgment still answers base A with only D at the member, and rowHeldBaseAddressOf returns A for a named non-canonical member: the bare read is addressed to A and answers 404, not D's row. That end state (A holds en-US, D holds fr-FR) is the one meta-bare-save-dependent-only-member-35524.test.ts pins at 404, and there a bare save writes A's row again. So the next bare request is not judged over the dependents' rows alone, and D's row is not "served next". The second half does hold: the delete door asks for the base only when two or more packages hold the member, so the second bare delete removes D's row. The sentence is true when the base holds no other member of the name, or when the member is the canonical one. The earlier text made the same claim, so this is no regression, but this diff rewrites the sentence to correct exactly its cases and the PR body names it as the one text whose meaning moved. Fix: bound the "served next" claim to those two cases and state that at a named non-canonical member whose base still holds another member the read naming no package takes the base's address (404 until the base holds a row there), while the delete naming no package still removes the dependent's row. The changeset repeats the sentence and should follow, and the reference is regenerated.

packages/metadata-protocol/src/protocol-door-requests.ts, sentence by sentence against the doors:

  • Publish: "promotes the base's draft into the base's row, as naming the base does" agrees with draftKey = base; promoteInto = base.
  • Rollback: "the base's slot is restored, as naming the base restores it" agrees with historySlotOf re-entering with packageId: base.
  • Delete: "removes the base's row, as naming the base does" agrees with request = { ...request, packageId: base } on more than one candidate.

Nits (no effect on correctness or the contract):

  • N1 (nit): the three docblocks join the exception with "but where the read naming no package serves the row-held base"; "except where", as the spec text has it, reads cleaner. In the rollback docblock the clause also follows "or one the bare plain read refuses", though the exception applies only to the two-slot case.
  • N2 (nit): the PR body says the texts now name "the whole cell". rowHeldBaseJudgment also declines a disabled row-holding package, an environment item at the member and a customization pair among the holders, and the texts name none of these. The texts anchor on "as the read naming no package serves it", so they are not wrong; the PR body's wording is wider than the text.
  • N3 (nit, follow-up card): the active save sentence "writes the row of the one package the item's active rows are bound to" has no word for the one-holder cell of metadata-protocol: a bare save of a member only the dependent holds rewrites the dependent's row while the bare read at that member answers 404, then 409 #35524 (a named non-canonical member only a dependent holds, where the bare save writes the base's row). Outside this diff's hunks and the card's three items; it is the same cell S1 turns on, so one follow-up can carry both if S1's fix does not.

Implemented-by: claude/project-thread-gfa4ej
Reviewed-by: session_01ADHkmSAjFEZHRpRq3WCj6z

VERDICT: PASS

…im to the cells where it holds; except-where in the door-request comments

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

Copy link
Copy Markdown
Contributor Author

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

席位核对

ACCEPT @ 9c1304f3090df23b84a6dd065f76cffb53493d23 (card #35529). This is the delta 2ab554b0..9c1304f3, which answers the seat's L2 PASS 7265056403: S1 (the seat chose A) plus N1. ACCEPT 7261338918 carries over to this head. Every changed line is description or comment text, and no code moves.

  • S1: the delete text in protocol.zod.ts (DeleteMetaItemRequestSchema.packageId). "Served next" is now bounded to the two cases where it holds: the base holds no other member of the name, or the member is the canonical one. For the remaining cell it now says the bare read takes the base's address and answers 404 until the base holds a row there again, and that a second bare delete still removes the lone dependent's row. That matches the code:
    • protocol-meta-item-face.ts:696-703. Once the base's row at the member is gone, atMember no longer holds the base. For a named non-canonical member, rowHeldBaseAddressOf returns the base, because overlayMemberValue is a string. So the bare read goes to the base's address and answers 404, which is the cell meta-bare-save-dependent-only-member-35524.test.ts pins.
    • For the canonical member it returns undefined, so the dependent's row is served.
    • Where the base holds no other member, the judgment finds no row-holding base, so the dependents' rows are judged alone.
    • The second-delete half agrees with L2's reading: the delete door asks for the base only when two or more packages hold the member.
  • N1: protocol-door-requests.ts. The three docblocks now read "except where", as the spec text does. In the rollback docblock the row-held-base exception now follows the two-slot sentence it qualifies, and "a name the bare plain read refuses is refused 409 the same way" is its own sentence. That is the scoping N1 asked for, and the meaning is unchanged.
  • The changeset follows the spec sentence word for word. Both packages already carry entries. packages/spec/docs/references/api/protocol.md is regenerated from the same text, and the dev reads check:generated at 14/14 after --fix.
  • N2 (the PR body's "whole cell" wording) is left to the seat. N3 is not changed. Both follow the L2's own disposition.
  • Checks. CI was still running at this head when the zone wrote at 00:54Z. Read it green before landing. The L2 PASS stands, and the seat lands.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract-review-claim: session_01ADHkmSAjFEZHRpRq3WCj6z · head 9c1304f · 2026-11-30T00:57Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-steve · session_01ADHkmSAjFEZHRpRq3WCj6z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9c1304f3090df23b84a6dd065f76cffb53493d23
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts + packages/metadata-protocol/src/protocol-door-requests.ts
Security-touching: no
Rule-change-verified: none

Delta round over 2ab554b0d03e8e93c6c57ec4d9fbe0492c58f449 (record 7265056403). Read: the two new commits 7e2db00a and 9c1304f3 as the diff 2ab554b0..9c1304f3 (4 files, +20 -14), the edited PR body, and the check-runs on the new head. The parts of the PR the delta does not touch stand as judged in the first record. Code read to judge, not reviewed: rowHeldBaseJudgment, rowHeldBaseAddressOf, packagelessRowHeldBaseAddress, the delete door, historySlotOf, and the header of meta-bare-save-dependent-only-member-35524.test.ts. The regenerated packages/spec/docs/references/api/protocol.md and the changeset are the lane seat's ACCEPT at TIER_DEFAULT.

Prior findings:

  • S1: closed
  • N1: closed
  • N2: closed
  • N3: stands as a follow-up card candidate; nothing in the delta takes it up, and nothing needs to on this PR.

① Derived judgments

  • Accept set: unchanged. The one hunk in protocol.zod.ts is inside the delete request's packageId .describe() string. Right.
  • Public surface: that description text and its row in the generated reference. Text only. Right.
  • protocol-door-requests.ts: the same three docblocks, wording only. Right.
  • Server answers: none moves; the delta touches no door.
  • Gates on the new head: 61 check-runs concluded success and 13 skipped (opt-in or schedule-only), among them Lint · docs & code guards, Lint · repo & tooling gates, Spec property liveness, Test Core, Governed Surface Queue Guard and PR-body guards. One Check Changeset run, started 00:57Z by the PR-body edit, was still in progress when read; the Check Changeset run on this same head from 00:17Z concluded success, and the delta changes the changeset's prose only.

② Semver level

Unchanged and still right: @objectstack/spec patch and @objectstack/metadata-protocol patch for description text and declaration comments; Clause-②: no. The changeset's delete paragraph now carries the same bound as the spec text.

③ Boundary flags

  • No new dev flag and no open_questions entry arrived with the delta.
  • SQL push-down: the delta changes no code. No finding.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/api/protocol.zod.ts, the rewritten delete sentences against the code:

  • "The dependents' rows stay": holds; the door rewrites the request to name the base and removes that row alone.
  • "Where the base holds no other member of the name, or the member is the canonical one ... one dependent's row is served next and a second delete naming no package removes it too": holds in both arms. With no other member the base is no longer a row holder, so the lone dependent is the only holder and rowHeldBaseAddressOf answers undefined. At the canonical member the base stays a holder but overlayMemberValue is not a string there, so the function answers undefined and the dependent's row is served. The delete door asks for a base only with two or more packages at the member, so the second bare delete removes the dependent's row.
  • "At a named non-canonical member while the base still holds another member, the read naming no package still takes the base's address and answers 404 until the base holds a row there again": holds; this is the arm of rowHeldBaseAddressOf that returns the base for a named non-canonical member it holds no row of, and the state the metadata-protocol: a bare save of a member only the dependent holds rewrites the dependent's row while the bare read at that member answers 404, then 409 #35524 test pins at 404.
  • "a second delete naming no package still removes a lone dependent's row there": holds; packagelessRowHeldBaseAddress is not asked with one package at the member.

packages/metadata-protocol/src/protocol-door-requests.ts:

  • "except where" in the publish and delete docblocks: wording only, agrees with the doors as before.
  • Rollback docblock, now three sentences: the two-slot refusal with its exception, then "A name the bare plain read refuses is refused 409 the same way". Agrees with historySlotOf, which asks for the base only when more than one slot holds the name and runs refuseWhereBareReadRefuses after it. The exception no longer reads as covering the second case.

PR body: N4's line now says the texts name the two conditions left out, and adds the bound on the delete claim. It no longer claims more than the text. Its wording "The deletion is bounded to" means the delete sentence's claim; clear enough in context.

Nits (no effect on the contract; none needs a change on this head):

  • D1 (nit): in the canonical-member arm, "two or more are judged by the rule above" can be read to promise more than the server gives in one chained shape: base A still holding another member, and two dependents at the canonical member where D2 declares D1 and D1 declares A. Read over the dependents alone, D1 would be the base of D2; the server still counts A among the holders, names A the one base, and answers 409. Three chained packages all holding rows of one unshipped name is far from the card's cases, the answer is the refusal that names every holder, and the clause is loose enough to cover it. Left as an accepted deviation; it can ride on the N3 follow-up.
  • D2 (nit): the changeset's title line still reads "names its whole cell" while the PR body no longer does. Changeset prose, not reviewed here; noted for the lane seat.

Implemented-by: claude/project-thread-gfa4ej
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
objectstack-fleet Bot marked this pull request as ready for review November 30, 2026 01:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 74a15cb Nov 30, 2026
79 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-gfa4ej branch November 30, 2026 01:33
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

2 participants