Skip to content

fix(ci): refuse other commits on the release branch #7220

Done

Description

@dan-petty

Problem or Motivation

ci.yml runs no test shard for a pull request whose head branch starts with release-please-- (job test-shard, its if:). The job Tests on Main gives the required check Tests & Coverage from the run of the base commit on main. release.yml turns on auto-merge for the release pull request with the App token (step "Enable auto-merge on the release pull request", #6851). So a commit that a session with write access pushes to the release branch can merge with no test run of its own tree. Only release-please must write that branch.

Found by the workflow gap analysis of 2026-11-25.

Proposed Solution

Disposition: change the workflow.

The job Tests on Main fails when the release pull request changes a file that release-please does not write (the changelog, the manifest and the version files). If devops_cli.release.merge_candidate already has a guard of the files, call it there. The merge of a clean release pull request stays automatic.

Proof: uv run devops ci --check --only actionlint,zizmor, and a test of the guard with a file list that holds one file under src/.

Existing Tool Considered

A push ruleset on release-please--** that allows only the release App is the alternative with no code. It is a repository setting, so a person makes it. Name the choice in the plan.

Alternatives check of 2026-11-25: partly.
Tool: danger/danger-js (https://github.com/danger/danger-js), MIT, last activity 2026-10-26, maintained.
Reason: Searches found Danger JS, which fails a pull request whose changed files leave an allowlist, but it gates the merge only: it cannot refuse a push and brings no release-please file policy.

Covers:

  • Fails a pull request whose changed files leave an allowlist
  • Reads added, modified and deleted file lists from the diff
  • Reports the verdict as a status check that blocks auto-merge

Lacks:

  • No push-level refusal; a write session can still push commits
  • No built-in release-please file set; a Dangerfile must encode it
  • Adds a Node toolchain beside the uv Python workflow

Proposed design

Problem statement

ci.yml skips the test shard for a pull request from a release-please-- branch. The required check Tests & Coverage comes from the base commit on main. A commit from a write session can merge with no test of its tree. The change adds a file guard to the Tests on Main job. The guard fails a release pull request that changes a file outside the release-please file set. A clean release pull request stays on auto-merge.

Acceptance criteria

Requirement: Release pull request file guard

The release merge candidate guard SHALL reject a release-please pull request that changes a file outside the release-please file set.

Scenario: A release pull request changes a source file

  • WHEN The guard runs with a changed file list that holds one file under src/ and no other file.
  • THEN The guard returns false and the Tests on Main job fails.

Requirement: Clean release pull request

The release merge candidate guard SHALL accept a release-please pull request that changes only the release-please file set.

Scenario: A clean release pull request

  • WHEN The guard runs with a changed file list that holds only the files in the release-please file set.
  • THEN The guard returns true and the pull request stays on auto-merge.

Requirement: Workflow validation

The changed ci.yml MUST pass the actionlint and zizmor checks.

Scenario: CI workflow validation

  • WHEN The developer runs uv run devops ci --check --only actionlint,zizmor.
  • THEN The command exits with status 0 and reports no finding.

Existing Tool Considered

The alternatives check in the issue body gives the verdict partly for danger/danger-js. See that check for what the tool covers and lacks. The proposal does not adopt Danger JS. It adds the file guard to the existing Tests on Main job, so it keeps the Python workflow and adds no Node toolchain. The guard is a small function and one test. The written cost is about 15,000 tokens and 2 hours to build, keep and fix. The guard does not refuse a push. It blocks the merge of a release pull request that changes a file outside the release-please file set.

Key questions

  • Which change enforces the release branch policy: a file guard in the Tests on Main job or a push ruleset on release-please--**?: Add the file guard to the Tests on Main job. Do not add a push ruleset in this change. (best practice) [sources: AGENTS.md]
    • Chosen: File guard in Tests on Main. It stays in the pull request and is testable offline. It does not wait for a person to change a repository setting.
    • Rejected: Push ruleset on release-please--**. It refuses the push, but it is a repository setting that only a person changes. It blocks the item.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/ci
    source/agent
    on Nov 25, 2026
  2. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor
  3. added
    status/new
    effort/low
    value/high
    priority/p1-high
    on Nov 25, 2026
  4. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (9)

    Tools considered:

    Searches run:

    • Danger JS fail pull request when changed files outside allowed paths, results: 5
    • GitHub ruleset restrict push to branch by GitHub App only, results: 5
    • danger.systems dangerfile fail when files changed outside allowlist, results: 5
    • release-please guard changed files only changelog manifest version, results: 5
    • GitHub repository ruleset push restriction, results: 5
    • Danger JS, results: 5
    • danger-js github, results: 5
    • site:github.com danger/danger-js, results: 5
    • tj-actions changed-files action list changed files pull request, results: 5

    Sources:

  5. added
    status/ready
    and removed
    status/new
    on Nov 25, 2026
  6. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  7. added
    owner/service
    on Nov 26, 2026
  8. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Plan state: branch fix/7220-refuse-other-commits-on-the-release, draft pull request #7271. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Run the release file guard as a command: 48725 tokens
    2. Run the guard in the job Tests on Main: 17241 tokens
    3. Document the release file guard in the release cycle: 10825 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • minor other at tasks (2): The new guard step takes up to 5 minutes of the main-tests job's 40-minute limit, which the existing wait step already uses up to 37 minutes of, so the wait can be cut by the job limit instead of ending at its own 35-minute deadline and fail a clean release pull request. The plan neither raises the job limit nor lowers the wait step's limit. Evidence: "give it timeout-minutes: 5"
  9. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    The stage job staged the plan of draft pull request #7271. The plan state comment of #7271 holds the branch, the task groups and the findings.

    The runs of the planner and the review made 83 model request(s), and used 5886318 input tokens and 119887 output tokens. The tool calls, in order:

    1. list_files({"directory":"src/devops_cli/release"})
    2. list_files({"directory":".github/workflows"})
    3. read_file({"path":"src/devops_cli/release/merge_candidate.py"})
    4. file_symbols({"path":".github/workflows/ci.yml"})
    5. read_file({"path":".github/workflows/ci.yml","start_line":1,"end_line":140})
    6. read_file({"end_line":280,"path":".github/workflows/ci.yml","start_line":140})
    7. search_code({"text":"main-tests"})
    8. read_file({"end_line":440,"path":".github/workflows/ci.yml","start_line":330})
    9. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":165,"end_line":460})
    10. read_file({"path":".github/workflows/release-merge.yml"})
    11. read_spec({"capability":"release-scheduled-merge"})
    12. read_spec({"capability":"release-scheduled-merge","requirement":"The files of the guard are the files that release-please writes"})
    13. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    14. search_code({"text":"Tests on Main"})
    15. search_code({"text":"release-please--"})
    16. search_code({"text":"push run of"})
    17. read_spec({"capability":"ci-test-shards"})
    18. search_code({"text":"no test shard"})
    19. search_code({"text":"RELEASE_FILES"})
    20. list_files({"directory":"tests/release"})
    21. read_file({"path":"tests/release/test_release_merge_guards.py","start_line":1,"end_line":120})
    22. search_code({"text":"main-tests"})
    23. read_file({"path":".github/actions/setup-toolchain/action.yml"})
    24. search_code({"text":"def get_github_session"})
    25. read_file({"path":"tests/release/test_release_merge_pick.py","start_line":1,"end_line":160})
    26. read_file({"path":"tests/release/test_release_merge_pick.py","start_line":160,"end_line":260})
    27. search_code({"text":"refusal_file"})
    28. read_file({"end_line":7620,"path":"src/devops_cli/lang/en/messages.py","start_line":7540})
    29. search_code({"text":"ReleaseMessages"})
    30. search_code({"text":"def get_github_session"})
    31. search_code({"text":".github/workflows/ci.yml"})
    32. list_files({"directory":"tests/invariants"})
    33. file_symbols({"path":"tests/invariants/test_workflow_contracts.py"})
    34. read_file({"end_line":400,"path":"tests/invariants/test_workflow_contracts.py","start_line":274})
    35. read_spec({"capability":"ci-test-selection"})
    36. read_spec({"capability":"ci-gate-admission"})
    37. search_code({"text":"release pull request"})
    38. search_code({"text":"error_catalog"})
    39. read_file({"end_line":40,"path":"RELEASE_CYCLE.md","start_line":1})
    40. read_spec({"capability":"ci-test-shards","requirement":"The job Tests & Coverage aggregates the shards"})
    41. read_file({"path":".github/workflows/ci.yml","start_line":135,"end_line":160})
    42. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":40,"end_line":70})
    43. read_file({"end_line":175,"path":"src/devops_cli/release/merge_candidate.py","start_line":140})
    44. read_file({"end_line":220,"path":"src/devops_cli/release/merge_candidate.py","start_line":195})
    45. search_code({"text":"_changed_files"})
    46. read_file({"end_line":380,"path":".github/workflows/ci.yml","start_line":330})
    47. file_symbols({"path":"src/devops_cli/release/merge_candidate.py"})
    48. read_file({"end_line":330,"path":"src/devops_cli/release/merge_candidate.py","start_line":240})
    49. read_file({"end_line":270,"path":".github/workflows/ci.yml","start_line":236})
    50. list_files({"directory":"tests/release"})
    51. search_code({"text":"usage_repo: str"})
    52. search_code({"text":"def test_"})
    53. file_symbols({"path":"src/devops_cli/release/merge_candidate.py"})
    54. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":40,"end_line":60})
    55. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":140,"end_line":215})
    56. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":240,"end_line":300})
    57. list_files({"directory":"tests/release"})
    58. search_code({"text":"refusal_file"})
    59. read_file({"path":".github/workflows/ci.yml","start_line":130,"end_line":160})
    60. read_file({"path":".github/workflows/ci.yml","start_line":340,"end_line":400})
    61. read_file({"path":"tests/release/test_release_merge_guards.py","start_line":1,"end_line":60})
    62. search_code({"text":"Tests on Main"})
    63. search_code({"text":"merge_candidate"})
    64. read_file({"path":"RELEASE_CYCLE.md","start_line":1,"end_line":40})
    65. read_file({"path":".github/workflows/ci.yml","start_line":235,"end_line":275})
    66. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":7560,"end_line":7610})
    67. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":40,"end_line":70})
    68. search_code({"text":"_changed_files"})
    69. read_spec({})
    70. read_spec({"capability":"release-scheduled-merge"})
    71. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":130,"end_line":330})
    72. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":296,"end_line":400})
    73. read_spec({"capability":"release-scheduled-merge","requirement":"The files of the guard are the files that release-please writes"})
    74. read_file({"path":".github/workflows/ci.yml","start_line":130,"end_line":290})
    75. read_file({"end_line":470,"path":".github/workflows/ci.yml","start_line":340})
    76. read_file({"end_line":7620,"path":"src/devops_cli/lang/en/messages.py","start_line":7560})
    77. search_code({"text":"release_files"})
    78. read_file({"end_line":120,"path":"tests/release/test_release_merge_guards.py","start_line":100})
    79. search_code({"text":"main-tests"})
    80. list_files({"directory":"src/devops_cli/release"})
    81. list_files({"directory":"tests/release"})
    82. search_code({"text":"Tests on Main"})
    83. search_code({"text":"ci.yml"})
    84. search_code({"text":"main-tests"})
    85. list_files({"directory":"tests/invariants"})
    86. search_code({"text":"release-please"})
    87. read_file({"path":"tests/invariants/test_workflow_contracts.py","start_line":1,"end_line":120})
    88. search_code({"text":"head_ref"})
    89. search_code({"text":"Tests & Coverage"})
    90. search_code({"text":"startsWith(github.head_ref"})
    91. read_file({"path":"tests/invariants/test_workflow_contracts.py","start_line":120,"end_line":400})
    92. search_code({"text":"pull_request.base.sha"})
    93. read_file({"path":"tests/invariants/test_workflow_contracts.py","start_line":400,"end_line":700})
    94. search_code({"text":"devops ci docs"})
    95. search_code({"text":"RELEASE_CYCLE.md"})
    96. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    97. read_spec({"capability":"release-scheduled-merge","requirement":"The workflow runs every 6 hours with read-only permissions"})
    98. read_file({"path":"AGENTS.md","start_line":1,"end_line":60})
    99. read_spec({"capability":"ci-test-shards"})
    100. search_code({"text":"Tests on Main"})
    101. search_code({"text":"devops ci test"})
    102. read_file({"end_line":400,"path":"tests/invariants/test_workflow_contracts.py","start_line":286})
    103. read_file({"end_line":520,"path":"tests/invariants/test_workflow_contracts.py","start_line":389})
    104. search_code({"text":"_eval_term"})
    105. search_code({"text":"release-scheduled-merge"})
    106. read_file({"end_line":200,"path":"tests/release/test_release_merge_guards.py","start_line":130})
    107. search_code({"text":"zizmor"})
    108. search_code({"text":"_file_refusals"})
    109. search_code({"text":"get_github_session"})
    110. read_comment({"number":0})
    111. read_spec({"capability":"ci-test-shards","requirement":"The job Tests & Coverage aggregates the shards"})
    112. read_spec({"capability":"ci-gate-rows"})
    113. search_code({"text":"release pull request runs no"})
    114. search_code({"text":"The release pull request"})
    115. read_file({"end_line":80,"path":"tests/invariants/test_source_tree.py","start_line":1})
    116. search_code({"text":"python -m devops_cli"})
    117. read_file({"path":"src/devops_cli/release/__init__.py"})
    118. read_file({"end_line":40,"path":"RELEASE_CYCLE.md","start_line":1})
    119. read_spec({"capability":"ci-fail-to-pass"})
    120. read_file({"path":".github/zizmor.yml"})
    121. read_file({"end_line":130,"path":"tests/release/test_release_merge_pick.py","start_line":120})
    122. git_log({"path":"src/devops_cli/release/merge_candidate.py"})
    123. git_log({"path":".github/workflows/ci.yml"})
    124. search_code({"text":"python -m"})
    125. read_spec({"capability":"release-scheduled-merge","requirement":"The checks must pass"})
    126. read_spec({"capability":"release-scheduled-merge","requirement":"A run picks at most one pull request and a failed read fails the run"})

    Tool calls: file_symbols=4 (empty=0), git_log=2 (empty=0), list_files=9 (empty=0), read_comment=1 (empty=0), read_file=48 (empty=1), read_spec=18 (empty=0), search_code=44 (empty=1)

    The plan request held these comments of the item whole: #7220 (comment), #7220 (comment), #7220 (comment).

    Warnings:

    • Scoped test tests/release/test_release_files.py does not exist.
  10. 9 remaining items

  11. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    The stage job staged the plan of draft pull request #7271. The plan state comment of #7271 holds the branch, the task groups and the findings.

    The runs of the planner and the review made 115 model request(s), and used 9324694 input tokens and 183317 output tokens. The tool calls, in order:

    1. file_symbols({"path":".github/workflows/ci.yml"})
    2. file_symbols({"path":"src/devops_cli/release/merge_candidate.py"})
    3. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":1,"end_line":70})
    4. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":90,"end_line":215})
    5. read_file({"end_line":300,"path":"src/devops_cli/release/merge_candidate.py","start_line":240})
    6. read_file({"end_line":400,"path":"src/devops_cli/release/merge_candidate.py","start_line":300})
    7. read_file({"end_line":180,"path":".github/workflows/ci.yml","start_line":100})
    8. read_file({"end_line":300,"path":".github/workflows/ci.yml","start_line":230})
    9. read_file({"end_line":430,"path":".github/workflows/ci.yml","start_line":320})
    10. read_file({"end_line":140,"path":"tests/release/test_release_merge_guards.py","start_line":1})
    11. read_spec({"capability":"release-scheduled-merge"})
    12. read_file({"end_line":220,"path":"tests/release/test_release_merge_guards.py","start_line":140})
    13. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    14. read_file({"end_line":7620,"path":"src/devops_cli/lang/en/messages.py","start_line":7560})
    15. read_file({"end_line":80,"path":"tests/release/test_release_merge_pick.py","start_line":1})
    16. read_file({"end_line":160,"path":"tests/release/test_release_merge_pick.py","start_line":80})
    17. read_file({"end_line":40,"path":"RELEASE_CYCLE.md","start_line":1})
    18. references({"name":"_file_refusals"})
    19. references({"name":"_changed_files"})
    20. search_code({"text":"def get_github_session"})
    21. file_symbols({"path":"src/devops_cli/commands/ci.py"})
    22. find_issues({"terms":"release-please release branch guard"})
    23. read_issue({"number":842})
    24. read_file({"end_line":215,"path":"src/devops_cli/github/session.py","start_line":185})
    25. list_files({"directory":"src/devops_cli/lang"})
    26. read_file({"end_line":120,"path":".github/workflows/release-merge.yml","start_line":1})
    27. references({"name":"usage_app"})
    28. read_file({"end_line":2280,"path":"src/devops_cli/commands/ci.py","start_line":2221})
    29. search_code({"text":"main-tests"})
    30. read_file({"end_line":2520,"path":"src/devops_cli/commands/ci.py","start_line":2493})
    31. list_files({"directory":".github/actions"})
    32. list_files({"directory":".github/actions/setup-toolchain"})
    33. search_code({"text":"name=\"docs\""})
    34. read_file({"end_line":960,"path":"src/devops_cli/commands/ci.py","start_line":945})
    35. search_code({"text":"def changed_files"})
    36. search_code({"text":"check_release_files"})
    37. read_file({"path":".github/workflows/ci.yml","start_line":100,"end_line":180})
    38. read_file({"path":".github/workflows/ci.yml","start_line":230,"end_line":300})
    39. read_file({"end_line":420,"path":".github/workflows/ci.yml","start_line":320})
    40. read_file({"end_line":175,"path":"src/devops_cli/release/merge_candidate.py","start_line":40})
    41. read_file({"end_line":300,"path":"src/devops_cli/release/merge_candidate.py","start_line":240})
    42. read_file({"end_line":7605,"path":"src/devops_cli/lang/en/messages.py","start_line":7560})
    43. read_file({"end_line":200,"path":"tests/release/test_release_merge_guards.py","start_line":1})
    44. read_file({"end_line":215,"path":"src/devops_cli/github/session.py","start_line":180})
    45. read_file({"end_line":400,"path":"src/devops_cli/release/merge_candidate.py","start_line":296})
    46. read_file({"end_line":120,"path":"tests/release/test_release_merge_pick.py","start_line":1})
    47. references({"name":"_file_refusals"})
    48. references({"name":"_changed_files"})
    49. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    50. read_spec({"capability":"release-scheduled-merge"})
    51. read_spec({"capability":"release-scheduled-merge","requirement":"The pick reads the files from the compare of the base branch"})
    52. read_spec({"capability":"release-scheduled-merge","requirement":"The files of the guard are the files that release-please writes"})
    53. file_symbols({"path":"src/devops_cli/commands/ci.py"})
    54. read_file({"end_line":40,"path":"RELEASE_CYCLE.md","start_line":1})
    55. search_code({"text":"release_files"})
    56. search_code({"text":"def route_compare_files"})
    57. read_file({"end_line":2260,"path":"src/devops_cli/commands/ci.py","start_line":2221})
    58. search_code({"text":"def github_api"})
    59. read_file({"end_line":215,"path":"src/devops_cli/release/merge_candidate.py","start_line":200})
    60. read_file({"end_line":212,"path":"tests/support/fakes/github.py","start_line":195})
    61. list_files({"directory":""})
    62. read_issue({"number":842})
    63. find_issues({"terms":"release-please branch guard Tests on Main"})
    64. list_files({"directory":"src/devops_cli/release"})
    65. read_spec({"capability":"release-scheduled-merge"})
    66. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":40,"end_line":80})
    67. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":140,"end_line":220})
    68. read_file({"end_line":340,"path":"src/devops_cli/release/merge_candidate.py","start_line":236})
    69. read_file({"end_line":400,"path":"src/devops_cli/release/merge_candidate.py","start_line":340})
    70. read_file({"end_line":160,"path":".github/workflows/ci.yml","start_line":138})
    71. read_file({"end_line":280,"path":".github/workflows/ci.yml","start_line":236})
    72. read_file({"end_line":410,"path":".github/workflows/ci.yml","start_line":330})
    73. read_file({"end_line":200,"path":"tests/release/test_release_merge_guards.py","start_line":1})
    74. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    75. search_code({"text":"class ReleaseMessages"})
    76. search_code({"text":"def get_github_session"})
    77. read_file({"end_line":7615,"path":"src/devops_cli/lang/en/messages.py","start_line":7561})
    78. read_file({"end_line":205,"path":"src/devops_cli/github/session.py","start_line":186})
    79. search_code({"text":"main-tests"})
    80. search_code({"text":"release_files"})
    81. search_code({"text":".github/workflows/ci.yml"})
    82. file_symbols({"path":"tests/invariants/test_workflow_contracts.py"})
    83. read_file({"end_line":60,"path":"tests/invariants/test_workflow_contracts.py","start_line":38})
    84. read_file({"end_line":362,"path":"tests/invariants/test_workflow_contracts.py","start_line":312})
    85. search_code({"text":"setup-toolchain"})
    86. read_file({"end_line":311,"path":"tests/invariants/test_workflow_contracts.py","start_line":286})
    87. read_issue({"number":842})
    88. read_file({"end_line":135,"path":"tests/release/test_release_merge_pick.py","start_line":1})
    89. search_code({"text":"uv run --locked --no-dev"})
    90. read_file({"end_line":75,"path":".github/workflows/ci.yml","start_line":55})
    91. read_file({"end_line":95,"path":".github/workflows/release-merge.yml","start_line":40})
    92. read_file({"end_line":32,"path":"RELEASE_CYCLE.md","start_line":1})
    93. list_files({"directory":"src/devops_cli/lang"})
    94. read_file({"end_line":140,"path":"tests/release/test_release_merge_pick.py","start_line":135})
    95. read_file({"end_line":215,"path":"tests/support/fakes/github.py","start_line":195})
    96. read_file({"end_line":515,"path":"tests/support/fakes/github.py","start_line":498})
    97. references({"name":"_file_refusals"})
    98. references({"name":"_changed_files"})
    99. find_issues({"terms":"release-please branch guard Tests on Main"})
    100. read_file({"end_line":260,"path":"tests/release/test_release_merge_pick.py","start_line":140})
    101. read_file({"end_line":200,"path":".github/workflows/ci.yml","start_line":160})
    102. search_code({"text":"release_file_refusals"})
    103. search_code({"text":"check_release_files"})
    104. read_file({"path":".github/actions/setup-toolchain/action.yml"})
    105. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":1,"end_line":120})
    106. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":120,"end_line":340})
    107. read_file({"end_line":400,"path":"src/devops_cli/release/merge_candidate.py","start_line":296})
    108. read_file({"end_line":7615,"path":"src/devops_cli/lang/en/messages.py","start_line":7555})
    109. read_file({"end_line":215,"path":"src/devops_cli/github/session.py","start_line":180})
    110. read_file({"end_line":400,"path":".github/workflows/ci.yml","start_line":330})
    111. read_file({"end_line":160,"path":".github/workflows/ci.yml","start_line":138})
    112. read_file({"end_line":270,"path":".github/workflows/ci.yml","start_line":236})
    113. list_files({"directory":"tests/release"})
    114. read_file({"end_line":175,"path":"tests/release/test_release_merge_guards.py","start_line":130})
    115. read_file({"end_line":40,"path":"RELEASE_CYCLE.md","start_line":1})
    116. read_file({"end_line":90,"path":".github/workflows/release-merge.yml","start_line":55})
    117. read_file({"end_line":200,"path":"tests/release/test_release_merge_pick.py","start_line":175})
    118. read_file({"end_line":210,"path":"tests/support/fakes/github.py","start_line":196})
    119. read_file({"end_line":515,"path":"tests/support/fakes/github.py","start_line":498})
    120. read_file({"end_line":45,"path":"src/devops_cli/release/merge_candidate.py","start_line":40})
    121. search_code({"text":"3d3c42e5aac5ba805825da76410c181273ba90b1"})
    122. read_file({"path":".github/actions/setup-toolchain/action.yml"})
    123. file_symbols({"path":"tests/invariants/test_workflow_contracts.py"})
    124. read_spec({"capability":"release-scheduled-merge"})
    125. references({"name":"release_file_refusals"})
    126. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    127. references({"name":"check_release_files"})
    128. read_file({"end_line":40,"path":"tests/release/test_release_merge_guards.py","start_line":1})
    129. read_file({"end_line":40,"path":"tests/release/test_release_merge_pick.py","start_line":1})
    130. list_files({"directory":"src/devops_cli"})
    131. list_files({"directory":"src/devops_cli/release"})
    132. list_files({"directory":"tests/lang"})
    133. search_code({"text":"ci test tests/"})
    134. list_files({"directory":"src/devops_cli/output"})
    135. list_files({"directory":"src/devops_cli/release"})
    136. list_files({"directory":"tests/release"})
    137. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":130,"end_line":330})
    138. read_file({"path":".github/workflows/ci.yml","start_line":130,"end_line":200})
    139. read_file({"path":".github/workflows/ci.yml","start_line":230,"end_line":430})
    140. read_spec({"capability":"release-scheduled-merge"})
    141. search_code({"text":"release_files"})
    142. read_spec({"capability":"release-scheduled-merge","requirement":"The pull request must change only the files that release-please writes"})
    143. read_file({"path":"openspec/specs/release-scheduled-merge/spec.md","start_line":1,"end_line":90})
    144. search_code({"text":"def test_every_checkout_states_its_credentials_and_only_a_pushing_job_keeps_them"})
    145. search_code({"text":"def test_no_run_block_interpolates_an_actions_expression"})
    146. search_code({"text":"ci docs"})
    147. search_code({"text":"main-tests"})
    148. read_file({"path":"tests/invariants/test_workflow_contracts.py","start_line":260,"end_line":400})
    149. search_code({"text":"def test("})
    150. read_file({"path":"docs/commands/ci.md","start_line":1,"end_line":120})
    151. read_file({"path":"tests/release/test_release_merge_guards.py","start_line":138,"end_line":170})
    152. read_file({"path":"tests/release/test_release_merge_pick.py","start_line":180,"end_line":200})
    153. search_code({"text":"def github_api("})
    154. search_code({"text":"def route_compare_files("})
    155. read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":7555,"end_line":7625})
    156. read_file({"path":"src/devops_cli/github/session.py","start_line":188,"end_line":200})
    157. read_spec({})
    158. search_code({"text":"setup-toolchain"})
    159. search_code({"text":"Tests on Main"})
    160. search_code({"text":"push run of"})
    161. search_code({"text":"main-tests"})
    162. search_code({"text":"release-please--"})
    163. search_code({"text":"test-shard"})
    164. read_spec({"capability":"ci-test-shards"})
    165. search_code({"text":"base commit"})
    166. references({"name":"_file_refusals"})
    167. read_issue({"number":842})
    168. read_spec({"capability":"ci-test-shards","requirement":"The job Tests & Coverage aggregates the shards"})
    169. search_code({"text":"permissions"})
    170. search_code({"text":"release pull request"})
    171. search_code({"text":"RELEASE_CYCLE"})
    172. search_code({"text":"python -m devops_cli"})
    173. search_code({"text":"def test_"})
    174. search_code({"text":"actions: read"})
    175. find_issues({"terms":"release-please branch guard Tests on Main"})
    176. git_log({"path":".github/workflows/ci.yml"})
    177. read_file({"path":".github/workflows/ci.yml","start_line":355,"end_line":470})
    178. search_code({"text":"release-please-config"})
    179. read_file({"path":"tests/release/test_release_merge_guards.py","start_line":166,"end_line":340})
    180. read_file({"path":"tests/support/fakes/github.py","start_line":180,"end_line":240})
    181. read_file({"path":"tests/support/fakes/github.py","start_line":490,"end_line":530})
    182. search_code({"text":"docs check"})
    183. search_code({"text":"REGENERATE_DOCUMENTS"})
    184. search_code({"text":"release.merge_candidate"})
    185. read_file({"path":"src/devops_cli/release/merge_candidate.py","start_line":296,"end_line":340})
    186. list_files({"directory":"openspec/changes"})
    187. search_code({"text":"repository setting"})
    188. search_code({"text":"a person"})
    189. read_file({"path":"src/devops_cli/commands/ci.py","start_line":2200,"end_line":2280})
    190. search_code({"text":"def _resolve_test_targets"})
    191. read_file({"path":"src/devops_cli/commands/ci.py","start_line":2025,"end_line":2090})
    192. read_file({"path":".github/zizmor.yml"})
    193. read_file({"path":"openspec/changes/3427-refuse-a-group-verify-that-runs/proposal.md"})
    194. read_file({"path":"openspec/changes/4133-refuse-stage-plans-adding-duplicate-requirements/proposal.md"})
    195. read_file({"path":"src/devops_cli/github/release_title.py","start_line":1,"end_line":120})
    196. search_code({"text":"cache-suffix"})

    Tool calls: file_symbols=6 (empty=0), find_issues=4 (empty=0), git_log=1 (empty=0), list_files=14 (empty=0), read_file=94 (empty=1), read_issue=4 (empty=0), read_spec=15 (empty=0), references=10 (empty=2), search_code=48 (empty=3)

    The plan request held these comments of the item whole: #7220 (comment), #7220 (comment), #7220 (comment), #7220 (comment), #7220 (comment).

    Warnings:

    • Scoped test tests/release/test_release_files.py does not exist.

    This run replaced the plan of draft pull request #7271 on the same branch, and opened no second pull request.

  12. added 3 commits that reference this issue on Nov 26, 2026
  13. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 28, 2026
  14. removed
    status/in-review
    owner/agent
    on Nov 28, 2026
  15. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-28 18:38 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/cisource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions