Repository navigation
fix(spec): three upgrade-guide entries that first ship in protocol 19 move from step 18 to step 19, so os migrate meta --from 18 shows them - #38239
Conversation
…l 19 under step 19 Three ADR-0087 semantic entries were filed under 18.* after PROTOCOL_VERSION moved to 19, so composeMigrationChain(18) skipped them. Rename to 19.*; ids and bodies unchanged. Claude-Session: https://claude.ai/code/session_01L9qibvcTXi4hWgjz8G8ium Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 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 — 177 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 f11fcd32ba80e9bdc2bdd94cf826730f0c03aedf && git checkout f11fcd32ba80e9bdc2bdd94cf826730f0c03aedf
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 fc06c4dab845990e96fb6eb0e3ae49317c14b237 && git checkout -B drift-repro bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 && git merge --no-ff fc06c4dab845990e96fb6eb0e3ae49317c14b237
node scripts/docs-audit/affected-docs.mjs --json bd5407ec74b280f92a281ca4f82e5c8f0f8bdd47 |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head fc06c4d · 2026-11-28T10:10Z |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record: Contract review brief — PR #38239 @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: Inputs: card #38142 (body, triage 7234229913, claim 7236938884, os-dev-report 7237345615), PR #38239 (body, file list, net diff against merge base The diff: three ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. No nits either.
Out-of-diff note for the seat (not a finding on this head; the three renames are right as they stand). The card's own criterion is "a refusal that first ships in 19 belongs to step 19". Its candidate list was drawn from a narrower test: entries added after the commit that moved
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a ACCEPT at
Flag for the seat (out of diff, not blocking this PR). The record's out-of-diff note finds 34 more
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-28T10:26Z · zone
|
repo:objectstack#3 · os-tesla · session_01L9qibvcTXi4hWgjz8G8ium
Requested by Tesla · project thread
Fixes #38142
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
semantic/18.ID.tsbecomessemantic/19.ID.tsfordefine-form-studio-helper-renamed-define-metadata-form,form-type-define-form-and-packageless-list-at-form-name(both from refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366) andpublish-refuses-data-model-fields-that-save-and-do-not-work(from fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513). The ids and the file contents are unchanged (pure renames, 100% similarity).gen:migration-registryfiles an entry by its filename's major, andcomposeMigrationChain(fromMajor)keeps only the steps abovefromMajor(packages/spec/src/migrations/chain.ts:42). All three were added afterPROTOCOL_VERSIONmoved to 19 (204356a6e, feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314). None is in@objectstack/spec@18.6.0, the last 18.x release; fix(lint)!: four publish-time checks for data-model metadata that saves and does not work #37513 first shipped in19.0.0-next.0, refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366 in19.0.0-next.2(tag ancestry). Filed under 18, they were skipped by exactly the 18 → 19 upgrade they describe.form-type-…still followsdefine-form-…in id order, so its "since the previous entry" sentence still reads right.adr-0087: registeredmarkers in.changeset/pre/*and the released CHANGELOGs stay valid and are not edited.@objectstack/specpatch changeset. The registry,spec-changes.jsonand the upgrade guide are generated and not committed, so nothing else changes in the diff.Tests
No test file changes: the pins that read the chain (
semantic-relevance.test.ts,migrations.test.ts) read the generated step lists, not counts or ids for these entries. The before/after readings below are probes against the generated registry, kept in the project, not in this PR.Readings (head fc06c4d, base origin/main 23fa361)
Generated registry and
composeMigrationChain(18):--from 18lists the threeapplyMetaMigrations(stack, 18)on a minimal stack: before,todos=21, all three NOT LISTED; after,todos=24, all three aretodos.Local runs at fc06c4d:
pnpm exec turbo run build --filter='./packages/**' --filter='@objectstack/dogfood^...'underos-verify-lock: command-exit 0.pnpm --filter @objectstack/spec typecheck: command-exit 0.pnpm --filter @objectstack/spec test:Test Files 911 passed (911),Tests 28851 passed | 1 todo (28852).dispatch-gates.mjs --commands): 83 run, each exit 0;--ranreconciles 83 derived, 83 run, 0 NOT MEASURED (a derived zero: every line records its exit code).overlap-check.mjsbefore the first push: merges cleanly with origin/main, 0 open PR heads overlap.Acceptance notes
check-adr-0087-registrationread the major? Not built here (claim). The measured answer: in the window the per-entry files exist (f293d454b, 2026-08-10, to origin/main23fa3619), every entry added landed at or above the protocol major of its day, except these three.4e9fe9ff6, the 17 → 18 bump): 50 added under 17 and 717 under 18 (the next major, filed before the bump), 0 below 17. The one explicit backfill in the window (5823d593db, "backfill nine ADR-0087 ledger entries missing from the v17 stock") landed under 17, equal to the protocol major then.204356a6e, the 18 → 19 bump): 345 under 18, 0 below. The bump commit itself added one entry under 19.PROTOCOL_MAJORor above it" would have fired on exactly these three in about 1,150 additions, and on no backfill. "Equal toPROTOCOL_MAJOR" would have been wrong: it refuses the 717 entries filed ahead of the 17 → 18 bump. The gate already reads the paths of the entries a diff adds, so the check would close a blind spot of an existing gate rather than add a new one. A later backfill below the current major would still need a named exemption. Whether to file the card is the seat's decision.semantic/18.*entries were added betweenspec@18.6.0(958ee0359) and the move, ship in no 18.x release, and are skipped by--from 18the same way; each was filed whilePROTOCOL_MAJORread 18, so the at-or-above rule would not have refused them. They are outside this PR's claim; the carrier is the seat's.19.0.0-next.0andnext.2carry these entries under 18, soos migrate meta --from 18on those prereleases still skips them. The fix ships with the next prerelease. No released text is edited (AGENTS.md: CHANGELOGs are release-owned).Verification
Read first (by risk):
git diff --stat -M origin/main...HEADshowsR100for each.Two-minute check: in
packages/spec,pnpm gen:migration-registryand thengrep -n "publish-refuses-data-model-fields-that-save-and-do-not-work" src/migrations/registry.ts. On this branch the id sits inside thesemantic:19region; on main it sits insidesemantic:18.Generated by Claude Code