Repository navigation
fix(metadata-protocol)!: refuse the bare publish and rollback of a name only disabled packages hold, with or without a package-less row (#37851) - #37948
Conversation
…d on main) Claude-Session: https://claude.ai/code/session_01L9qibz3J6vDGdnFpMq3hkm Co-authored-by: Claude <noreply@anthropic.com>
…ly disabled packages hold, with or without a package-less row Claude-Session: https://claude.ai/code/session_01L9qibz3J6vDGdnFpMq3hkm Co-authored-by: Claude <noreply@anthropic.com>
…refuses DELIBERATE CORRECTION of the pending 37608 note's "Not moved" sentence, which listed these three cells as left open. Claude-Session: https://claude.ai/code/session_01L9qibz3J6vDGdnFpMq3hkm Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check3 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 178 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin a6c2af99cf68145e7c7a38691cebec1e6f2384b8 && git checkout a6c2af99cf68145e7c7a38691cebec1e6f2384b8
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 30a8047bad6e264762dd41ded7f1290c1224afc6 c488ff99123111d89265945da375edec2882bf56 && git checkout -B drift-repro 30a8047bad6e264762dd41ded7f1290c1224afc6 && git merge --no-ff c488ff99123111d89265945da375edec2882bf56
node scripts/docs-audit/affected-docs.mjs --json 30a8047bad6e264762dd41ded7f1290c1224afc6 |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 0480711 · 2026-11-27T13:22Z L1-a (the seat's L1 thread) runs the isolated |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Read: card #37851 and its four comments (measurement 7216513948, ruling 7216539589, claim 7217032154, os-dev report 7219375856), the PR body and both PR comments, the net diff 73d5e34..0480711 (7 files, +174 −35), and the 68 check-runs on the head as of 13:28Z. ① Derived judgmentsEvery answer the diff moves, all for a type the registry reads by package, no package named, every holder of the name disabled. Each is judged against ruling A (7216539589).
② Semver levelClause-②: no (narrowing) — on the PR body and on the new changeset, with
DELIBERATE CORRECTION of The three conditions for carrying the red:
Migration entry 19, sentence by sentence:
③ Boundary flags
④ Design judgmentThe narrowing makes the spec's own refusal real; it takes no declared capability away. ADR-0150 D3 on Attempts to break it, by code read:
No must-fix, no should-fix. Nits, each fixable on the changeset alone or left as a follow-up:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The filled brief the record above was rendered from (L1-a, isolated Contract review brief — PR #37948 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibz3J6vDGdnFpMq3hkm
Why it isn't this PR's:
What the reading suggests (not reproduced): the headers carry
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 8725be7 · 2026-11-27T15:35Z L1-a runs the merge delta of record 7219552890 on this head, by the same |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Merge delta of record 7219552890 (head 0480711). This head is a merge commit: first parent 0480711, second parent Read first: ① Derived judgments
② Semver levelClause-②: no (narrowing) — unchanged on the PR body and the new changeset. DELIBERATE CORRECTION, re-judged at this head. The rewritten "Not moved" sentence of The three conditions at this head:
The confirmation does not carry past the next merge. On ③ Boundary flags
④ Design judgmentUnchanged from 7219552890: the narrowing makes ADR-0150 D3's own refusal real and takes no declared capability away. The merge adds nothing to the design and nothing No must-fix, no should-fix. N1, N2 and N3 of 7219552890 are still open as nits; no file they name changed. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 REWORK (merge owed) at What blocks.
Next. Merge, resolve, run the battery, and announce the green head. The same reviewer then runs the delta (the |
…37851 note states the correction #37661 consumed .changeset/37608-disabled-holder-publish-rollback-refused.md into 19.0.0-next.1 and moved it to .changeset/pre/. Per the seat's ruling (.changeset/pre/ texts stay as written), this PR no longer edits it; the #37851 note now names what that note's "Not moved" list says and what holds from this release on. Claude-Session: https://claude.ai/code/session_01L9qibz3J6vDGdnFpMq3hkm Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head c488ff9 · 2026-11-27T15:44Z L1-a runs the delta of records 7219552890 / 7222332137 on this head, by the same |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Second delta of records 7219552890 (head 0480711) and 7222332137 (head 8725be7). This head is c488ff9 on the merge 63abdfd (8725be7 with ① Derived judgments
② Semver levelClause-②: no (narrowing) — unchanged on the PR body and in the changeset, with The reworded "Not moved" paragraph, sentence by sentence.
The DELIBERATE CORRECTION class no longer applies to this PR. It edits no changeset that exists on its merge base, so there is nothing red by design to confirm and the three conditions are moot. My earlier confirmations (7219552890, 7222332137) covered the edit of the then-pending note and are superseded by this record. The correction now lives in the new note alone, and the narrowing's declarations hold in that form: the note of the release that changes the behaviour names the released sentence it supersedes and states what is now true. One consequence stays open and is not this PR's to settle: on ③ Boundary flags
④ Design judgmentUnchanged: the narrowing makes ADR-0150 D3's own refusal real and takes no declared capability away. This delta changes release prose only. Stating the correction in the releasing note instead of rewriting a released one is sound: the No must-fix, no should-fix. Nits:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Seat ruling 2026-11-27T15:53Z: Option B. The consumed
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT at Contract review. Record 7219552890 on
Face. CI at this head: 60 success, 13 expected skip, 0 failed, 0 pending (including For the approver.
Nits.
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-27T16:26Z.
席位意见:可以合。三格都先在 main 上测出会写(pin 先提交,main 上 5 红 9 绿),修后 14/14 绿;dogfood 在最终 head 上跑过。L1-a 的 N5(更正句里"a rollback of a package-bound row"靠"as listed above"限定范围)不改,意思不变,不值得再动 head 重跑一轮。 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU 维护者速读
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Requested by Tesla · project thread
Fixes #37851
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — no page under
skills/**orcontent/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维护者速读
?package=),指明包后照常写;会把无包行插回来的回滚提示"先启用包"。指明包的写、读、启用后的行为都不变;本改动可整体撤回。What changes
Ruling A on #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 #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.
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 (keyandintothat package), the door now askspackagelessHolderRefusal(arms: 'disabled-holders') withunbound: false. Over a name only disabled packages hold it answersdisabledHoldersOnlyRefusal(verbpublish):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 fix(metadata-protocol)!: refuse the per-item publish and rollback naming no package over a disabled holder's package-less row #37818 added (its line 320).rollbackMetaItemUnaudited,packages/metadata-protocol/src/protocol-package-commits.ts): theactive.unboundprecondition is dropped. Where the restore writes the package-unbound row (rollbackPackageId === null), stored or not, the door answersdisabledHoldersCustomizationRefusal(verbrollback):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.main73d5e34 it answeredsuccess: trueand restored the row (pin below, red on main). Refused in this PR as (a) is:unbound: false,disabledHoldersOnlyRefusal(verbrollback), 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
.custompair of a disabled base is judged the way the save judges it. The judgment returnsundefinedwith any enabled holder, so every answer over an enabled package is unchanged. ThepackagelessHolderRefusaldocblock now says which state each door asks.Also in this PR:
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. Thereasonsentence L2 S1 on fix(metadata-protocol)!: refuse the per-item publish and rollback naming no package over a disabled holder's package-less row #37818 required ("with none stored they judge no holder … not refused by this entry") is replaced with what the doors now do..changeset/37851-disabled-holder-own-row-publish-rollback-refused.md:minorfor metadata-protocol and spec, BREAKING scoped to the three cells, ADR-0087not-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)..changeset/pre/37608-disabled-holder-publish-rollback-refused.md. The release PR chore: version packages (next) #37661 (19.0.0-next.1) consumed it, so this PR keepsmain's blob byte for byte (seat ruling, Option B, comment 7222609810). Its "Not moved" list still names these three cells as landing; the 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 changeset above states the correction, and whether to edit the pre/ text before GA is the release owner's call.Check Changesetis green.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 thedescribe#37818 added (same fixture:com.acme.mailshipsemail_templateacme.welcomein en-US / zh-CN;fr-FRis a member it never ships, the cell the D11 close leaves open):it.eachover 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.main.packageId, then disabled): refused 409 with the?package=sentence, nothing written. CONTROL: the rollback naming the package restores it; re-enabled, it is served.Measurement, reach on main, fix
RestServerroutes over the real ObjectQL engine and protocol, in-memory driver, this fixture,origin/main0a3ea67): recorded on the card, comment 7216513948. BarePUTanswered409 RESOURCE_CONFLICT; barePOST /publishand barePOST /rollbackanswered200and wrote.main73d5e34 (pins committed first as 1217b6a, run against main'smetadata-protocolbuild):Tests 5 failed | 9 passed (14). The four refusal pins and the re-enabled publish control failed withno refusal: expected [ undefined, undefined ] to deeply equal [ 409, 'RESOURCE_CONFLICT' ]; that includes cell (c), so the ruling's third cell lands onmain.Tests 14 passed (14).Verification
Local, at head 0480711 on
origin/main73d5e34, each run throughos-verify-lock:pnpm --filter @objectstack/metadata-protocol testTest Files 372 passed | 9 skipped (381),Tests 23598 passed | 45 skipped (23643), exit 0pnpm --filter @objectstack/objectql testTest Files 642 passed (642),Tests 14535 passed (14535), exit 0pnpm --filter @objectstack/rest testTest Files 432 passed (432),Tests 8972 passed | 351 skipped (9323), exit 0typecheckmetadata-protocol, objectqlvitest run src/migrationsTests 206 passed (206)dispatch-gates.mjs --commands, 98 commands)check:api-surface,check:browser-reachable-entries,check:dual-source-exports,check:entry-nameability,check:exported-anyand climigrate-meta-engine-guidance.test.tsgreen after a spec + cli rebuild).check-empty-changesetwas red at this head on the then-DELIBERATE CORRECTION of the 37608 note; that edit is gone atc488ff99(Option B) andCheck Changesetis green thereNOT MEASURED locally:
check:dual-build-cjs-loads, reason: it needs every package'sdist/(noadapters/hono,apps/accountbuild 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, underos-verify-lock(card comment 7223157350): closure build exit 0; speccheck:generated14 of 14 up to date; pin file 14 of 14 passed; dogfood 490 test files passed (3 skipped), 4144 tests passed (68 skipped). CI atc488ff99: 58 success, 11 skipped, none red.Acceptance notes
publishMetaItemwithpackageId: nullpresent (fix(metadata-protocol)!: refuse the per-item publish and rollback naming no package over a disabled holder's package-less row #37818 record N1) still takes the named branch; unchanged here.Generated by Claude Code