Repository navigation
v0.60.705.0
Pull requests stop picking a version: they carry a changelog fragment, and a release PR numbers each batch
Releases are cut per batch instead of per pull request. Until now every PR stamped the next PATCH version, wrote its own CHANGELOG section and appended its upgrade-notice row to one shared array. So every landing on master made almost every queued PR conflict in the same three places, and each one had to be restamped and tested again at its turn. From the next release on, a PR writes its entry to changelog.d/<branch-slug>.md, writes any new upgrade-notice row to behavior-changes.d/<id>.md, and touches no version. A release PR, opened a few times a day and right after an important fix, gives everything that landed since the last release one PATCH version and writes every stamp. Measured on 59 open PRs, keeping notice rows in their own files takes conflicts in the notice table from 22 to 0 and in the module size table from 27 to 1. This release is the last one a PR stamps by hand; docs/RELEASING.md#releases-per-batch describes the new flow.
.gstack/ship-policy.jsonturns onmerge: "direct"withchangelog_fragmentsinchangelog.d. The release stamp runsbun scripts/release-restamp.ts --stamp-only, andbun scripts/build-behavior-changes.tswrites the one release output,src/core/behavior-changes.generated.ts.scripts/build-behavior-changes.tsdates eachbehavior-changes.drow by the release section that holds its marker comment (the format is inbehavior-changes.d/README.md), andBEHAVIOR_CHANGESspreads the generated table after its released rows, which stay where they are. It refuses an id that starts with a digit, a marker that appears twice and a fragment whosebump:line says anything butpatch. A row whose text is computed stays in the table assince: releasedIn('<id>').scripts/release-restamp.tsgains--stamp-only <version>(the release PR's stamp, with no fetch, merge or commit),bun run release:unstamp(turns a PR stamped the old way into one commit holding only the stamp reset, its fragment and its notice-row files) andbun run migrations:renumber. Plainrelease:restamprefuses once master's policy saysmerge: "direct", and unstamp refuses to overwrite a fragment that already exists.scripts/check-behavior-since.tsrefuses a literalsince: 'TBD'row. With--stamped, which the Release workflow runs, it also refuses an unfolded fragment, a stale generated table and a missing or unreadable ship policy.- The Release workflow no longer follows a cancelled master run to a later commit with the same VERSION, because many commits share one VERSION between releases; it fails and names the run to re-run. A manual Release dispatch publishes only while master's head is the release commit, and otherwise refuses and names that commit's Release run.
- test.yml and e2e.yml key master push runs by commit, so a newer push never cancels the release commit's run. Every landing on master now runs full Test and E2E to the end.
- Docs: docs/RELEASING.md, CONTRIBUTING.md, CLAUDE.md, AGENTS.md, docs/TESTING.md and docs/contributing/version-recovery.md describe the new flow, and
changelog.d/README.mdandbehavior-changes.d/README.mdgive the file formats.