Description
Friction
After the switch to trunk, nothing calls the old release machinery. No workflow, no Service job and no document uses it. In whole files it is 3,502 lines of source and 4,846 lines of tests. About 650 more lines of source sit in modules that stay. If this code stays, it is zombie code under the project rule. Agents read it, extend it and fix it.
The code costs much to keep. ADR 0012 counts 97 merged pull requests with the scope release. 49 of them are fix, chore, refactor or docs pull requests that tend the release path. 29 commits changed the nine source files below since the first tag on 2026-08-17. The project is pre-1.0 and keeps no compatibility shim.
This item has ! in its title and a BREAKING CHANGE: paragraph in its body. devops release and devops roadmap close disappear. The owner holds the first release pull request until this item merges (ADR 0012 step 14). The first release is a minor release in any case, because the titles of #1861 and #1862 are feat. The hold adds the breaking-change note of this item to the release notes.
Evidence
The counts come from wc -l, grep and git grep at commit f3b17488, the tip of release/v0.2.39.
Whole files of source, 3,502 lines:
src/devops_cli/release/cut.py1,126.src/devops_cli/release/changelog_fragments.py286.src/devops_cli/release/notes_compaction.py109.src/devops_cli/release/__init__.py1.src/devops_cli/commands/release.py888. A module-class proxy at lines 873-888 forwardssetattrtorelease/cut.py.src/devops_cli/github/release_notes.py111.src/devops_cli/models/release.py51.src/devops_cli/roadmap/close.py618.src/devops_cli/k8s/argocd_live_report.py312.
Whole files of tests and documents, 5,034 lines:
tests/test_release.py2,975.tests/test_roadmap_close.py876.tests/test_release_changelog_fragments.py283.tests/test_release_notes_sync.py192.tests/test_release_notes_compaction.py120.tests/test_k8s_argocd_live_report.py356.tests/support/release_notes_examples.py44. Only the two deleted release tests import it.docs/commands/release.md188.devops docs generatemakes this page from the command group.
Pieces in files that stay. wc -l and the line ranges give each count:
roadmap/request_plan.py:close_requestsat lines 615-691 (77). Its two helpersStoreRequests.merged_pull_requests(243-253, 11) andStoreRequests.pr_checks(255-259, 5) have no other caller.roadmap/run.py:_run_close_adapterat lines 480-540 (61),_reprioritize_cross_jobat 400-418 (19), thecloserow ofRELEASE_LANE_ROWSat 655-661 (7) and theclosed_itemsfield at line 121.commands/roadmap.py:close_cmdand_closeat lines 432-503 (72), and the import ofroadmap.closeat lines 50-56.exceptions/git.py: sixRelease*Errorclasses at lines 258-394 (137). Onlycut.pyandtest_release.pyuse them.exceptions/__init__.pyre-exports them in 12 lines.docs/ERRORS.mdlists them at lines 91-96.commands/devcontainer.py: the--oci-labelsvalidator at lines 274-325 (52), the--oci-labelsand--expected-sourceoptions at lines 381-388, and the label branch at lines 414-431. It compares emitted labels withCONST_CANONICAL_OCI_SOURCE, so it fails on any copy of the repository. Its tests aretests/test_devcontainer.py:2259-2423(165).lang/en: the classesReleaseCommandHelp(help.py:1059-1083, 25),ReleaseMessages(messages.py:533-592, 60) andReleaseErrorMessages(errors.py:211-246, 36). Also theclose*fields ofRoadmapCommandHelp(help.py:1147-1175, 29) andRoadmapMessages(messages.py:1919-1982, 64). Only the deleted code reads them. ADR 0012 estimates about 100 lines for these strings. The measured total is 214.
References outside the files above:
- Command group:
main.py:61,commands/__init__.py:24andai/mcp/dispatcher.py:57name thereleasegroup. - MCP resource and domain: the resource
resource://release/status(ai/mcp/server.py:206-211) runsdevops release status. The domain list atserver.py:528andCONST_MCP_LAZY_DOMAINS(constants.py:227) namerelease. - MCP tools:
CONST_MCP_EXPOSURE_TABLEhas the rows("release", "status")(line 350) and("roadmap", "close")(line 359).CONST_MCP_COMMAND_EXCLUSIONShas seven("release", ...)rows (lines 642-648).ai/tools/registry.py:140and:151givemcp_module.release_statusto theauditorandpmpersonas.docs/MCP_TOOLS.mddocumentsrelease_statusandroadmap_close. - Constants for fragments and cut files:
CONST_CHANGELOG_FRAGMENTS_DIR,CONST_CHANGELOG_FRAGMENT_NAME_REandCONST_KEEP_A_CHANGELOG_CATEGORIES(constants.py:179-194). AlsoCONST_RELEASE_PROCESS_CUT_KIND,CONST_RELEASE_PROCESS_OPEN_KIND,CONST_RELEASE_PROCESS_BRANCH_RE,CONST_RELEASE_CUT_FILESandCONST_RELEASE_SHARED_FILES(constants.py:3768-3792). - Other constants:
CONST_GITHUB_RELEASE_BODY_MAX_CHARSandCONST_GITHUB_PULL_REQUEST_BODY_MAX_CHARS.CONST_ROADMAP_CLOSURE_BATCH_KEYS(line 3127, used at line 3141).CONST_REQUIRED_OCI_IMAGE_LABELS(lines 1003-1012). Indefaults.py:DEFAULT_ROADMAP_CLOSURE_INTERVAL_MINUTESandDEFAULT_ROADMAP_CLOSE_SUMMARY_CHARS. InCONST_DOCS_INVENTORY: thechangelog.dentry at line 772. feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 deletes the entry at line 797 withchangelog.d/README.md. - An import hazard at
constants.py:4214:CONST_REVIEW_ROUTED_PATH_PATTERNSholds the f-stringf"{CONST_CHANGELOG_FRAGMENTS_DIR}/**". The module raisesNameErrorat import when the constant goes alone. - Constants that stay:
CONST_CANONICAL_OCI_SOURCE(k8s/argocd_gate.pyreads it),CONST_CHANGELOG_FILENAME(line 4213 reads it) andDEFAULT_RELEASE_LABEL.CONST_RELEASE_BRANCH_PREFIXandCONST_RELEASE_BRANCH_REalso stay, becauseroadmap/run.py:295,roadmap/reprioritize.py:2034andgithub/pr_branches.py:52read them. The planner item deletes the prefix, and the Copilot item deletes the regular expression. - Config:
pyproject.toml:249listschangelog.dinalso_copyof[tool.mutmut]. - Text that names a deleted convention:
openspec/config.yaml:37nameschangelog.d/<issue>.md. A comment atsrc/devops_cli/ai/review/runner.py:674names the branchrelease/v0.2.20. - Imports:
models/__init__.py:124-128and:272-275re-export the four release models.commands/pr.py:81and:1969readfind_changelog_section. The readiness rewrite in feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 removes those two lines. - Store reads that only the closer used:
MergedPullRequest(roadmap/store.py:514) andRoadmapStore.merged_pull_requests(store.py:965). Its two versions are inmemory_store.py:798andgithub_store.py:1931. Alsomerged_pull_requests_endpoint(github_store.py:1233),pull_request_files_endpoint(github_store.py:1239) and the payload methodmerged(github_store.py:509). Alsorelease_cut_branch(store.py:222, with its__all__entry at line 1088). - Argo helper:
resolve_argocd_server_address(argo/credentials.py:12, re-exported atargo/__init__.py:6and:29). Only the live report calls it. - Tests that read the real source tree:
tests/test_docs_source_argv_collector.py:242expects an argv fromcommands/release.py.tests/test_fastmcp_contracts.py:67and:179namerelease_statusand the resource.tests/test_docs_inventory.pyreadsCONST_CHANGELOG_FRAGMENTS_DIR. - Tests of the release models and strings:
tests/test_resource_schemas.py:80-84,:427-448and:626-627use the release models.tests/test_language_catalogs.pyreadsMESSAGES.release,ERRORS.releaseandHELP.release. - Tests of the fragment builder:
tests/support/builders.py:22and:78-82buildChangelogFragment.tests/test_support_builders.py,tests/conftest.py:131andtests/support/__init__.py:7name the same code. - Tests of the Service and the store:
tests/test_roadmap_run.pyandtests/test_roadmap_dry_runs.pyhold the cases for thecloserow and forclose_requests.tests/test_roadmap_store_contract.pyandtests/test_roadmap_github_store.pyhold the cases formerged_pull_requests.
The Service due table needs a decision. ADR 0012 does not name the close row. The row calls roadmap/close.py, so it goes with that file.
CONST_ROADMAP_CLOSURE_BATCH_KEYS is the only source of the pull_request event in CONST_ROADMAP_WEBHOOK_EVENTS (server/routes/webhooks.py:153). That event leaves the Service consumer. The Service has 0 replicas in git (#1562), so no live consumer changes. The planner items decide if they need pull_request events again.
git grep with the pattern of ADR 0012 (changelog\.d|release/v|release/\*\*|devops release|roadmap close|chore/cut|chore/open) finds 53 files outside tests and history, and 44 test files. ADR 0012 counted 53 and 43 at commit 3ef69850. Other items own most of these files. #1861 owns the workflows, the template, AGENTS.md, CONTRIBUTING.md, RELEASE_CYCLE.md and the readiness rules in commands/pr.py. The docs(workflow) item owns the other documents, the knowledge base, the instruction generator and the small strings. The planner items own roadmap/store.py, roadmap/reprioritize.py, github/pr_branches.py and github/issue_closure.py.
Existing tool considered
This item builds nothing. An open tool or a GitHub feature now covers each deleted job.
- release-please (
googleapis/release-please-actionv5.0.0, commit45996ed1f6d02564a971a2fa1b5860e934307cf7) derives the version, writesCHANGELOG.mdand opens the release pull request. It replacesrelease/cut.py,release/changelog_fragments.pyand theprepare,pr,tag,changelog,checkandstatuscommands. softprops/action-gh-releasev3 (commitefb35369e0ad2afab669f228072c1b0d510eae64) uploads the assets and publishes the draft release. GitHub Releases andCHANGELOG.mdhold the notes. This replacesrelease/notes_compaction.py,github/release_notes.pyand thenotesandsync-notescommands.- GitHub closes an issue natively when a pull request with
Closes #Nmerges into the default branch. Soroadmap/close.pyhas no input. - The Argo CD tag constraint (feat(k8s): Argo CD follows release tags #1862) replaces the live diff report. The
ArgoCdApplicationOutOfSyncalert (k8s/monitoring/prometheus-values.yaml:506) covers drift of the sync status. The report also printed host overrides. ADR 0012 deletes it and builds no replacement. docker/metadata-actionemits the OCI labels. So the--oci-labelsvalidator has no job left.devops docs generate --sync-readmeregenerates the documents.ruffreports unused imports.vulturefound 720 findings onsrcin the trial of test(hygiene): tombstone tests for deleted code are deleted and a dead-code tool is trialled #1871, so the project did not adopt it. This item finds orphans withgit grepon the names listed above.- Cost: this item writes no new module and no new helper. ADR 0012 gives no token or time figure for it. The item states the tokens to implement, maintain and fix the change, and the elapsed time, before work starts.
Proposed remedy
Delete the whole files and the pieces above. Follow every reference until the git grep gate below prints nothing.
- Delete the nine source files, the seven test files and
docs/commands/release.md. - Remove the
releasegroup frommain.pyandcommands/__init__.py. Remove the MCP resource, the domain, the exposure rows, the exclusion rows and the persona tool entries. - Remove
close_requests, thecloserow of the Service due table,_run_close_adapter,_reprioritize_cross_joband theclosed_itemsfield. Removeclose_cmdand_close. - Remove the six exception classes, the four release models, the strings and the constants listed above. Remove the
--oci-labelsvalidator with its options and tests. - Remove the store reads,
release_cut_branchandresolve_argocd_server_addressthat no remaining code calls. Look for more withgit grep -won each name that the deleted files defined. - Remove the
changelog.ddirectory if any file is left in it, and remove its entry inpyproject.toml. The release-please item (feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861) plans to deletechangelog.d/README.md. - Edit the tests that name the removed code. Do not add a test for the absence of a removed name. Git history records deletions (test(hygiene): tombstone tests for deleted code are deleted and a dead-code tool is trialled #1871).
- Delete the sentence "Only the closing group adds changelog.d/.md." from
openspec/config.yaml:37. Change the comment atrunner.py:674to name a branch that exists. - Add no changelog fragment and no
CHANGELOG.mdedit. The pull request title is the changelog entry. - Run
uv run devops docs generate --sync-readme. The pagesCLI_REFERENCE.md,MCP_TOOLS.md,ERRORS.md,commands/roadmap.mdandcommands/devcontainer.md, and the README matrix, change with the code.
This item does not cover these parts:
docs/RELEASE_NOTES.md,docs/compactor.pyanddevops docs compactbelong to chore(docs): remove docs/RELEASE_NOTES.md anddevops docs compact#881 (ADR 0012 step 11).- The Copilot modules
github/copilot_budget.pyandgithub/review_thread_issues.py, with the commandsdevops pr copilot-passanddevops pr threads file-issues, belong to the planner and GitHub items of ADR 0012 step 12. - The closing-keyword parser
github/issue_closure.py, the one-time import inroadmap/migrate.pyandroadmap/document.py, and the release-branch writes of the planner belong to the same step 12 items. The planner keepsstore.create_branch,_branch_writesandpr_branches.pyuntil then. - The workflows, the readiness rules, the
Part ofrule and the instructions belong to feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 and thedocs(workflow)item. docs/ROADMAP.md: the deleted close code wrote it in a clone. After this item no release writes it. ADR 0012 says the render command or job writes it.- The Argo CD build gate,
render_at_revisionandargocd_overrides.pystay (ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860).
What it deletes
The measured lines are 3,502 of source in whole files and 656 of source in pieces. They also include 4,846 of tests in whole files, 165 of tests for the --oci-labels validator and 188 of generated documents. The total is 9,357 lines. It excludes the constants, the store reads, the test cases in other files and the other regenerated pages. It adds no module, no helper and no test. It adds only the few lines that replace a deleted reference, for example one expected argv in tests/test_docs_source_argv_collector.py.
The 656 lines of pieces come from six places. They are 93 in request_plan.py, 88 in run.py and 72 in commands/roadmap.py. The other three are 137 in exceptions/git.py, 52 in the --oci-labels validator and 214 in lang/en.
Order and dependencies
ADR 0012 sets the order. The old pipeline publishes v0.2.39 and ends. Nothing in the new plan merges before that, except the ADR. Every pull request after that targets main.
- This item merges after feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 (ADR 0012 step 6). The new
release.ymlreplaces the old one, which callsdevops release check,notesandchangelogat lines 86-100 and--oci-labelsat lines 217 and 390. The trunk-shaped readiness removes the readers of the release constants incommands/pr.py. - This item merges after ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860 (step 8). The Argo CD build gate runs in
devops cithen. Until then the gate hasrelease/cut.py:1068as its only caller. - This item merges after the
docs(workflow)item (step 9).devops docs checkfails on a document that names a command that does not exist. - chore(docs): remove docs/RELEASE_NOTES.md and
devops docs compact#881 (step 11) merges after this item. - The first release pull request waits for this item. The owner holds it, and chore(release): the first release made by release-please is published, with its cost measured #1865 (step 14) measures the release.
- The
refactor(roadmap)andrefactor(github)items of step 12 merge in any order with this item, except the items that name refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 as a need. Both touchroadmap/run.py, so the item that merges second rebases. - The OpenSpec items (feat(openspec): the pull request that closes a change archives it, and readiness checks the archived folder #1846, feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive #1847) are not in this sequence. The plan rewrites feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive #1847 so that it leaves the closer alone. A branch that edits a file this item deletes rebases onto the deletion.
Tests
- The deleted tests go with their modules.
- The edited tests are
test_docs_source_argv_collector.py,test_fastmcp_contracts.py,test_resource_schemas.py,test_language_catalogs.py,test_docs_inventory.py,test_support_builders.py,test_devcontainer.py,test_roadmap_run.py,test_roadmap_dry_runs.py,test_roadmap_store_contract.py,test_roadmap_github_store.py,test_review_path_routing.py,test_review_pr_post.pyandtest_docs_knowledge_base_argv.py. The fileconftest.pyand the modulessupport/builders.pyandsupport/__init__.pychange too. The two review tests usechangelog.d/1.mdas a sample routed path. Use another routed path.test_docs_knowledge_base_argv.pyuses the sample commanddevops release pr. Use a command that remains. - No test asserts that a removed name stays removed. The check for the removed group and tools is
devops docs checkand thegit grepgate. - The deleted files hold no suppression comment, so no ceiling in
DEFAULT_SUPPRESSION_CEILINGSmoves. None goes up. - Coverage stays at or above 90 percent. Nobody writes a test to cover what is left.
Acceptance criteria
- The
git grepgate prints nothing. Run the command below. -
uv run devops docs checkpasses.docs/commands/release.mdis gone,docs/commands/roadmap.mdhas noclosesection, anddocs/commands/devcontainer.mdhas no--oci-labelsor--expected-sourcerow. -
release_status,roadmap_closeandresource://release/statusare absent fromai/mcp/server.py,CONST_MCP_EXPOSURE_TABLE,docs/MCP_TOOLS.mdandtests/test_fastmcp_contracts.py. Theauditorandpmpersonas hold norelease_status. - The
changelog.ddirectory is not in the tree,pyproject.tomldoes not name it, anddevops_cli.config.constantsimports. -
DEFAULT_DUE_TABLEhas nocloserow, andJobOutcomehas noclosed_itemsfield.CONST_ROADMAP_WEBHOOK_EVENTSequals the events that the remaining batch keys name. -
git grep -wfinds none ofMergedPullRequest,merged_pull_requests,merged_pull_requests_endpoint,pull_request_files_endpoint,release_cut_branchandresolve_argocd_server_address. -
uv run devops cipasses with at least 90 percent coverage and no unhandled deprecation warning. - The pull request title starts
refactor(release)!:and passesSemantic PR title. The body saysCloses #1863. It has a paragraph that startsBREAKING CHANGE:and namesdevops release,devops roadmap close,--oci-labels,--expected-source,release_status,roadmap_closeandresource://release/status. - The pull request description lists the lines deleted per file. The total is at least 9,000.
- Pending a person: set the squash settings
PR_TITLEandPR_BODY(ADR 0012 step 3) before this item merges. TheBREAKING CHANGE:paragraph reaches the release notes only with those settings. - Pending a person: hold the first release pull request until this item merges (ADR 0012 step 14).
- Pending a person: after this item merges, steps D1 and D2 of chore(settings): the release App, the release environment, the squash settings and the required checks are in place #1864 delete the
releaseruleset and the remote branches. They also confirm that no workflow trigger namesrelease/**. - Pending a person: edit the 127 open issues whose criteria name a
changelog.dfragment. Or accept that those criteria are void. ADR 0012 also counts 161 open issues that namechangelog.din the body.
The gate command:
git grep -nE 'devops release|roadmap close|devops_cli\.release|devops_cli\.commands\.release|devops_cli\.models\.release|devops_cli\.github\.release_notes|devops_cli\.roadmap\.close|argocd_live_report|Release(WorkingTreeDirty|RemoteFetch|BranchMissing|PushRefused|Push|PRCreation)Error|Release(Prepare|Status)(Request|Result)|CONST_RELEASE_(CUT_FILES|SHARED_FILES|PROCESS_)|CONST_CHANGELOG_FRAGMENT|CONST_KEEP_A_CHANGELOG|CONST_ROADMAP_CLOSURE_BATCH_KEYS|DEFAULT_ROADMAP_CLOSURE_INTERVAL|DEFAULT_ROADMAP_CLOSE_SUMMARY|CONST_REQUIRED_OCI_IMAGE_LABELS|CONST_GITHUB_(RELEASE|PULL_REQUEST)_BODY_MAX_CHARS|oci-labels|oci_labels|validate_oci_image_labels|release_status|resource://release|changelog\.d' -- . ':(exclude)docs/adr' ':(exclude)docs/agent' ':(exclude)CHANGELOG.md' ':(exclude)docs/RELEASE_NOTES.md' ':(exclude)tests/fixtures' ':(exclude)src/devops_cli/tools_lock/tools.lock'
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 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.
The candidate proposes to delete bespoke release machinery, which is a refactor.It addresses outdated code that impacts maintainability but does not introduce immediate risks or user-facing changes.The change removes legacy code rather than adding new functionality or fixing critical issues.Deleting the release machinery involves removing and updating many files, references, tests, and documentation across the project.[-]refactor(release): delete the bespoke release machinery[/-][+]refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code[/+]dan-petty commentedon Oct 23, 2026
Delivered by #1952: it deletes devops release and the release package (cut, changelog fragments, notes compaction), devops roadmap close, and the changelog fragment code.