Skip to content

fix(roadmap): a failed ruff or mypy check gets one repair turn - #2796

Merged
dan-petty merged 6 commits into
mainfrom
fix/2795-static-failure-repair-turn
Oct 30, 2026
Merged

dan-petty merged 6 commits into
mainfrom
fix/2795-static-failure-repair-turn

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A step in a roadmap job stopped when ruff check or mypy --strict failed on the code of the step. The model never saw the error.

Now a step gets one extra turn in the same conversation. The message holds the text of the failure, masked and cut to the reason limit. The turn may change only the files that the step had changed and tasks.md. The step runs every exit check again after the turn. If a check still fails, the step stops. A step gets one extra turn at most. The turn counts against the same request limits.

Closes #2795

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Oct 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

  • Full uv run devops ci: all checks passed. The test check took 196 seconds (3m 16s). Total 3m 25s.
  • fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 15 tests failed on base and pass on the branch (112 run in tests/test_roadmap_implement_step.py and tests/test_roadmap_implement_step_repair.py; 0 errored).

Review findings

  • Fixed (minor, integrity): the repair message sent unmasked check output to the model. The step now masks first and cuts after. A new test checks that a token-form string is not in the prompt of request 2.
  • Fixed (minor, integrity): two new tests pin that a repair turn cannot move HEAD (step stops, checkout clean) and cannot change the verification commands of tasks.md (the committed file stays as the job wrote it).
  • Declined: none.

@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 19:42
@dan-petty
dan-petty merged commit 77e7f7c into main Oct 30, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2795-static-failure-repair-turn branch October 30, 2026 19:48
dan-petty pushed a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.22.7](v0.22.6...v0.22.7)
(2026-10-30)


### Bug Fixes

* **roadmap:** a failed ruff or mypy check gets one repair turn
([#2796](#2796))
([77e7f7c](77e7f7c)),
closes [#2795](#2795)
* **roadmap:** show the 400 body and resend a failed stream once
([#2797](#2797))
([034aa0e](034aa0e)),
closes [#2794](#2794)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): a step gets one turn to fix a ruff check or mypy failure of its own code

1 participant