Repository navigation
Description
Problem Description
The plan review of stage and of fix-plan does not converge. Each review is a new sample. It does not see the earlier findings or the answer of the planner. The planner fixes the earlier findings, and the next review opens a different finding on text that did not change. Then stage and fix-plan decide on the counts of two independent reviews. One weak new finding is enough to keep plan/needs-fix.
Evidence (2026-11-13):
- Open counts of the stage review rounds: fix(ci): a narrowed ci test runs many slow tests serially #4472 1, 2, 1; fix(roadmap): a claim release leaves the item In Progress #5118 2, 1, 1; fix(roadmap): decision points need cuts for shadow and run in async code #5272 5, 1, 1. In each item the planner fixed the earlier findings, and then a different finding opened.
- Job
fix-plan-validate-4917-r2logged: "the review of the head found 1 open finding(s) before the repair, and the last review of the revision found 2". The result wasregated, and the label stays on docs(openspec): plan #4472 Size narrowed test workers by collected tests #4917. - The same model (
deepseek-v4.1-flash-1017) writes and reviews the plan.
Cause
VerificationInput.payload(src/devops_cli/roadmap/stage/stage_verify.py:213-221) holds only the number, the title, the body, the plan and the files. It holds no earlier finding and no answer of the planner.stage_verify_return(src/devops_cli/lang/en/messages.py:4112-4115) tells the planner to fix each finding "or show with a quote from the inputs that it is no defect". No step reads or judges that answer.repair_round_due(stage_verify.py:316-326) continues only while the last count is lower than the count before it._decide(src/devops_cli/roadmap/steps/fix_plan.py:545-560) keeps a revision only whenlen(repaired.open_findings) < len(revision.before). The two counts come from two independent reviews.
Reproduction Steps
- Read the stage comments on the plan pull requests of fix(ci): a narrowed ci test runs many slow tests serially #4472, fix(roadmap): a claim release leaves the item In Progress #5118 and fix(roadmap): decision points need cuts for shadow and run in async code #5272, and write down the open count of each round.
- Read the result line of Job
fix-plan-validate-4917-r2in Loki (namespacedevops). - Read
stage_verify.py:213-221: the payload has no key for the earlier findings or the answer of the planner.
Expected vs Actual Behavior
Expected: a later review says for each earlier finding whether it still holds. It opens a new finding only in text that the revision changed. The step keeps a revision that fixes findings of the head and adds no finding in changed text.
Actual: each review starts from zero. A different finding on unchanged text replaces a fixed finding. The count does not go down, so the round stops and the plan keeps plan/needs-fix.
Environment Diagnostics
- DevOps CLI Version: 0.128.0 (origin/main 2daf63a)
- Execution Environment: roadmap Service and fix-plan App Jobs in namespace
devops
Proposed Fix
- From repair round 1, and in fix-plan, the review payload holds
earlier: each open finding of the review before (type, where, problem, quote) and the answer of the planner to it. - The reply schema holds one verdict for each earlier finding:
holdsorgone. The promptsrc/devops_cli/ai/tasks/roadmap_stage_verify.mdtells the reviewer to open a new finding only in text that the revision changed. The step gets the changed text from a diff of the two plans. A new finding whose quote is not in changed text is advice. - When the answer of the planner rebuts a finding, a decision point (ADR 0020, Jev) judges the rebuttal before the finding counts again. The point starts in mode
shadow. repair_round_dueand_decidedecide on the findings of the head that the revision fixed (verdictgone) and on new findings in changed text. They do not compare two counts.
#5215 adds a Jev check "does this plan still hold this finding" to fix-plan. If this item ships first, the #5215 point judges only the earlier findings that the review marks holds. The pull request that ships second updates the other.
Acceptance Criteria
-
uv run pytest tests/roadmap/stage/test_roadmap_stage_verify.py::test_a_later_review_gets_the_earlier_findings_and_the_answerpasses: the payload of round 1 holds each open finding of round 0 and the answer of the planner. -
uv run pytest tests/roadmap/stage/test_roadmap_stage_verify.py::test_a_new_finding_outside_the_changed_text_is_advicepasses. -
uv run pytest tests/roadmap/steps/test_roadmap_fix_plan.py::test_a_revision_that_fixes_the_head_finding_is_keptpasses: the head has 1 open finding, the review of the revision marks itgoneand opens 1 finding on unchanged text. The step keeps the revision. This is the case offix-plan-validate-4917-r2. -
uv run devops ci fail-to-pass --base origin/mainshows that the three tests fail on the base and pass on the head. The pull request cites the run. - A later review on golden cases 2166 and 2169 with the plan unchanged keeps every earlier finding (
holds), opens 0 new findings, and matches the same serious golden defects as the first review. The pull request comment gives the counts.
(Changed 2026-11-13: a replay of the middle review rounds of fix(ci): a narrowed ci test runs many slow tests serially #4472, fix(roadmap): a claim release leaves the item In Progress #5118 and fix(roadmap): decision points need cuts for shadow and run in async code #5272 is not possible. The stage job keeps only the final plan of each item; plan PR docs(openspec): plan #5272 Require cuts for shadow and time each decision #5390 of fix(roadmap): decision points need cuts for shadow and run in async code #5272 has one commit.)
Existing Tool Considered
difflib of the Python standard library gives the changed text of the plan. The decision-point registry of ADR 0020 and Jev through pydantic-ai judge the rebuttal. No outside library keeps review state between rounds. Cost to build (estimate): 1.2 M tokens and 4 hours elapsed. Keep: one payload key, about 1 k more input tokens for each review after round 0, and one Jev request of about 2 k tokens for each rebuttal. Fix: about 0.2 M tokens for each wrong verdict rule.
Related
#5215 (fix-plan asks if each finding still holds), #4866 (a repeated finding uses no round), #5211 (the fix-plan repairs), ADR 0021 section 8.
Source: #4843
Activity
dan-petty commentedon Nov 13, 2026
Both address non-convergent model reviews in the roadmap, but the candidate changes the review process for stage and fix-plan to judge earlier findings, while #5215 adds a Jev check to fix-plan only.devops-cli-service commentedon Nov 13, 2026
Released in v0.129.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.129.1
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 15:03 UTC
fix(roadmap): a later review applies the place rule to each new finding
fix(roadmap): a named fix-plan run can skip the 6-hour wait (#5459)