Skip to content

fix(roadmap): update pull request metadata when archiving a change #3991

Closed

Description

@dan-petty

Problem Description

When ImplementRun executes, it archives the change folder in _finish_change() before it runs scoped checks in _push(). If a scoped check fails or the runner stops before completing all exit checks, _end() pushes the branch with _push_passed(). However, _pull_request(pull) is only invoked at line 620 of ImplementRun.execute(), which comes after _push(). As a result, the branch holds the archived change commit, but the pull request retains its staging title (docs(openspec): plan #<item> ...), body (Plans #<item>), and labels (type/docs, scope/openspec). This triggers the GitHub Actions plan-check workflow, which fails because the change folder was archived. In addition, devops pr check-readiness blocks the pull request due to grounding rules.

Reproduction Steps

  1. Start an implement run for a staged item.
  2. Allow task groups and archiving to complete.
  3. Cause a scoped check or exit check to fail or hit a resource limit.
  4. Inspect the pull request on GitHub: the branch has the archived change commit, but the pull request title, body, and labels still have the plan form.

Expected vs Actual Behavior

Expected: When the implement run publishes or pushes an archived change commit, it updates the pull request title, body, and labels to the delivery form.
Actual: The pull request retains the plan title and body, causing CI Plan Check to fail.

Environment Diagnostics

  • DevOps CLI Version: 0.77.2
  • Python Version: 3.14.10
  • Execution Environment: Kubernetes runner pod

Proposed design

Problem statement

ImplementRun archives the OpenSpec change before it pushes the branch. When a scoped check or exit check fails, the failure path pushes the archived commit without updating the pull request. The pull request keeps the staging title, body and labels, so the plan-check workflow fails. The change makes every push of an archived change update the pull request metadata to the delivery form first.

Acceptance criteria

Requirement: Metadata update before archived push

The implement run SHALL update the pull request metadata after the change is archived and before it pushes the archived change commit.

Scenario: Scoped check fails after archive

  • WHEN A scoped check fails after _finish_change() archives the change and _end() prepares a push.
  • THEN The fake GitHub client records a pull request metadata update before the push.

Requirement: Delivery title

The metadata update MUST replace the staging title docs(openspec): plan #<item> ... with the issue's delivery title.

Scenario: Plan title is replaced

  • WHEN The implement run updates a pull request that has the staging title.
  • THEN The pull request title equals the delivery title derived from the issue.

Requirement: Closing body

The metadata update MUST replace the Plans #<item> body with a body that closes the issue.

Scenario: Plan body is replaced

  • WHEN The implement run updates a pull request that has the staging body.
  • THEN The pull request body no longer contains Plans #<item> and contains the closing reference for the issue.

Requirement: Delivery labels

The metadata update MUST replace the staging type/docs and scope/openspec labels with the delivery type and scope labels.

Scenario: Staging labels are replaced

  • WHEN The implement run updates a pull request that has type/docs and scope/openspec labels.
  • THEN The pull request has type/fix and scope/roadmap and does not have type/docs or scope/openspec.

Requirement: Failure path coverage

A scoped check failure or a runner stop after archiving MUST NOT leave the pull request in staging form.

Scenario: Runner stops after archive

  • WHEN The runner stops after archiving and before all exit checks complete.
  • THEN The pull request shows the delivery title, body and labels.

Requirement: Idempotent update

The metadata update MUST be idempotent when the implement run calls it more than once for the same pull request.

Scenario: Update runs twice

  • WHEN The implement run calls the metadata update twice for the same pull request.
  • THEN The fake GitHub client records one effective title, body and label set, with no duplicate labels.

Existing Tool Considered

No alternatives check has run. No open maintained tool covers the ordering of devops-cli's own ImplementRun archive, push and pull request update steps. The GitHub CLI can edit a pull request title, body and labels, but it cannot enforce that ImplementRun calls the edit after archiving and before every archived push. The change builds that orchestration: about 10,000 tokens to implement, 4,000 tokens per year to keep and fix, and 0.5 elapsed day.

Key questions

  • Where must the pull request metadata update occur in the implement run?: After _finish_change() archives the change and before any path pushes the branch, including the _end() failure path. (best practice) [sources: CONTEXT.md, docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: Update after archive and before every archived push. The branch must never reach origin with an archived change and staging metadata.
    • Rejected: Keep the update at line 620 after _push(). The scoped-check failure and runner-stop paths skip that call.
    • Rejected: Update only in _end(). The normal completion path also needs delivery metadata before push.
  • Which metadata fields must change from staging form to delivery form?: Title, body and labels. The title becomes the issue's delivery title, the body closes the issue, and the labels replace type/docs and scope/openspec with the delivery type and scope. (best practice) [sources: CONTEXT.md, docs/adr/0004-ci-is-the-authoritative-gate.md]
    • Chosen: Title, body and labels together. All three staging values cause plan-check or readiness failures.
    • Rejected: Title only. The body and labels still mark the pull request as a plan.
    • Rejected: Title and body only. The staging labels still mark the pull request as docs and openspec.
  • How should the code apply the metadata update on both the normal and failure paths?: Use one idempotent helper and call it after archive and before _push() and _push_passed(). (best practice) [sources: CONTEXT.md]
    • Chosen: One idempotent helper called by both push paths. It keeps the title, body and labels consistent and avoids duplicate updates.
    • Rejected: Separate update calls in execute() and _end(). The two copies can drift and produce different metadata.
    • Rejected: Move line 620 before _push() only. The _end() failure path still misses the update.
  • What test proves the fix without network access?: A unit test with a fake GitHub client and a failing scoped check asserts that the metadata update is called before the push and that the pull request has the delivery title, body and labels. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md, CONTEXT.md]
    • Chosen: Unit test with fake GitHub client and failing scoped check. It exercises the failure path offline and checks call order.
    • Rejected: Integration test against GitHub. It needs network, credentials and a live repository.
    • Rejected: Test only the normal completion path. The reported defect is on the failure path.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/low
    on Nov 7, 2026
  2. dan-petty commented on Nov 7, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. Blocks the delivery pipeline by causing CI plan-check failures and readiness check failures on every failed implement run.
    • Value: High. Prevents CI failures and unblocks the delivery pipeline for all implement runs that hit a check failure.
    • Effort: Low. Move or add a _pull_request call before _push_passed in the implement run sequence.
    • Related: fix(roadmap): stopped step creates ungrounded draft PR #3273, which asks for a different change. Both involve PR metadata not being updated during the implement run push flow, but #3273 is a stopped step creating a new draft while the candidate is a failed check leaving an existing PR in plan form.
  3. added
    priority/p1-high
    on Nov 7, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 7, 2026
  5. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 8436734 (see proposed design in issue body).

  6. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Staged: branch fix/3991-update-pull-request-metadata-when-archiving, draft pull request #4151. The pull request plans the item and closes no issue.

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

    1. Write the delivery metadata before the archived push: 30252 tokens

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

    • false_premise at group 1: The plan says the job_world fixture routes the pull request read with the staging labels and that the test reads the label writes through world.sent. The fixture's OPEN_DRAFT holds "labels": [], and label writes go through store.label_issue, not the GitHub API fake, so the test cannot see the staging labels or the label writes there. Evidence: "with the staging title and the staging labels"
    • false_premise at decisions: The plan says a scoped-check stop reaches _push_passed with no metadata step before it, but it also calls the helper in execute after _finish_change and before _push, and _scoped_checks runs inside _push. The scoped-check stop already has the metadata, so the _push_passed call is redundant for that path and the test cannot prove it. Evidence: "A stop in the scoped checks calls _push_passed with no other metadata step before it"
    • other at specs: The modified requirement keeps the name The job rewrites the pull request after the push while its new text says the metadata is written before it pushes the commits. The requirement now states the opposite order from its name, so a reader cannot tell which order it demands. Evidence: "it SHALL write the delivery metadata of the pull request before it pushes the commits"
    • spec_delta_wrong at specs: The modified requirement restates the label behavior and adds the scenario The staging labels are replaced, which duplicates the existing requirement The pull request gets the labels of the new title and its scenario A Staged item changes type and scope. Evidence: "It SHALL replace the labels of the staging title with the labels of the delivery title."
    • spec_delta_wrong at specs: The scenario says the fake GitHub client records the label writes, but the label writes go through store.label_issue; the fake records only the PATCH, so no test can assert the scenario as written. Evidence: "the fake GitHub client records the PATCH of the title and the body, and the label writes, before the push of the archived commit"

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

    1. search_code({"text":"ImplementRun"})
    2. search_code({"text":"_finish_change"})
    3. file_symbols({"path":"src/devops_cli/roadmap/implement/implement_run.py"})
    4. list_files({"directory":"src/devops_cli/roadmap/implement"})
    5. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":600,"end_line":660})
    6. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1040,"end_line":1270})
    7. read_file({"end_line":1290,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1184})
    8. read_file({"end_line":1620,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1473})
    9. search_code({"text":"implement_pull_body_draft"})
    10. read_spec({"capability":"roadmap-implement-job"})
    11. read_spec({"capability":"roadmap-implement-job","requirement":"The job rewrites the pull request after the push"})
    12. read_spec({"capability":"roadmap-implement-job","requirement":"A failed scoped check gets fix steps, and a stop in the phase keeps the work"})
    13. list_files({"directory":"tests/roadmap"})
    14. search_code({"text":"_pull_request"})
    15. list_files({"directory":"tests/roadmap/implement"})
    16. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_pull.py"})
    17. file_symbols({"path":"tests/support/roadmap_implement.py"})
    18. search_code({"text":"class FakePull"})
    19. read_file({"end_line":560,"path":"tests/support/roadmap_implement.py","start_line":300})
    20. read_file({"end_line":660,"path":"tests/support/roadmap_implement.py","start_line":478})
    21. search_code({"text":"sent(\"PATCH\", f\"pulls/{PULL}\")"})
    22. search_code({"text":"implement_pull_labels_failed"})
    23. read_file({"end_line":470,"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":230})
    24. search_code({"text":"def get_pull"})
    25. search_code({"text":"def update_pull"})
    26. read_file({"end_line":420,"path":"src/devops_cli/github/client.py","start_line":370})
    27. search_code({"text":"class PullRequest"})
    28. read_file({"end_line":104,"path":"src/devops_cli/github/client.py","start_line":40})
    29. list_files({"directory":"tests/support/fakes"})
    30. search_code({"text":"class GitHubApiFake"})
    31. read_file({"end_line":340,"path":"tests/support/fakes/github.py","start_line":200})
    32. read_file({"end_line":230,"path":"tests/support/roadmap_implement.py","start_line":180})
    33. search_code({"text":"def rest("})
    34. search_code({"text":"OPEN_DRAFT"})
    35. read_file({"end_line":112,"path":"tests/support/roadmap_implement.py","start_line":60})
    36. search_code({"text":"def add_pull_labels"})
    37. search_code({"text":"def stale_labels"})
    38. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":440,"end_line":660})
    39. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1040,"end_line":1260})
    40. read_file({"end_line":1320,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1184})
    41. read_file({"end_line":700,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":610})
    42. search_code({"text":"_push_passed"})
    43. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1470,"end_line":1620})
    44. read_file({"path":"tests/support/roadmap_implement.py","start_line":90,"end_line":130})
    45. list_files({"directory":"tests/roadmap/implement"})
    46. read_spec({"capability":"roadmap-implement-job","requirement":"The job rewrites the pull request after the push"})
    47. read_file({"path":"src/devops_cli/github/client.py","start_line":52,"end_line":72})
    48. search_code({"text":"def stale_labels"})
    49. search_code({"text":"_pull_request("})
    50. search_code({"text":"def title_labels"})
    51. search_code({"text":"def job_world"})
    52. search_code({"text":"sent"})
    53. search_code({"text":"class JobWorld"})
    54. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":1,"end_line":80})
    55. read_file({"end_line":560,"path":"tests/support/roadmap_implement.py","start_line":470})
    56. search_code({"text":"def _end"})
    57. search_code({"text":"ImplementRun"})
    58. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":80,"end_line":140})
    59. search_code({"text":"def _push_passed"})
    60. read_spec({"capability":"roadmap-implement-job"})
    61. list_files({"directory":"src/devops_cli/roadmap/implement"})
    62. read_spec({"capability":"roadmap-implement-job","requirement":"The job rewrites the pull request after the push"})
    63. read_spec({"capability":"roadmap-implement-job","requirement":"The pull request gets the labels of the new title"})
    64. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":430,"end_line":700})
    65. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":602,"end_line":660})
    66. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1040,"end_line":1130})
    67. read_file({"end_line":1280,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1140})
    68. read_file({"end_line":1620,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1460})
    69. read_file({"path":"tests/support/roadmap_implement.py","start_line":560,"end_line":760})
    70. search_code({"text":"world.sent"})
    71. search_code({"text":"def route_pull_status"})
    72. search_code({"text":"def seed_pull"})
    73. read_file({"path":"tests/support/roadmap_implement.py","start_line":180,"end_line":280})
    74. read_file({"path":"tests/support/fakes/github_repository.py","start_line":130,"end_line":230})
    75. search_code({"text":"route_pull_status"})
    76. search_code({"text":"\"labels\": []"})
    77. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":240,"end_line":400})
    78. search_code({"text":"type/docs"})
    79. search_code({"text":"scope/openspec"})
    80. read_file({"end_line":1440,"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":1330})
    81. read_file({"path":"src/devops_cli/github/client.py","start_line":45,"end_line":90})
    82. search_code({"text":"_delivery_metadata"})
    83. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":380,"end_line":580})
    84. read_file({"path":"src/devops_cli/roadmap/implement/implement_pull.py"})
    85. search_code({"text":"def add_pull_labels"})
    86. search_code({"text":"def remove_pull_labels"})
    87. read_file({"path":"src/devops_cli/roadmap/pull_labels.py","start_line":1,"end_line":110})
    88. search_code({"text":"class JobWorld"})
    89. search_code({"text":"def sent"})
    90. read_file({"path":"tests/support/roadmap_implement.py","start_line":470,"end_line":560})
    91. search_code({"text":"def label_issue"})
    92. search_code({"text":"def unlabel_issue"})
    93. read_file({"path":"tests/support/fakes/roadmap_store.py","start_line":540,"end_line":580})
    94. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":1040,"end_line":1110})
    95. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":770,"end_line":830})
    96. read_file({"path":"tests/support/roadmap_implement.py","start_line":96,"end_line":115})
    97. read_file({"path":"tests/support/fakes/roadmap_store.py","start_line":340,"end_line":380})
    98. search_code({"text":"update_pull"})
    99. search_code({"text":"change_finished"})
    100. read_file({"path":"src/devops_cli/roadmap/title_labels.py","start_line":1,"end_line":140})
    101. read_spec({"capability":"roadmap-implement-job","requirement":"The pull request that delivers the code has the type of the issue"})
    102. read_spec({"capability":"roadmap-implement-job","requirement":"The job commits the documentation and the archive, and pushes"})
    103. read_spec({"capability":"roadmap-implement-job","requirement":"A failed scoped check gets fix steps, and a stop in the phase keeps the work"})
    104. search_code({"text":"ImplementRun"})
    105. search_code({"text":"def _end"})
    106. search_code({"text":"_pull_request("})
    107. search_code({"text":"def _body"})
    108. search_code({"text":"conflict"})
    109. search_code({"text":"a conflict"})
    110. read_spec({"capability":"roadmap-implement-job","requirement":"A stop site passes a typed class of its cause"})
    111. search_code({"text":"before the push"})
    112. search_code({"text":"deadline"})
    113. list_files({"directory":"src/devops_cli/roadmap/implement"})
    114. list_files({"directory":"tests/roadmap/implement"})
    115. file_symbols({"path":"src/devops_cli/roadmap/implement/implement_run.py"})
    116. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":595,"end_line":640})
    117. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1040,"end_line":1260})
    118. read_file({"end_line":1270,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1184})
    119. read_file({"end_line":1610,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1485})
    120. search_code({"text":"OPEN_DRAFT"})
    121. search_code({"text":"def label_issue"})
    122. read_file({"path":"tests/support/roadmap_implement.py","start_line":1,"end_line":260})
    123. search_code({"text":"stale_labels"})
    124. read_file({"path":"tests/support/roadmap_implement.py","start_line":260,"end_line":560})
    125. read_file({"end_line":760,"path":"tests/support/roadmap_implement.py","start_line":433})
    126. read_file({"end_line":260,"path":"tests/support/roadmap_implement.py","start_line":190})
    127. search_code({"text":"def seed_pull"})
    128. read_file({"end_line":430,"path":"tests/support/fakes/roadmap_store.py","start_line":340})
    129. read_file({"end_line":620,"path":"tests/support/fakes/roadmap_store.py","start_line":530})
    130. search_code({"text":"scope/roadmap"})
    131. read_file({"end_line":1450,"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":1300})
    132. read_spec({"capability":"roadmap-plan-check"})
    133. search_code({"text":"plan-check"})
    134. read_spec({"capability":"roadmap-plan-check","requirement":"Plan-check reads the change folder at the pull request head"})
    135. read_spec({"capability":"roadmap-plan-check","requirement":"Plan-check checks the title of the pull request"})
    136. read_spec({"capability":"roadmap-implement-job","requirement":"The job rewrites the pull request after the push"})
    137. read_spec({"capability":"roadmap-implement-job","requirement":"The pull request gets the labels of the new title"})
    138. read_spec({"capability":"roadmap-implement-job"})
    139. read_spec({"capability":"roadmap-implement-job","requirement":"The pull request that delivers the code has the type of the issue"})
    140. read_spec({"capability":"roadmap-implement-job","requirement":"The job commits the documentation and the archive, and pushes"})
    141. read_file({"path":".github/workflows/pr-title.yml"})
    142. read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":1,"end_line":120})
    143. read_file({"end_line":230,"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":120})
    144. read_file({"end_line":300,"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":230})
    145. list_files({"directory":""})
    146. read_spec({"capability":"roadmap-implement-job"})
    147. read_spec({"capability":"roadmap-implement-job","requirement":"The job rewrites the pull request after the push"})
    148. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":580,"end_line":680})
    149. read_file({"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1040,"end_line":1120})
    150. read_file({"end_line":1270,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1130})
    151. read_file({"end_line":1620,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1470})
    152. read_file({"path":"tests/support/roadmap_implement.py","start_line":90,"end_line":130})
    153. read_file({"path":"tests/support/roadmap_implement.py","start_line":430,"end_line":560})
    154. read_file({"end_line":1400,"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":1300})
    155. read_file({"end_line":700,"path":"tests/support/roadmap_implement.py","start_line":560})
    156. read_file({"end_line":90,"path":"src/devops_cli/github/client.py","start_line":1})
    157. search_code({"text":"def update_pull"})
    158. search_code({"text":"implement_pull_body_draft"})
    159. read_file({"end_line":420,"path":"src/devops_cli/github/client.py","start_line":380})
    160. read_file({"end_line":120,"path":".github/workflows/pr-title.yml","start_line":90})
    161. read_file({"path":"tests/support/fakes/process.py"})
    162. search_code({"text":"def git_for_real"})
    163. read_file({"end_line":330,"path":"tests/support/fakes/process.py","start_line":215})
    164. read_file({"end_line":200,"path":"tests/support/implement_step.py","start_line":130})
    165. search_code({"text":"_pull_request("})
    166. search_code({"text":"metadata_written"})
    167. search_code({"text":"_delivery_metadata"})
    168. read_file({"end_line":540,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":400})
    169. read_file({"end_line":1750,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":1618})
    170. search_code({"text":"kept_branch"})
    171. search_code({"text":"def test_a_stop_in_the_scoped"})
    172. search_code({"text":"_push_passed"})
    173. read_file({"end_line":1042,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":960})
    174. read_file({"end_line":250,"path":"src/devops_cli/roadmap/implement/implement_run.py","start_line":190})
    175. read_spec({"capability":"roadmap-implement-job","requirement":"The pull request gets the labels of the new title"})
    176. read_spec({"capability":"roadmap-implement-job","requirement":"The pull request that delivers the code has the type of the issue"})
    177. read_file({"path":"tests/support/fakes/github.py","start_line":1,"end_line":220})
    178. search_code({"text":"def sent"})
    179. search_code({"text":"def route_pull_status"})
    180. search_code({"text":"sent: list"})
    181. read_file({"end_line":260,"path":"tests/support/roadmap_implement.py","start_line":200})
    182. read_spec({"capability":"roadmap-implement-job","requirement":"The job leaves out an item that an agent or a person claimed"})
    183. read_spec({"capability":"roadmap-implement-job","requirement":"The job commits the documentation and the archive, and pushes"})
    184. read_spec({"capability":"roadmap-implement-job","requirement":"A dry run makes no request"})
    185. search_code({"text":"is_dry_run"})
    186. search_code({"text":"plan-check"})
    187. read_file({"end_line":60,"path":".github/workflows/pr-title.yml","start_line":1})
    188. search_code({"text":"RENAMED"})
    189. list_files({"directory":"openspec/changes"})
    190. read_file({"end_line":80,"path":"docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md","start_line":45})
    191. search_code({"text":"RENAMED"})
    192. search_code({"text":"def add_pull_labels"})
    193. search_code({"text":"def remove_pull_labels"})
    194. search_code({"text":"def stale_labels"})
    195. read_file({"path":"src/devops_cli/roadmap/pull_labels.py","start_line":40,"end_line":120})
    196. search_code({"text":"def title_labels"})
    197. read_file({"end_line":40,"path":"src/devops_cli/roadmap/pull_labels.py","start_line":1})
    198. read_file({"end_line":110,"path":"src/devops_cli/roadmap/title_labels.py","start_line":55})
    199. read_file({"end_line":575,"path":"tests/support/fakes/roadmap_store.py","start_line":535})
    200. read_file({"end_line":140,"path":"tests/roadmap/implement/test_roadmap_implement_job_scoped.py","start_line":100})
    201. search_code({"text":"CONST_ROADMAP_COMMIT_TYPE_LABELS"})
    202. search_code({"text":"def seed_staged"})
    203. read_file({"end_line":200,"path":"tests/support/roadmap_implement.py","start_line":140})
    204. read_file({"path":"tests/support/model_script.py"})
    205. search_code({"text":"_ItemRun("})
    206. search_code({"text":"implement_run._ItemRun"})
    207. search_code({"text":"from devops_cli.roadmap.implement.implement_run import"})
    208. search_code({"text":"BODY_MAX_CHARS"})
    209. search_code({"text":"def build_body"})
    210. read_file({"end_line":430,"path":"src/devops_cli/roadmap/pull_form.py","start_line":350})
    211. search_code({"text":"idempotent"})
    212. search_code({"text":"written once"})
    213. search_code({"text":"one PATCH"})
    214. search_code({"text":"delivery title"})
    215. search_code({"text":"_delivery_title"})
    216. search_code({"text":"docs(openspec): plan #1 Stop the job dropping a comment"})
    217. search_code({"text":"The job rewrites the pull request after the push"})
    218. read_file({"end_line":100,"path":"openspec/specs/roadmap-implement-job/spec.md","start_line":1})

    Tool calls: file_symbols=3 (empty=0), list_files=10 (empty=0), read_file=90 (empty=0), read_spec=26 (empty=0), search_code=89 (empty=9)

  7. added
    owner/service
    status/in-progress
    and removed
    status/ready
    on Nov 8, 2026
  8. 2 remaining items

  9. added a commit that references this issue on Nov 8, 2026
  10. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Stopped at group 1.

    Failure class: limit_reached.
    Action taken: none.
    Action left: raise_limit: raise the limit that the run went over.

    Step Status Attempts Tokens in/out Last failing command
    group 1 stopped 1 8084136/22696 -

    Reason:

    LimitReached: The step spent its budget `roadmap.implement.step_token_budget=8000000`.
    Refused commands: uv 3, other:d206f22c8da7 2, git 1. Other retries: 0.
    

    Last message of the agent (a claim that no check verified): Now split _pull_request.

    The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.
    The push of the commits that passed failed too.
    git push --force-with-lease=fix/3991-update-pull-request-metadata-when-archiving:86d8533953b96f9d10c5f6fe802917228876567c origin fix/3991-update-pull-request-metadata-when-archiving failed: To https://github.com/dan-petty/devops-cli.git ! [rejected] fix/3991-update-pull-request-metadata-when-archiving -> fix/3991-update-pull-request-metadata-when-archiving (stale info) error: failed to push some refs to 'https://github.com/dan-petty/devops-cl

  11. added
    status/blocked
    and removed
    status/in-progress
    on Nov 8, 2026
  12. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    The runner Job devops-cli-runner-20261108-130301-34e9 ended: succeeded.
    Image digest: sha256:05efecb7fec951b065aa3e15c7c0fa49050cf478d603b9a09a96bb4cb6e7a8db

    The last lines of its log:

    Tool call: read_file, ok.
    Tool call: shell, started: grep -n <masked> tests/roadmap/implement/test_roadmap_implement_job.py | head ...
    Tool call: shell, program grep, ok.
    Tool call: shell, started: uv run python -c __import__('time').sleep(180)
    Tool call: shell, program uv, ok.
    Tool call: read_file, ok.
    Tool call: shell, started: uv run python -c __import__('time').sleep(150)
    Tool call: shell, program uv, ok.
    Tool call: read_file, ok.
    Tool call: read_file, ok.
    Tool call: shell, started: uv run devops ci test tests/roadmap/implement/test_roadmap_implement_job_scoped.py ...
    Tool call: shell, program uv, ok.
    Tool call: edit_file, ok.
    The push of the commits that passed failed too.
    `git push --force-with-lease=fix/3991-update-pull-request-metadata-when-archiving:86d8533953b96f9d10c5f6fe802917228876567c origin fix/3991-update-pull-request-metadata-when-archiving` failed: To https://github.com/dan-petty/devops-cli.git ! [rejected] fix/3991-update-pull-request-metadata-when-archiving -> fix/3991-update-pull-request-metadata-when-archiving (stale info) error: failed to push some refs to 'https://github.com/dan-petty/devops-cl
    Tool call: read_file, ok.
    Tool call: edit_file, ok.
    Tool call: shell, started: git diff openspec/changes/3991-update-pull-request-metadata-when-archiving/tasks.md
    Tool call: shell, program git, ok.
    Tool call: read_file, ok.
    Tool call: shell, started: git diff openspec/changes/3991-update-pull-request-metadata-when-archiving/tasks.md | head -20
    Tool call: shell, program git, ok.
    Tool call: shell, started: git status --short
    Tool call: shell, program git, ok.
    Tool call: read_file, ok.
    Tool call: shell, started: uv run python -c print('hello')
    Tool call: shell, program uv, ok.
    Tool call: shell, started: git log --oneline -5
    Tool call: shell, program git, ok.
    Tool call: shell, started: git show --stat HEAD
    Tool call: shell, program git, ok.
    Tool call: shell, started: git show --stat HEAD~1
    Tool call: shell, program git, ok.
    Tool call: shell, started: uv run devops ci test tests/roadmap/implement/test_roadmap_implement_job.py
    Tool call: shell, program uv, ok.
    Tool call: shell, started: uv run devops openspec check
    Tool call: shell, program uv, ok.
    Failure class limit_reached. Action left: raise_limit.
    ✓ Took 0 item(s) to a ready pull request, stopped 1.
    Elapsed: 43m 9s
    
  13. removed
    owner/service
    on Nov 8, 2026
  14. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Scope from the iteration lane plan (2026-11-11)

    #4713 makes this issue obsolete (child 14 of #4667). After #4713 and #4078, the pull request opens at the end with the final title and body. No metadata update is necessary after the archive.

    This issue closes as not planned, with a link to #4713, when #4713 merges. Do not start work on this issue.

  15. added
    status/in-progress
    status/in-review
    and removed
    status/blocked
    status/in-progress
    on Nov 14, 2026
  16. removed
    status/in-review
    on Nov 14, 2026
  17. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 22:29 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/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions