Repository navigation
Description
Friction
devops pr copilot-pass and devops pr threads file-issues exist for the release pull request alone. They serve one rule. Copilot reviews the release pull request. Its passes stop at the count in release_copilot_passes. A comment that remains after the last pass becomes a follow-up issue.
ADR 0012 removes that rule. A Copilot review becomes a request from a person, on any pull request into main. No policy gives a pull request an automatic Copilot pass. Nobody verified that the automatic pass is off in the repository settings. Item #1864 carries that check.
An item pull request follows the AGENTS.md rule for a review comment. The author fixes the comment in the thread and resolves the thread. A counted budget for a manual act is bookkeeping. After item #1861 merges, only the two commands call the budget code. That code serves a rule that no longer exists.
Evidence
Counts come from the tip of release/v0.2.39 (commit f3b17488) on 2026-10-22. Count them again when you start the work.
src/devops_cli/github/copilot_budget.py(216 lines) readsrelease_copilot_passes(:77-80). It callsrequire_open_release_pr(:147).src/devops_cli/github/review_thread_issues.py(377 lines) callsrequire_open_release_prtoo (:284).src/devops_cli/github/pr_branches.py(92 lines) holdsis_release_pr,require_open_release_prandPullRequestRefusal. Readiness callsis_release_pr(commands/pr.py:1676). Item feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 removes that call. Then only the two modules above use these three names.- The same file holds
same_repository,branch_refanddefault_branch. Readiness calls all three at the tip. Item feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 rewrites readiness, so this item counts their callers again. - The commands sit at
commands/pr.py:2857-2893(copilot-pass) and:3055-3096(file-issues).devops gh prmounts the same Typer app (commands/gh.py:136). Sodevops gh pr copilot-passanddevops gh pr threads file-issuesgo too. - Four entries of
CONST_MCP_COMMAND_EXCLUSIONSname the commands (config/constants.py:569, 577, 630, 633). - Five constants serve them:
CONST_GH_COPILOT_REVIEWER,CONST_COPILOT_PASS_REFUSED_ERROR_CODE,CONST_PR_THREAD_FILED_MARKER,CONST_PR_THREAD_FILED_MARKER_REandCONST_THREAD_FILING_REFUSED_ERROR_CODE(config/constants.py:1692-1708).CONST_GITHUB_GHOST_LOGINin the same range stays, becausepr_threads.pyuses it. - Two defaults serve them:
DEFAULT_ROADMAP_RELEASE_COPILOT_PASSESandDEFAULT_PR_THREAD_ISSUE_TEXT_CHARS(config/defaults.py:804-808). - Two exceptions serve them:
CopilotPassRefusedErrorandThreadFilingRefusedError(exceptions/git.py:224-255). - 43 message fields (
lang/en/messages.py:723-826) and five help fields (lang/en/help.py:859-874and:930-939) serve them. I checked each message field withgit grep. Only the two modules, the two commands andread_viewer_loginuse them. release_copilot_passesis a field ofRoadmapConfig(roadmap/config.py:62) and a comment in.github/roadmap.toml:39.RoadmapConfigforbids unknown keys (roadmap/config.py:42). So a file that still sets the key fails to parse.- Only the thread filing reads these members of
github/pr_threads.py:read_viewer_login(:374),viewer_args(:248), theViewerquery (:192),ReviewThread.is_outdated,ReviewThread.original_lineandReviewComment.url.git grepoversrcfinds no other reader. - Only
copilot_budget.py(:100) readsCopilotReviewStatus.pass_requested(github/pr_monitor.py:93). Line:446sets it from therequestedflag of the timeline (:266). Two comments inpr_monitor.py(:91and:438) name the Copilot budget. tests/test_github_copilot_budget.pyhas 449 lines.tests/test_github_pr_threads.pyhas 1,322 lines. From the heading at:625, 698 lines and 25 tests cover the thread filing.tests/test_roadmap_config.pynames the key in four places (:29,:60,:104and:119).tests/copilot_review_payloads.py(87 lines) stays.tests/test_github_pr_monitor.pyuses its helpers and constants.- The generated pages name both commands:
README.md:384,docs/commands/pr.md,docs/commands/gh.md,docs/CLI_REFERENCE.mdanddocs/ERRORS.md(:47and:121). - Hand-written text names them in
RELEASE_CYCLE.md:225-226and indocs/SDLC.md(:299and:302). docs/agent/tasks/task-1345-release-copilot-pass-budget.md(62 lines) describes both commands as delivered.
Existing tool considered
This item builds nothing. It deletes code. The project rule "Open Tools Before Internal Code" asks for a written cost when a build replaces an open tool. No build happens here.
- Copilot review request. The reviewer request on the pull request page of GitHub asks for a Copilot review. A person uses it. The deleted command wrapped
gh pr edit --add-reviewer @copilot(CONST_GH_COPILOT_REVIEWER). The new AGENTS.md text that item feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 carries says that agents do not request a Copilot review. - Copilot state in the monitor.
devops pr monitorreads the Copilot review state from the review and timeline reads. It stays. - Pass counter. No open tool counts Copilot passes, and none is needed. The person who requests a review decides when to stop.
- Thread filing. No open tool is needed, because the need is gone. The author fixes the comment in the thread and resolves the thread. A person who wants a follow-up issue files it with
devops roadmap intake. - Written cost. ADR 0012 gives size in lines only, because no file in this repository records tokens. This item states its tokens and its elapsed time before work starts.
Proposed remedy
Delete the code, the strings and the tests that serve the two commands. Keep devops pr threads list, reply, resolve, resolve-all and unresolve. Keep devops pr monitor and tests/copilot_review_payloads.py.
- Delete
github/copilot_budget.pyandgithub/review_thread_issues.py. - In
github/pr_branches.py, deleteis_release_pr,require_open_release_prandPullRequestRefusal. Delete their imports and__all__entries. Write a new module docstring. - Delete a helper of
pr_branches.pythat readiness no longer calls after item feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861. Delete the file if no helper remains. DeleteCONST_RELEASE_BRANCH_RE(config/constants.py:3765). After feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 and this item, no code reads it. It is built fromCONST_RELEASE_BRANCH_PREFIX. If the planner item that creates date-titled milestones has merged, delete the prefix too. - Delete the
copilot-passandfile-issuescommands incommands/pr.pyand their fourCONST_MCP_COMMAND_EXCLUSIONSentries. - Delete the constants, defaults, exceptions, message fields and help fields in the Evidence list.
- Delete the field
release_copilot_passesfromRoadmapConfig. Delete the comment at.github/roadmap.toml:39. - Delete from
pr_threads.pythe members that only the thread filing read. Delete the GraphQL fieldsisOutdated,originalLineandurlthat only those members read. - Delete
CopilotReviewStatus.pass_requested, therequestedflag of the timeline,_requests_copilotand each constant that only they use. Rungit grepon each name first. Rewrite the two comments that name the Copilot budget. - Run
devops docs generate --sync-readme. It updates the generated pages. Remove each import that the deleted code leaves unused.
What it deletes
I counted the whole files with wc -l. I estimated the other rows from the line ranges in the Evidence list. No tool counted them.
| File | Lines deleted |
|---|---|
github/copilot_budget.py |
216 (whole file) |
github/review_thread_issues.py |
377 (whole file) |
github/pr_branches.py |
about 60 of 92 |
commands/pr.py |
about 80 |
exceptions/git.py |
about 35 |
lang/en/messages.py |
104 |
lang/en/help.py |
26 |
config/constants.py |
19 |
config/defaults.py, roadmap/config.py and .github/roadmap.toml |
about 8 |
github/pr_threads.py |
about 30 |
github/pr_monitor.py |
about 30 |
The source total is about 990 lines. Tests lose about 1,160 lines: 449 (whole file), 698 (the filing section) and about 13 in test_roadmap_config.py. The monitor tests about a pending Copilot request change too. The generated pages lose the sections of both commands and two rows of docs/ERRORS.md.
Order and dependencies
ADR 0012 lists this item in step 12 ("The Copilot pass commands go"). Step 12 follows step 6.
- It merges after feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861. That item removes the
is_release_prcall from readiness. It also rewritesRELEASE_CYCLE.md, which names both commands at:225-226. - It merges after the item titled "docs(workflow): the instructions describe trunk, derived versions and the release pull request". That item rewrites
docs/SDLC.mdat:299and:302.devops docs checkfails on a document that names a missing command (ADR 0012, Cutover and Sequence). - It merges before the item titled "refactor(roadmap): Release becomes Milestone in the planner, its settings and the board". ADR 0012 puts that rename last in step 12. This item removes
release_copilot_passes, so the rename does not touch that key. - ADR 0012 sets no order between this item and refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863. Both edit
exceptions/git.py,lang/en/messages.pyandconfig/constants.py. The pull request that merges second rebases. - Release v0.2.39 is the last release of the old pipeline. Nothing in this sequence except the ADR merges before that release is published.
Pull request
- The pull request targets
main. Its title is a Conventional Commit. The title is the changelog entry. - Its body says
Closes #<this issue>and names no other issue. It does not usePart of. - It adds no changelog fragment and does not edit
CHANGELOG.md. - It carries the archived OpenSpec change folder of this issue as its last commit. Until the switch of ADR 0010 lands, it changes the task file of this issue instead.
Tests
Change the tests first. No test asserts that a removed name stays removed, because git history records the deletion (#1871).
- The existing test of a misspelt key in
tests/test_roadmap_config.pykeeps its case with another key. It shows thatRoadmapConfigstill forbids an unknown key. - The monitor test about a pending Copilot request asserts
is_activeandstateonly. - The tests of
devops pr threads list,reply,resolve,resolve-allandunresolvepass without change. The tests ofdevops pr monitorpass, except the test named above.
Acceptance criteria
- The author runs
uv run devops pr --help,uv run devops pr threads --helpanduv run devops gh pr --help. None of them listscopilot-passorfile-issues. No test asserts this. -
.github/roadmap.tomlandRoadmapConfighold norelease_copilot_passes. The existing test of a misspelt key passes. -
.github/roadmap.tomlstill parses to theRoadmapConfigthattests/test_roadmap_config.pyexpects. - This command prints nothing:
git grep -nEi "copilot_budget|review_thread_issues|copilot-pass|file-issues|release_copilot_passes|is_release_pr|require_open_release_pr|PullRequestRefusal|CopilotPassRefusedError|ThreadFilingRefusedError|pass_requested|read_viewer_login|stop rule|Copilot budget|CONST_RELEASE_BRANCH_RE" -- . ':!tests' ':!CHANGELOG.md' ':!changelog.d' ':!docs/adr' ':!docs/agent'. - The same command over
testsprints nothing. - Every function left in
github/pr_branches.pyhas a caller outside the file, or the file is gone. -
devops pr monitoranddevops pr threads list,reply,resolve,resolve-allandunresolvework as before. -
uv run devops docs checkpasses. -
uv run devops cipasses with at least 90 percent coverage and no deprecation warning.
Pending a person
- Pending a person: step C5 of chore(settings): the release App, the release environment, the squash settings and the required checks are in place #1864 finds and turns off any automatic Copilot review. This item does not wait for it.
- Pending a person: after this item merges, request a Copilot review on one pull request on its page. Run
devops pr monitor <number>on it. Confirm that the monitor waits while the review runs and then reports it. - Pending a person: decide whether the pull request title carries
!and aBREAKING CHANGE:paragraph. ADR 0012 does that for the deletion pull request of refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863, because two commands disappear. Two commands disappear here too. - Pending a person: decide what happens to the task file of feat(github): a release pull request gets a set number of copilot passes, and later review threads become follow-up issues #1345. ADR 0012 does not say what happens to the task file of a removed feature.
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 deletes code that is no longer used after ADR 0012.The change removes outdated functionality but does not fix a bug or add a feature.The change affects only internal tooling and does not impact users directly.The change involves removing multiple modules, commands, constants, tests, and references across the codebase.dan-petty commentedon Oct 23, 2026
Delivered by #1952: devops pr copilot-pass, devops gh pr copilot-pass, devops pr threads file-issues, copilot_budget.py and review_thread_issues.py are deleted.