Plan: Cut v0.2.0 and move release notes to changelog fragments
Status
Done (2026-11-11) — U1–U3 merged and v0.2.0 cut; U4’s pre-push fragment check is dropped by ruling (#2976); correcting the pre-commit reminder to name changelog.d/ is #2989’s change.
Erratum (2026-11-11): U4 is not built. The maintainer ruled the pre-push branch check and its Changelog: none trailer out; cargo xtask changelog check and MR review hold the rule. The pre-commit reminder still names CHANGELOG.adoc until #2989 lands, which makes it accept a staged fragment.
Erratum (2026-11-11): the release cadence this plan left out of scope (#2977) is ruled weekly, on the day the scheduled release-build runs; it is recorded in the git-workflow standard’s Release procedure.
Issues: #2861 (the release cut), #2862 (fragments). Unit issues are filed when the plan is approved, one per unit.
Branches: chore/changelog-verb, chore/release-notes-ci, chore/release-v0-2-0, chore/changelog-fragment-check.
A Design + Scope plan: GitLab owns tracking; the plan freezes when U1 starts. The maintainer decided the eight forks below on 2026-11-06 (recorded on #2861 and #2862).
Context
-
The file.
CHANGELOG.adocis 3.8 MB and 40,716 lines. Its header (lines 1-9) claims Keep a Changelog and SemVer "starting from the first tagged release".== Unreleased(line 10) is its only level-2 heading, so everything in it is unreleased. Three eras sit below it: about 20 repeated=== Added/Changed/Removed/Fixedgroups (lines 12, 4552, 8867, 9208 … 20591) holding* #N (type; scope; impact): summary. …bullets; 913 per-commit=== type(scope): subject (date)sections from 2026-05-02 to 2026-07-26 (lines 20603 … 39122); and a tail (lines 40637-40716) holding the v0.1.0-alpha content mixed with later bullets. -
Ops notes are an inline clause,
Ops: none.or prose (e.g. lines 61, 74, 93), 454 occurrences. Breaking changes are marked "pre-1.0 BREAKING/CHANGED" inside the bullet, ascoding-conventions.adoc:246andgit-workflow.adoc:72ask. -
Versions.
Cargo.toml:91[workspace.package] version = "0.1.0", inherited by 69 crates. The one tag isv0.1.0-alpha(2026-03-20), annotated but unsigned, with a hand-written GitLab Release and no CHANGELOG section. Nine#[openapi(info(version = …))]literals have drifted:services/craig-{cases,composition,exchange,financial, placement,reporting,rules,security}/src/api/openapi.rssay"0.1.0",services/craig-intake/src/api/openapi.rs:15says"0.2.0". utoipa-gen 6.0.1 falls back toCARGO_PKG_VERSIONwhenversionis omitted (utoipa-gen-6.0.1/src/openapi/info.rs:65-93). -
Release CI. On a tag,
.gitlab-ci.yml:333-364runssbomthenrelease(release-cli:v0.24.0) with the fixed description "See CHANGELOG.adoc for release notes" (line 361).xtask/src/cmd/ci/pipeline_tests.rs:65-69allow-lists therelease-cli createprefix. -
What reads the file. The pre-commit reminder (
.githooks/pre-commit:63-68); the union merge driver (.gitattributes:19-21, #2860); the Docker-context canary (xtask/src/cmd/validate.rs:2446-2490; its testcanary_dockerfile_lists_the_tracked_changelog_as_a_known_leakat 4213-4228);.dockerignore:10-13; lychee’s inputs (xtask/src/cmd/docs.rs:708-714); the host-gateway lint’s exemption (xtask/src/cmd/lints/host_gateway.rs:28). No lint parses entries. Antora does not include the file (docs/antora.yml), and could not: the body holds at least 222 unescaped{id}-style references thatdoc-attr-refs(xtask/src/cmd/lints/doc_attr_refs.rs) and Antora’s missing-attribute check reject. -
Rules. "Entry under
== Unreleased`" appears at `coding-conventions.adoc:221,delivery-protocol.adoc:111,plans/_template.adoc:76and (as "theCHANGELOG.adocentry")CONTRIBUTING.adoc:44, and in the injected agency guidance. The tagging protocol is annotated tags, a Release "with changelog highlights", and "every tag must have a corresponding entry" (git-workflow.adoc:133-141).AGENTS.md:54maps "ops notes" toCHANGELOG.adoc.
So every MR inserts at the same line (train cars conflict; the union driver only hides that locally), the file is far beyond any reviewer’s budget, and v0.1.0-alpha breaks the "every tag has an entry" rule.
Decisions (maintainer, 2026-11-06)
-
Old release notes live in a root
changelog/folder outside Antora. -
The v0.2.0 section is hand-written highlights plus the full verbatim archive. Upgrade posture: no in-place upgrade from v0.1.0-alpha; deploy fresh.
-
The tag is
v0.2.0, signed. -
Every MR carries a fragment, or a
Changelog: none - <reason>trailer. -
The union merge driver for
CHANGELOG.adocis dropped at the cut. -
Fragment types are Keep a Changelog’s six.
-
v0.1.0-alpha’s entry is recreated from its tag.
-
The AGENTS.md Project Override reads: "Release notes are
changelog.d/fragments, notCHANGELOG.adoc== Unreleased."
Design
Fragments: changelog.d/<issue>[.<slug>].<type>.adoc
-
<issue>is the GitLab issue number;<slug>([a-z0-9-]+) separates a second MR on the same issue;<type>isadded | changed | deprecated | removed | fixed | security. Docs-only changes usechanged. -
The body is today’s bullet: one top-level
* #<issue> …item with indented continuation lines, carrying exactly oneOps:clause (none.or prose), no headings and no attribute entries. -
At release the fold derives an
=== Ops noteslist (* #N: <clause>) from every fragment whose clause is notnone.: operators get one list, and authors write the note once. -
changelog.d/README.adocstates the grammar, keeps the directory present with no fragments, and is the canary’s probe. -
Rejected: a separate ops fragment (two files, one forgettable); YAML front matter (not the house style); towncrier-style names without a slug (two MRs on one issue collide).
Assembly: cargo xtask changelog
Surveyed 2026-11-06 (PyPI, crates.io and GitHub release APIs): towncrier 26.9.0 (Python; a second toolchain in a repo
whose only task runner is xtask, and the ops index needs custom templates); git-cliff 2.14.2 and GitLab’s changelog
API (built from commit subjects or trailers, Markdown out; CRAIG’s notes are reviewed prose and can’t be fixed after
merge); changie 1.26.0 (Go binary, YAML-wrapped fragments); knope 0.23.2 and scriv 1.8.0 (Markdown/reST only). An
xtask verb is AsciiDoc-native, plugs into the existing step machinery and nextest/proptest coverage, and adds no
dependency (xtask already has toml_edit, regex and proptest).
xtask/src/cmd/changelog.rs (submodules; functions ≤ 40 lines), a Command::Changelog variant in
xtask/src/cmd/mod.rs (its help test at line 349) dispatched from xtask/src/main.rs:
-
check: every fragment’s grammar is valid, and== Unreleasedholds only the fixed pointer paragraph. Both are state checks on the tree, so they are correct on a merge-train result. -
release --version X.Y.Z [--date D]: refuses if== vX.Y.Zexists or there are no fragments; moves the previous latest release section verbatim tochangelog/v<prev>.adoc, refusing if that file already exists (v0.2.0’s section is highlights whose archive U3 writes by hand, so the first post-cut release leaves the highlights where they are andchangelog/v0.2.0.adocuntouched: the refusal, not a convention, protects the 40,716-line archive); writes== vX.Y.Z (D)as Ops notes then the six groups in Keep a Changelog order, each sorted by issue number descending then slug; setsCargo.toml[workspace.package] versionthroughtoml_edit; deletes the fragments. It neither commits nor tags. Steady state:CHANGELOG.adocholds Unreleased, the latest release in full, and any earlier section whose archive already existed. -
notes --version vX.Y.Z --out <file>: that release’s section as Markdown for the GitLab Release, with absolute links toCHANGELOG.adocandchangelog/at the tag.
Guard, lint and docs
-
State check (blocking everywhere):
changelog checkruns inrun_doc_lint_head(validate.rs:575, besideenforce_no_sleep_pollsat line 600), so it is inci lint --quick, the pre-push hook and the trainlintjob, which runs on every train with no path filter (.gitlab-ci.yml:86-89). -
Branch check (blocking, pre-push only): a step of
validate --profile fastoutsiderun_doc_lint_head. The branch must add at least onechangelog.d/fragment againstgit merge-base HEAD origin/main, or carry aChangelog: none - <reason>trailer in that range. It runs only before push: on a train the diff from the base includes the cars ahead, whose fragments would satisfy a car that has none. -
Pre-commit reminder (
.githooks/pre-commit:63-68, non-blocking): passes when achangelog.d/*.adocis staged or already on the branch, and nameschangelog.d/. Only the maintainer edits.githooks/; U3 ships the text for the maintainer to apply. If pi carries its own copy of the reminder, that is one comment on the gadhs/pi standing feedback issue. -
Docs: "entry under
== Unreleased`" becomes "a fragment in `changelog.d/(README there), folded at release" incoding-conventions.adoc:221,delivery-protocol.adoc:111,plans/_template.adoc:76,CONTRIBUTING.adoc:44,223andknown-issues.adoc(lines 292, 300 and 321, which describe theCHANGELOG.adocrebase conflicts fragments end).git-workflow.adoc§ Tagging Protocol gains the release procedure (its canonical page; no new page).AGENTS.md:54is repointed and the dated override added. The frozen plans that say== Unreleasedare not edited: the README says that phrase now means a fragment.
The v0.2.0 cut
-
CHANGELOG.adocbecomes: the header, the Unreleased pointer,== v0.2.0 (D)with hand-written highlights (≤ 150 lines: one bullet per delivered epic or area, a paragraph on pre-1.0 breaking changes, and the upgrade posture) and a link tochangelog/v0.2.0.adoc; then== v0.1.0-alpha (2026-03-20)linkingchangelog/v0.1.0-alpha.adoc. -
changelog/v0.2.0.adocis today’s body moved verbatim (git mv, title and heading edited).changelog/v0.1.0-alpha.adocisgit show v0.1.0-alpha:CHANGELOG.adoc(86 lines) with its heading renamed. The ~75 alpha lines interleaved in the v0.2.0 archive stay where they are (verbatim beats perfect). GitLab renders both files. -
Version sites:
Cargo.toml:91→0.2.0,Cargo.lockregenerated, the nine utoipaversion = …literals deleted (they fall back toCARGO_PKG_VERSION), andapi-docs --checkrefuses a spec whoseinfo.versiondiffers from the workspace version. -
Tag:
git tag -s v0.2.0 -m "v0.2.0 - <one line>" <cut merge SHA>, OpenPGP-signed with the maintainer’s key, pushed explicitly, pointing at the cut’s merge commit even if later MRs have merged. -
Release: the tag pipeline’s
sbomjob runscargo xtask changelog notes, andrelease-cli create --descriptionreads that file (U2 verifies release-cli v0.24.0 reads a path). The SBOM link stays.
Migration and the train race
-
The cut MR is announced on #2861 and runs as the only car; its commits are regenerated on fresh
mainat rebase time (git mvagain, never a hand-merge of 40k lines). Proof the move is verbatim:git diff -M90% <main>:CHANGELOG.adoc changelog/v0.2.0.adocshows only the title and heading lines. -
Dropping
merge=unionmakes a stale branch conflict loudly on rebase. If a stale bullet still reaches a train, the state check fails the car with "move it to `changelog.d/<issue>.<type>.adoc`". -
After the cut,
CHANGELOG.adocchanges only throughchangelog release.
Risks
| Risk | Class | Mitigation and the test that pins it |
|---|---|---|
A car merged ahead of the cut adds a bullet that lands in neither the archive nor a fragment. |
silent |
The state check fails the cut car on the train; the verbatim |
A fragment lands without its ops note. |
silent |
|
The branch check counts the cars ahead on a train. |
fail-open |
It runs pre-push only; trains run state checks only. U4 test: a range whose only fragment came from a merged ancestor fails. |
A fragment or the archive busts Docker’s |
silent |
|
An OpenAPI version drifts from Cargo again. |
silent |
|
A later |
silent |
|
Scope — units (one MR each, in order)
| Unit | Delivers | Proves (tests) |
|---|---|---|
U1 (#2862) |
|
Property (proptest): |
U2 (#2861) |
The |
Golden Markdown for a highlights section (bold, code, links to the tag). Pipeline contract: the release job’s description comes from the artifact and no new shell line appears, with a fail case. Relates to #2861. |
U3 (#2861) |
The cut, in reviewable commits: (1) |
The verbatim |
U4 (#2862) |
The pre-push branch check with the |
Real git in a temp repo (hermetic, #2964): a branch with a fragment passes; one without fails; one with the trailer passes; a trailer without a reason fails; a fragment that only an ancestor merge brought fails. |
Every unit carries its own release note: U1 and U2 as CHANGELOG.adoc bullets (the switch is U3), U3’s highlights
cover U1 and U2, and U4 as a fragment. Each unit updates its canonical doc page as listed.