Skip to content

fix(metadata-protocol)!: refuse the per-item publish and rollback naming no package over a disabled holder's package-less row - #37818

Merged
os-zhuang merged 8 commits into
mainfrom
claude/project-thread-e59pzb
Nov 27, 2026
Merged

os-zhuang merged 8 commits into
mainfrom
claude/project-thread-e59pzb

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

repo:objectstack#3 · os-tesla · session_01L9qibwictsQHxYdcVwUTSp

Requested by Tesla · project thread
Fixes #37608

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no page under skills/** or content/docs/** teaches a per-item publish or rollback naming no package over a name only disabled packages hold; the refusal's own sentence names the fix

维护者速读

  • 管理员停用一个包之后,在没指明包的情况下对这个包名下的“无包定制”做单项发布或回滚,以前会悄悄写进被隐藏的那一行,现在会被拒绝,并提示先启用这个包。
  • 这是“停用就该全部消失”那次裁决的收尾:保存、草稿、删除、丢弃草稿四个入口已经拦住,这次补上发布和回滚这最后两个入口。
  • 碰到的只有对停用包名下的定制做发布或回滚的管理员;先启用包再操作即可,启用后看到的定制和停用前一字不差;本改动可整体撤回。
  • 无

What changes

ADR-0150 D3 (its 2026-11-26 note, ruled on topic #36229: 「我觉得停用就该全部消失」): a package-less row stored at a name a package holds is that package's customization, hidden with it while it is disabled. The save, the draft save, the delete and the draft discard naming no package already refuse there. Two doors did not ask that judgment and still wrote the hidden row:

  • Per-item publish (promoteDraftForPublish, packages/metadata-protocol/src/protocol-history-and-publish.ts): where no package is named and the promotion reads the package-unbound draft or writes the package-unbound active row (a draft at the address, key or into null), and a package-unbound row or draft is stored, the door now asks packagelessHolderRefusal over the active rows and the drafts, as the draft save does. Answered with the door's other address refusals, after the _lock gate. A promotion of a package's own draft into its own row, and a publish with no draft (404 NO_DRAFT), are not asked (L1 R1, PR comment 7210673235).
  • Per-item rollback (rollbackMetaItemUnaudited, packages/metadata-protocol/src/protocol-package-commits.ts): where no package is named and the restore writes the package-unbound row, and such a row is stored, the door asks the same judgment, after the ADR-0146 D11 close.

Both ask the disabled-holders judgment only (new arms: 'disabled-holders' parameter on packagelessHolderRefusal; default 'all' keeps every existing caller byte-identical). Over a name only disabled packages hold, both answer 409 RESOURCE_CONFLICT with #37584's sentence (disabledHoldersCustomizationRefusal, verb publish / rollback: "Enable the package that holds TYPE 'NAME' first, then send this publish again …"), naming no package, and write nothing. Re-enabled, the read naming no package serves the original row byte-identical, and the same publish or rollback answers as before.

The verb type is widened to DisabledHoldersWriteVerb = 'save' | 'delete' | 'publish' | 'rollback' on the two refusal builders and the judgment.

Also in this PR:

  • Migration entry disabled-holder-package-less-row-bare-write-refused (spec, still pending release) names the publish and rollback doors in its surface, replacement, reason and acceptance criteria; its header comment is reworded (review nit N10). Its reason claims the judgment over a name with no package-less row stored only for the save, the draft save, the delete and the draft discard, and says a publish of the disabled package's own draft and a rollback that stores the package-less row again are not refused by this entry (L2 S1).
  • New changeset .changeset/37608-disabled-holder-publish-rollback-refused.md (minor metadata-protocol and spec, BREAKING, ADR-0087 not-required (already-registered …): the entry above already exists on the merge base).
  • DELIBERATE CORRECTION of the pending note .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md (review nit N11). Corrected sentence: "there only the draft discard moves: over a stored package-less draft from 200 to the 409 above, and over a stored package-less row with no draft from the 409 with the ?package= sentence to the same 409 with the enable sentence." It read "there only the draft discard moves, from 200 to the 409 above.", which was false for the stored-row, no-draft cell. check-empty-changeset is red on this file by design; the dispatching seat's record confirms it.

Tests

packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, the served-stack file #37584 added, gains one describe with five pins (three refusals, two controls) in the cell the D11 close leaves open (fr-FR, a member the package never ships):

  • publish, a package-less draft beside the stored package-less row;
  • publish, a package-less draft with no row stored;
  • rollback of the package-less row to its first version;
  • CONTROL (L1 R1): publish of the package's own draft beside the stored package-less row: promoted into the package's row as on main, the package-less row byte-identical;
  • CONTROL: publish with no draft beside the stored package-less row: 404 NO_DRAFT as on main, nothing written.

The three refusal pins assert status + code (409 / RESOURCE_CONFLICT), the message's first words (the remedy a reader acts on), that no package is named, every stored row of the name (active and draft) byte-identical, then re-enables and asserts the row served as it was and the same write landing.

Reach on main, fix, and one ablation per door
  • Reach, main 56c9cae (pins committed first as 3c3b8f0, run against main's metadata-protocol dist): Tests 3 failed | 5 passed (8); each of the three answered no refusal (expected [ undefined, undefined ] to deeply equal [ 409, 'RESOURCE_CONFLICT' ]): the publish promoted the draft and the rollback rewrote the row, both hidden by the disabled package.
  • Fix (metadata-protocol rebuilt, the new code confirmed in dist/index.js): Tests 8 passed (8) at 245dbd0; after R1, Tests 10 passed (10) at 4793a98.
  • Ablation, publish door (scripts/ablation-replace.mjs on the if (active.unbound || address.drafts.unbound) guard, rebuilt, ablation-dist-preflight marker present in 2 built files): Tests 2 failed | 6 passed (8), exactly the two publish pins. Restored: blob == HEAD, git diff HEAD empty, rebuilt, marker absent from all 24 built files.
  • Ablation, rollback door (same tool on the rollback's if (active.unbound) guard): Tests 1 failed | 7 passed (8), exactly the rollback pin. Restored the same way.
  • After R1, at 4793a98, three legs on the 10 pins, each mutated, rebuilt, marker proved in dist/, then restored (blob == HEAD, git diff HEAD empty, rebuilt, marker absent): the R1 address condition dropped (the 245dbd0 shape): 2 failed | 8 passed, exactly the two controls (so the PKG-own-draft cell answers 409 there, as L1 measured); the publish guard off (main's publish): 2 failed | 8 passed, exactly the two publish refusal pins, the two controls green (they pin main's answer); the rollback guard off: 1 failed | 9 passed, the rollback pin.
Package suites and dogfood at 35ca502
  • pnpm --filter @objectstack/metadata-protocol test: Test Files 371 passed | 9 skipped (380), Tests 23453 passed | 45 skipped (23498).
  • pnpm --filter @objectstack/objectql test: Test Files 638 passed (638), Tests 14433 passed (14433).
  • pnpm --filter @objectstack/metadata-protocol typecheck and pnpm --filter @objectstack/objectql typecheck: exit 0.
  • Full dogfood (pnpm --filter @objectstack/dogfood test, no shard): Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212), lock VERDICT command-exit 0 (34m05s).

Acceptance notes

  • Order against the D11 close is unchanged. Where ADR-0146 D11 applies (one read-only code package ships the item, with a pair), the publish and the rollback still answer the close's 403 NOT_OVERRIDABLE first, with the package enabled or disabled. Whether the enable remedy should answer first over an every-holder-disabled base is a change to a shipped answer and goes through the seat's decision route (card comment 7196921497); not taken here.
  • Bounded to the customization cell. The publish asks only where it reads the package-unbound draft or writes the package-unbound row, and the rollback only where it restores the package-unbound row, each with a package-unbound row or draft stored. Not moved: a publish of a package's own draft into its own row (beside a package-less row or not), a publish with no draft (404 NO_DRAFT), a rollback with no package-less row stored, and the two-enabled-holders refusal (the doors keep their own two-holder refusals, packagelessAddressAmbiguityRefusal and historySlotOf). Each would move a shipped answer (404 NO_DRAFT or a write into a package-bound row) beyond the ruled cell.
  • Two writes still land on an item only disabled packages hold, left open (L2 S1, the seat's option 2). A publish of the disabled package's own draft, promoted into that package's own row (beside a package-less row or not), and a rollback with no package-less row stored, which stores the package-less row again from its history. Whether either refuses is a separate decision. Carrier: metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851. The changeset's "Not moved" names it too.
  • ADR-0150 D3 note not edited. Its bullet "Not judged yet: the per-item publish and the per-item rollback … Card metadata-protocol: while a package is disabled, the per-item publish and rollback doors still write a package-less row at a name only disabled packages hold #37608 carries both doors. Until it lands …" goes stale once this merges, and N11's ADR half ("newly refuses the draft discard in every cell") is not tightened. Both live in docs/adr/** (Tier H); kept out so this PR stays off a governed surface. Carrier: ADR revisions, week of 2026-11-25: rolling checklist of ADR text out of step with main (one governed PR) #37245 (ADR revisions weekly card; the seat appends the row after merge)
  • reassignOrphanedMetadata lead (card comment 7196921497, third bullet): not measured here. Carrier: the seat.
  • N12 (the D11 decision card should quote the 403 sentence in full) is for the seat's decision card, not this diff.
  • REST: POST /meta/:type/:name/publish and /rollback forward the request with no packageId key when ?package= is absent (packages/rest/src/meta-item-history-routes.ts), so the in-process pins measure the same door. No REST-level pin added.

Verification

Read first (by risk):

  1. packages/metadata-protocol/src/protocol-history-and-publish.ts, the new block at the end of the else arm in promoteDraftForPublish (the address branch naming no package).
  2. packages/metadata-protocol/src/protocol-package-commits.ts, the block after the D11 / named-base closes in rollbackMetaItemUnaudited.
  3. packages/metadata-protocol/src/protocol-save.ts, packagelessHolderRefusal's new arms parameter.

Two-minute check: pnpm --filter @objectstack/metadata-protocol build && pnpm --filter @objectstack/objectql exec vitest run src/disabled-holder-packageless-row-doors.test.ts → Tests 10 passed (10).

Local gates at f8da2ea
  • The S1 delta touches only packages/spec (the migration entry's reason) and the two changesets; spec rebuilt under the lock: VERDICT command-exit 0.
  • node scripts/pm/dispatch-gates.mjs --commands derived 98 commands at f8da2ea; all 98 run; --ran: 98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED (a DERIVED zero).
  • 97 exit 0, including check-adr-0087-registration --base origin/main. One red by design: check-empty-changeset --base origin/main exit 1 on the DELIBERATE CORRECTION above.
  • Full dogfood (pnpm --filter @objectstack/dogfood test, no shard): Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212), lock VERDICT command-exit 0 (34m58s).
  • No code changed since 35ca502, so the package suites below stand for this head.
Local gates at 35ca502 (before the S1 delta)
  • pnpm build --concurrency=2 (full workspace, for the gates that read every dist) at 245dbd0; at 35ca502 spec and metadata-protocol rebuilt (the only packages the R1 commits touch): exit 0.
  • node scripts/pm/dispatch-gates.mjs --commands derived 98 commands at 35ca502 (the same list as at 245dbd0); all 98 run with exit codes recorded; --ran: 98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED (a DERIVED zero).
  • 97 exit 0. One red by design: node scripts/check-empty-changeset.mjs --base origin/main exit 1 on .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md, the DELIBERATE CORRECTION declared above.
  • node scripts/check-adr-0087-registration.mjs --base origin/main: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition (not-required (already-registered)).
  • check-plugin-teardown-shape --self-test needed its pinned commit fetched into this shallow clone first (git fetch origin 621a4876…), then exit 0.
  • Full dogfood at 245dbd0 too: Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212), lock VERDICT command-exit 0.
  • Not run locally, CI's: test:repo, the lint farm, the type-check lanes.

Generated by Claude Code

…ackage of a disabled-only name

Claude-Session: https://claude.ai/code/session_01L9qibwictsQHxYdcVwUTSp
Co-authored-by: Claude <noreply@anthropic.com>
…ackage refuse over a disabled holder's package-less row

Claude-Session: https://claude.ai/code/session_01L9qibwictsQHxYdcVwUTSp
Co-authored-by: Claude <noreply@anthropic.com>
…the publish and rollback doors

Claude-Session: https://claude.ai/code/session_01L9qibwictsQHxYdcVwUTSp
Co-authored-by: Claude <noreply@anthropic.com>
…holders arm; changeset disposition spelled as the gate reads it

Claude-Session: https://claude.ai/code/session_01L9qibwictsQHxYdcVwUTSp
Co-authored-by: Claude <noreply@anthropic.com>
@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 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

10 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

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 — 178 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 1f97fce35b5f453e6081fcf3ef20534714a64c95 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 1f97fce35b5f453e6081fcf3ef20534714a64c95

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

L1-a, the seat's L1 thread · 2026-11-27T05:28Z

席位核对 — L1 REWORK @ 245dbd0390b113f7b427e62bddfc618ca08e3c24

Verdict: REWORK (one must-fix in the publish door; everything else below reads clean or is owed later).

R1 (must-fix) — the per-item publish now refuses a promotion that writes a package-BOUND row

The new guard in promoteDraftForPublish asks the disabled-holders judgment whenever active.unbound || address.drafts.unbound, whatever the promotion's own address is. Where the only draft is bound to the (disabled) holder and a package-less row is stored, packagelessDraftAddress resolves key = into = PKG (unboundItemDraftAddress: one bound draft candidate), so the promotion reads PKG's draft and writes PKG's active row; it never touches the hidden package-less row. The guard still fires on active.unbound and answers the customization refusal, whose sentence says the package-less row is what it protects.

Measured with a local probe in the served-stack fixture of disabled-holder-packageless-row-doors.test.ts (not committed): package-less fr-FR row saved, then saveMetaItem({ packageId: PKG, mode: 'draft', fr-FR }), disablePackage(PKG), publishMetaItem({ member: 'fr-FR' }) with no packageId.

  • Rows before the publish, both runs: [["active",null,"fr-FR"],["draft","com.acme.mail","fr-FR"]].
  • Merge base 56c9cae6 (the three metadata-protocol src files checked out from it, package rebuilt): success: true, "Published draft", rows after [["active",null,"fr-FR"],["active","com.acme.mail","fr-FR"]] (the package-less row untouched).
  • Head 245dbd0390: 409 RESOURCE_CONFLICT, "Enable the package that holds email_template 'acme.welcome' first, then send this publish again … Every package holding the name is disabled, and the row stored for it under no …", nothing written.
  • Same run: the PR's own file Tests 9 passed (9) with the probe, so the existing pins do not see this cell.

Why it is a must-fix, read against the PR's own words: the Acceptance notes bound the change to the customization cell and keep "a write into a package-bound row" out because it "would move a shipped answer beyond the ruled cell". This cell is that write, and its answer moved (200 → 409). The changeset's "Every moved answer, before → after" list does not carry it either, so its completeness claim is false at this head. The rollback door does not have this hole: it asks only when rollbackPackageId === null, i.e. when the restore writes the package-unbound row.

Fix direction (the dev's call, measured either way): ask the judgment only where the promotion reads a package-less draft or writes the package-less row, i.e. address.drafts.unbound for the draft side, and active.unbound only when promoteInto === null. Add a pin for this cell asserting the merge-base answer (promoted into PKG's row, package-less row byte-identical), with an ablation of the new condition.

Read and clean at this head

  • Shape (l1-face.mjs --pr 37818): open, draft, base main, first line Fixes #37608; the card's Expected is the two doors plus a pin per door, which the diff delivers, so Fixes is right. No closing keyword near another open card. No content/docs/releases/ path.
  • Declarations: Clause-②: no (narrowing), Metadata-protocol: narrowed, the same on the changeset. Skills-docs: none holds: the changed behaviour is a refusal whose own sentence names the remedy, and no skills/** or content/docs/** page teaches a bare publish or rollback over a disabled holder.
  • l1-face changeset flag on @objectstack/objectql: a false positive. The only objectql file is src/*.test.ts; tsconfig.json excludes **/*.test.ts and files[] is dist, so nothing objectql ships moves.
  • Published surface: @objectstack/spec ships the migration entry through dist and protocol-upgrade-guide.md; it and metadata-protocol are on the changeset (minor, BREAKING, ADR-0087 not-required (already-registered …), which matches the entry existing on the merge base).
  • Rejection pins assert status + code (409 / RESOURCE_CONFLICT), the remedy's first words, no package named, every stored row byte-identical, then a re-enable control. Reach on main and one ablation per door are written in the body.
  • Floor checks at this head: Lint & Repo Gates success, TypeScript Type Check success.

