Context
publish.mjs prepare can only run once package.json reads 13.4.0 on dev, and the cut record #20655 needs that before its second step. The 13.4 notes merged in #20583 without the bump; the 13.3.1 cut-prep (#20024) had carried both. So the bump is its own one-PR leaf.
The Problem
prepare's preflight reads the release version from package.json, which is 13.3.1 at dev 1ce382ae1c, and it refuses a checkout that has not been bumped. Bumping alone turns CI red. test/playwright/unit/buildScripts/release/PublishReleaseNoteOrphan.spec.mjs requires every note in .github/RELEASE_NOTES/ to sit at or above package.json's version. v13.3.1.md, which the 13.3.1 release kept as its archive, would then sit below it. Dropping the note in turn breaks the committed release index. apps/portal/resources/data/releases.json lists only 13.3.1 at v13.3.1.md, so the Portal's news route on dev would fetch a 404 page as markdown. CI caught this on the first head: NewsTabOverflow.spec.mjs failed on the Markdown component's 404 warning. Locally it is 3/3 red, and 3/3 green with only the note restored. The 13.3.0 and 13.3.1 cuts had the same window, but no spec covered news routes until #20599.
The Architectural Reality
package.json's version and two lines of package-lock.json (3, the root, and 9, packages[""]) read 13.3.1.
.github/RELEASE_NOTES/ holds v13.3.1.md and v13.4.0.md. No file in the repository links to v13.3.1.md. The 13.3.1 note lives on in its GitHub release and the Portal's archive.
prepare would drop v13.3.1.md itself, but only in the release commit, after this PR's CI has already run.
The Fix
The bump and the drop in one commit; the index follows them:
package.json 13.3.1 → 13.4.0, the only line changed;
- the lock's two root fields to 13.4.0;
git rm .github/RELEASE_NOTES/v13.3.1.md;
node buildScripts/docs/index/release.mjs -r .github/RELEASE_NOTES, the generator prepare.mjs runs in the release commit, so the index lists the one note on disk. Its date falls back to the file's birthtime until prepare stamps the note.
Acceptance Criteria
Out of Scope
The release commit and the release PR (the release leaf under #20655), and the note's text.
Related
#20655 (the cut record) · #20024 (the 13.3.1 cut-prep, the same commit shape) · #20583 (the notes)
Live latest-open + closed sweep: the same as #20655's at 2026-11-09T12:42Z (5 open, green band). No bump ticket for 13.4.0 and no claim on it.
Origin Session ID: 04e8a1cb-0a40-4c51-b80d-07a9551d5264
Retrieval Hint: "13.4.0 version bump released note orphan guard"
Context
publish.mjs preparecan only run oncepackage.jsonreads 13.4.0 ondev, and the cut record #20655 needs that before its second step. The 13.4 notes merged in #20583 without the bump; the 13.3.1 cut-prep (#20024) had carried both. So the bump is its own one-PR leaf.The Problem
prepare's preflight reads the release version frompackage.json, which is 13.3.1 atdev1ce382ae1c, and it refuses a checkout that has not been bumped. Bumping alone turns CI red.test/playwright/unit/buildScripts/release/PublishReleaseNoteOrphan.spec.mjsrequires every note in.github/RELEASE_NOTES/to sit at or abovepackage.json's version.v13.3.1.md, which the 13.3.1 release kept as its archive, would then sit below it. Dropping the note in turn breaks the committed release index.apps/portal/resources/data/releases.jsonlists only 13.3.1 atv13.3.1.md, so the Portal's news route ondevwould fetch a 404 page as markdown. CI caught this on the first head:NewsTabOverflow.spec.mjsfailed on the Markdown component's 404 warning. Locally it is 3/3 red, and 3/3 green with only the note restored. The 13.3.0 and 13.3.1 cuts had the same window, but no spec covered news routes until #20599.The Architectural Reality
package.json'sversionand two lines ofpackage-lock.json(3, the root, and 9,packages[""]) read 13.3.1..github/RELEASE_NOTES/holdsv13.3.1.mdandv13.4.0.md. No file in the repository links tov13.3.1.md. The 13.3.1 note lives on in its GitHub release and the Portal's archive.preparewould dropv13.3.1.mditself, but only in the release commit, after this PR's CI has already run.The Fix
The bump and the drop in one commit; the index follows them:
package.json13.3.1 → 13.4.0, the only line changed;git rm .github/RELEASE_NOTES/v13.3.1.md;node buildScripts/docs/index/release.mjs -r .github/RELEASE_NOTES, the generatorprepare.mjsruns in the release commit, so the index lists the one note on disk. Its date falls back to the file's birthtime untilpreparestamps the note.Acceptance Criteria
package.jsonandpackage-lock.json(the root andpackages[""]) read 13.4.0, andapps/portal/resources/data/releases.jsonindexesv13.4.0.md; no other line changes..github/RELEASE_NOTES/v13.4.0.mdis the only note.test/playwright/unit/buildScripts/release/),prepare.spec.mjsandcheckPackageContents.spec.mjs;npm run check-relative-linksandnpm run check-package-contents;test/playwright/e2e/portal/).Out of Scope
The release commit and the release PR (the release leaf under #20655), and the note's text.
Related
#20655 (the cut record) · #20024 (the 13.3.1 cut-prep, the same commit shape) · #20583 (the notes)
Live latest-open + closed sweep: the same as #20655's at 2026-11-09T12:42Z (5 open, green band). No bump ticket for 13.4.0 and no claim on it.
Origin Session ID: 04e8a1cb-0a40-4c51-b80d-07a9551d5264 Retrieval Hint: "13.4.0 version bump released note orphan guard"