Skip to content

fix(roadmap): return a refused repair revision to the planner - #4365

Merged
dan-petty merged 2 commits into
mainfrom
fix/4348-a-refused-repair-revision-gets-a-return
Nov 10, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4348-a-refused-repair-revision-gets-a-return

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A revision of a repair round that the checks refuse now goes back to the model once with its problem, as a refused first reply does. One function, _returned, serves both, and the number of returns is CONST_ROADMAP_STAGE_GATE_RETURNS. A revision that stays refused is kept in the refused-reply file (the need of #4312), and the failure text names the review and the problem.

Closes #4348

Change: openspec/changes/archive/2026-11-10-4348-a-refused-repair-revision-goes-back/

A revision of a repair round that the checks refuse goes back to the model with its problem, as a refused first reply does. A revision that stays refused is kept in the refused-reply file, and the failure text names the review and the problem. Closes #4348.
@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 Nov 10, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and live proof (kept out of the body on purpose).

Tests: devops ci fail-to-pass --base origin/main lists the new test file as errored on the base (it imports the new constant). With the old stage.py and the constant kept, 6 of 7 new tests fail on the base and all pass here. uv run pytest tests/roadmap tests/lang tests/config passes except the limit-class table, which the change fills in.

Golden replay, before and after: devops roadmap eval stage --replay gives 81 of 317 defects caught by a gate, 0 missed, 5 of 5 good plans accepted. The result is identical.

Live proof with deepseek-v4.1-flash-1017, scratch copy of the settings, item #3387, one run at a time:

  • Before (earlier run, same item): the repair revision was refused once, got no return, and the item failed after 21 minutes.
  • After, run 2: the revision of repair round 1 was refused (28 requests) and went back (2 requests, 1 tool call); the revision of repair round 2 was refused (21 requests) and went back (6 requests, 28 tool calls). The item was staged. Time 45 minutes, 180 requests, 13.76 M input and 0.30 M output tokens.
  • After, run 1: the item failed at the first reply (trace gate: a cited line was not read), before the review. This is not the repair path.
  • Spend estimate at 0.30 USD per M input and 1.20 per M output: run 1 about 0.72 USD, run 2 about 4.48 USD, total about 5.2 USD.

The local devops ci queue was not used; the GitHub checks gate this pull request.

@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 13:26
@dan-petty
dan-petty merged commit 89f6be4 into main Nov 10, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4348-a-refused-repair-revision-gets-a-return branch November 10, 2026 13:27
dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.107.1](v0.107.0...v0.107.1)
(2026-11-10)


### Bug Fixes

* **k8s:** push-secrets writes the MCP server bearer token
([#4360](#4360))
([273e4c9](273e4c9))
* **roadmap:** return a refused repair revision to the planner
([#4365](#4365))
([89f6be4](89f6be4))

---
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 refused repair revision goes back to the planner once

1 participant