Closed
Labels
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/cliCore CLI framework, Typer subcommands, options, and tablestype/bugType bug: the code does not do what it must
Milestone
Description
Problem
Every pull request into a release branch adds its entries at the top of ## [Unreleased] in CHANGELOG.md, and most also tick their entry in docs/ROADMAP.md. Two open PRs therefore always edit the same lines. Each merge makes every other open PR conflict, and each one has to be rebased, pass the pre-push gate again and run GitHub CI again. The release ruleset has no "up to date with base" rule, so these shared files are the only reason PRs into release/* need a rerun after a merge.
In v0.2.25 this happened three times in one hour:
- feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) (#739) #928 (feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739) conflicted with feat(gh): project and release metrics analytics and grafana dashboard (#926) #927, then with feat(github): pr readiness requires an issue-linked, completed task file (#704) #929. - feat(review): branch and pr reviews compute their own base-vs-head symbol delta (#593) #932 (feat(review): branch and pr reviews compute their own base-vs-head symbol delta #593) conflicted with feat(github): pr readiness requires an issue-linked, completed task file (#704) #929, then with feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) (#739) #928.
Each conflict was CHANGELOG.md, plus a task file one PR edited and another deleted.
Proposal
- Fragments. A PR into
release/*adds its changelog entry aschangelog.d/<issue>.md, a new file with a unique name that never conflicts. The fragment holds the house-style entries under### Added,### Changed,### Deprecated,### Removed,### Fixedor### Security. - Collection at the cut. The cut (the code path that writes the version's section today,
_update_changelog_headerincommands/release.py) gathers every fragment. It merges entries per category, in Keep a Changelog order and in issue-number order within each category, into## [X.Y.Z] - <date>, then deletes the fragments in the same change.## [Unreleased]stays as an empty heading. - Migration. This PR moves the entries now under
## [Unreleased]into fragments, one file per issue. - Enforcement. One more entry in the readiness grounding table (feat(github): pr readiness requires an issue-linked, completed task file #704) blocks a PR into a
release/*branch that changesCHANGELOG.mdordocs/ROADMAP.md. Bootstrap and cut PRs are exempt.docs/ROADMAP.mdhas been generated bydevops roadmap renderat the cut since feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739, so ticking it in a PR only causes conflicts. - Rules.
AGENTS.md,docs/agent/tasks/README.md, the PR template anddocs/RELEASE_CYCLE.mdsay "addchangelog.d/<issue>.md; do not editCHANGELOG.mdordocs/ROADMAP.md".
Acceptance criteria
tests/has offline tests for collection:- Three fragments with overlapping categories become one version section, with categories in order and entries in issue order.
- The fragments are deleted.
- A fragment with an unknown
###category, or with text outside a category, stops the cut before any write and names the file. - Running with no fragments leaves the section as the current code builds it.
- The readiness check blocks a PR into
release/v0.2.25whose changed files includeCHANGELOG.mdordocs/ROADMAP.md, naming the file. It passes the same PR without them, and passes the cut and bootstrap PRs (tests stubrun_gh, as feat(github): pr readiness requires an issue-linked, completed task file #704's do). CHANGELOG.mdon the branch has an empty## [Unreleased], andchangelog.d/holds one fragment per issue that had entries there.uv run devops cipasses.
Key questions
- A tool (towncrier, scriv) or the existing release code? The existing code (proposed).
devops releasealready writesCHANGELOG.mdat the cut, so collection is one function there. towncrier splits one item's entry into a file per category and needs its own template to keep the house style. - How does the cut and bootstrap exemption work? The same way feat(github): pr readiness requires an issue-linked, completed task file #704 exempts the release PR: the head branch is
release/vX.Y.Zinto the default branch. A bootstrap PR's head ischore/open-vX.Y.Z(proposed), matched by a constant pattern. - Generated docs (
README.mdmatrix,docs/CLI_REFERENCE.md,docs/commands/*.md)? Out of scope. They conflict only when two PRs change the same command group, and the fix is to regenerate.
Metadata
Metadata
Assignees
Labels
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/cliCore CLI framework, Typer subcommands, options, and tablestype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(release): changelog fragments so concurrent pull requests never c…
dan-petty commentedon Oct 2, 2026
Closed by #937, merged into
release/v0.2.25.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.25 (#1089)