Repository navigation
fix(metadata-protocol)!: refuse the per-item publish and rollback naming no package over a disabled holder's package-less row - #37818
Conversation
…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>
📓 Docs Drift Check10 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
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 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 |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a, the seat's L1 thread · 2026-11-27T05:28Z 席位核对 — L1 REWORK @
|
…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>
…ow answers them 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>
|
repo:objectstack#3 · os-tesla · session_01L9qibwictsQHxYdcVwUTSp Reworked head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 35ca502 · 2026-11-27T07:01Z L1-a runs the isolated |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: 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 ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe narrowing, read against the published contract on 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,
N1 (nit) — an in-process N2 (nit) — two conditions that cannot be false today. In the publish guard, N3 (nit) — the adoption cell (a package-less draft beside the disabled package's own active row, No must-fix. S1 is open on this head. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief L1-a handed its isolated contract-review sub-agent for the record above, filled from
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a, the seat's L1 thread · 2026-11-27T07:10Z 席位核对 — L1 delta REWORK @
|
…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>
|
repo:objectstack#3 · os-tesla · session_01L9qibwictsQHxYdcVwUTSp Delta head
|
|
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, |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Delta review of the record on head S1: closed ① Derived judgmentsNo 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:
DELIBERATE CORRECTION on
Rewritten sentences of Does anything still claim an open cell is refused:
② Semver levelUnchanged and still right: Check-runs on this head: 73, all completed. 58 success, 13 skipped, 2 failure. Both failures are ③ Boundary flags
④ Design judgmentThe 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: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a, the seat's L1 thread · 2026-11-27T08:29Z 席位核对 — L1 ACCEPT @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
席位意见:可以合。我读了三个协议文件的 diff:两处新拒绝都只在「不指明包」且对应行是无包行时才问,复用保存入口同一个 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU 维护者速读
|
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/**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维护者速读
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:
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,keyorintonull), and a package-unbound row or draft is stored, the door now askspackagelessHolderRefusalover the active rows and the drafts, as the draft save does. Answered with the door's other address refusals, after the_lockgate. 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).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 onpackagelessHolderRefusal; default'all'keeps every existing caller byte-identical). Over a name only disabled packages hold, both answer409 RESOURCE_CONFLICTwith #37584's sentence (disabledHoldersCustomizationRefusal, verbpublish/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:
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). Itsreasonclaims 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)..changeset/37608-disabled-holder-publish-rollback-refused.md(minormetadata-protocol and spec, BREAKING, ADR-0087not-required (already-registered …): the entry above already exists on the merge base)..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 from200to the409above, and over a stored package-less row with no draft from the409with the?package=sentence to the same409with the enable sentence." It read "there only the draft discard moves, from200to the409above.", which was false for the stored-row, no-draft cell.check-empty-changesetis 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 onedescribewith five pins (three refusals, two controls) in the cell the D11 close leaves open (fr-FR, a member the package never ships):main, the package-less row byte-identical;404 NO_DRAFTas onmain, 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
main56c9cae (pins committed first as 3c3b8f0, run against main'smetadata-protocoldist):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.dist/index.js):Tests 8 passed (8)at 245dbd0; after R1,Tests 10 passed (10)at 4793a98.scripts/ablation-replace.mjson theif (active.unbound || address.drafts.unbound)guard, rebuilt,ablation-dist-preflightmarker present in 2 built files):Tests 2 failed | 6 passed (8), exactly the two publish pins. Restored: blob == HEAD,git diff HEADempty, rebuilt, marker absent from all 24 built files.if (active.unbound)guard):Tests 1 failed | 7 passed (8), exactly the rollback pin. Restored the same way.dist/, then restored (blob == HEAD,git diff HEADempty, 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 answers409there, 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 pinmain'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 typecheckandpnpm --filter @objectstack/objectql typecheck: exit 0.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
403 NOT_OVERRIDABLEfirst, 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.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,packagelessAddressAmbiguityRefusalandhistorySlotOf). Each would move a shipped answer (404 NO_DRAFTor a write into a package-bound row) beyond the ruled cell.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)reassignOrphanedMetadatalead (card comment 7196921497, third bullet): not measured here. Carrier: the seat.403sentence in full) is for the seat's decision card, not this diff.POST /meta/:type/:name/publishand/rollbackforward the request with nopackageIdkey 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):
packages/metadata-protocol/src/protocol-history-and-publish.ts, the new block at the end of theelsearm inpromoteDraftForPublish(the address branch naming no package).packages/metadata-protocol/src/protocol-package-commits.ts, the block after the D11 / named-base closes inrollbackMetaItemUnaudited.packages/metadata-protocol/src/protocol-save.ts,packagelessHolderRefusal's newarmsparameter.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
packages/spec(the migration entry'sreason) and the two changesets; spec rebuilt under the lock: VERDICT command-exit 0.node scripts/pm/dispatch-gates.mjs --commandsderived 98 commands at f8da2ea; all 98 run;--ran:98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED (a DERIVED zero).check-adr-0087-registration --base origin/main. One red by design:check-empty-changeset --base origin/mainexit 1 on the DELIBERATE CORRECTION above.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).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 --commandsderived 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).node scripts/check-empty-changeset.mjs --base origin/mainexit 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-testneeded its pinned commit fetched into this shallow clone first (git fetch origin 621a4876…), then exit 0.Test Files 490 passed | 3 skipped (493),Tests 4144 passed | 68 skipped (4212), lock VERDICT command-exit 0.test:repo, the lint farm, the type-check lanes.Generated by Claude Code