Changeset sentences read (not delegated)

  • .changeset/37608-…: the BREAKING paragraph, the "did not ask that judgment" paragraph, the three moved-answer bullets and the "Not moved" paragraph, each read against the diff. False at this head: the moved list's completeness (R1). Everything else matches the code.
  • .changeset/37499-… (DELIBERATE CORRECTION): before "there only the draft discard moves, from 200 to the 409 above."; after "there only the draft discard moves: over a stored package-less draft from 200 to the 409 above, and over a stored package-less row with no draft from the 409 with the ?package= sentence to the same 409 with the enable sentence." The new sentence matches N11 in card comment 7199079202. Not measured here.

Owed at the next head (not REWORK reasons)

  • Check Changeset red: the DELIBERATE CORRECTION class of check-empty-changeset. This diff changes code, so the confirmation is a same-head at-tier contract-review PASS that judges the rewritten 37499 sentence (landing-operations). The seat records it on that head.
  • Contract review: owed at CONTRACT_REVIEW_TIER (narrowing face, plus packages/spec/src/**). Not started on this head because R1 moves it; this thread runs it isolated on the reworked head.
  • ADR-0150 D3 note: the body keeps the stale "Card metadata-protocol: while a package is disabled, the per-item publish and rollback doors still write a package-less row at a name only disabled packages hold #37608 carries both doors. Until it lands …" bullet and N11's ADR half out of this PR (Tier H) with "Carrier: the seat". The card's third Expected bullet reads on that note, so the seat files the follow-up and the body names it as #N before ACCEPT.
  • Dogfood: owed (! plus narrowing). No dogfood_battery reading for this head is on the card or the PR yet. NOT MEASURED.

…s judgment only where it reads the package-less draft or writes the package-less row

Claude-Session: https://claude.ai/code/session_01L9qibwictsQHxYdcVwUTSp
Co-authored-by: Claude <noreply@anthropic.com>
…ollback cells it moves

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwictsQHxYdcVwUTSp

Reworked head 35ca5027ddb57d487ac5e01a859f9d94dbd4e657 for L1 R1 (comment 7210673235) · 2026-11-27T06:58Z

  • R1: the per-item publish asks the disabled-holders judgment only where its draft address is a draft and it reads the package-unbound draft or writes the package-unbound row (address.kind === 'draft' && (address.key === null || address.into === null)). The package's own draft beside a stored package-less row is promoted into the package's row as on main; a publish with no draft keeps 404 NO_DRAFT.
  • Two control pins added for those cells; the file is Tests 10 passed (10). Ablations at 4793a98: the R1 condition dropped reds exactly the two controls (the 245dbd0 answer, 409), the publish guard off reds exactly the two refusal pins with the controls green, the rollback guard off reds the rollback pin. Each leg restored to blob == HEAD with the marker gone from dist/.
  • The changeset's moved and not-moved lists and the migration entry's acceptance criteria name those cells.
  • At this head: 98 derived gates run, 97 exit 0, check-empty-changeset red by design (the DELIBERATE CORRECTION); --ran 0 NOT-MEASURED. metadata-protocol 23453 passed | 45 skipped, objectql 14433 passed, both typechecks exit 0. Full dogfood: Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212), lock VERDICT exit 0.
  • Body updated: R1, the control pins, the readings at this head, and the ADR carrier as #37245. os-dev-report on the card.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 35ca502 · 2026-11-27T07:01Z

L1-a runs the isolated CONTRACT_REVIEW_TIER review on this reworked head (narrowing face, plus the schema face on the migration entry), with the L1 delta beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 35ca5027ddb57d487ac5e01a859f9d94dbd4e657
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/metadata-protocol/src/protocol-save.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts + read in the cited code, not reviewed: packages/metadata-protocol/src/protocol-lock-version-gates.ts (packagelessDraftAddress), packages/metadata-protocol/src/protocol-environment-rows.ts (packagelessAddress), packages/metadata-protocol/src/protocol-history-slots.ts (historySlotOf), packages/metadata-protocol/src/sys-metadata-repository.ts (restoreVersion), packages/metadata-protocol/src/protocol-diff-delete-load.ts (the draft discard's judgment), packages/metadata-protocol/src/protocol-door-requests.ts (PublishMetaItemRequest.packageId), packages/rest/src/meta-item-history-routes.ts (the publish route's conditional spread), docs/adr/0150 D3's 2026-11-26 note on main; and the two changesets, read for ② and for the DELIBERATE CORRECTION sentence

Inputs: card #37608 body and its six comments (7196921497, 7199079202, 7208988317, 7209392169, 7212020709, 7212050411), PR #37818 body and seven-file list, the net diff against main (merge base 56c9cae6), and the 73 check-runs on this head. Every check-run is completed; none is pending.

① Derived judgments

  • Per-item publish naming no package (promoteDraftForPublish): narrower by one cell. Where the request carries no packageId key, the draft address is a stored draft with key or into null, and every holder of the name is disabled, it answers 409 RESOURCE_CONFLICT (disabledHoldersCustomizationRefusal, verb publish) in place of the promotion. Right: it is the 2026-11-26 note's own refusal, asked over the union of the active rows' and the drafts' bindings as the draft save asks it, thrown below the _lock gate with the door's other address refusals and before the draft is read. With one enabled holder the judgment returns nothing, so the adoption (key null, into the enabled package) is unmoved.
  • Per-item rollback naming no package (rollbackMetaItemUnaudited): narrower by one cell. Where request.packageId is undefined, the resolved binding is null and a package-unbound active row is stored, the same 409 (verb rollback) answers before restoreVersion. Right, and placed after the ADR-0146 D11 close and the named-base close, so both 403 answers keep their order.
  • packagelessHolderRefusal: new trailing parameter arms, default 'all'. Right: the four existing call sites (protocol-save.ts 861, 882, 968; protocol-diff-delete-load.ts 776) pass no fifth argument and none passes verb publish or rollback, so the added arms === 'all' && verb !== 'rollback' conjunct is true for each of them and their answers are unchanged.
  • Public surface: DisabledHoldersWriteVerb is a new exported type, and the verb union of disabledHoldersOnlyRefusal, disabledHoldersCustomizationRefusal and packagelessHolderRefusal widens from two members to four. Right: additive. verb !== 'delete' selects "Nothing was written." for the two new verbs, which is true of both.
  • Tests: five new cases in one describe (two publish refusals by it.each, the rollback refusal, two controls). The three refusal pins assert status, code, the sentence's first words, that no package is named, every stored row of the name unchanged, then the re-enable. Right for the cell they name.
  • Migration entry: its surface, replacement and acceptanceCriteria now name the two doors, and the acceptance parenthetical bounds them correctly. Its reason does not: see S1.
  • DELIBERATE CORRECTION of .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md, one sentence.
    Before: "there only the draft discard moves, from 200 to the 409 above."
    After: "there only the draft discard moves: over a stored package-less draft from 200 to the 409 above, and over a stored package-less row with no draft from the 409 with the ?package= sentence to the same 409 with the enable sentence."
    Judged against the tree: true, confirmed. In deleteMetaItemUnaudited the draft discard reads the draft rows as its address and, where a package-unbound draft or active row is stored, passes unbound: rowsAtAddress.unbound, customized: active.unbound. With a package-less row and no draft that is unbound: false, customized: true, which answers disabledHoldersCustomizationRefusal (the enable sentence). Without the customized arm the same cell falls to disabledHoldersOnlyRefusal (the ?package= sentence), which is the 409 it answered before fix(metadata-protocol)!: refuse a write naming no package over the package-less row of a name only disabled packages hold #37584, as card comment 7199079202 (N11) records. The "before" sentence was false for that cell; the "after" sentence names both cells and no third one moves. The Check Changeset red on this head is this note and nothing else (see ②).

② Semver level

  • .changeset/37608-disabled-holder-publish-rollback-refused.md declares @objectstack/metadata-protocol: minor and @objectstack/spec: minor, with a ! title and a BREAKING paragraph. It matches what the diff publishes: a refusal where two doors answered 200, and a reworded migration entry in spec. It is the level of the twin note of metadata-protocol: while every holder of a name is disabled, a write to its package-unbound customization still lands unseen — bare save, draft save, delete and draft discard must refuse with "enable the package first" #37499 on main.
  • Clause-②: no (narrowing) and Metadata-protocol: narrowed are on the PR body and the changeset, and agree with the amended claim 7212050411. Correct for the diff.
  • adr-0087: not-required (already-registered disabled-holder-package-less-row-bare-write-refused): the entry exists on the merge base and this diff extends it. check-adr-0087-registration reads it as carrying a disposition, inside the Check Changeset job log.
  • Check-runs: 73, all completed. 58 success, 13 skipped, 2 failure. Both failures are Check Changeset (jobs 140332765300 and 140359973930), and in both the only failing step is check-empty-changeset --base, on .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md alone, the DELIBERATE CORRECTION class. This record is its confirmation (① above). Lint · PM dispatch-gates, Test Core 1 to 10, Dogfood Regression Gate, Type Check · workspace and Governed Surface Queue Guard are success.

③ Boundary flags

  • open_questions 1 (keep Clause-②: no (narrowing) or drop the arm): answered, keep. The claim was amended to that spelling (7212050411) and the diff is a narrowing.
  • open_questions 2 (should the enable 409 answer before the D11 close's 403 over an every-holder-disabled base): answered, the order is left as it is in this PR, and the diff does leave it. Changing it moves a shipped answer and is the seat's decision route (card comment 7196921497); escalated to the seat, not owed by this head.
  • Dev flag, ADR-0150 D3 note left unedited (Tier H), carrier ADR revisions, week of 2026-11-25: rolling checklist of ADR text out of step with main (one governed PR) #37245: accepted, with the condition in S1. The bullet that replaces "Not judged yet" must not state the universal while the two cells of S1 stand.
  • Dev flag, reassignOrphanedMetadata lead not measured, carrier "the seat": escalated. It has no card number; the seat owes one.
  • Dev flag, N12 belongs to the seat's decision card: accepted, not this diff.
  • SQL push-down: no finding. Each door adds one packagelessAddress read, an equality where on sys_metadata pushed to the store, and only inside the guarded cell (no package named, package-less draft or binding). No id materialisation, no in-app join. The judgment itself reads the registry in memory.

④ Design judgment

The narrowing, read against the published contract on main: ADR-0150 D3's 2026-11-26 note says a package-less row at a name a package holds hides with its holder, and names these two doors as "not judged yet". The diff takes no declared capability away at a consumer. It makes that note's refusal real at the two doors, with the same code, the same sentence and the enable as the remedy, and a re-enable serves the stored row unchanged. Attempts to break it, by reading packagelessDraftAddress for every key and into pair, the D11 ordering on both doors, the enabled-holder and mixed-holder cells, and the action type's environment-own draft, found the guarded cell correct. One gap in what the narrowing covers, and three nits.

S1 (should-fix) — two writes naming no package still land on a hidden item, and the migration entry says otherwise. The diff asks only the judgment's second state (a package-unbound row or draft stored). The first state, disabledHoldersOnlyRefusal, which the save, the draft save, the delete and the draft discard all answer, is not asked by either door:

  • Publish of the disabled package's own draft. A draft saved under ?package=PKG, the package then disabled, POST /meta/TYPE/NAME/publish with no ?package=: packagelessDraftAddress answers key and into PKG, the new guard skips it, and the draft is promoted into the disabled package's active row. The new control test pins this as success: true. The bare save into that same row is refused 409 on main.
  • Rollback with no package-less row stored. A package-less row saved and later deleted leaves its history. With every holder disabled, a rollback naming no package resolves a null binding, active.unbound is false so the judgment is not asked, and restoreVersion with packageId: null and no active row inserts a new package-unbound row (its own docblock: "creating that package's row again when it is gone"). Read in the code, not run. The bare save in that cell is refused 409 on main.
    Both are listed under "Not moved" in the new changeset, so the release note is honest. Two things are not. The card's third Expected bullet ("every write naming no package" holds once this lands) is not met. And the entry's reason, in published spec, now reads over six writes: "They now judge the name's holders past a stored package-less row, as they already did with none stored", and "a name only disabled packages hold with no package-less row stored (its refusal keeps the ?package= remedy)". Neither is true of the publish or the rollback, which judged no holder with none stored and still do not.
    Fix, either one: ask the judgment in those two cells as well (a moved shipped answer, so through the seat's decision route if the seat reads it as beyond the ruling); or keep the cells, file the decision card that carries them, name that card in the changeset's "Not moved" paragraph, and reword the two reason sentences so they claim the first state only for the four earlier writes. The entry is not a prose face, so either fix moves the head and earns a delta review.

N1 (nit) — an in-process publishMetaItem with packageId: null present takes the 'packageId' in request branch and is not asked the judgment, while environmentActionPublishSlotRefusal a few lines below is asked for both spellings. No product caller reaches it: the REST route spreads packageId only when ?package= is set, and publishPackageDrafts names its package. Follow-up card or accepted deviation.

N2 (nit) — two conditions that cannot be false today. In the publish guard, active.unbound || address.drafts.unbound is always true once address.kind === 'draft' and key is null (and into null implies key null). In packagelessHolderRefusal, verb !== 'rollback' is never reached with arms === 'all'. Both are harmless; no behaviour depends on them.

N3 (nit) — the adoption cell (a package-less draft beside the disabled package's own active row, key null and into the package) is refused by this diff and is pinned by no test, and the changeset's bullet describes its "before" as a promotion "into the hidden package-less row" where it was a promotion into the package's row. The changeset is a prose face; the pin is a follow-up.

No must-fix. S1 is open on this head.

Implemented-by: claude/project-thread-e59pzb
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The brief L1-a handed its isolated contract-review sub-agent for the record above, filled from record-recognisers.mjs --brief-template --face narrowing (the scope floor written out as the five non-prose paths, plus one appended paragraph for the DELIBERATE CORRECTION confirmation), verbatim:

Contract review brief — PR #37818 @ 35ca5027ddb57d487ac5e01a859f9d94dbd4e657 (card #37608)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37608: its body and EVERY comment (rulings and earlier records included)
· PR #37818: its body, its file list, and the net diff against main at 35ca5027ddb57d487ac5e01a859f9d94dbd4e657
· the check-runs on 35ca5027ddb57d487ac5e01a859f9d94dbd4e657: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces, that is: (packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/metadata-protocol/src/protocol-save.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-37818/l2/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

Also owed on this head (pm-dispatch landing-operations, the DELIBERATE CORRECTION class of check-empty-changeset): this
diff rewrites one sentence of the PENDING note .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md, and the
diff changes code, so the confirmation is this record. Judge that rewritten sentence against the tree, quoting it before and
after, in ①; a false sentence is a finding like any other.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

L1-a, the seat's L1 thread · 2026-11-27T07:10Z

席位核对 — L1 delta REWORK @ 35ca5027ddb57d487ac5e01a859f9d94dbd4e657

Verdict: REWORK, on the contract review's open should-fix S1 alone. My R1 is closed.

R1: closed, measured

I re-ran my probe from 7210673235 on this head, with metadata-protocol rebuilt from it. In the probe, a package-less fr-FR row is stored, PKG's own fr-FR draft is saved, PKG is disabled, and a bare publishMetaItem runs. The answer is success: true, rows after [["active",null,"fr-FR"],["active","com.acme.mail","fr-FR"]], the same as the merge base 56c9cae6, with the package-less row untouched. The PR's file plus the probe: Tests 11 passed (11). The guard now asks only when address.kind === 'draft' and the promotion reads the package-less draft (key === null) or writes the package-less row (into === null). The NO_DRAFT cell keeps its 404. Both cells are pinned, and the changeset's moved and not-moved lists now match.

S1 (should-fix, contract record 7212193932, brief 7212209494): adopted

Neither door asks the judgment's first state (disabledHoldersOnlyRefusal). Two bare writes still land on an item only disabled packages hold:

  • the publish of PKG's own draft, which is the cell R1 returned to main's answer;
  • a rollback with no package-less row stored but history left behind, by code read.

The bare save in both cells is refused 409 on main. The changeset lists both under "Not moved", so it is honest. The migration entry's reason (published spec) is not: it says of all six writes that they judge holders "as they already did with none stored", and that the no-row cell's "refusal keeps the ?package= remedy". Neither is true of the publish or the rollback.

R1 and S1 do not conflict. R1 objected to the customization refusal, whose sentence claims to protect a package-less row, in a cell that writes none. S1 asks whether that cell owes the other refusal, the disabled-only one with the ?package= remedy, which ruling A on #34144 gives the save. Whether the per-item publish and rollback join that ruling is a moved shipped answer beyond this card's ruled cell, so it belongs to the seat's decision route. The two fixes the record offers:

  1. Close the two cells, through the seat's decision route.
  2. Keep them: file the card that carries them, name it in the changeset's "Not moved" paragraph and in the body, and reword the two reason sentences so they claim the first state only for the four earlier writes.

Either one moves the head (the entry is not a prose face), and the same reviewer reads the delta.

Carried over and confirmed at this head

  • DELIBERATE CORRECTION (check-empty-changeset red on .changeset/37499-…): record 7212193932 judges the rewritten sentence true in ①, against the draft discard's unbound/customized arms. That is the confirmation landing-operations asks for on a code diff; it re-attaches to the next head through that head's record.
  • ADR-0150 D3 note: the body names Carrier: #37245. Per the record's ③, that card's replacement bullet must not state the universal while S1's cells stand.
  • Dogfood (! + narrowing): the os-dev report 7212020709 gives the battery green at 35ca5027. Re-read at the next head.
  • Floor at this head: Lint & Repo Gates success, TypeScript Type Check success. Check Changeset is red only on the deliberate correction.
  • Record nits N1–N3 (null packageId in-process, two always-true conditions, the unpinned adoption cell): the seat's ACCEPT dispositions at the next head.

…for the four earlier writes only; the changeset names the two open cells' carrier

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwictsQHxYdcVwUTSp

Delta head f8da2ea030a5d9563ccf82ed873edaa0a5dd2de4 for L2 S1 (record 7212193932), the seat's option 2 · 2026-11-27T08:23Z

  • No code change. The two cells stay open: a publish of the disabled package's own draft (promoted into that package's row) and a rollback with no package-less row stored (which stores it again from history). Carrier: metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851, named under "Not moved" in the new changeset and in the body's acceptance notes.
  • The migration entry's reason now claims the no-row judgment only for the save, the draft save, the delete and the draft discard, and says this entry does not refuse those two publish and rollback writes.
  • N3: the changeset's publish bullet now says the package-less draft was promoted into the hidden package-less row or, beside the disabled package's own active row, adopted into that row.
  • At this head: 98 derived gates run, 97 exit 0, check-empty-changeset red by design (the DELIBERATE CORRECTION); --ran 0 NOT-MEASURED. Full dogfood: Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212), lock VERDICT exit 0.
  • Body updated with the above.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head f8da2ea · 2026-11-27T08:25Z

L1-a has the same reviewer read the S1 delta, 35ca5027 → f8da2ea0. That is the migration entry's reason and the changeset, with no code moved. The L1 delta runs beside it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f8da2ea030a5d9563ccf82ed873edaa0a5dd2de4
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/metadata-protocol/src/protocol-save.ts, packages/objectql/src/disabled-holder-packageless-row-doors.test.ts, packages/spec/src/migrations/entries/semantic/19.disabled-holder-package-less-row-bare-write-refused.ts + read in the cited code, not reviewed: packages/metadata-protocol/src/protocol-lock-version-gates.ts (packagelessDraftAddress), packages/metadata-protocol/src/protocol-history-slots.ts (historySlotOf), packages/metadata-protocol/src/sys-metadata-repository.ts (restoreVersion, promoteDraft); and .changeset/37608-disabled-holder-publish-rollback-refused.md, read for the rewritten sentences

Delta review of the record on head 35ca5027ddb57d487ac5e01a859f9d94dbd4e657. The delta is one commit, f8da2ea0, over two files: the migration entry (its reason only) and the new changeset (its publish bullet and its "Not moved" paragraph). The four code and test paths of the floor are byte-identical to the round-one head, so round one's judgment of them stands. Inputs added this round: the delta diff, the PR body as it now stands, announcement comment 7213497531, carrier card #37851, and the 73 check-runs on this head. Every check-run is completed; none is pending.

S1: closed

① Derived judgments

No accept-set or public-surface change in the delta: no code moves. The two cells S1 named stay open by the seat's choice and are carried by #37851, which is open and names both. What changed is what the entry and the changeset say about them. Each rewritten sentence, against the code at this head:

  • Entry reason: "The save, the draft save, the delete and the draft discard now judge the name's holders past a stored package-less row, as they already did with none stored." True. It is the round-one sentence with its subject narrowed to the four writes it was true of.
  • Entry reason: "The publish and the rollback judge them only where they promote the package-less draft or restore the package-less row while one is stored". True. The publish asks only under address.kind === 'draft' with key or into null, and into null implies key null, so in every asked case the draft promoted is the stored package-less one. The rollback asks only under no packageId, a null binding and active.unbound.
  • Entry reason: "with none stored they judge no holder, as before, so a publish of the disabled package's own draft and a rollback that stores the package-less row again are not refused by this entry." True. The first is key and into the package, which the guard skips and the control test pins as success: true. The second is active.unbound false, where restoreVersion with packageId: null and no active row inserts the row. "Judge no holder" is read in the entry's own scope, a name whose every holder is disabled: historySlotOf still asks the bare read's two-enabled-holders refusal on the rollback, which that scope never meets.
  • Entry reason: "and, for the save, the draft save, the delete and the draft discard, a name only disabled packages hold with no package-less row stored (its refusal keeps the ?package= remedy) answer as before." True, and no longer claimed of the publish or the rollback.
  • Changeset, publish bullet: "200 (the package-less draft promoted into the hidden package-less row, or, beside the disabled package's own active row, adopted into that row)". True. packagelessDraftAddress answers key null and into the row's package for a package-less draft beside one package's active row, and the promotion writes under into. That cell is asked and refused at this head (address.drafts.unbound, every binding disabled). This closes the prose half of N3.
  • Changeset, "Not moved": "two writes that still land on an item only disabled packages hold, left open for a separate decision (metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851): a publish whose draft address is the disabled package's own draft, promoted into that package's own row (beside a package-less row or not), and a rollback with no package-less row stored, which stores the package-less row again from its history". True, both cells as the code has them, and the card it names exists and carries them. The rest of the list is unchanged in substance and true: the D11 close's 403 first on both doors, a publish or rollback naming a package, a publish with no draft (404 NO_DRAFT), a rollback of a package-bound row, a name no package holds, a name an enabled package holds, every read.

DELIBERATE CORRECTION on .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md: TRUE, confirmed on this head. This is the pending note the PR did not add, and the one Check Changeset is red on by design. One sentence of its "Not moved" paragraph is rewritten against main.
Before: "there only the draft discard moves, from 200 to the 409 above."
After: "there only the draft discard moves: over a stored package-less draft from 200 to the 409 above, and over a stored package-less row with no draft from the 409 with the ?package= sentence to the same 409 with the enable sentence."
Read against the draft-discard door at this head (deleteMetaItemUnaudited, packages/metadata-protocol/src/protocol-diff-delete-load.ts, the packagelessHolderRefusal call under request.packageId == null). A draft discard takes the draft rows as its address and reads the active rows beside them; where either holds a package-unbound row it passes unbound: rowsAtAddress.unbound, customized: active.unbound.

Rewritten sentences of .changeset/37608-disabled-holder-publish-rollback-refused.md: TRUE. This note is added by this PR, so it is not the class the gate is red on; its two rewritten sentences are the publish bullet and the "Not moved" paragraph judged above.

Does anything still claim an open cell is refused:

② Semver level

Unchanged and still right: minor on @objectstack/metadata-protocol and @objectstack/spec, a ! title, a BREAKING paragraph, Clause-②: no (narrowing), Metadata-protocol: narrowed, adr-0087: not-required (already-registered …). The delta rewrites prose inside an entry and a note and publishes nothing new.

Check-runs on this head: 73, all completed. 58 success, 13 skipped, 2 failure. Both failures are Check Changeset (jobs 140365814008 and 140392476809). In both the one failing step is the check-empty-changeset step, on .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md alone, the DELIBERATE CORRECTION class, red by design and confirmed in ①. check-adr-0087-registration passes inside the same job.

③ Boundary flags

④ Design judgment

The narrowing is the one round one judged: it takes no declared capability away at a consumer and makes the 2026-11-26 note's refusal real at the two doors, in the cell the card rules. What round one found wrong was that the published entry claimed more than the code does. At this head it does not: the entry states the first-state judgment only for the four earlier writes, names the two open writes as not refused, and the release note names them and their carrier. The contract a reader of the upgrade guide gets now matches the tree.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-e59pzb
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

L1-a, the seat's L1 thread · 2026-11-27T08:29Z

席位核对 — L1 ACCEPT @ f8da2ea030a5d9563ccf82ed873edaa0a5dd2de4

Verdict: ACCEPT. The same reviewer's delta contract record (7213580988, PASS, S1: closed, tier verified) is posted above. No must-fix and no should-fix is open. My R1 closed at 35ca5027, and the code has not moved since: the delta 35ca5027 → f8da2ea0 touches only the migration entry's reason and the 37608 changeset.

Read at this head

  • S1, the seat's route 2: the two open cells are named, and they carry to metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851, which is open and covers both. The cells are a bare publish of the disabled package's own draft and a bare rollback with no package-less row stored. They are named under "Not moved" in the changeset and in the body's acceptance notes. The entry's reason now claims the no-row judgment only for the save, the draft save, the delete and the draft discard. Fixes #37608 stays right, because the card's two doors are delivered in the ruled cell and the remainder has its own card.

  • Changeset sentences, read in person: I read .changeset/37608-… again against the tree. The N3 publish bullet ("…or, beside the disabled package's own active row, adopted into that row") is true, and the "Not moved" list is true. The summary, the moved-answer list, the refusal-message paragraph and the ADR-0087 marker are unchanged and still true.

  • DELIBERATE CORRECTION on .changeset/37499-disabled-holder-unbound-row-bare-write-refused.md: confirmed. All three red-by-design conditions hold:

    • check-empty-changeset prints the DELIBERATE CORRECTION class itself (Check Changeset jobs 140365814008 and 140392476809 fail only there).
    • pr-automation.yml runs on pull_request only, never on merge_group.
    • PR comments 7212037204 and 7213497531 and the body record the gate and the cause.

    The same-head at-tier record 7213580988 judges the corrected sentence true against the draft-discard door, and I read it too: over a stored package-less draft the answer moves from 200 to the enable 409, and over a stored package-less row with no draft it moves from the ?package= 409 to the enable 409.

  • Checks (l1-face.mjs --pr 37818): 58 success, 13 expected skip, 0 pending. The only red is the 2 × Check Changeset above. The floor checks (Lint & Repo Gates, TypeScript Type Check) are green. Shape, the Fixes #37608 first line, Clause-②: no (narrowing) / Metadata-protocol: narrowed and the Skills-docs: none line are clean. The @objectstack/objectql changeset flag is a false positive: the only file is a *.test.ts that tsconfig excludes, and files[] is dist.

  • Dogfood owed (narrowing): the thread reports the full battery on this head, Test Files 490 passed | 3 skipped (493), Tests 4144 passed | 68 skipped (4212), lock VERDICT exit 0. For --land, it has to be pinned to f8da2ea0 in the card's latest os-dev-report.

Nits, not blocking (one prose-only commit would clear the first two)

Before landing

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

席位意见:可以合。我读了三个协议文件的 diff:两处新拒绝都只在「不指明包」且对应行是无包行时才问,复用保存入口同一个 packagelessHolderRefusal 的 disabled-holders 判断,自家草稿发布进自家行不受影响;错误信息只在 delete 时说「Nothing was deleted」,其余都说「Nothing was written」,正确。三条小毛病不挡合并,见下。

席位核对 — ACCEPT · repo:objectstack#3 · head f8da2ea030a5d9563ccf82ed873edaa0a5dd2de4

  1. 形态:首行 Fixes #37608;标题带 !;正文 Clause-②: no (narrowing)、Metadata-protocol: narrowed、Skills-docs: none(有理由行);7 个文件,+222 / -35。
  2. 前提实测:保存、草稿、删除、丢弃四入口的同一判断已在 main(本 PR 复用 packagelessHolderRefusal,扩 verb 类型);dogfood 全量 VERDICT exit 0(卡线程报告,head f8da2ea)。
  3. 门禁 check-runs:唯一红是 2 × Check Changeset,原因为 pending 的 37499 changeset 的 DELIBERATE CORRECTION,三条按设计而红条件经 L1-a 核过成立;其余绿。check-governed-merges --pr 37818 257 行 ≤ 3000。
  4. 接受的偏差:S1 按席位路线 2 处理:自家草稿发布与无行回滚两个相邻情况不移入本 PR,交 metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851(p1,Blocked-by 本卡)。契约记录 7213580988 PASS,L1 ACCEPT 7213596615。
  5. 范围外去向:metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851 承接两个相邻情况;ADR-0150 D3 的 2026-11-26 注记合并后由本席在周卡 ADR revisions, week of 2026-11-25: rolling checklist of ADR text out of step with main (one governed PR) #37245 记一行,点名两个单元格与 metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851;reassignOrphanedMetadata 线索尚无卡(L1-a 标注)。小毛病:37608 changeset 的 BREAKING 句比移动清单读得宽(加 "in the cells listed below" 即可)、正文摘要说发布和回滚是「最后两个入口」应点名 metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851、回滚验收在只有无包草稿时偏松(归 metadata-protocol: a bare publish of a disabled package's own draft, and a bare rollback with history but no package-less row, still land on a name only disabled packages hold #37851)。Skills-docs: none。
  6. 落地条款:申报收窄 ⇒ 终局四件套,等 GOVERNED_APPROVERS(os-zhuang)批准或维护者直合;批准后本席照落地前检落地,--land 前须卡上最新 os-dev-report 的 dogfood 读数钉在 f8da2ea。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

维护者速读

@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 27, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 27, 2026 09:20
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 91875c7 Nov 27, 2026
76 of 79 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-e59pzb branch November 27, 2026 09:51
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…me only disabled packages hold, with or without a package-less row (objectstack-ai#37851) (objectstack-ai#37948)

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoHpXeKaibCgzF7LxhhjHxMf)_
Fixes objectstack-ai#37851

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no page under `skills/**` or `content/docs/**`
teaches a per-item publish or rollback naming no package over a name
only disabled packages hold; the refusal's own sentence names the fix

## 维护者速读

-
包停用后,不指明包的单项发布和回滚以前还能写进去(发布写进停用包自己的行,回滚把已删的无包定制重新插回来),现在和保存一样被拒绝,什么都不写。
- 这是 objectstack-ai#37851 裁定 A 「两处都拒绝」的实现,外加裁定要求先测的第三格(停用包自有行的裸回滚):实测在 main
上也落地,所以一并拒绝。
-
写包自己的行的两种(发布自有草稿、回滚自有行)提示"指明包"(`?package=`),指明包后照常写;会把无包行插回来的回滚提示"先启用包"。指明包的写、读、启用后的行为都不变;本改动可整体撤回。
- 无

## What changes

Ruling A on objectstack-ai#37851 (comment 7216539589, maintainer 「两处都拒绝」): the
per-item publish and rollback naming no package refuse a name only
disabled packages hold, as the bare save does, whether or not a
package-less row is stored. PR objectstack-ai#37818 made both doors ask the
disabled-holders judgment only where they read or write a
package-unbound row that is already stored; three cells were left
writing.

- **Cell (a), per-item publish of the disabled package's own draft**
(`promoteDraftForPublish`,
`packages/metadata-protocol/src/protocol-history-and-publish.ts`): where
no package is named and the draft address is the package's own draft
(`key` and `into` that package), the door now asks
`packagelessHolderRefusal` (`arms: 'disabled-holders'`) with `unbound:
false`. Over a name only disabled packages hold it answers
`disabledHoldersOnlyRefusal` (verb `publish`): `409 RESOURCE_CONFLICT`,
"Name the package this publish is for, then send it again …", the bare
save's own sentence there. That holds whether or not a package-less row
is stored beside it, because the promotion never touches that row and
the publish naming the package reaches the draft. This flips the control
pin objectstack-ai#37818 added (its line 320).
- **Cell (b), per-item rollback with the package-less row's history but
no row stored** (`rollbackMetaItemUnaudited`,
`packages/metadata-protocol/src/protocol-package-commits.ts`): the
`active.unbound` precondition is dropped. Where the restore writes the
package-unbound row (`rollbackPackageId === null`), stored or not, the
door answers `disabledHoldersCustomizationRefusal` (verb `rollback`):
`409 RESOURCE_CONFLICT`, "Enable the package that holds …". The restore
would have inserted the package-unbound row again, which is the disabled
holder's customization.
- **Cell (c), per-item rollback of the disabled package's own row**
(same door): measured first, as the ruling asks. On `main` 73d5e34 it
answered `success: true` and restored the row (pin below, red on main).
Refused in this PR as (a) is: `unbound: false`,
`disabledHoldersOnlyRefusal` (verb `rollback`), and the rollback naming
the package still restores it.

The rollback's candidate set is the active rows' bindings plus the
restore's binding, so a `.custom` pair of a disabled base is judged the
way the save judges it. The judgment returns `undefined` with any
enabled holder, so every answer over an enabled package is unchanged.
The `packagelessHolderRefusal` docblock now says which state each door
asks.

Also in this PR:
- **Migration entry**
`disabled-holder-package-less-row-bare-write-refused` (spec, pending
release): the surface, replacement, reason and acceptance criteria name
the three cells and their two remedies. The `reason` sentence L2 S1 on
objectstack-ai#37818 required ("with none stored they judge no holder … not refused by
this entry") is replaced with what the doors now do.
- **New changeset**
`.changeset/37851-disabled-holder-own-row-publish-rollback-refused.md`:
`minor` for metadata-protocol and spec, BREAKING scoped to the three
cells, ADR-0087 `not-required (already-registered
disabled-holder-package-less-row-bare-write-refused)`. Its "Not moved"
paragraph also carries the correction to the 37608 note (next bullet).
- **No edit to the released note**
`.changeset/pre/37608-disabled-holder-publish-rollback-refused.md`. The
release PR objectstack-ai#37661 (`19.0.0-next.1`) consumed it, so this PR keeps
`main`'s blob byte for byte (seat ruling, Option B, comment 7222609810).
Its "Not moved" list still names these three cells as landing; the
objectstack-ai#37851 changeset above states the correction, and whether to edit the
pre/ text before GA is the release owner's call. `Check Changeset` is
green.
- ADR-0150 D3 note wording (`docs/adr/**`) is not in this diff; the seat
carries it to the ADR checklist, per the ruling.

## Tests

`packages/objectql/src/disabled-holder-packageless-row-doors.test.ts`,
inside the `describe` objectstack-ai#37818 added (same fixture: `com.acme.mail` ships
`email_template` `acme.welcome` in en-US / zh-CN; `fr-FR` is a member it
never ships, the cell the D11 close leaves open):

- publish, the package's own draft, `it.each` over beside the stored
package-less row (the flipped :320 control) and with no package-less row
stored: refused 409 with the `?package=` sentence, no package named,
every stored row byte-identical. CONTROL: the publish naming the package
promotes it, the package-less row byte-identical.
- CONTROL: publish of the package's own draft, re-enabled: the bare
publish promotes it as on `main`.
- rollback with the package-less row's history but no row stored (saved
twice, deleted, then disabled): refused 409 with the enable sentence, no
row inserted. CONTROL: re-enabled, the same rollback restores the
version.
- rollback of the package's own row (saved twice with `packageId`, then
disabled): refused 409 with the `?package=` sentence, nothing written.
CONTROL: the rollback naming the package restores it; re-enabled, it is
served.

<details><summary>Measurement, reach on main, fix</summary>

- **Served-stack measurement before the ruling** (real `RestServer`
routes over the real ObjectQL engine and protocol, in-memory driver,
this fixture, `origin/main` 0a3ea67): recorded on the card, comment
7216513948. Bare `PUT` answered `409 RESOURCE_CONFLICT`; bare `POST
/publish` and bare `POST /rollback` answered `200` and wrote.
- **Reach on `main` 73d5e34** (pins committed first as 1217b6a, run
against main's `metadata-protocol` build): `Tests 5 failed | 9 passed
(14)`. The four refusal pins and the re-enabled publish control failed
with `no refusal: expected [ undefined, undefined ] to deeply equal [
409, 'RESOURCE_CONFLICT' ]`; that includes cell (c), so the ruling's
third cell lands on `main`.
- **Fix** (42bb7de, metadata-protocol rebuilt): `Tests 14 passed (14)`.
</details>

## Verification

Local, at head 0480711 on `origin/main` 73d5e34, each run through
`os-verify-lock`:

| Run | Result |
|---|---|
| `pnpm --filter @objectstack/metadata-protocol test` | `Test Files 372
passed \| 9 skipped (381)`, `Tests 23598 passed \| 45 skipped (23643)`,
exit 0 |
| `pnpm --filter @objectstack/objectql test` | `Test Files 642 passed
(642)`, `Tests 14535 passed (14535)`, exit 0 |
| `pnpm --filter @objectstack/rest test` | `Test Files 432 passed
(432)`, `Tests 8972 passed \| 351 skipped (9323)`, exit 0 |
| `typecheck` metadata-protocol, objectql | exit 0 |
| spec `vitest run src/migrations` | `Tests 206 passed (206)` |
| Derived gate families (`dispatch-gates.mjs --commands`, 98 commands) |
95 exit 0 (spec `check:api-surface`, `check:browser-reachable-entries`,
`check:dual-source-exports`, `check:entry-nameability`,
`check:exported-any` and cli `migrate-meta-engine-guidance.test.ts`
green after a spec + cli rebuild). `check-empty-changeset` was red at
this head on the then-DELIBERATE CORRECTION of the 37608 note; that edit
is gone at `c488ff99` (Option B) and `Check Changeset` is green there |

NOT MEASURED locally: `check:dual-build-cjs-loads`, reason: it needs
every package's `dist/` (no `adapters/hono`, `apps/account` build here);
CI's Lint & Repo Gates runs it. `check-plugin-teardown-shape
--self-test`, reason: shallow clone cannot reach its pinned fixture
commit; checker-health only.

Dogfood battery at the final head `c488ff99`, under `os-verify-lock`
(card comment 7223157350): closure build exit 0; spec `check:generated`
14 of 14 up to date; pin file 14 of 14 passed; dogfood 490 test files
passed (3 skipped), 4144 tests passed (68 skipped). CI at `c488ff99`: 58
success, 11 skipped, none red.

## Acceptance notes

- The enable sentence says "the row stored for it under no package is
that package's customization". In cell (b) no such row is stored at the
moment of the refusal; its history is, and the restore would store it.
The ruling names that sentence for (b), so this PR keeps it unchanged.
- In-process `publishMetaItem` with `packageId: null` present (objectstack-ai#37818
record N1) still takes the named branch; unchanged here.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L9qibz3J6vDGdnFpMq3hkm)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ut of step with main (week of 2026-11-25) (objectstack-ai#38289)

<!-- claude-projects-attribution: {"github_login":"os-elon-musk"} -->
_Requested by **Elon** · [project
thread](https://claude.ai/code/project/chan_01WedDzV26nniwxv7jC88B9D?thread=cmsg_01WedDzV26nniwxv7jC88B9DDypKu7B9nwbu5WuV7AEio8)_

Fixes objectstack-ai#37245

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:用户无感;只在十份设计记录里补了带日期的说明,写明主线现在实际怎么做,原有的决定文字一个字没动。
- 为什么做:属于「每周设计记录修订」滚动清单(11 月 25
日这一周);清单每一行指出一处「记录写的和主线不一致」,这次一并补齐,免得照着记录干活的人被过时说法带偏。
- 出错会怎样:最坏是某条补充说明写得不准,读这些设计记录的人会碰到;纯文档、只增不删,可以直接撤回,不影响任何功能。
- 要你做什么:请审这些补充说明并亲手合并(设计记录须由你本人合)。

## What changes

Ten ADR files gain notes dated 2026-11-28. Every diff line is an
addition: 239 lines added, 0 removed. No original decision text is
rewritten, and no decision changes. Each note follows the note
convention its own record already uses.

Each row's "what is true now" was read against the code on `main` before
it was written. Where a row was wrong or had gone stale, the note says
what `main` does, and the table and the list under it say so.

| Row (comment id on the card) | ADR and section | Result |
|:---|:---|:---|
| Card body row (from objectstack-ai#37238) | ADR-0146, the 2026-11-24 amendment, "32
registered types" | **Landed. Row stale.** The row asks for 33; the
registry holds 35 entries on `main`. The note states no count and points
at the registry and at ADR-0084's table. |
| 7155511307, nit 1 | ADR-0160 D1, the door's page cap sentence |
**Landed. Row stale.** The row says the door has no page cap. PR objectstack-ai#37354
added one. The note says what `main` does: the list is cut one row under
the door's cap, not at it. |
| 7155511307, nit 2 | ADR-0160 D1, "only contains braces" | **Landed**
as the row asks. |
| 7155511307, nit 3 | ADR-0160 D3, the link-field sentence | **Landed as
a note that the sentence stands.** |
| 7161785832 | ADR-0158, Open items 9 and 12 | **Landed.** |
| 7178404228, anchor half | ADR-0066, line 146 | **No edit.** PR objectstack-ai#37621
already landed it (record 7198334624). |
| 7178404228, end-state half, with 7201928772 | ADR-0066 D2 ⑧ |
**Landed.** Its prerequisite, PR objectstack-ai#37371, is merged. The proposed text is
tightened in two places, listed below. |
| 7179515770 | ADR-0158 U3, U6, L4, Open item 10 | **Landed.** |
| 7184833647 | ADR-0159, Context, "One name already taken" (line 109) |
**Landed as a note. The anchor line is untouched.** This is not a
no-edit row: the anchor resolves, onto the opposite meaning. See below.
|
| 7187445064 | ADR-0158 L1, L2, Open items 6, 8, 10 and 11, and a new
Open item 13 | **Landed.** |
| 7195437501 | ADR-0010, the amendment note of 2026-11-24 | **Landed**,
with one arm `main` has gained since the row was written. See below. |
| 7212321297, first row | ADR-0067 D3 | **Landed. Row wording wrong.**
The note carries the revert rule that the `form` type brought. See
below. |
| 7212321297, second row | ADR-0160, implementation split, row 7's
bullet | **Landed.** The row places the stale path near line 425; it is
near line 491. |
| 7213085888 | ADR-0048 §3.5 | **Landed.** The row's ready text, dated
2026-11-28, with symbol anchors where it had line numbers. |
| 7215202653, corrected by 7215223685, with 7224476684 | ADR-0150 D3,
the note of 2026-11-26 | **Landed.** Item 2 of the first row said the
two doors were still open. The later row supersedes it: PR objectstack-ai#37948
merged, and both doors now refuse. |
| 7217585102 | ui ADR-0057, A2 and A3 | **Landed. Row stale on one
line.** The plan-marker line is written as `main` is today, after PR
objectstack-ai#37970, and not only as it was after PR objectstack-ai#37720. |

Comments that are not rows: 7186949648 (triage note), 7196224618 (a
one-row claim), 7196910014 (its report), 7198334624 (its landing record)
and 7237786310 (this claim).

**No row is held.** Every prerequisite is merged on `main`: PRs objectstack-ai#37219,
objectstack-ai#37240, objectstack-ai#37268, objectstack-ai#37354, objectstack-ai#37366 (which carried objectstack-ai#37422), objectstack-ai#37371, objectstack-ai#37389,
objectstack-ai#37423, objectstack-ai#37449, objectstack-ai#37640, objectstack-ai#37720, objectstack-ai#37818, objectstack-ai#37931, objectstack-ai#37948, objectstack-ai#37970, objectstack-ai#37065,
objectstack-ai#36138 and objectstack-ai#37021. The card has 19 comments as of this pull request; a
row added after comment 7237786310 is not in it.

### Where a note differs from its row

- **ADR-0146.** The row offers two forms, "give the count" or "point to
ADR-0084's table". The note takes the second. A count written today
would already be the third reading (32, then 33, now 35).
- **ADR-0160 D1, the page cap.** The row's premise was true when it was
written and is not now. `RecordContextDoor.pageCap` exists, and both
doors answer it. The note records the one-row difference between the
amendment's words and the code: a list whose cut plus its probe row
would pass the cap is cut one row under the cap.
- **ADR-0160 D3, the link field.** The note leaves the wording alone.
- **ADR-0066 D2 ⑧.** Two changes to the proposed text. The note says in
words that `viewAllFieldsReadVote` replaced `superuserFieldVote`, and
anchors only the function that exists. And it does not say that nothing
re-opens a lock across sets: another set's `viewAllFields` still makes a
hidden field readable, and another set's field row with `editable: true`
still grants the edit, because field grants union without deny.
- **ADR-0159, line 109.** PR objectstack-ai#37422 was merged into PR objectstack-ai#37366's branch,
so the anchor `view.zod.ts#defineForm` resolves and the gate is green on
it. It now resolves onto the `form` type's factory, while the paragraph
describes the Studio helper, which is `defineMetadataForm` today. The
paragraph is Context and describes the tree before the ruling was
carried out, so the note leaves it as written and states both names.
- **ADR-0010.** The row covers the three restore doors of PR objectstack-ai#37423. The
same rule has since gained a second refusal, from PR objectstack-ai#37640: a restore
that would write a version the platform registered into a package's row.
The note has one sentence on it. That sentence goes beyond the row; cut
it if the note should carry the row alone.
- **ADR-0067 D3.** The row asks for a note "naming `form` as a
translated metadata type". D3 is about undo granularity and has no such
notion. The contract reviews of PR objectstack-ai#37422 sent one fact to this record:
a `form` item is reverted only after every `view` row its commit edited
is put back, and it joins `failed[]` otherwise. The note records that.
- **ADR-0048.** The row's text was dated 2026-11-24. The note is dated
2026-11-28, the day it was written into the record.
- **ADR-0150.** Besides answering "Not judged yet", the note qualifies
one sentence of the 2026-11-26 note that said too much: the draft
discard is newly refused only over a stored package-less draft. Where it
was already refused, only its sentence moved.
- **ADR-0158.** Row 7179515770 points at a draft held by its seat, which
this session could not read. The notes are written from the two rows and
the code. Open item 13 is a new numbered item at the end of the list,
carried from the display card; it is marked not built and not settled.
- **ui ADR-0057.** The row asks for "what main does after objectstack-ai#37720".
`main` has moved once more: since PR objectstack-ai#37970 the entry's marker stands
for a write that waits for approval. The note says that, and that A5's
"Not recorded yet" bullet held until that pull request merged.

## Tests

Docs only. No package is touched, so no build closure and no package
test is owed for the change. No tested behaviour changed, so there is no
ablation.

What was checked by hand, on the committed text:

- Each phrase a note quotes from its ADR was compared with the base
file.
- Each verbatim maintainer quotation was compared, byte for byte, with
its record on GitHub.
- Each cited path and symbol exists on `main`. The one exception is
deliberate: the ADR-0160 note names `packages/spec/src/ai/skill.form.ts`
to say that no such file exists.
- Upstream moved ten commits while this was written (`e42520c67b` to
`e2a0e90025`). None touches an ADR file or a file a note cites.
`overlap-check` answers `VERDICT clean exit 0` against `origin/main` at
`e2a0e90025`, and no open pull request shares a file with this branch.

The local gate set is the `dispatch-gates --commands` derivation for
this change set, 27 commands, run on the final commit `c2c3345747`. Each
exit code was captured before any pipe. Reconciliation: `Run
reconciliation — 27 derived, 27 run, 0 NOT-MEASURED, 0 UNRUN`, all 27
with a recorded exit code.

<details><summary>ADR gates on c2c3345 (all exit 0)</summary>

| Command | Exit | Verdict line |
|:---|:---|:---|
| `pnpm check:adr-symbol-anchors` | 0 | `check-adr-symbol-anchors: 4525
anchors across 164 records resolve`, 0 line anchors survive. On the base
commit the same gate reads 4478. |
| `node scripts/check-adr-links.mjs` | 0 | `check-adr-links: 1268
relative link destination(s) under docs/adr/ resolve` |
| `node scripts/check-adr-links.mjs --self-test` | 0 | |
| `pnpm check:adr-anchors` | 0 | |
| `pnpm check:adr-index` | 0 | `adr-index --report: OK —
docs/adr/README.md is current, every record parsed` |
| `pnpm check:doc-authoring` | 0 | |
| `pnpm check:nul-bytes` | 0 | `check-nul-bytes: OK (scanned 28605 text
file(s)`, no raw control bytes |
| `pnpm check:closed-ceremony-text` | 0 | |
| `pnpm --filter @objectstack/lint run check:doc-formula-expressions` |
0 | run after building `@objectstack/formula` and `@objectstack/lint`
under the verify lock |
| `pnpm --dir ui run check:new-line-citations` | 0 | `VERDICT
new-cross-file-line-citations: 0 new citation(s)`. Not in the derived
list; run because a ui ADR changed. |

</details>

<details><summary>The other derived families on c2c3345 (all exit
0)</summary>

`node scripts/check-closing-keyword-parity.mjs` and its `--self-test`,
`node scripts/check-comment-mask-corpus.mjs`, `node
scripts/ci/plan-test-core-shards.mjs --self-test`, `pnpm
check:ci-filter-parity`, `pnpm check:cross-package-test-inputs`, `pnpm
check:driver-memory-census`, `pnpm check:gitlink-declared`, `pnpm
check:pm-governed-merges`, `pnpm check:pm-prior-rulings`, `pnpm
check:published-files`, `pnpm check:refd-timer-probe`, `pnpm
check:registry-log-declared`, `pnpm check:rest-log-spy-declared`, `pnpm
check:tier-file-adoption`, `pnpm check:undeclared-dep-imports`, `pnpm
check:watch-hint-literal`.

Before the push: `node scripts/check-commit-card-trailers.mjs --range
origin/main..HEAD` exit 0, one commit message, no card relation and no
model identifier in the trailer pair.

</details>

<details><summary>The ui scripts test family: one prerequisite failure,
then green</summary>

Derived command: `pnpm --dir ui exec vitest run scripts/`, run under the
verify lock with `--maxWorkers=2`.

- First run: `VERDICT command-exit 1`. `Test Files 1 failed | 171 passed
| 2 skipped (174)`, `Tests 1 failed | 5144 passed | 2 skipped (5147)`.
The one failure was
`scripts/__tests__/unit-registry-absence-collision.test.ts`, with
`Failed to resolve entry for package "@objectstack/client"`. The package
had no build output in the fresh worktree. That is a missing
prerequisite, not a verdict on this change.
- After building the `@objectstack/client` closure under the lock, the
same command on the same commit: `VERDICT command-exit 0`. `Test Files
172 passed | 2 skipped (174)`, `Tests 5145 passed | 2 skipped (5147)`.

</details>

Not run locally: the repository test project behind `test:repo`, which
CI runs on the pull request and on the merge group. Every other family
CI runs is read from this pull request's check runs, not re-run here.

## Acceptance notes

- **Changeset.** None, and the pull request carries `skip-changeset`.
`docs/adr/**` and `ui/docs/adr/**` ship in no package: the ui tree's
root is a private workspace root and `ui/docs` is under no package
directory.
- **Governed surface.** `docs/adr/**` lands by the maintainer's hand.
This pull request stays a draft; the seat hands it over.
- **The registry count.** The card row and the amendment both carry a
number. The repository rule for a volatile count is to remove it and not
to sync it, so the note adds none.
- **Seen and left alone.** These are outside the card and are not
changed here.
- ADR-0084, near line 226, says `form` is not a registered type. It is
about the working names of the 2026-07-01 table, and `form` is
registered now. It is a candidate row for next week's card of this name.
- One internal skill playbook and ui ADR-0056 still use the Studio form
helper's old name. The review of PR objectstack-ai#37366 already recorded both.
- Comments in the console's chat scope helper still describe the
`app:PKG:build` dock key and the Studio copilot.

## Verification

### Read first

1. `docs/adr/0066-unified-authorization-model.md`, the note of
2026-11-28 under D2 ⑧. It is the highest-risk hunk: one long paragraph
on authorization, and it supersedes parts of three earlier notes. Check
the sentences on what another set can still re-open, and the sentence
that stored sets are read with the new meaning and never rewritten.
2.
`docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md`,
the amendment note of 2026-11-28. Check the four cells and their
remedies (enable, enable, name the package, name the package) against
the ruling it quotes.
3.
`docs/adr/0158-units-of-measure-standard-unit-table-org-units-quantity-unit-declaration-base-quantity.md`,
the notes under Open items 6 and 10 and the new Open item 13. Both notes
quote the maintainer, and item 10's records the shape of a new system
object.

### Two-minute check

Run `git diff --numstat origin/main...HEAD` on this branch. Expect ten
rows, nine under `docs/adr/` and one under `ui/docs/adr/`, each with `0`
in the removed column, and 239 added lines in total. Then run `pnpm
check:adr-symbol-anchors` and expect exit 0 with a line that contains
`check-adr-symbol-anchors: 4525 anchors across 164 records resolve`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW)_

<!-- signed: repo:objectstack#1 · os-elon-musk ·
session_016WV4cxRDKprCtjpEdtiPFW -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…g, 56 changesets added) and state what npm publishes (objectstack-ai#38645)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9St4eUWHFcCKuRUrCZPperJ)_

Fixes objectstack-ai#38189

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用户能看到什么变化:v19 发布页的 breaking 清单补上 11 月 26 日之后合进来的 56 条改动(其中 30 条还在 main
上、下一次预发布才带上,页上逐条标明),计数和页头的发布状态也改成现在 npm 上的真实情况。
- 为什么做:升级到 19 的人把这页当完整清单用;原清单只数到 19.0.0-next.0 的输入,之后 next.1、next.2 和
main 上的 breaking 改动大多没列。
- 出错会怎样:只改一个文档页,不影响任何代码或发布;某条写错了,读者会被误导,但直接撤回这个改动即可恢复原页。
- 要你做的:无。

## What changes

`content/docs/releases/v19/index.mdx` only.

- **Header.** The publication sentence now states what npm answers:
`latest` is 18.6.0, `next` is `19.0.0-next.2`; the line's versions on
npm are `19.0.0-next.0` (2026-11-26) and `19.0.0-next.2` (2026-11-28).
`19.0.0-next.1` was versioned on `main` (30a8047) and is not on npm, so
its changes first ship in `next.2`.
- **How this list was built.** Re-measured at `6eb23c87` (origin/main at
start, 2026-11-29) with the method the page states:
`classifyReleaseBullet` over every changeset on `main` — the 1,185 in
`.changeset/pre/` (consumed by the next.0, next.1 and next.2 version
passes) and the 219 still pending. 159 breaking from 155 PRs: 98 to act
on, 61 registered.
- **56 new lines' worth of changesets**, each sorted by the classifier
into 需手动处理 (27) or 自动迁移 (29), placed under the page's existing topic
headings, with three new ones: 需手动处理 → Knowledge; 自动迁移 → Knowledge
sources, Sharing and permissions. The 30 still pending carry "— on
`main`".
- **自动迁移 intro** and **Coming from 18.x step 3**: the registered split
restated in changesets (31 on the protocol-19 step, 30 on the
protocol-18 step, of 61).
- **Callout**: no longer says no prerelease was published.

## Tests

The classifier run (script in the dev's scratchpad; it imports
`classifyReleaseBullet` from `scripts/release-github-releases.mjs` and
feeds each changeset body as a CHANGELOG bullet, `- ` on the first line
and two-space indent on the rest), at `b03fd5f5`'s parent tree
`6eb23c87` (the diff touches no changeset):

<details><summary>Raw counts</summary>

```
ALL 1404 {"manual":98,"migrated":61,"other":830,"added":403,"semantic":12}
OLD (in a46efa8 set) 950 {"migrated":31,"manual":71,"other":563,"added":278,"semantic":7}
NEW (after a46efa8) 454 {"manual":27,"other":267,"added":125,"migrated":30,"semantic":5}
  NEW next.0 45 {"other":27,"added":13,"migrated":1,"semantic":2,"manual":2}
  NEW next.1 138 {"manual":9,"other":80,"migrated":12,"added":36,"semantic":1}
  NEW next.2 52 {"added":11,"other":38,"manual":3}
  NEW pending 219 {"added":65,"other":122,"migrated":17,"manual":13,"semantic":2}
missing-from-tree of a46 set: none
```

The same function over the 950 files as they stood at `a46efa8c` (`git
show a46efa8:.changeset/FILE`):
`{"migrated":31,"manual":71,"other":563,"added":278,"semantic":7}`, and
0 of the 950 changed section between `a46efa8c` and `6eb23c87` — the
page's first count reproduces exactly.

</details>

<details><summary>The 57 breaking changesets added after a46efa8 (pass
· section · PR · file)</summary>

```
next.0  manual    37477  37004-retire-knowledge-ragflow.md
next.0  manual    37491  36964-flow-option-label-filters.md
next.0  migrated  37437  35827-data-table-staged-edit-retired.md   (already on the page)
next.1  manual    37605  31908-p4c-sealed-expiry.md
next.1  manual    37640  37604-platform-record-followups.md
next.1  manual    37668  37104-knowledge-settings-readers.md
next.1  manual    37720  37682-i18n-retire-build-chat-keys.md
next.1  manual    37720  37682-retire-build-chat-frontend.md
next.1  manual    37818  37608-disabled-holder-publish-rollback-refused.md
next.1  manual    37883  37575-first-render-grid-shell-passes.md
next.1  manual    37900  36689-mcp-stdio-disabled-package-every-caller.md
next.1  manual    37902  37678-knowledge-turso-settings-group.md
next.1  migrated  37366  37086-define-metadata-form-rename.md
next.1  migrated  37366  37086-form-metadata-type.md
next.1  migrated  37371  36055-view-all-stops-voting-on-fields.md
next.1  migrated  37513  35143-data-model-publish-checks.md
next.1  migrated  37584  37499-disabled-holder-unbound-row-bare-write-refused.md
next.1  migrated  37600  36595-related-list-key-under-arrangement.md
next.1  migrated  37676  37304-knowledge-source-governed-type.md
next.1  migrated  37783  37712-agent-model-provider-retired.md
next.1  migrated  37807  35143-seeds-actions-checks.md
next.1  migrated  37840  36377-flow-bare-ordering-record-date-arithmetic.md
next.1  migrated  37870  37613-book-audience-one-gate.md
next.1  migrated  37910  37717-lookup-depends-on-param-computed-field.md
next.2  manual    37948  37851-disabled-holder-own-row-publish-rollback-refused.md
next.2  manual    38028  managed-email-password-held-off.md
next.2  manual    38042  36679-secret-rewrap-confirmation-exit.md
pending manual    37896  runtime-object-less-action-no-record.md
pending manual    37963  37467-knowledge-title-arm-retired.md
pending manual    37982  37907-knowledge-turso-test-connection.md
pending manual    38038  38019-knowledge-source-review-follow-ups.md
pending manual    38085  37622-related-list-keys-agree-under-arrangement.md
pending manual    38180  auth-switches-read-declaration.md
pending manual    38209  35879-served-schema-platform-stamped-keys.md
pending manual    38268  sec2-wf9p-f12.md
pending manual    38269  37752-app-list-edit-with-ai-removed.md
pending manual    38310  38041-knowledge-source-closure-system-object.md
pending manual    38431  36987-auth-updateuser-returns-void.md
pending manual    38452  38377-retire-split-algorithm-version.md
pending manual    38580  36057-scenarios-delete-agent-confirmation-names.md
pending migrated  37924  37856-ask-ai-action-type-retired.md
pending migrated  37929  36495-action-locations-acted-on.md
pending migrated  37971  37307-knowledge-source-references.md
pending migrated  38001  automation-variable-keys-reserved-segments.md
pending migrated  38013  37983-knowledge-source-save-needs-the-service.md
pending migrated  38060  37961-knowledge-source-unmounted-adapter-refused-at-save.md
pending migrated  38096  34562-record-structural-lint.md
pending migrated  38107  35143-views-dashboards-checks.md
pending migrated  38145  37214-chart-series-measure-format-refused.md
pending migrated  38168  36544-form-view-modal-size-retired.md
pending migrated  38216  33912-share-unknown-recipient-ledger.md
pending migrated  38216  33912-share-unknown-recipient.md
pending migrated  38273  33806-pending-confirmation-service-one-seam.md
pending migrated  38299  35924-publish-reparses-object-draft.md
pending migrated  38398  37753-build-progress-frame-retired.md
pending migrated  38470  38369-knowledge-held-without-embedder-or-store.md
pending migrated  38545  38150-adopt-orphans-door-retired.md
```

PR = the `(#N)` of the commit that added the changeset (`git log
--diff-filter=A`). The pass is the version commit that moved the file
into `.changeset/pre/`: next.0 33a31dc, next.1 30a8047, next.2
9d111a7 (`packages/spec/package.json` reads `19.0.0-next.0/1/2` at
each).

</details>

<details><summary>Page cross-checks</summary>

- Every one of the 155 PRs behind a breaking changeset is linked on the
page (0 missing), and the page links no PR outside that set.
- Each of the 30 pending changesets sits on a line carrying "— on
`main`", and no published one does.
- `!`-titled first-parent commits since 18.6.0 (958ee03) to `6eb23c87`:
135 (87 to `a46efa8c`, as the page said); all 135 are in the list.
- Registered markers resolved to their entry files
(`packages/spec/src/migrations/entries/*/N.*`,
`packages/spec/src/conversions/entries/N/`, and metadata-core's forward
conversion for `permission-view-all-fields-beside-record-bypass`): the
30 registered changesets added after `a46efa8c` name 39 ids, all on step
19; the 31 before it name 33 ids, 32 on step 18 and
`protocol-18-range-refused` on step 19.

</details>

## Acceptance notes

- **Pending changesets are in the list.** The card's done-when covers
every changeset between `a46efa8c` and the measurement sha; 30 of those
are still in `.changeset/` and ship in the next cut, so their lines are
marked "on `main`" and the intro says so.
- **`19.0.0-next.1` is not on npm.** `npm view PKG versions` for
`@objectstack/spec`, `core`, `cli`, `runtime` and `@object-ui/i18n`
lists `19.0.0-next.0` and `19.0.0-next.2` only. The header states that
fact and no more.
- **The registered split is now counted in changesets, not entries.**
The old page said 41 registered entries, 39 on protocol 18. Counting the
ids in the registered markers gives 33 at `a46efa8c` (32 on step 18), so
the 41/39 could not be reproduced from any stated method. The rewritten
intro and step 3 count changesets (31 on step 19, 30 on step 18, of 61),
which match the bullets one to one.
- **Followed the classifier where a title has no `!`:** objectstack-ai#37605, objectstack-ai#37883,
objectstack-ai#37963, objectstack-ai#38209 and objectstack-ai#38269 are breaking by their banner or their
`(narrowing)` arm; objectstack-ai#38209's Clause-② reads "no (narrowing …)", which the
classifier counts as breaking although the body says nothing a client
sends is refused. Listed as classified; no changeset changed.
- **objectstack-ai#37513** merged before the next.0 cut but its changeset was consumed
by next.1 (its body says the next.0 CHANGELOG missed it).
- **One line, several changesets**: objectstack-ai#37720, objectstack-ai#37366 and objectstack-ai#38216 each carry
two changesets; objectstack-ai#37818 with objectstack-ai#37948, objectstack-ai#38038 with objectstack-ai#38310 and objectstack-ai#38013 with
objectstack-ai#38060 share a line. The existing 102 lines were not rewritten.
- **Counts on a release page**: each is anchored to a named measurement
sha, the snapshot the card asks for; it is not a count kept in sync with
the tree.
- **objectstack-ai#37437** (closed card objectstack-ai#37922's bullet) is not added twice.
- **Check Changeset** will be red: this docs-only PR publishes nothing
from any package, the `skip-changeset` case, and the dispatch opens it
without labels, so that label is the seat's to apply.

## Verification

Read first, by risk: the method paragraph and header (`index.mdx` lines
6-47), the 自动迁移 intro, then the new 需手动处理 → Knowledge block.

Two-minute check: `git show
6eb23c8:.changeset/pre/37851-disabled-holder-own-row-publish-rollback-refused.md
| head -12` shows the `fix(metadata-protocol)!` summary and the BREAKING
banner behind the objectstack-ai#37948 line; `npm view @objectstack/spec dist-tags`
prints `{ latest: '18.6.0', next: '19.0.0-next.2' }`.

<details><summary>Local gate readings at b03fd5f</summary>

```
dispatch-gates --commands at b03fd5f: 52 commands (1 path changed)
first pass: 47 exit 0; 5 exit 3/1 = PREREQUISITE NOT MET (lint, spec, client-react unbuilt), re-run after building the closures under os-verify-lock (VERDICT command-exit 0 both):
  pnpm --filter '@objectstack/lint...' build ; pnpm --filter '@objectstack/client-react...' build
final: 52 of 52 :: exit 0
✓ dispatch-gates --ran: 52 derived famil(ies) accounted for — 52 run, 0 NOT-MEASURED (a DERIVED zero — all 52 recorded an exit code and none of them is 3).
check-release-page-status: OK — 3 GA major(s) in scope (v16, v17, v18)
```

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE

<!-- signed: repo:objectstack#3 · os-steve ·
session_01ADHkmRar3Kkg6SpwVgaaVE -->

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

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue 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

3 participants