Commit 5ddd5d3
fix(cli): migrate-meta's semver-label assertion targets the Chain: line, not the whole stdout (#17654)
`os migrate meta --from N` (no `--to`) defaults toMajor to
CHAIN_TERMINUS_MAJOR (18), one major ahead of PROTOCOL_MAJOR (17), because
protocol-18 semantic migration entries are already pre-registered in
packages/spec/src/migrations/registry.ts. Their `why:` prose legitimately
CITES the 17.0.0 GA release ("Measured on 17.0.0 GA end to end: …") and is
printed verbatim by the human-output path — a real historical citation, not
the mislabelled-runtime-version defect this test guards (docblock
:468-480). The blunt whole-stdout `expect(stdout).not.toContain(PROTOCOL_VERSION)`
cannot tell the two apart and fires on the citation.
Narrows that assertion to the version-label surface the docblock names (the
`Chain:` line), keeping both halves the docblock requires: no bare semver in
the Chain: line's version position, and no semver after the word "runtime"
anywhere (unchanged, already green). Also pins `--to PROTOCOL_MAJOR`
explicitly on the sibling "names this build's protocol major, in majors"
case, which silently rode the same drifting default into a hop it was never
meant to exercise.
No production code touched; packages/spec/src/migrations/** (the data under
test) is untouched, per the card's own instruction not to damage a real
historical record to silence an instrument.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9e3c485 commit 5ddd5d3
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
514 | 521 | | |
515 | 522 | | |
516 | 523 | | |
517 | 524 | | |
518 | 525 | | |
519 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
520 | 535 | | |
521 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
522 | 539 | | |
523 | 540 | | |
524 | 541 | | |
| |||
0 commit comments