Repository navigation
fix(spec): open the major-19 retired-key and retired-def regions in the migration registry template - #37557
Draft
objectstack-fleet[bot] wants to merge 3 commits into
Draft
fix(spec): open the major-19 retired-key and retired-def regions in the migration registry template#37557objectstack-fleet[bot] wants to merge 3 commits into
objectstack-fleet[bot] wants to merge 3 commits into
Conversation
…he registry template Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA Co-authored-by: Claude <noreply@anthropic.com>
…majors; changeset Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA Co-authored-by: Claude <noreply@anthropic.com>
Contributor
📓 Docs Drift Check
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): |
This was referenced Nov 26, 2026
…ill claim on the spec major Claude-Session: https://claude.ai/code/session_01L6bhgV6i8jfWwSXjpWJrjA Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Nov 26, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37549
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/spec/src/migrations/registry.ts.template: opens an emptyretired-key:19region inRETIRED_KEYS_BY_MAJORand an emptyretired-def:19region inRETIRED_DEFS_BY_MAJOR, each placed and shaped like its major-18 sibling.semantic:19andstep19already existed, so the migration-step side needed nothing.retired-def:19goes beyond the card's wording, as an in-place fix of the same defect class.build-schemas.tsprescribes new retired-def entry files under the sameCURRENT_MAJOR(renderNewEntryFiles, used for both kinds). So the first whole-def removal on the 19 tree would have hit the same generator refusal. Same file, same gate family, same mechanical fix.scripts/build-migration-registry.tsneeds no change. Its lines ~422–441 are--self-testfixtures, not a region list: the generator discovers regions from the template's markers.packages/spec/scripts/build-migration-registry-entry.test.ts, newdescribe): every kind inKINDShas an open and close marker in the template for each of two majors, the spec package's major (whatbuild-schemas.tsregisters new entries under) andPROTOCOL_MAJOR. Onmaintoday these are 18 and 19, so the pin reds onmainbefore the fix and names the missing region and the major.PROTOCOL_MAJORand not "spec major + 1": the protocol major moves first, onmain(it reads 19 while the package is still 18.6.0). It is the leading signal for the next major..changeset/37549-retired-key-19-region.md(patch; the template renders into the shippedregistry.ts).Tests
Pin reds on the pre-fix template (origin/main 1af67b2 template restored, then put back)
Version tree: spec temporarily at 19.0.0-next.0 (not committed)
pnpm gen:migration-registry && pnpm exec vitest run --maxWorkers=2 scripts/build-migration-registry-entry.test.ts scripts/build-schemas-check-mode.retired-keys.test.ts(both projects), withpackages/spec/package.jsonversion set to19.0.0-next.0. The run includes "the printed route registers: write exactly the files check (b) names, run the generator, and (b) is silent", the case that fails on #35129.The version was restored to
18.6.0afterwards;git statuswas clean apart from the intended diff.18.6.0 tree: same two files
Spec package, local project, at 2fd0411: `pnpm --filter @objectstack/spec test` and `pnpm typecheck`
test:repo(the vitestrepoproject) belongs to CI's Test Core. Only its one touched-path file,build-schemas-check-mode.retired-keys.test.ts, was run locally (above).Acceptance notes
node scripts/pm/overlap-check.mjs --pr=37366,37371,37422givesVERDICT clean exit 0. Their migration changes are major-18 semantic entry files only, and none touches the template.RETIRED_KEYS_BY_MAJOR[19]/RETIRED_DEFS_BY_MAJOR[19]become empty arrays.Verification
Two-minute check:
pnpm --filter @objectstack/spec exec vitest run --project local --maxWorkers=2 scripts/build-migration-registry-entry.test.ts, expected to showTests 10 passed (10). Then set the spec version to19.0.0-next.0and runscripts/build-schemas-check-mode.retired-keys.test.ts, which should also be green.Read first: (1) the two new template regions; (2) the pin's choice of majors (spec package major and
PROTOCOL_MAJOR).Local gate subset at 2fd0411: derived by
node scripts/pm/dispatch-gates.mjs --commands. Verdicts are in the dev report on the card.check:doc-formula-expressionsis NOT MEASURED locally (PREREQUISITE NOT MET:@objectstack/formulaand@objectstack/lintare not built in this worktree); CI runs it. The full farm belongs to CI.Generated by Claude Code