ADR 0005: Release flow and changelog fragments¶
Status: accepted; points 2 and 5 are replaced by ADR 0009
Context¶
ADR 0003 said that the vibey release flow derives versions. That is not how this repository
releases. docs/RELEASING.md describes what exists and works: a person sets __version__ by
hand, renames the changelog section, merges to main, and tags v<version>; the release.yml guard
refuses a tag that disagrees with the code, the changelog or the branch. The ADR 0004 pre-release
tiers (a, b, rc) depend on that hand-set version, because a derived version cannot express them.
Every pull request also edits the one ## Unreleased section of CHANGELOG.md. Concurrent pull
requests conflict on it, and the conflicts are noise.
Decision¶
- The version is set by hand, in the release commit.
developcarries the version of the last release until the commit that prepares the next one. Documents that name the current alpha (README.md,llms.txt,docs/GETTING_STARTED.md) change in that same commit. This is deliberate:developmust not claim a version that has not been released. - The tag guard stays authoritative.
release.ymlkeeps refusing a tag whose version disagrees with the code, with the changelog, or withmain. It also refuses a tag while unfolded fragments remain (point 3). - Changes are recorded as fragments. A pull request that changes behaviour adds a file
changelog.d/<short-slug>.mdholding one paragraph, the text of one changelog bullet. It does not editCHANGELOG.md. Before tagging,scripts/fold_changelog.py <version>moves every fragment into a## <version>section, in file-name order, and deletes the fragment files. - Breaking changes follow ADR 0004. The fragment says what broke and what to do. The vibey
claim about deriving major versions from
BREAKING CHANGE:footers is not used here: footers stay required by the conventional-commit check, but the version is still chosen by a person. - Releases remain gated. Tagging, publishing to PyPI and pushing images need an explicit
approval, as
docs/RELEASING.mdstates. Nothing in this ADR automates them.
Consequences¶
- Concurrent pull requests no longer conflict on the changelog.
- A release is one reviewable commit that sets the version, folds the fragments and updates the status text.
- A contributor who forgets a fragment is caught in review, not by tooling; the guard only catches fragments left behind.
- ADR 0003's wording is corrected to match.