Repository navigation
Description
Problem or Motivation
The stage verify review has CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS = 2 and no fixable check. In 7 days 1 plan PR got plan/needs-fix (#4599) and 1 revision failed its checks after the review. A repeated review finding spends a round with no gain.
Proposed Solution & Architectural Design
In _verified and _repaired run the fixable check (point stage.review_fixable, #4847): a repeated finding uses no round; when fixable, +1 round up to a hard 3; else the plan keeps plan/needs-fix as today. Mode shadow until 5 events in 7 days with a fixable share of 2/3.
Target Subsystem
SDLC, Git & PR Governance (roadmap stage verify review).
Existing Tool Considered
The #4847 chain. Cost to build: about 0.5M tokens, 3 hours.
Acceptance Criteria
- A test: a repeated finding uses no round.
- A test: a fixable finding gets a third round only in mode on.
- A test: no fourth round.
Dependencies
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
Source: #4843
Alternatives check of 2026-11-24: none.
Tool: none found.
Reason: Searches found only review-comment tools (reviewdog, PR-Agent) that post linter or model findings on a diff; none detects a repeated finding, bands fixability with a shadow-mode threshold or caps repair rounds, so the change stays in-repo.
Lacks:
- No repeated-finding check by type and quote
- No fixability band that buys a third round
- No shadow-mode event counter or promotion threshold
- No round accounting inside the stage repair loop
Proposed design
Problem statement
Run the stage.review_fixable point in the stage verify repair loop after #6521 and #4847. The stage verify review has two repair rounds and no fixable check. It spends a round on a repeated finding. A fixable finding gets no third round. The change counts no round for a repeated finding and gives a fixable finding a third round only in mode on, with a hard cap of three.
Acceptance criteria
Requirement: Repeated finding costs no repair round
The stage verify repair loop SHALL consume no repair round when a finding repeats the type and quote of an earlier finding of the same run.
Scenario: Second round repeats the first finding
- WHEN A unit test gives the loop a first finding and a second finding with the same type and quote, with mode
onand one spent round. - THEN The test asserts that the loop makes no second repair ask and the draft keeps
plan/needs-fix.
Requirement: Fixable finding earns a third round in mode on
The stage verify repair loop SHALL run a third repair round for a fixable finding only when the stage.review_fixable mode is on.
Scenario: Fixable finding after two spent rounds
- WHEN A unit test spends two repair rounds and gives a new finding that the point bands as fixable, with mode
on. - THEN The test asserts that the loop makes a third repair ask and the run records round 3.
Requirement: Non-fixable finding keeps the base cap
The stage verify repair loop SHALL keep the base cap of two rounds when the stage.review_fixable point bands a new finding as not fixable.
Scenario: Non-fixable finding after two spent rounds
- WHEN A unit test spends two repair rounds and gives a new finding that the point bands as not fixable, with mode
on. - THEN The test asserts that the loop makes no third repair ask and the draft keeps
plan/needs-fix.
Requirement: Hard cap of three repair rounds
The stage verify repair loop MUST run no fourth repair round whatever the band and the mode.
Scenario: Fixable finding after three spent rounds
- WHEN A unit test spends three repair rounds and gives a fixable finding with mode
on. - THEN The test asserts that the loop makes no fourth repair ask and the draft keeps
plan/needs-fix.
Requirement: Shadow mode adds no round
The stage.review_fixable point SHALL run in mode shadow by default and SHALL add no repair round in that mode.
Scenario: Fixable finding in shadow
- WHEN A unit test spends two repair rounds and gives a fixable finding with mode
shadow. - THEN The test asserts that the run records one fixable event and the loop makes no third repair ask.
Requirement: Promotion to mode on at the threshold
The stage.review_fixable point SHALL report mode on when its events of the last 7 days number at least 5 and at least two thirds are fixable.
Scenario: Events reach the threshold
- WHEN A unit test records 5 events in the last 7 days and 4 of them are fixable.
- THEN The test asserts that the point reports mode
on.
Requirement: Below the threshold the point stays in shadow
The stage.review_fixable point SHALL keep mode shadow while its events of the last 7 days number under 5 or its fixable share is under two thirds.
Scenario: Events below the threshold
- WHEN A unit test records 5 events in the last 7 days and 3 of them are fixable.
- THEN The test asserts that the point reports mode
shadow.
Requirement: The check runs in the verify path
The stage verify code SHALL call the stage.review_fixable point for each open finding of the round in _verified.
Scenario: A finding from the verify path
- WHEN A unit test makes the review that
_verifiedasks return one open finding. - THEN The test asserts that the run records one
stage.review_fixableevent that names that finding.
Requirement: The check runs in the repair path
The stage verify code SHALL call the stage.review_fixable point for each open finding of the round in _repaired.
Scenario: A finding from the repair path
- WHEN A unit test makes the review that
_repairedasks return one open finding. - THEN The test asserts that the run records one
stage.review_fixableevent that names that finding.
Existing Tool Considered
The alternatives check in the issue body returned verdict none; it names no tool. The change stays in-repo at about 0.5M tokens and 3 hours to build.
Key questions
- How does the loop tell a repeated finding from a new one?: A finding repeats when its type and its quote equal the type and the quote of an earlier finding of the same run. The check compares that pair. (best practice) [sources: src/devops_cli/roadmap/stage/stage.py:2209, CONTEXT.md]
- Chosen: Type and quote pair. The review gives each finding a type and a quote. A repeat keeps both across rounds.
- Rejected: The whole finding text. The planner can rewrite the problem sentence. The same defect then reads as new.
- Rejected: The type alone. Two findings of one type in one plan can be two defects. The type alone drops a repair that helps.
- Where does the fixable check run, and in what order against the repeated check?: The repeated check runs first. A repeated finding returns before the fixable point. A new finding goes to the
stage.review_fixablepoint in_verifiedand in_repaired. (best practice) [sources: src/devops_cli/roadmap/stage/stage.py:2209, src/devops_cli/roadmap/stage/stage.py:2275, CONTEXT.md]- Chosen: Repeated check first, then the fixable point. A repeated finding costs no round, so the loop never asks the point to buy a round for it.
- Rejected: Fixable point first. It spends a model call on a finding that no round can fix. It can raise the budget for a repeat.
- Rejected: Run the point in
_verifiedonly. The repair path asks a new review, and its findings need the same band.
- How does the code keep the base cap of two rounds and add the third?: Keep
CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDSat 2. AddCONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS_MAXwith the value 3. The loop reads the max only when the mode isonand the band is fixable. (best practice) [sources: src/devops_cli/config/constants.py, tests/roadmap/test_roadmap_limit_classes.py]- Chosen: Add a max constant of 3. The shadow mode and today's behavior keep the value 2. One constant names the hard cap.
- Rejected: Raise
CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDSto 3. It gives every plan a third round, also in shadow and for a repeated finding.
- What default mode does
stage.review_fixabletake, and what turns it on?: The default mode isshadow. The point records each banded finding with its fixable flag and the time. It reportsonwhen the last 7 days hold at least 5 events and at least two thirds are fixable. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stage/stage.py:2209, src/devops_cli/config/constants.py]- Chosen: Shadow default, promotion by the recorded events. The issue asks for shadow until 5 events in 7 days with a fixable share of 2/3. Code can evaluate that rule.
- Rejected: Shadow default, promotion by a person's config change. It adds a step that no event can trigger. The issue names the threshold itself.
- Rejected: On by default. No measured event supports it. The shadow mode exists to measure first.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It saves wasted rounds on repeated findings but does not fix a broken or blocking behaviour.Reduces wasted compute on repeated review findings; users see fewer stalled plan PRs.Two function edits plus three tests, with a dependency on #4847; body estimates about 3 hours.Both touch the repair-round logic in _repaired, but #4348 sends a refused revision back to the planner while this candidate runs a fixable check to decide whether a repeated finding consumes a round.devops-cli-service commentedon Nov 14, 2026
Alternatives check: none
Reason: The searches found only general AI code-review tools and agent skills that triage or deduplicate review findings (e.g. fix-review-findings, a 0-star Claude Code skill), none of which supplies a fixable check that the roadmap stage-verify repair loop can call or a repeated-finding rule that skips a repair round. The issue asks for an internal change to
_verified/_repairedwith a shadow-mode gate and a hard cap of three rounds, which no existing tool or library covers.Tool: none found
Lacks:
stage.review_fixable) callable from the roadmap stage verify_verifiedand_repairedcodeTools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at ca62d6a while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 20, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 28, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
dan-petty commentedon Nov 30, 2026
Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.