Repository navigation
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." The code this item changes is the same for a person's
devops roadmap close --confirm(src/devops_cli/commands/roadmap.py:468-495) and the Service's close job (src/devops_cli/roadmap/run.py:500-530). So it is built and tested now, and chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 no longer blocks it. Below, "close" means either caller. - Decision D12 (owner, 2026-10-17): "fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 gates the cut on every check run and status on the head except names in a new advisory list in .github/roadmap.toml, plus a required check that fails on an uncut ready release PR." This settles the body's first open point.
- Decision D2 (owner, 2026-10-17): "in-cluster jobs act as an organization-owned GitHub App installation (organization takes the owner's current login after the personal account is renamed); appeal the suspension in parallel." Because the cut becomes a pull request (next bullet), that installation needs no release-ruleset bypass to run this flow.
- The cut is a pull request, not a push. Once every gating check on head S is green, close opens
chore/cut-vX.Y.Z, branched at S, intorelease/vX.Y.Z, and a person merges it. Reason: step 4's--force-with-leasepush needs the release ruleset's bypass, which only the suspended account holds, and agents never merge. - The gating checks are read at S itself: check runs and commit statuses by SHA, never
gh pr checks. Reason:gh pr checksreads whatever the head is at that moment, so a fix merged between the two reads could lend its checks to S. - The advisory list is a new
advisory_checkskey that holds exact check-run names and status contexts. It is read from the default branch, as the Service and a person's close without--refread the rest of.github/roadmap.toml. Reason: neither a pattern nor a pull request into the release branch can then waive the gate the list narrows. apply_cutand the rehearsed cut land with fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 part 1, as this body's Feasibility section already splits them; this item only callsapply_cut. Reason: the cut can't gate on a rehearsal that doesn't exist yet.- D12's check is a step in fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 part 1's separate read-only rehearsal job, never in
release.yml'sreleasejob. Reason: thereleasejob holdscontents: writeand checks out withpersist-credentials: true, and the unblocking plan gives the release PR's rehearsal its own job withcontents: readandpersist-credentials: false. - The rehearsal job's workflow also runs on
ready_for_reviewandconverted_to_draft, whileci.ymlkeeps its deliberate exclusion ofready_for_review. Reason: GitHub's defaultpull_requesttypes are only opened, synchronize and reopened. Without these two types, a draft marked ready by hand keeps the green it got as a draft. A PR returned to draft would also keep its uncut-ready failure, and that failure would then hold its own next cut. - A ready release PR whose head isn't cut returns to draft before close checks any hold. Reason: D12's check fails on that head while the PR is ready, so checking the holds first would hold the cut on that failure forever.
Scope
- Close opens the draft release PR first, with no commit (body step 1, unchanged). It holds while any gating check on S is pending, failing or unread, and then opens the cut PR at S.
- Once the merged head reads as cut, close marks the release PR ready and writes its body once with
_build_release_pr_body. Regenerating the body on every change stays with fix(release): the release pull request's description is regenerated whenever its release branch changes #1346. - Whether the head is cut is still read from the tip (the body's rule). A fragment merged after S, before or after the cut PR merges, therefore leaves the head uncut, and the next green head gets a new cut PR. An open cut PR that no longer starts at the tip is replaced under the cut-as-pull-request item's reuse-or-refresh rule.
- These go to fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 part 1:
apply_cut, the rehearsal step and thechangelog.d/419.mdfixture case (the body's criteria 4 and 5). - These go to the cut-as-pull-request item, not filed yet ("fix(release): the release cut is committed on chore/cut-vX.Y.Z and opened as a pull request into release/vX.Y.Z, so no ruleset bypass or hook skip is needed to cut a release"):
- splitting
cut_releaseinto opening the cut PR and opening the release PR, with the release PR's version taken from the milestone; - removing the push to
release/*; - removing the ruleset-bypass text in RELEASE_CYCLE.md.
- splitting
- Dropped: the bullet "Each release is cut by the previous release's Service". A person now makes each cut as a pull request (v0.2.36 was cut as chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614). At 3dd7fa6
changelog.d/holds only README.md, so the 419/873 case lives on as a test fixture, not a live failure.
What close does each round (this replaces the body's table; rows are checked in this order):
| Situation | Step |
|---|---|
| Release due, no release PR | open the draft release PR, no commit |
| Release PR ready, head not cut | return it to draft |
| Cut PR open | hold, naming it; replace it if it no longer starts at the tip |
| Head S not cut, a gating check on S pending, failing or unread | hold, naming each check |
| Head S not cut, every gating check green | open chore/cut-vX.Y.Z at S into release/vX.Y.Z |
| Head cut, release PR a draft | mark it ready and write its body |
| Head cut, release PR ready | nothing |
Delivery
- PR 1 (S), "Part of fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544", after fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 part 1: D12's required check.
- One
is_cut(root, version)predicate:pyproject.tomlholds X.Y.Z, CHANGELOG.md has a non-empty[X.Y.Z]section, andchangelog.d/holds no fragment. - A
devops release checkoption that applies the predicate, run as a step in fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425's rehearsal job that fails on a ready release PR whose head isn't cut. - The two extra event types on the rehearsal job's
pull_requesttrigger.
- One
- PR 2 (M), "Closes fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544", after PR 1 and the cut-as-pull-request item:
- close's steps: open, back to draft, hold, cut PR and mark ready, all deciding through
is_cut; - the gating read at S;
advisory_checksinRoadmapConfig, with its empty default indefaults.pyand a commented line in.github/roadmap.toml;- fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's readiness exception deleted, together with
_base_changelog_was_read,_read_base_changelog,_edits_the_changelogand_BaseChangelog; - CHANGELOG.md taken out of the cut files that fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344 lets a
chore/open-*PR change, so such a PR changes it only where the default branch did; - the docs from the body's criterion 9.
- close's steps: open, back to draft, hold, cut PR and mark ready, all deciding through
Acceptance criteria
The body's first criterion (draft PR, tip unchanged), second criterion (holds and advisory) and last criterion (offline tests, devops ci, actionlint) stand. The criteria below replace the others.
- (PR 1) fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425's rehearsal job behaves by PR state.
- On a release PR that is not a draft, it fails when the head isn't cut, naming the version mismatch, the missing section or each fragment left.
- On a draft, it rehearses as fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 defines.
- Marking the PR ready re-runs the job, and so does returning it to draft.
ci.yml's triggers are unchanged. - The added step makes no write. It runs only in the rehearsal job, which keeps
contents: readandpersist-credentials: false.release.yml'sreleasejob, withcontents: write, still runs only on push to main, tags and dispatch.
- Every check run and commit status on S gates the cut, read at S, not through
gh pr checks.- A name in
advisory_checksdoesn't hold the cut, and names match exactly. - A pull request into the release branch that adds a name to the list doesn't waive its own check, because the list is read from the default branch.
- A name in
- With every gating check green on S, close opens
chore/cut-vX.Y.Zat S intorelease/vX.Y.Z.- The cut PR holds the bump, the version's CHANGELOG.md section, the deleted fragments and
docs/ROADMAP.md. - Nothing is pushed to
release/vX.Y.Z, and the release PR stays a draft. - Tested on a real git repository in
tmp_path, with theno-commit-to-branchhook installed and gh faked at the process edge.
- The cut PR holds the bump, the version's CHANGELOG.md section, the deleted fragments and
- The cut PR's files are byte-identical to what fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425's rehearsal applied at S for the same date.
- Once the merged head is cut, the next round marks the release PR ready and writes its body once.
- A fragment merged after S, before or after the cut PR merges, keeps the release PR a draft or returns it to draft, and the next cut PR joins the fragment into the existing section. A ready PR whose head isn't cut returns to draft in that round, before any hold, so D12's failing check never holds the next cut.
- Opening the release PR and opening the cut PR each run feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343's Argo CD gate before any write.
-
devops pr check-readinessrefuses a CHANGELOG.md edit in every PR into a release branch except the cut PR, which writes it under fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344'schore/cut-*rule. Achore/open-*PR passes a CHANGELOG.md change only where the default branch changed the file (fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344's compare read). No readiness code reads the base's CHANGELOG.md any more. -
devops roadmap close --plannames the step that is due: open, back to draft, hold (with each check or the open cut PR), open the cut PR at S, or mark ready.--dry-runmakes no request. - These docs describe this flow and leave no hand edit of CHANGELOG.md: RELEASE_CYCLE.md §6-7 (including "A Critical Fix While the Release PR Is Open",
RELEASE_CYCLE.md:212),changelog.d/README.md(:7-8), AGENTS.md's changelog rule (AGENTS.md:118), and CONTEXT.md's fragment and cut entries (CONTEXT.md:20,:91). - Pending a person: once fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 part 1 merges, the main ruleset requires its rehearsal job, which PR 1 makes D12's required check.
- Pending a person: one release goes from open to ready through
devops roadmap close --confirm. While chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's rules stand, agents run only--planand--dry-run.
Current references (checked at 3dd7fa6)
cut_release:src/devops_cli/release/cut.py:1024.- Tip fetch:
:1065. - Bump and collection:
:1068-1083. - Commit and
--force-with-leasepush::736-762, called at:1092. - Release PR body:
:928; the PR is opened at:1119.
- Tip fetch:
- Second collection path:
_execute_release_prepareatsrc/devops_cli/commands/release.py:171-189;release_checkat:467. - Close:
_plan_currentatsrc/devops_cli/roadmap/close.py:437-499. An open or merged release PR ends the round at:476-489.Holdis at:82,Cutat:103andChecksReaderat:69. - Check reads:
fetch_pr_check_verdictsatsrc/devops_cli/github/check_verdict.py:469.gh pr checksat:483reads the PR's current head.head_shareaches only the REST fallback (:505-512), which reads check runs (:344) and statuses (:370) at that SHA.
ReleaseState.CUT:src/devops_cli/roadmap/reprioritize.py:231-240, set while a release PR is open (:686).- fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's exception:
_leaves_release_files_to_the_cutatsrc/devops_cli/commands/pr.py:1622-1654, with_BaseChangelogat:1537,_base_changelog_was_readat:1613,_edits_the_changelogat:1723and_read_base_changelogat:1731-1758. - Release-process heads:
_is_release_process_pratsrc/devops_cli/commands/pr.py:1472-1482exempts achore/open-*PR from grounding whatever it changes; fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344 narrows that. RoadmapConfigis atsrc/devops_cli/roadmap/config.py:38-41withextra="forbid", soadvisory_checksis a new field..github/roadmap.tomlhas no such key. The Service reads the file at the default branch (read_roadmap_config(store, ref=None),src/devops_cli/roadmap/run.py:508). A person's close reads it at--ref, which defaults to the default branch (src/devops_cli/commands/roadmap.py:460,src/devops_cli/roadmap/config.py:88-90)..github/workflows/release.yml:3-13runs only on push to main, on tags and on dispatch;devops release checkis at:87. Itsreleasejob holdscontents: write(:32-36) and checks out withpersist-credentials: true(:51)..github/workflows/ci.yml:7-10deliberately leavesready_for_reviewout of itspull_requesttypes.no-commit-to-branchonrelease/*:.pre-commit-config.yaml:8-9.
Dependencies and order
- fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 part 1: open, in v0.2.38, not built. Its body still covers the whole item until it is re-scoped to part 1. It must carry
apply_cut, the rehearsed cut and the separate read-only rehearsal job. PR 1 waits on it. - The cut-as-pull-request item: not filed yet, staged for v0.2.38 in the unblocking plan. It lands after feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343 PR 1 and fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344. PR 2 waits on it.
- feat(release): a release is cut only after every argo cd application builds at the release head and its live changes are shown #1343 (P1, v0.2.37, open): PR 1 puts the Argo CD gate in
cut_releaseright after the tip fetch. - fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344 (P1, v0.2.37, in progress): readiness passes a
chore/cut-*PR that changes only the cut's files, and achore/open-*PR that changes only cut files or files the default branch changed. PR 2 takes CHANGELOG.md out of the second rule's cut files. - fix(github): a pull request that delivers part of an item says Part of #N and passes readiness #1617 (v0.2.37, open): PR 1's "Part of fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544" passes readiness once it lands.
- fix(release): the release pull request's description is regenerated whenever its release branch changes #1346 (P2, open, no milestone): regenerates the release PR body on every change. It doesn't block this item.
- feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 (open, blocked, no milestone): a
check_suitewebhook there may shorten the wait later; the 5-minute poll is enough. - chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 (closed; the Service stays at 0 replicas): it no longer blocks building this item (D1). The Service runs this flow only after chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's revert or the identity item (D2).
status/blockedstays, re-pointed from chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 to fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 and the cut-as-pull-request item: a native blocked-by link on fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425 now, and on the cut item once it is filed. Recommended release: v0.2.39, after both land in v0.2.38. Placement is left to reprioritize.- No priority change under the blocker rule: fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog #1544 has no priority label and blocks no filed item.
Problem
Owner, 2026-10-10: "the other thing about the cut commit is that it should not happen until after the pr checks run and pass" and "then we can fix issues with the pr and the get into the changelog as expected".
Checked at release/v0.2.33 (pre-cut tip 2f3ed2a, cut commit 5c5df79):
- The cut commit comes before any check runs.
- The release lane's close job calls
cut_release(is_prepare=True, draft=False)(src/devops_cli/roadmap/run.py:482-529, call at:518) as soon as the current release holds no open item and has no release pull request (src/devops_cli/roadmap/close.py:476-500). cut_releasebumps the version, collectschangelog.d/into the version'sCHANGELOG.mdsection (fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450), commits, and force-pushesrelease/vX.Y.Z(src/devops_cli/commands/release.py:1386-1422, push at:1048-1074).- Only then does it open the release pull request (
:1424-1444). The PR's checks run for the first time on the cut commit.
- The release lane's close job calls
- A fix for a failing check misses the changelog.
- Release PR feat(release): v0.2.33 #1537 failed checks after its cut: Bandit code-scanning alerts from the SARIF that
ci.ymluploads (.github/workflows/ci.yml:52-61), and Changed-Test Independence. Their fixes can only merge after the cut. - Once the cut has collected, a fragment that such a fix adds is never collected. That is the case from the first cut the Service makes with fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's code.
devops release checkdoesn't readchangelog.d/(release.py:1504-1530), anddevops pr check-readinessaccepts a fragment into a cut branch (src/devops_cli/commands/pr.py:1616). So the entry silently moves into the next release's section at the next cut.- The only way in is fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's exception: editing the version's
CHANGELOG.mdsection by hand (pr.py:1607-1660,:1725).
- Release PR feat(release): v0.2.33 #1537 failed checks after its cut: Bandit code-scanning alerts from the SARIF that
- A cut that can't collect fails where nobody sees it.
- I replayed the cut's collection (
release.py:1393-1408) on a scratch copy of2f3ed2a. It stops with "changelog.d/419.md:1 is outside a category … Nothing was written." (src/devops_cli/release/changelog_fragments.py:114).changelog.d/419.mdandchangelog.d/873.mdhold a bare title line. - No check parses the repository's fragments before the cut. The close plan only checks that a fragment exists (
close.py:316-330), sodevops roadmap close --planpromises a collection that the cut then refuses. - In the Service, close would fail at every poll, with no release pull request to show why.
- With the two fragments moved under
### Added, the same replay writes## [0.2.33] - 2026-10-10, deletes all 12 fragments, anddevops release check --allow-dirty --skip-cipasses.
- I replayed the cut's collection (
- The release PR's checks don't rehearse the release (fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425, open). On feat(release): v0.2.33 #1537's head
5c5df79,devops release check --allow-dirty --skip-ciexits 1 ("Version mismatch: CHANGELOG.md (0.2.32) does not match pyproject.toml (0.2.33)"), and no check on feat(release): v0.2.33 #1537 fails for it. - Each release is cut by the previous release's Service.
release.ymlbuilds and tags the Service image only onmain, after the release job (.github/workflows/release.yml:160-166). Image Updater then rollsservice:latestby digest (k8s/argocd/image-updater-values.yaml:21-23).- The Service that cut v0.2.33 reports devops-cli 0.2.32, so fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450 (
05399bf) had no part in that cut.5c5df79changes onlydocs/ROADMAP.md,pyproject.tomlanduv.lock. - This item's flow first runs on the cut that comes after the release that ships it.
Owner decisions
- 2026-10-10 (quoted above): the cut commit happens only after the release PR's checks have run and passed. Fixes for those checks reach the changelog the way any change does.
- 2026-10-09 (fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450): one cut commit does it all: the version bump,
changelog.d/collected into the version's section with the fragments deleted, anddocs/ROADMAP.mdrendered. This item keeps that. - 2026-10-09 (fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425): a release PR rehearses every release and distribution step read-only, so a green PR means the merge publishes.
- 2026-10-09: the Service cuts and ships the release; no hand-run collate, bump or release pull requests.
- fix(roadmap): a critical fix joins the current release while its release pull request is open, so the release branch holds every change before it merges #1294: a critical fix joins the release while its release PR is open.
Proposed design
The release PR opens first. The cut commit is the last change before the merge.
- Open, with no commit.
- When close finds the current release due (
close.py:476-500, unchanged), the Service opens the release PR fromrelease/vX.Y.Zintomainas a draft, with thereleaselabel and milestonevX.Y.Z. It pushes nothing. cut_releasesplits intoopen_release_pr(today'srelease.py:1424-1444) andpush_cut(today's:1386-1422).- Reprioritize's states don't change:
ReleaseState.CUTalready means "its release pull request is open" (src/devops_cli/roadmap/reprioritize.py:476-491). So fix(roadmap): a critical fix joins the current release while its release pull request is open, so the release branch holds every change before it merges #1294's admission rules apply from the moment the PR opens.
- When close finds the current release due (
- Rehearse.
- The release PR's checks include fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425's release job on
pull_request. When the head isn't cut yet, the job first applies the cut to its own checkout, with the version taken from the branch name. - It uses the same function the Service's cut uses. A single
apply_cut(root, version, today)does the bump, the collection and the fragment deletion.cut_release,devops release prepareand the rehearsal all call it, replacing today's two paths (release.py:1393-1408and_execute_release_prepareat:754). - Then the read-only steps run:
devops release check --allow-dirty --skip-ci, non-empty notes,uv build,devops devcontainer validate, tagvX.Y.Zabsent, label and milestone present, and no open item in the milestone. - A malformed or misnamed fragment, a missing version section, or any other step the merge would fail now fails a PR check, where it can be fixed.
- The release PR's checks include fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425's release job on
- Fix.
- A failure is fixed by a pull request into
release/vX.Y.Zthat adds its ownchangelog.d/<issue>.md. The file is named after the issue number (src/devops_cli/config/constants.py:65), so each fix has an issue. - Its merge re-runs the release PR's checks on the new head.
- A failure is fixed by a pull request into
- Cut.
- Each release-lane round, close reads the release PR's head and its checks (
fetch_pr_check_verdicts,src/devops_cli/github/check_verdict.py:450, with the head SHA). - When the head isn't cut and every gating check on that SHA has passed, the Service runs the cut against that SHA:
apply_cut, thedocs/ROADMAP.mdrender, one commit. - The push uses
--force-with-lease=release/vX.Y.Z:<sha>. If a fix merged in between, the push is refused and the cut waits for the new head's checks. - After the push, the Service marks the PR ready (
gh pr ready) and rewrites its body with the collected notes (fix(release): the release pull request's description is regenerated whenever its release branch changes #1346). - A pending, failing or unread check holds the cut, and
close --plannames each one.
- Each release-lane round, close reads the release PR's head and its checks (
- Re-run on the cut commit.
- The cut commit re-runs the checks. The rehearsal ran the same function on the same tree, so the cut commit's files are the ones the rehearsal checked. Only the section's date can differ, if the day changes in between.
- On a ready PR, the release job also fails when the head isn't cut (version, section, no fragment left), so a PR marked ready by hand can't merge uncut.
- Before the cut, the draft state is the merge gate: GitHub doesn't merge a draft.
- A critical fix after the cut (fix(roadmap): a critical fix joins the current release while its release pull request is open, so the release branch holds every change before it merges #1294).
- It adds a fragment like any other fix. fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's hand edit of
CHANGELOG.mdgoes, along with its check-readiness exception (pr.py:1607-1660,:1725-1760), so only the cut ever writesCHANGELOG.md. - The fragment makes the head uncut again, so the Service returns the PR to draft (
gh pr ready --undo). - The rehearsal collects the fragment into the section the cut wrote;
collect_changelog_fragmentsalready joins an open section (changelog_fragments.py:231-250). - Once the checks are green, the Service pushes a second cut commit (the bump is a no-op) and marks the PR ready again.
- It adds a fragment like any other fix. fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's hand edit of
Whether the head is "cut" is read from the branch tip and never stored: pyproject.toml holds X.Y.Z, CHANGELOG.md holds a non-empty [X.Y.Z] section, and changelog.d/ holds no fragment.
What close does each round:
| Situation | Step |
|---|---|
| Release due, no release PR | open the draft PR |
| PR open, head not cut, checks not all green | hold, naming the checks |
| Head not cut, all checks green | cut at that SHA, mark ready |
| Ready PR whose head is no longer cut | return to draft |
| Head cut, PR ready | nothing |
Proposed answers to open points
- Which checks gate the cut? (proposed) Every check run and commit status on the head, except the ones
.github/roadmap.tomlnames as advisory, for example a code-scanning check that fails when its monthly quota runs out. The main ruleset requires no status check today (itsrequired_status_checkslist is empty), so it can't be the source until fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425's person step names the checks. Once it does, the advisory list and the ruleset must agree. - Is a webhook for check completion needed? (proposed) No. The 5-minute poll cuts within one poll of the last green check. A
check_suitewebhook can follow under feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533.
Acceptance criteria
- A current release that is due gets a draft release PR with the
releaselabel and milestone, and the tip ofrelease/vX.Y.Zis unchanged. Tested on a real git repository intmp_path, withghfaked at the process edge. - With the head not cut, a failing, pending or unread gating check holds the cut, and the plan names each one. An advisory check's failure doesn't hold it.
- With every gating check green on SHA
S, the cut commit's parent isS. The commit holds the bump, the version'sCHANGELOG.mdsection, the deleted fragments anddocs/ROADMAP.md, and the PR is marked ready. If the branch has moved pastS, the push is refused and the PR stays a draft. -
apply_cutis the only code that bumps and collects. The rehearsal step,devops release prepareand the Service's cut produce byte-identical files for the same tree and date. - The release job on a PR rehearses the cut. A branch holding a fragment like
changelog.d/419.mdat2f3ed2a(a line outside a category) fails the PR check, naming the file and line, and the same branch with the fragment fixed passes. A misnamed fragment fails the same way. - A fragment merged after the cut returns the PR to draft. Once the checks are green, the next cut joins it into the existing section and marks the PR ready.
-
devops pr check-readinessrefuses aCHANGELOG.mdedit in any PR into a release branch. -
devops roadmap close --plannames the step that is due (open, hold with the checks, cut at SHA, back to draft), and--dry-runmakes no request. - RELEASE_CYCLE.md §6–7,
changelog.d/README.md, AGENTS.md's changelog rule and CONTEXT.md's cut entry describe this flow. - Tests are offline, each phase under 1 s, and
uv run devops ciand actionlint pass.
Feasibility
The Service side fits one pull request, because it reuses existing pieces:
- close's plan gains the open, hold, cut and back-to-draft steps;
cut_releasesplits into its two existing halves;apply_cutmerges the two collection paths;- check-readiness loses fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's exception;
- the docs are updated.
Its gate assumes the rehearsal job exists. That job is #1425's scope (release.yml on pull_request); this item adds one step to it: apply the cut before devops release check.
If #1425 isn't merged first, split the work in two, merged in this order:
- fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425, including the cut step in its rehearsal.
- This item's Service flow.
Otherwise the Service would cut on checks that still skip the release steps, which is the gap today.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 10, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It causes silent changelog loss on every release where a post-cut check fails, but a manual workaround (editing CHANGELOG.md) exists and no data is corrupted.Release changelogs are the primary record of what changed for users, and missing entries undermine trust in the release process, though the impact is limited to documentation accuracy.Requires reordering the close job to open the release PR before cutting, waiting for checks to pass, then performing the cut, plus handling the case where checks fail and the cut must be deferred or redone.dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code
[-]fix(release): the Service pushes the cut commit only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog[/-][+]fix(release): the cut opens as a pull request only after the release pull request's checks pass, so a fix for a failing check reaches the version's changelog[/+]dan-petty commentedon Oct 22, 2026
Superseded by ADR 0012 (docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md). The cut, the fragments or the hand-built release pull request that this issue concerns are deleted by the new release model.