Repository navigation
fix(roadmap): return a stage item to New after three refused plans - #4537
Conversation
Fail-to-pass
Other tests
Data for the limit and the keyThe failures of the 48-hour window of #4491 (2026-11-08T23:45Z to 2026-11-10T23:45Z, 81
Not done
|
0fc1c58 to
61ee056
Compare
|
The first CI run failed |
61ee056 to
ffe942a
Compare
Review findings: verdict and changes1. CONFIRMED: the return comment hides the reason of a later stopEvidence. The reproduction in the review used Change.
2. CONFIRMED:
|
The stage job took a Ready item again each time the 6-hour wait of plan_defect passed, with no limit. It now counts the plan_defect failures of an item on the same body. The third one returns the item to New with one comment that lists the problems of the refused replies, and refine looks at the item again.
ffe942a to
25300d3
Compare
Second fix round: verifier findingsThis pull request merged at 2026-11-11T12:51:48Z (merge commit 9c666ea) before the second fix round. For this reason I pushed nothing to the branch, and I filed the confirmed finding as an issue. Finding 1 (minor): the return comment repeats the problem of a degenerate reply - CONFIRMED
Evidence: in a scratch worktree at Filed: #4618. Proposed fix: set What I changedNothing on this branch. The fix goes through #4618. |
The stage job took a Ready item again each time the 6-hour wait of
plan_defectpassed, with no limit, so refused plans held the one model lane.The job now counts the
plan_defectfailures of an item on the same body (stage.plan_defects, with the body hash instage.plan_defects_body). A body edit starts a new count, and a failure of another class keeps the count and its own wait. The failure that reachesCONST_ROADMAP_STAGE_PLAN_DEFECT_LIMIT(3) returns the item to New in the same round, with one comment that lists the problems of the last plan in sequence, and clears the count. The list holds the problem of each refused reply, and then the reason of the failure, such as a stopped plan run, when the checks did not refuse the last reply. Refine reads that comment when it looks at the item again (#3483). A staged item clears the count.The count keys on the body only: a gate or a stage prompt changed about once each 6 hours, so a key with their version let no looping item reach the limit.
Closes #4491
Change:
openspec/changes/archive/2026-11-11-4491-stage-retries-a-refused-plan-with/