Skip to content

fix(roadmap): refine job failure is no person wait - #3833

Merged
dan-petty merged 7 commits into
mainfrom
fix/3632-refine-job-failure
Nov 6, 2026
Merged

dan-petty merged 7 commits into
mainfrom
fix/3632-refine-job-failure

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Refine made a person wait for problems that no person can fix: a proposal that fails a form check, a question the read tools could not answer, and an investigation that stopped with output retries. Now a person waits only for a question marked "(a person decides)".

The other cases are a job failure. Refine writes no body and no comment. The job record keeps the try count, the failed checks and the last error, which names the calls of the read tools. The next round tries again, up to 3 tries. Then the item has the step failed until a body edit, and the inbox lists it in the new class failed. The plan report counts the items that go on without a person.

An item that already waits on a person keeps its recorded wait. Refine reads it again after a reply, a body edit, a change to a named issue or file, or devops roadmap refine --item <number>.

Closes #3632

Change: openspec/changes/archive/2026-11-06-3632-refine-job-failure/

@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 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence for #3632.

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main reported 4 failed on base (4 failed and 284 passed in tests/roadmap/test_roadmap_inbox.py, test_roadmap_refine.py, test_roadmap_refine_investigation.py, test_roadmap_refine_job_failure.py and test_roadmap_repair.py; 2 errored). The new test file errors at import on base (JobCheck is missing). The run was made before the review fixes. The review fixes add a test for a long open question and extend the repair test.

Checks run on the final branch: ruff check and format, mypy --strict on the changed modules, tests/roadmap/test_roadmap_repair.py, test_roadmap_refine_job_failure.py, test_roadmap_inbox.py and test_roadmap_refine.py (302 passed), openspec validate --all --strict (225 passed), devops ci docs. Earlier on this branch: all of tests/roadmap and the directories lang, docs, invariants, gate, config, openspec and ci passed. The full devops ci runs in the pull request checks.

Review fixes in the last two commits:

  • The failure text keeps the "Searched:" calls (half of the 300 characters at most). The stop reason and the open question give way, so a long question cannot cut the calls off.
  • The repair pass clears refine.tries, refine.failed_check and refine.failure.
  • The inbox spec lists the class failed.
  • The docs say that a Ready item with a failed form check keeps its Status.

Live count (read-only, estimate from the text of old refine comments, not a run of refine). On 2026-11-06 about 17:00Z, 177 New items were open. 114 had a refine comment since 2026-10-15, and 71 of those were in the step "waits on a person". By the last comment, 22 had a form-check text and 27 had only "(missing verified source)" questions: 49 of the 71 are job failures by the new rules. 14 hold a "(a person decides)" question and keep waiting. 8 are other text and are not classified.

Limit of this change: the items that already hold refine.next_step=person are not read again by the merge. _still_waiting keeps them in their wait until a reply, a body edit, a change to a named issue or file, or devops roadmap refine --item <number>. So the 49 items do not move at the merge. To move them is a separate bounded action (for example a one-time refine --item run), not part of this change.

Doubts:

  • The try limit is a constant (CONST_ROADMAP_REFINE_MAX_TRIES), not a setting.
  • A Ready item whose new proposal fails a form check keeps Status Ready with its old design. Only the record shows the failure.
  • A body question that the model leaves unanswered is now a job failure. The model must mark a real decision kind: person.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 19:09
@dan-petty
dan-petty merged commit 378579a into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3632-refine-job-failure branch November 6, 2026 19:10
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.72.0](v0.71.1...v0.72.0)
(2026-11-06)


### Features

* **roadmap:** rewrite a merged plan with plan-recheck
([#3832](#3832))
([7ea287b](7ea287b))


### Bug Fixes

* **roadmap:** refine job failure is no person wait
([#3833](#3833))
([378579a](378579a)),
closes [#3632](#3632)
* **roadmap:** the draft of a stopped step closes its issue
([#3831](#3831))
([5ca91e0](5ca91e0))


### Code Refactoring

* **mcp:** MCP tool tests install a dispatcher
([#3834](#3834))
([e50d0dc](e50d0dc)),
closes [#3760](#3760)

---
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): refine makes a person wait only for a decision

1 participant