Repository navigation
Description
Problem Statement
prepare-hotfix.yml:163 refuses to start when main's ## Unreleased section has content:
ERROR: main's ## Unreleased section has content; a hotfix seeds an EMPTY section
That rests on #590's invariant — main's Unreleased is empty by construction, because every release freezes it on dev and main only ever receives release branches. #1676 supersedes that invariant: main may now carry changes that have landed but are not yet shipped, and its ## Unreleased describes them.
Under the new model the refusal is wrong, and it is the only mechanical blocker to main carrying unshipped work. Leaving it would mean the hotfix lane — the lane that exists for urgent security incidents — silently refuses whenever the release-neutral lane has been used.
Proposed Solution
A hotfix cuts from main's head, so it ships whatever is on main, including those carried changes. Their changelog entries therefore belong in the hotfix's own version section.
Replace the refusal with a branch on content:
main's Unreleased has content →prepare-changelog prepare X.Y.Zon the release branch, freezing the carried entries into## [X.Y.Z] - TBD(plus a fresh empty Unreleased). This is the same callprepare-releasealready makes ondev.main's Unreleased is empty →prepare-changelog seed X.Y.Zexactly as today.
Main's ## Unreleased then self-clears when the release branch merges back, so the invariant re-establishes itself after every hotfix.
Both commands already exist (prepare-changelog {prepare,seed,...}), so this is a branch in the workflow, not new machinery.
Also update:
- The
CHANGELOG flowheader comment inprepare-hotfix.yml(lines 26-30), which documents the old invariant. - The workflow-shape tests covering the hotfix lane.
- The [BUG] sync-main-to-dev merge can drop the fresh
## Unreleasedscaffold #590 reference indocs/RELEASE_CYCLE.md's hotfix section.
Explicitly decided: the publish-time gate does NOT change
release.yml's prepare-changelog validate --version still refuses to publish a version whose section is empty. No empty sections at release time; empty is acceptable at prepare-hotfix time.
This does mean carried entries can satisfy that gate without the hotfix's own fix being described. Accepted deliberately — no compensating check.
Alternatives Considered
- Keep refusing, and require
main's Unreleased to be drained before a hotfix. Rejected: it makes the release-neutral lane and the hotfix lane mutually exclusive, which is the opposite of what Release-neutral lane: merge to main without cutting a release #1676 is for. - Freeze on
mainrather than the release branch. Rejected:prepare-hotfixdeliberately never writes tomain(rollback is then just "delete the branch"), and that simplicity is worth keeping.
Impact
Breaking change: no. Behaviour changes only in the case that is currently a hard error.
Scaffold split to expect: prepare-hotfix.yml also ships in assets/workspace/.github/workflows/. Devkit's own copy is release-neutral and can ride the #1676 lane; the scaffold copy is a published asset and still needs a release. Land them as separate commits.
Changelog Category
Fixed
Activity
test(ci): pin the hotfix lane's freeze-or-seed branch
fix(ci): freeze main's carried entries in the hotfix lane
fix(ci): freeze main's carried entries in the scaffolded hotfix lane
chore: merge dev into the 1679 hotfix-freeze branch
feat(ci): refuse to cut a release while dev is behind main (#1681)
fix(ci): freeze main's carried changelog entries in the hotfix lane (#…
c-vigo commentedon Sep 25, 2026
Fixed in #1682 (merged to
dev2026-09-25, 0e8628f):prepare-hotfixfreezesmain's carried Unreleased entries instead of refusing. Reachesmainwith the next train; the consumer scaffold copy (prepare-hotfix.yml) rides the same release. The loose-bullet deletion found on the way was #1689, fixed in #1691.chore: release 1.17.0 (#1734)