Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationscope/releaseThe release-please workflow, the changelog and the published artifactstype/bugType bug: the code does not do what it must
Milestone
Description
Ready: implementation plan (refined 2026-10-17 at 3dd7fa6)
This section supersedes any text below that conflicts with it.
Decisions
- Which heads are release-process pull requests:
chore/cut-vX.Y.Zandchore/open-vX.Y.Z, each optionally followed by-<slug>, from this repository intorelease/vX.Y.Zof the same version. The cut is now made as a pull request (chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614,chore/cut-v0.2.36intorelease/v0.2.36), becauseno-commit-to-branchrefuses the cut's commit onrelease/*. Today readiness holds that head to grounding (tests/test_pr_cmd.py:2306pins it), so the cut pull request fails "closes no issue". - What a cut pull request (
chore/cut-…) may change: the cut's files with statusmodified(pyproject.toml,src/devops_cli/__init__.py,uv.lock,CHANGELOG.md,docs/ROADMAP.md) andchangelog.d/<n>.mdfragments with statusremoved. That is exactly whatcut_releasewrites and what chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614 changed (four files modified, 24 fragments removed). A cut never adds a fragment or editschangelog.d/README.md, so both fail. - Is the
chore/open-vX.Y.Z-mainmerge ofmainstill needed: yes, for conflicts, not for images. refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486 removed the image check that created it, but Renovate and hotfix pull requests still merge intomainbetween releases (chore(deps): bump httpx2 from 2.13.0 to 2.13.1 #1211, chore(release): pin docker/setup-qemu-action SHA and align BaseCapability id types for ty 0.0.87 #1582), and a release pull request that conflicts with them needsmainmerged into its branch. Achore/open-…pull request may change the cut's files and any file thatmainchanged since its merge base with the release branch, read with oneGET repos/{repo}/compare/{base sha}...{default branch}. Nothing else. - If the file list can't be read, or the compare fails or lists 300 files (GitHub's cap, so the list may be cut short): grounding applies (fail closed), because nothing proves the pull request is release-process only.
_changed_files_were_read(pr.py:1574) already names a file-list failure. A new blocker names a compare failure. - Renames: both
filenameandprevious_filenamemust be in the allowed set, as_changes_a_release_file(pr.py:1605-1610) already reads them. - Where the lists live:
CUT_FILES(src/devops_cli/roadmap/close.py:72) moves tosrc/devops_cli/config/constants.pyasCONST_RELEASE_CUT_FILES, besideCONST_RELEASE_SHARED_FILES(:2934).close.pyandcommands/roadmap.py:446use the constant. One list then says what the cut writes and what readiness accepts.CONST_RELEASE_PROCESS_BRANCH_RE(:2927-2929) gains akindgroup (cutoropen). - The blocker is one line naming every file outside the allowed set, cut to
CONST_MAX_ERROR_DETAIL_LENGTHlike the other grounding blockers. The usual grounding blockers follow it. - The issue title names only
chore/open. The rule covers both heads, so a person may retitle it to "pr readiness exempts a release-process pull request only when it changes release-process files".
Delivery
- PR 1 (M): closes fix(github): pr readiness exempts a chore/open release-process pull request only when it changes release-process files #1344.
_grounding_scope(pr.py:1511) takes the changed-file read that_evaluate_pr_blockersalready makes (pr.py:1832), so a cut pull request costs no extra request. It exempts a release-process head only when the content rule holds. The PR also adds the compare read forchore/open, the constant move, the new blocker messages and thecheck-readinessdocstring (pr.py:1934-1942), and fixes the convention text it makes stale. Tests first, intests/test_pr_cmd.py, replacing:2280-2340:test_a_cut_pull_request_that_changes_only_the_cut_files_is_exempt: chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614's file list passes, with no/contents/and no/compare/request.test_a_cut_pull_request_that_changes_another_file_is_held_to_grounding: asrc/file, an added fragment or an edit tochangelog.d/README.mdgives a blocker that names that file, and "closes no issue" follows it.test_a_renamed_file_is_judged_by_both_paths.test_an_unread_file_list_holds_a_release_process_head_to_grounding.test_a_merge_of_main_that_changes_only_what_main_changed_is_exempt, with exactly one compare read, andtest_a_merge_of_main_with_another_file_is_held_to_grounding, naming the file.test_an_unread_or_full_compare_holds_a_merge_of_main_to_grounding.- The fork, other-version, slug-before-version, not-
choreand into-the-default-branch cases of today's:2306-2340stay held to grounding. - Files:
src/devops_cli/commands/pr.py,src/devops_cli/config/constants.py,src/devops_cli/roadmap/close.py,src/devops_cli/commands/roadmap.py,src/devops_cli/lang/en/messages.py,tests/test_pr_cmd.py,RELEASE_CYCLE.md,docs/agent/tasks/README.md,.github/pull_request_template.md, the generateddocs/commands/pr.md,docs/commands/gh.mdanddocs/CLI_REFERENCE.md(devops docs generate --sync-readme),changelog.d/1344.md, anddocs/agent/tasks/task-1344-*.md.
Acceptance criteria
- A
chore/cut-vX.Y.Z[-slug]pull request from this repository intorelease/vX.Y.Zis exempt from grounding only when every changed path, both paths of a rename included, is aCONST_RELEASE_CUT_FILESentry with statusmodifiedor achangelog.d/<n>.mdwith statusremoved. - A
chore/open-vX.Y.Z[-slug]pull request is exempt only when every changed path is a cut file or a file the default branch changed since its merge base with the base branch, read with one compare request. - Otherwise grounding applies, and one blocker names the files outside the allowed set.
- An unread file list, or a compare that fails or returns 300 files, applies grounding, and a blocker names the failure.
- A fork, another version, a slug before the version, a non-
chorehead or a head into the default branch is held to grounding, as today. -
CUT_FILESis gone.roadmap/close.py,commands/roadmap.pyand readiness readCONST_RELEASE_CUT_FILES. -
RELEASE_CYCLE.md:56,docs/agent/tasks/README.md:13and.github/pull_request_template.md:18name the release pull request (release/vX.Y.Zintomain), the cut pull request (chore/cut-vX.Y.Zintorelease/vX.Y.Z) and the merge ofmain(chore/open-vX.Y.Z-main), each with its file rule.rg -n 'chore/cut-vX.Y.Z. into .main' RELEASE_CYCLE.md docs/agent/tasks/README.mdprints nothing. -
devops docs checkpasses with the regenerated command docs. -
changelog.d/1344.mdrecords the change under### Fixed.CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses. - Pending a person:
uv run devops pr check-readiness <the v0.2.37 cut pull request>shows no grounding blocker.
Current references
_is_release_pr:src/devops_cli/commands/pr.py:1462_is_release_process_pr:src/devops_cli/commands/pr.py:1472-1483_grounding_scope, exemption check:src/devops_cli/commands/pr.py:1511,:1519_changed_files_were_read:src/devops_cli/commands/pr.py:1574_changes_a_release_file:src/devops_cli/commands/pr.py:1605-1610_leaves_release_files_to_the_cut:src/devops_cli/commands/pr.py:1622_grounding_blockers:src/devops_cli/commands/pr.py:1761_evaluate_pr_blockers, file read:src/devops_cli/commands/pr.py:1789,:1832check-readinessdocstring:src/devops_cli/commands/pr.py:1934-1942- Grounding constants comment and regexes:
src/devops_cli/config/constants.py:2917-2929 CONST_RELEASE_SHARED_FILES:src/devops_cli/config/constants.py:2934CONST_CHANGELOG_FRAGMENT_NAME_RE:src/devops_cli/config/constants.py:177CONST_PR_FILE_MODIFIED_STATUS, changed statuses:src/devops_cli/config/constants.py:2947-2952CUT_FILES:src/devops_cli/roadmap/close.py:72; used atsrc/devops_cli/commands/roadmap.py:446- Grounding messages:
src/devops_cli/lang/en/messages.py:628-645 - Test helpers:
tests/test_pr_cmd.py:1821(_file),:1837(_ready_pr),:1853(_blockers),:1920(_grounding_gh) - Exemption tests to replace:
tests/test_pr_cmd.py:2291,:2320,:2335 - Stale text:
RELEASE_CYCLE.md:56,docs/agent/tasks/README.md:13,.github/pull_request_template.md:18 - Generated text:
docs/commands/pr.md:247,docs/commands/gh.md:961,docs/CLI_REFERENCE.md:6593,:7697
Dependencies and order
- 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 and refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486: closed.
- Making the cut a pull request (intake draft, not filed yet): that change opens
chore/cut-vX.Y.Zintorelease/vX.Y.Z, and this item makes readiness pass that pull request. Neither waits for the other. Landing this first lets the v0.2.37 cut, made by hand as a pull request again, pass readiness. - refactor(github): pr readiness is one verdict module that the pr commands, the monitor and mcp consume #998 (v0.2.37): land this first. refactor(github): pr readiness is one verdict module that the pr commands, the monitor and mcp consume #998 then moves
_is_release_process_prand this content rule into theroadmap/Item predicates, as its 2026-10-08 update plans. - feat(github): a release pull request gets a set number of copilot passes, and later review threads become follow-up issues #1345 (v0.2.37): no shared code.
- 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: no shared code. This PR fixes the three stale naming lines that 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 readiness check listed, because it is the change that makes them stale.
- 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 (blocked): it removes fix(release): the Service's cut commit collects the changelog fragments into the version's CHANGELOG.md section #1450's
CHANGELOG.mdexception (_leaves_release_files_to_the_cut). That exception applies only to grounded pull requests, so it does not change the rule here.
Problem
devops pr check-readiness exempts a pull request whose head is chore/open-vX.Y.Z, optionally followed by -<slug>, from grounding: closing one issue and changing its task file. It does this whatever the pull request changes [code: src/devops_cli/commands/pr.py:1459-1470; src/devops_cli/config/constants.py:3098-3106].
During v0.2.28, the remediation pull requests #1284, #1285, #1287, #1288 and #1289 carried code fixes into release/v0.2.28 under that name. They had no issue, no task file and no changelog fragment, and they passed readiness.
Acceptance criteria
- A
chore/open-vX.Y.Z[-slug]pull request intorelease/vX.Y.Zis exempt from grounding only when every file it changes is a release-process file:CHANGELOG.md,changelog.d/,docs/ROADMAP.md, and the version files the cut bumps. The list lives inconfig/constants.py. - Otherwise, readiness applies grounding and names the files that are not release-process files.
- Tests cover a changelog-only open pull request, which passes, and one that also changes
src/, which fails with the file named. -
changelog.d/<n>.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare not edited. -
uv run devops cipasses.
Strategic alignment
- Milestone: none; the roadmap tooling places it. Related: 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, 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, feat(release): v0.2.28 #1283.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationscope/releaseThe release-please workflow, the changelog and the published artifactstype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 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.
Five code-fix PRs slipped through readiness during v0.2.28, showing the gap is exploitable in practice, but it is a process-integrity bug rather than a user-facing outage or security vulnerability.It restores the guarantee that every code change entering a release branch is grounded in an issue, task file, and changelog fragment, protecting release auditability for all contributors.Requires modifying the exemption predicate in pr.py, adding a release-process file list to constants.py, writing pass/fail tests, and a changelog fragment, all within a well-scoped area.dan-petty commentedon Oct 8, 2026
Linked: #1103, which removes the need for this exemption after the cut, and #998, whose verdict makes
_is_release_process_pra predicate; whichever lands second rebases. Found by the 2026-10-08 backlog review.dan-petty commentedon Oct 17, 2026
Readiness check for v0.2.37, against
release/v0.2.36at 22d8748. Line numbers are at that commit.Status: ready once the references are refreshed. One pull request (S).
Today
_is_release_process_pr(src/devops_cli/commands/pr.py:1472-1483) decides by branch name alone.:1519, before any file check._grounding_blockers(:1761), so the file check needs no extra request.References that moved
pr.py:1459-1470is now:1472-1483.constants.py:3098-3106is now:2917-2929.CONST_RELEASE_SHARED_FILES(src/devops_cli/config/constants.py:2934) andCUT_FILES(src/devops_cli/roadmap/close.py:72).devops docs generate --sync-readme:docs/commands/pr.md:247,docs/commands/gh.md:961, anddocs/CLI_REFERENCE.md:6593and:7697.tests/test_pr_cmd.py:1821,:1837,:1853and:1920. The current exemption tests are at:2291and:2335.Dependencies: #1294 is closed. #1103 is related.
Questions for the owner
chore/open-vX.Y.Z-mainmerge-of-main pull request (described in fix(release): the Service image a release pins is published before main pins it, so Argo CD never rolls the roadmap Service onto a missing image #1451's task file) would fail the new rule. Is it still needed now that refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486 removed the image-tag process?Plan, tests first
CONST_RELEASE_PROCESS_FILES, including thechangelog.d/prefix.previous_filename.src/file fails, and the message names that file.fix(github): pr readiness exempts a release-process pull request only…
dan-petty commentedon Oct 18, 2026
What changed
#1621, merged into
release/v0.2.37as 8ab1804.15 file(s) changed.
How it was verified
Check runs at e5267cc:
Acceptance Criteria of
docs/agent/tasks/task-1344-release-process-pr-by-content.md:chore/cut-vX.Y.Z[-slug]pull request from this repository intorelease/vX.Y.Zis exempt only when every changed path, both paths of a rename included, is aCONST_RELEASE_CUT_FILESentry with statusmodifiedor achangelog.d/<n>.mdwith statusremoved:test_a_cut_pull_request_that_changes_only_the_cut_files_is_exempt(chore(release): cut v0.2.36 — version 0.2.36, the changelog fragments collected and the roadmap rendered #1614's file list, no/contents/and no/compare/request),test_a_cut_pull_request_that_changes_another_file_is_held_to_grounding(asrc/file, an added fragment, an edited or removedchangelog.d/README.md, an added cut file) andtest_a_renamed_file_is_judged_by_both_paths, intests/test_pr_cmd.py.chore/open-vX.Y.Z[-slug]pull request is exempt only when every changed path is a cut file or a file the default branch changed since its merge base with the base branch, read with one compare request:test_a_merge_of_main_that_changes_only_what_main_changed_is_exempt(exactly one compare read,compare/<base sha>...main?per_page=1),test_a_merge_of_main_that_changes_only_the_cut_files_reads_no_compareandtest_a_merge_of_main_with_another_file_is_held_to_grounding.test_the_cut_blocker_reads_in_full,test_a_merge_of_main_with_another_file_is_held_to_groundingandtest_the_files_the_blocker_names_are_bounded(256 characters of the file list).test_an_unread_file_list_holds_a_release_process_head_to_grounding,test_an_unread_or_full_compare_holds_a_merge_of_main_to_grounding(failed, malformed, no file list, 300 files) andtest_a_merge_of_main_whose_default_branch_is_unnamed_is_held_without_a_compare(no compare request).chorehead or a head into the default branch is held to grounding, as before, and reads no compare:test_other_branches_are_held_to_groundingandtest_a_release_process_branch_from_a_fork_is_not_exempt, for both kinds.CUT_FILESis gone.roadmap/close.py,commands/roadmap.pyand readiness readCONST_RELEASE_CUT_FILES;tests/test_roadmap_close.py,tests/test_roadmap_dry_runs.pyandtests/test_roadmap_run.pypass unchanged.RELEASE_CYCLE.md,docs/agent/tasks/README.mdand.github/pull_request_template.mdname the three pull requests, each with its file rule.rg -n 'chore/cut-vX.Y.Z. into .main' RELEASE_CYCLE.md docs/agent/tasks/README.mdprints nothing.devops docs checkpasses with the regenerated command docs.changelog.d/1344.mdrecords the change under### Fixed.CHANGELOG.mdanddocs/ROADMAP.mdare not edited.uv run devops pr check-readiness <the v0.2.37 cut pull request>shows no grounding blocker.feat(release): v0.2.37 (#1720)