Repository navigation
Description
feat(release): item closure summaries and automatic release cut (devops roadmap close)
Problem Statement
Closure is the roadmap job that closes each delivered item with a summary of what changed, and cuts the release once every item in it is closed or descoped (CONTEXT.md, "Closure" and "Cut"). None of it runs today. Checked at 9c879ae (release/v0.2.25):
- Items close only when someone runs a command by hand. Item PRs target
release/vX.Y.Z, and GitHub acts onCloses #Nonly in PRs into the default branch (src/devops_cli/github/issue_closure.py:1-12).devops gh issues close-merged(src/devops_cli/commands/gh.py:1161-1200) closes these issues, but no workflow runs it (rg close-merged .githubfinds nothing).- Its comment names the PR that closed the issue and says nothing about what changed or how it was checked (
issue_closure.py:227-238). - It reads issue states newest first with
--limitset to the highest wanted number, so it misses old issues (issue_closure.py:164-212).
- Releases are cut by hand.
docs/ROUTINE_TASKS.md:243-282(table row at:46) anddocs/SDLC.md:346have a person rundevops release prepare <version> --create-pr. No workflow runs it. Once the release PR merges intomain,release.ymltags, publishes and closes the milestone (.github/workflows/release.yml:92-124); a failed close is ignored (|| echo,:124). The GitHub Release text comes fromdevops release notes, which reads the version's CHANGELOG section first (release.yml:86;src/devops_cli/commands/release.py:143-152,:293-300). - The release path the cut must call is being fixed by fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982, split out of this item by the owner's decision (decisions.json, Q2 and 743) and landing first in v0.2.26. Todayrelease prepare --create-prresets the release branch withgit checkout -B(release.py:798-809, called at:1177), commits and pushesrelease/vX.Y.Zitself (:812-830), warns instead of stopping when the commit, push orgh pr createfails (:824-830,:1064-1078,:1102-1106), never bumpsuv.lock, fixes the draft flag at the command (:1119-1122) and sets an undeclaredreleaselabel (src/devops_cli/config/defaults.py:481;.github/labels.yml:78). fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 delivers one shared cut function (dirty-tree refusal,chore/cut-vX.Y.Zbuilt fromorigin/release/vX.Y.Z,uv.lockbump, fail-closed commit, push and PR, required label and milestone, the draft flag taken from the caller, the readiness exemption forchore/cut-vX.Y.Zintomain, and the five convention sentences). This item calls that function; what remains wrong for closure and the cut trigger is the list above and the cut predicate below.
What v0.2.25 has delivered that this item builds on:
- the
devops roadmapgroup withmigrate(--confirm/--dry-run) andrender(--dry-run) (src/devops_cli/commands/roadmap.py:69-116) and their MCP mirrors, of which the writing command's mirror is dry-run only (src/devops_cli/ai/mcp/server.py:628-658) (feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739, 6948e1c); - the roadmap store (refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768, bf746de) with, from feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739,close_issue(number, reason, comment)andrepository_file(path, ref)in both adapters and the contract suite (src/devops_cli/roadmap/store.py:509-513;memory_store.py:285-310;github_store.py:623-652;tests/test_roadmap_store_contract.py:436-494). The store has no pull-request read:issues()never returns pull requests (store.py:503-504;memory_store.py:276-278;github_store.py:609-611).Releasecarriesstate,open_issuesandclosed_issuesandreleases()is sorted by version (store.py:110-127;memory_store.py:217-220); - changelog fragments (fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933, c224927): item PRs write
changelog.d/<issue>.md,release prepareandrelease changelog --updatecollect them into## [X.Y.Z] - <date>and delete them (src/devops_cli/release/changelog_fragments.py:145;release.py:467-520), readiness blocks item PRs that editCHANGELOG.mdordocs/ROADMAP.md(src/devops_cli/commands/pr.py:1649-1666;CONST_RELEASE_SHARED_FILES,constants.py:2583), and the rule is inAGENTS.md:176,docs/agent/tasks/README.mdrule 5 andRELEASE_CYCLE.md:56.CHANGELOG.md:8is an empty## [Unreleased];changelog.d/holds 18 fragments; - feat(github): pr readiness requires an issue-linked, completed task file #704's readiness exemption for the release PR (
pr.py:1517-1523;tests/test_pr_cmd.py:1803) and fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933's exemption for release-process PRs (pr.py:1526-1536;CONST_RELEASE_PROCESS_BRANCH_RE,constants.py:2577-2579;tests/test_pr_cmd.py:1993), which fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 reshapes so thatchore/cut-vX.Y.Zintomainis the one release PR.
Not delivered: #740 (current release, cut lock, un-cut, release start). It is started in a worktree but has no commit on release/v0.2.25, is still unticked in the v0.2.25 section of docs/ROADMAP.md:1075, and is in neither the v0.2.26 nor the v0.2.27 open-item list.
Proposed Solution
devops roadmap close: one run reads the PRs merged into the current release's branch, closes each item they deliver with a two-part summary, and, once the release holds no open item, cuts it by calling #982's shared cut function, which pushes chore/cut-vX.Y.Z and opens the release PR into main. The changelog section comes from the fragments (#933); this item generates nothing from titles.
Store slice
Closure and the cut read and write GitHub through the store (#768). This item adds what the store lacks, to both adapters and the contract suite:
- pull requests merged into a branch, all pages, fail-closed, with number, URL, body, labels, milestone, merge commit, head commit and changed paths (
issues()deliberately omits PRs; a newmerged_pull_requests(base)read with a frozen record model likeIssueRecord,store.py:182-196; the in-memory adapter already seeds pull requests throughseed_issue(pull_request=True),memory_store.py:139-171); - in the in-memory adapter, a log of every write that tests read (today it has
comments_onandchanges_since,memory_store.py:211-213,:339-342, not a general write log).
Already there and reused: close_issue(number, CloseReason.COMPLETED, comment) (comment, then close; the GitHub adapter makes two REST calls, github_store.py:623-639), repository_file(path, ref=<merge commit>) (github_store.py:641-652; memory_store.py:300-310), releases() and items(release=...). Check runs still come from fetch_pr_check_verdicts (src/devops_cli/github/check_verdict.py:311). The release PR is still opened with gh pr create, inside #982's function.
Closure per item
- Reads every PR merged into
release/vX.Y.Zthrough the store, all pages. - Closes as completed each open issue that a PR body closes with a closing keyword, parsed by
extract_linked_issues(issue_closure.py:100-120). These close nothing:Part N of #M, keywords inside code or quotes (strip_non_prose,:88), issues in other repos, and numbers that belong to pull requests. - Posts one comment per closed issue from a fixed template, no model:
- What changed: the PR link, the merge commit, the first section of the PR body (capped at a length in
config/defaults.py) and the number of changed files. - How it was verified: each check run at the PR's head commit with its bucket (
fetch_pr_check_verdicts), and the Acceptance Criteria section of each task file the PR added or changed whose name startsdocs/agent/tasks/task-<N>-, read at the merge commit throughrepository_file. A PR with no such file says "No task file".
- What changed: the PR link, the merge commit, the first section of the PR body (capped at a length in
- When a PR's check runs cannot be read (
unread_reasonset,check_verdict.py:75), its issue stays open; the run names the failure and exits non-zero; the next run retries. - Skips issues already closed. The board's built-in "Item closed" workflow moves the item to Done (
CONST_PROJECT_WORKFLOW_EXPECTATIONS,constants.py:2655-2666; a person turns it on, task-739 pending step 7). Closure writes no board field.
The cut
Runs when the current release (the lowest-numbered open Release in store.releases(), which is CONTEXT.md's definition; computed here, adopted by #740 when it lands):
- has no open item;
- has at least one item closed as completed;
- has no open release PR;
- has no merged release PR (stops a second cut between the merge and
release.ymlclosing the milestone, and after a failed close).
The release PR is one predicate, defined here: an open PR into the default branch with head chore/cut-vX.Y.Z, label release and milestone vX.Y.Z; merged means shipped.
It then, in the clone at --root:
- collects the fragments into
## [X.Y.Z] - YYYY-MM-DD, joining any open## [X.Y.Z]section and leaving## [Unreleased]empty, asrelease preparedoes today (_plan_changelog_or_exit,_write_version_changelog,release.py:486-520;collect_changelog_fragments,changelog_fragments.py:145); - writes
docs/ROADMAP.mdwithdevops roadmap render; - calls fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982's shared cut function withdraft=False, basemainand no docs sync (DocGeneratordocuments the running CLI, the generated docs carry no version, and every item PR passesdevops docs check;release.py:767-769). That function refuses a dirty tree, buildschore/cut-vX.Y.Zfromorigin/release/vX.Y.Zafter a fetch, bumpspyproject.toml,src/devops_cli/__init__.pyanduv.lock, commits, pushes with--force-with-lease, and opens the release PR ready for review with titlefeat(release): vX.Y.Z(_format_release_title,release.py:540-550), labelreleaseand milestonevX.Y.Z, exiting non-zero at the first failure. The PR's Release Notes are the collected section, because_resolve_clean_release_notesreads the CHANGELOG section first (release.py:979-996); - reports the items closed as completed that have no
changelog.d/<issue>.md, in the run's output and in the dry run, and proceeds with the cut (the owner's decision: a missing fragment is a docs gap a person fixes on the release PR); when there is no cut, reports the open items holding it with their status.
Removed without shims
devops gh issues close-merged(gh.py:1161-1200, imports at:35-38) and its help strings (src/devops_cli/lang/en/help.py:803-810), plus its entry intests/test_all_commands_help_dryrun.py:68;get_issue_states,close_issue,closure_comment,close_issues_for_pull_request,list_merged_pull_requestsandclose_issues_for_merged_pull_requestsingithub/issue_closure.py(:164-387, and their__all__entries at:390-403).extract_linked_issuesandstrip_non_prosestay (readiness uses them,pr.py:1595), with their parser tests intests/test_gh_issue_closure.py:61-136. Tests ofroadmap closereplace the sweep and command tests (:161-564). The_closes_one_issuedocstring atpr.py:1595, which namesclose-merged, is reworded.docs/CLI_REFERENCE.md:6505anddocs/commands/gh.md:580are regenerated.
Docs
docs/ROUTINE_TASKS.md Cadence C (:243-282) and its table row (:46), and docs/SDLC.md:346, describe the cut as devops roadmap close, with release prepare --create-pr as the manual fallback (#982 rewrites the lines that describe what that command does, :267 and :275, and the convention sentences in AGENTS.md, RELEASE_CYCLE.md and docs/agent/tasks/README.md; this item does not edit them). docs/MCP_TOOLS.md gains the roadmap_close mirror beside roadmap_migrate (:1350). The item PR adds changelog.d/743.md and docs/agent/tasks/task-743-<slug>.md and does not edit CHANGELOG.md or docs/ROADMAP.md.
Scope
One devops roadmap close command and its dry-run MCP mirror; the store's merged-PR read and the in-memory write log; the closure comment; the cut predicate and the current-release computation; the cut's fragment collection, roadmap render and call into #982's shared function; removal of close-merged; the doc rewrites above. Effort: High. One PR, landing after #982.
Key Questions
- Which branch carries the cut commit, and into which base is the release PR opened? Answered by the owner: option A, one PR, head
chore/cut-vX.Y.Zbuilt fromorigin/release/vX.Y.Zintomain, which is the release PR. It needs no ruleset change, passesno-commit-to-branch, leavesrelease/vX.Y.Zas the item PRs left it (a re-cut rebuilds the branch), gives one human merge per release, and reuses the name fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 introduced atconstants.py:2578. fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 delivers the branch, the readiness exemption (_is_release_pracceptschore/cut-vX.Y.Zfrom the same repository into the default branch) and the convention sentences; this item passesmainas the base. refactor(github): one github session per identity owning token, quota and transport #767's body must follow this name (767.md:135). - Does this item wait for feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740? Answered by the owner: no. The current release is computed here as the lowest-numbered open Release instore.releases()(sorted by version,memory_store.py:217-220), and the cut predicate is defined here; feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 adopts both when it lands. Waiting would hold a v0.2.26 item for an item with no release. If feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 lands first with its own definition, this item adopts feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740's; the two bodies record this so they do not diverge. - What does the cut do about an item closed as completed with no
changelog.d/<issue>.md? Answered by the owner: list them in the run's output and the dry run, and proceed. Readiness does not require a fragment, and a missing entry is a docs gap a person fixes on the release PR, not a reason to leave the release uncut. - Where does the changelog section come from? From the fragments, as fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 settled (answered by fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933; the body's title-line generation and
(#item, #PR)format are dropped). - What does the MCP mirror do? Dry run only (answered by convention): feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739'sroadmap_migrate(server.py:643-658), feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744'sroadmap_refine(744.md:149) and feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981'sroadmap_runare all read-only, because an MCP client is a model reading untrusted text (feat(mcp): mcp tools declare ToolAnnotations, and mutating tools require approval in devops-cli's own agent loop #857). Writes happen from the CLI or the service. - Where do the pull-request reads live? In the store, added to both adapters and the contract suite (answered).
close_issueandrepository_fileare already there. - Why no docs sync at the cut?
DocGeneratordocuments the running CLI, the generated docs carry no version, every item PR passesdevops docs check(answered); the cut passes no docs sync to fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's function. - Is a model used for the comment? No; fixed template, PR text is untrusted data (answered).
- Which part of the PR body is quoted? Its first section; verification comes from check runs and the task file (answered).
- Which task file is quoted? Each file the PR added or changed named
task-<N>-*, N the closed issue (answered; feat(cli): dashboard keeps its place across refreshes and details the highlighted finding (#684) #830 changed an existing file, feat(k8s): stack dashboards query only the series their exporters serve (#693) #833 two files). - Which PRs does a run read? Every PR merged into the current release's branch, all pages; PRs into the default branch are skipped (answered).
- What happens to
gh issues close-merged? Removed without a shim (answered). fix(github):gh issues close-mergedmisses issues older than the newest n #778, named by the body as superseded, is closed as not planned when this lands if it is still open; it is not in the open-item list. - Who sets Status to Done? The board's "Item closed" workflow, turned on by a person (answered;
constants.py:2655-2666, task-739 step 7). - When is the cut due? No open item, at least one closed as completed, no open and no merged release PR; not-planned items count as closed; a release with nothing delivered is reported, not cut (answered).
- How do feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740 and this item agree a release is cut? One predicate: an open PR into the default branch with headchore/cut-vX.Y.Z, labelreleaseand milestonevX.Y.Z; merged means shipped (answered; whichever of this item and feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 lands first defines it, the other adopts it). - Draft or ready? Ready: the cut passes
draft=Falseto fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's function, because Copilot review skips drafts and reviews PRs intomainby design (answered). The manual commands keep their draft default inside fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982. - How do PRs stop editing CHANGELOG.md? Delivered by fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933: fragments, readiness blocker,
AGENTS.md:176. The body's generator-template rule is dropped:ai/instruction_generator.pyholds no changelog rule (:272is an unrelated secrecy rule), and docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 (v0.2.27) owns the instruction surfaces. - Does the GitHub Release text need a change? No (answered;
release.yml:86,release.py:143-152). - Where does the cut run git? In the clone at
--root, through fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's function: feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981's clone in the service (the adapter passes the clone path as--root), or the caller's checkout in a terminal; the clone is left on the cut branch (answered). - Which identity? The store's: machine account in the service, the person's gh login in a terminal (answered).
- Does it need feat(github): pr readiness requires an issue-linked, completed task file #704? No; "No task file" covers the rare case (answered; feat(github): pr readiness requires an issue-linked, completed task file #704 is delivered).
- Does this fit one PR? Split done (answered by the owner, Q2): fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982 holds the release path and lands first in v0.2.26; this item holds the closure job, the cut predicate and the call into the shared function, in one PR at High effort.
Acceptance Criteria
Automated tests unless marked otherwise. GitHub is #768's in-memory adapter plus a fake gh; git is a temporary repo with a local bare remote (#982's module-scoped fixture, copied per test); nothing touches the network.
Store slice
- The contract suite (
tests/test_roadmap_store_contract.py) runs the merged-PR read against both adapters, beside the existingclose_issueandrepository_filecases (:436-494). - On the GitHub adapter with a stub runner (
tests/test_roadmap_github_store.py), a merged-PR listing spanning three pages returns every PR; a failed page raises and never returns part of the list.
Closure
- A PR merged into
release/v0.2.26withCloses #12closes feat(release): v0.1.11 #12 as completed;comments_on(12)holds one comment with the PR link, merge commit, first section, changed-file count, each check name with its bucket, and the task file's Acceptance Criteria lines. - These bodies close nothing:
Part 1 of #12alone;Closes #12in a code block or quote;Closes other/repo#12;Closes #13where New Title #13 is a pull request. - A PR without a task file gets "No task file"; a PR that modifies an existing
task-12-*file gets its Acceptance Criteria quoted. - Five merged PRs close five issues, including the repo's oldest issue.
- An already-closed issue gets no comment; a second run makes no write (the adapter's write log stays empty).
- When reading the merged PRs, an issue, or a PR's check runs fails, the run exits non-zero naming the failure, never reports "nothing to close", and the issue stays open.
When to cut (table-driven)
- No cut while an item is open, while a release PR (
chore/cut-v0.2.26intomain, labelrelease, milestonev0.2.26) is open, after a release PR has merged with the milestone still open, or when no item closed as completed; each names its reason and lists the open items. - A cut once every item is closed; the current release is the lowest-numbered open Release when two are open.
Cut mechanics
- With the clone on another branch, the run pushes
chore/cut-v0.2.26whose parent is the remoterelease/v0.2.26tip, and the remoterelease/v0.2.26does not move. - The cut commit changes exactly
pyproject.toml,src/devops_cli/__init__.py,uv.lock,CHANGELOG.md,docs/ROADMAP.mdand the deletedchangelog.d/*.md(git show --stat). -
CHANGELOG.mdholds one## [0.2.26]block built from the fragments and an empty## [Unreleased], also when a## [0.2.26]section was already open;_extract_changelog_notes(root, "0.2.26")returns its body and_get_latest_changelog_versionreturns0.2.26. - An item closed as completed with no fragment is named in the run's output and in the dry run, and the cut still happens.
- The fake
gh pr createreceives basemain, headchore/cut-v0.2.26, titlefeat(release): v0.2.26, labelrelease, milestonev0.2.26, no--draft. - After the first release PR closes unmerged and one more item PR merges, the next run rebuilds
chore/cut-v0.2.26from the new release tip and the section holds the new fragment.
No merge
- Across these tests the fake
ghnever receivespr mergeorpr review; nothing is pushed torelease/**ormain.
Dry run
-
--dry-run, and a run without--confirm, print each issue it would close with its comment, the cut's branch, changed files, PR title, the fragments it would collect and the completed items with no fragment; the write log stays empty and no git ref changes. The MCP mirrorroadmap_closeonly ever runs this and accepts no confirm argument (tests/test_fastmcp_contracts.py, beside theroadmap_migratecase at:1315).
Removal
-
rg -n "close-merged|close_issues_for|get_issue_states|list_merged_pull_requests" src tests docs -g '!docs/ROADMAP.md' -g '!docs/agent/tasks/**'finds nothing (today it hitsissue_closure.py,gh.py,pr.py:1595,tests/test_gh_issue_closure.py,tests/test_all_commands_help_dryrun.py:68,docs/CLI_REFERENCE.md:6505anddocs/commands/gh.md:580);CHANGELOG.mdkeeps its history.
Docs and gate
-
docs/ROUTINE_TASKS.md(Cadence C and the table row at:46) anddocs/SDLC.md:346describe the cut asdevops roadmap close, namingrelease prepare --create-pronly as the manual fallback;docs/MCP_TOOLS.mdlistsroadmap_close. -
uv run devops docs checkpasses; the new tests add at most 1 s (uv run pytest <new files> --durations=0);uv run devops cipasses.
Manual check (a person, against GitHub, once every item of the current release is closed)
- Pending a person:
uv run devops roadmap close --dry-run -R dan-petty/devops-cli, then--confirm;gh pr view <n> --json headRefName,baseRefName,labels,milestone,isDraftshows headchore/cut-vX.Y.Z, basemain, labelrelease, milestonevX.Y.Z,isDraft: false;git fetch origin && git show --stat origin/chore/cut-vX.Y.Zlists the files above and the PR's checks pass;gh issue view <item> --commentsshows one two-part comment on each item closed in that run.
Out of Scope
- The release path itself: cut branch from the remote release tip, dirty-tree refusal,
uv.lockbump, fail-closed commit, push and PR, required label and milestone, the draft flag on the shared path, the readiness exemption forchore/cut-vX.Y.Zintomain, thereleaselabel in.github/labels.yml, the convention sentences inAGENTS.md,RELEASE_CYCLE.mdanddocs/agent/tasks/README.md, anddocs/ROUTINE_TASKS.md:267and:275(fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982). - The cut lock, un-cut and release start (feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740); this item defines the cut predicate and the current-release computation, and feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 adopts them (or the reverse if feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 lands first). - Running the job when it is due, the due-table row and the clone it runs in (feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981); the webhook and worker that queue it (feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752). - Generating CHANGELOG lines from item titles (replaced by fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933's fragments) and the
[Unreleased]folding fix the body assigns to fix(release): release prepare folds [Unreleased] into an existing version section instead of leaving it behind #863 (not in the open-item list;collect_changelog_fragmentsalready joins an open section). - The generator-template changelog rule in
ai/instruction_generator.py(docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 owns instruction surfaces). - Removing
docs/RELEASE_NOTES.md(feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739); retiring the git-log changelog compiler. - Enabling the board's "Item closed" workflow (a person, task-739 step 7).
Dependencies
- Delivered: feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 (devops roadmap, render, read-only mirror pattern), refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 (store,close_issue,repository_file), feat(github): pr readiness requires an issue-linked, completed task file #704 (readiness exemption, parser reuse), fix(release): changelog fragments so concurrent pull requests never conflict on CHANGELOG.md or docs/ROADMAP.md #933 (fragments, readiness blocker, rule text). - fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982: lands first in v0.2.26, before this item; the cut calls its shared function withdraft=Falseand basemain, and the cut-branch,uv.lock, push-rejection, label and milestone rejection, manual-path, readiness-exemption,release-label and convention-sentence criteria live there. - feat(ai): item refinement to ready with proposed decisions (
devops roadmap refine) #744: sibling job adding a subcommand tosrc/devops_cli/commands/roadmap.py, help strings tolang/en/help.pyand a mirror toai/mcp/server.py; this item lands first (it waits on no v0.2.25 item) and feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744 rebases. - feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741: lands before fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982 (owner, 2026-10-03); its image-tag step sits in the bump block fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 moves; no code shared with this item. - feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981: lands last in v0.2.26; owns theclosedue-table row (it adds a row for every job landed when it starts), keeps the clone this item cuts from and passes it as--root(741.md:62); this item adds no row. - feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752: queues the closure job per repo and defines when it runs (webhook or polling tick); this item is the job it queues. - feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740: undelivered (v0.2.25, started in worktree i740); whichever of feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 and this item lands first defines the cut predicate and the current-release computation, the other adopts it. - refactor(github): one github session per identity owning token, quota and transport #767: pins
GH_TOKENfor the cut'sgit pushin the service; its original body namedchore/release-vX.Y.Z(767.md:135) and its applied body now sayschore/cut-vX.Y.Z, the name fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 settles. - chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842: its step 4 (842.md:35) asks whether
devops releasecan still create arelease/*branch; after fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 and this item only feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 does. - docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 (v0.2.27): rewritesAGENTS.md; this item no longer edits it (fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 changes the convention sentences). - Release Epic: v0.2.26 — Roadmap Closure, Refinement & Automatic Release Cut #906: lists this item (906.md:25); its ordering paragraph puts fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982 before it (release chain fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 -> feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743 -> feat(ai): item refinement to ready with proposed decisions (devops roadmap refine) #744).
Owner decision: changelog collection moves to #1103 (2026-10-03)
Decided (owner, 2026-10-03), between this item and #1103: #1103's design wins. Changelog fragments are collected when the release merges or publishes, never in a release-cut commit. The body stands, with these changes:
Proposed Solution, The cut (changed).
- The step "collects the fragments into
## [X.Y.Z] - YYYY-MM-DD, joining any open## [X.Y.Z]section and leaving## [Unreleased]empty" is removed. The cut writes noCHANGELOG.mdchange and deletes nochangelog.d/*.md; the fragments reachmainwith the release PR, uncollected. - The release's changelog section is produced from the fragments by refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's mechanism when the release merges or publishes. This item generates nothing from titles and collects nothing.
- The sentence "The PR's Release Notes are the collected section" no longer holds: with no
## [X.Y.Z]section,_resolve_clean_release_notesfalls back to the branch notes (release.py:1038-1041at 2341ee5). The text the release PR and the GitHub Release show (release.yml:86) is refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's to define. - fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982's cut path is amended the same way (2026-10-03): its step 3 no longer collects fragments, and its cut commit leavesCHANGELOG.mdandchangelog.d/untouched. This item's cut and fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's shared cut function agree. - Unchanged: the cut still writes
docs/ROADMAP.mdwithdevops roadmap render, calls fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's shared cut function, and reports the items closed as completed that have nochangelog.d/<issue>.md, read at the release tip.
Title. "generated changelog" in the title no longer describes this item, which collects and generates no changelog. The body's own heading is the title to use: "feat(release): item closure summaries and automatic release cut (devops roadmap close)".
Scope (changed). "The cut's fragment collection" is removed from the list.
Key questions (changed).
- Where does the changelog section come from? Decided (owner, 2026-10-03): from the fragments, collected by refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's mechanism when the release merges or publishes, never in the cut commit.
- Does the GitHub Release text need a change? Moves to refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103, which defines where the Release body comes from once the cut no longer writes the section.
Acceptance criteria (replaced).
- The cut commit changes exactly
pyproject.toml,src/devops_cli/__init__.py,uv.lockanddocs/ROADMAP.md(git show --stat). (Replaces the criterion that listedCHANGELOG.mdand the deletedchangelog.d/*.md.) -
CHANGELOG.mdand everychangelog.d/*.mdin the cut commit are byte-identical to the remoterelease/v0.2.26tip, also when a## [0.2.26]section is already open; no## [0.2.26]section is written. (Replaces the criterion on the## [0.2.26]block,_extract_changelog_notesand_get_latest_changelog_version.) - After the first release PR closes unmerged and one more item PR merges, the next run rebuilds
chore/cut-v0.2.26from the new release tip, and the new fragment is inchangelog.d/on the rebuilt branch, uncollected. (Replaces "the section holds the new fragment".) -
--dry-run, and a run without--confirm, list the fragments present on the release branch, none collected, in place of "the fragments it would collect"; the rest of the dry-run criterion stands.
The other criteria stand, including the missing-fragment report: an item closed as completed with no fragment is named in the run's output and in the dry run, and the cut still happens.
Dependencies (added).
- refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103: the changelog part of this item. The release's changelog section, and the release notes taken from it, come from refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's merge or publish mechanism. The rest of this item (closure, the cut predicate, the call into fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982's shared function) does not wait for refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103. Until refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103 lands, a release this item cuts reachesmainwith its fragments still inchangelog.d/and no## [X.Y.Z]section, and refactor(docs): no documentation-only pull requests: release artifacts are made as the release merges, and every kept doc changes with its code or is deleted #1103's mechanism produces the section from them.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chore(docs): record roadmap planning glossary and github-source adr (#…
chore(docs): record roadmap service decisions and the machine-account…
feat(release): v0.2.24 (#905)
dan-petty commentedon Oct 3, 2026
#741 now lands before #982 (owner's order of 2026-10-03); no change to this item's code.
feat(release): item closure summaries and automatic release cut with …
dan-petty commentedon Oct 4, 2026
What changed
#1170, merged into
release/v0.2.26as b61e5a0.37 file(s) changed.
How it was verified
Check runs at 77d7f08:
Acceptance Criteria of
docs/agent/tasks/task-743-roadmap-close-and-release-cut.md:Store slice
tests/test_roadmap_store_contract.py::test_merged_pull_requests_are_the_ones_merged_into_the_branch_with_their_paths.tests/test_roadmap_github_store.py::test_merged_pull_requests_read_every_page_with_each_ones_files,::test_a_failed_merged_pull_request_page_raises_and_returns_no_part(pages 1 to 3),::test_a_failed_files_listing_raises.Closure (
tests/test_roadmap_close.py)Closes #1closes Release v0.1.8 #1 as completed with one comment holding the link, merge commit, first section, file count, check buckets and the task file's Acceptance Criteria:::test_a_merged_pull_request_closes_its_issue_with_a_two_part_comment.Part 1 of #N, a code block, a quote, inline code, another repository and a pull request number close nothing:::test_these_bodies_close_nothing.::test_a_pull_request_without_a_task_file_says_soand the first test.::test_five_merged_pull_requests_close_five_issues_including_the_oldest.::test_a_closed_issue_gets_no_comment_and_a_second_run_writes_nothing.::test_a_failed_read_exits_non_zero_naming_it_and_the_issue_stays_open.When to cut
::test_when_to_cut,::test_no_open_release_holds_with_no_release.Cut mechanics
chore/cut-v0.2.26is pushed with the remoterelease/v0.2.26tip as parent;release/v0.2.26andmaindon't move; the commit changes exactlydocs/ROADMAP.md,pyproject.toml,src/devops_cli/__init__.pyanduv.lock;gh pr creategets basemain, headchore/cut-v0.2.26, titlefeat(release): v0.2.26, labelrelease, milestonev0.2.26, no--draft; a completed item without a fragment is named;ghnever getspr mergeorpr review:::test_the_cut_pushes_the_cut_branch_from_the_release_tip_and_opens_a_ready_pr.CHANGELOG.mdidentical to the tip:::test_a_cut_after_an_unmerged_release_pr_rebuilds_from_the_new_tip.::test_the_cut_names_the_branch_base_title_and_missing_fragments.Dry run and preview
--confirmprints each closing with its comment and the cut, writes nothing, changes no git ref and runs nogh:::test_a_run_without_confirm_previews_and_changes_nothing.--dry-runmakes no request and lists the reads, the closes and the cut's git andghcommands, with no--draft:::test_the_dry_run_lists_the_closes_and_the_cut_without_a_request,::test_the_dry_run_command_makes_no_request_and_names_the_cut_files, andcloseadded totests/test_roadmap_dry_runs.py's jobs (entry-point probe).roadmap_closetakesplanordry-runonly:tests/test_fastmcp_contracts.py::test_the_roadmap_tools_are_registered_and_migrate_only_previews.Removal, docs and gate
rg -n "close-merged|close_issues_for|get_issue_states|list_merged_pull_requests" src tests docs -g '!docs/ROADMAP.md' -g '!docs/agent/tasks/**'finds nothing; the parser tests stay intests/test_gh_issue_closure.py.docs/ROUTINE_TASKS.md(Cadence C and its table row) anddocs/SDLC.mddescribe the cut asdevops roadmap close, withrelease prepare --create-pras the manual fallback;docs/MCP_TOOLS.mdlistsroadmap_close;uv run devops docs checkpasses.changelog.d/743.md;CHANGELOG.mdanddocs/ROADMAP.mdare untouched. Every new test runs offline in under 1 s.uv run devops roadmap close --plan -R dan-petty/devops-cli, then--confirmfrom a clean clone;gh pr view <n> --json headRefName,baseRefName,labels,milestone,isDraftshows headchore/cut-vX.Y.Z, basemain, labelrelease, milestonevX.Y.Z,isDraft: false;git fetch origin && git show --stat origin/chore/cut-vX.Y.Zlists the files above (plus the service image tag fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 bumps), the PR's checks pass, andgh issue view <item> --commentsshows one two-part comment on each item closed in that run.gh issues close-mergedmisses issues older than the newest n #778 as not planned if it is still open (superseded by this command).feat(release): v0.2.26 (#1178)