Repository navigation
Description
Problem
The verify reviewer finds too few of the labelled serious defects. In the pilot 1 run (2026-11-10), the reviewer alone (deepseek-v4.1-flash-1017, one run, 48 reviewable cases of the 56 golden stage cases) found 104 of 177 serious defects (59%). It found no serious defect in 9 of 48 cases (19%), and 5 of those 9 are the good plans. The stored Sonnet run (2026-11-05, 44 cases) found 38% of serious defects. The floor is CONST_ROADMAP_VERIFY_RECALL_FLOOR = 0.9. The stage review is the last model check before a plan becomes a draft, so a low recall lets a defect through to a person.
What is known
- A screen before the reviewer cannot help: the best Jev design skips about 6% of reviews and saves about 0.011 USD per plan (ADR 0019, pilot 1).
- The reviewer is stochastic. One run is the label, so the figures have wide error bars.
eval verifystores its report only at the end (feat(roadmap): eval verify stores each case when it ends and resumes #4344) and 6 of 48 agent runs failed withModelConnectionError(fix(ai): the verify eval agent run fails with ModelConnectionError #4345).- test(roadmap): run the cloud baseline of the stage eval #3566 holds the baseline work (stopped). Cloud spend of 25 USD was approved earlier and is unspent.
What to find out
- The recall by defect type (which of the 317 labelled defects does the reviewer miss: kinds, tools needed).
- What a miss needs: a tool the reviewer does not call, a file it does not read, or a rule that a gate should check without a model.
- Whether more evidence, a second pass with another model, a tool-made checklist per defect type, or a gate for the types that a tool can decide, raises recall most per token.
- Run-to-run variation: repeat the reviewer 3 times on the same cases and report the spread.
Done when
A table by defect type, the spread, and a ranked list of options with their cost are in this issue. A fix issue follows for each option worth building. No code change is part of this issue.
Related: #3566, #4344, #4345, #4282.
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)
Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: pydantic-evals (https://pypi.org/project/pydantic-evals), MIT, last activity 2026-11-25, maintained.
Reason: The issue already names pydantic-evals, locked in uv.lock and used by devops roadmap eval verify; searches found no other maintained tool that adds per-type recall and a stored report. It measures recall but not repeats, usage or tool traces.
Covers:
- Golden-case dataset with one agent run for each case
- Per-defect-type recall scorer and stored JSON report
- Floor, taxonomy and report format already in the repository command
Lacks:
- No repeat option for the run-to-run spread
- No token, spend or usage figures in the report
- No reviewer tool trace to classify each miss
Proposed design
Problem statement
Do not stage this item before #6521 closes. The paid repeats also wait on a person at a workstation with the approved 25 USD spend. The verify reviewer found 59% of serious defects in pilot 1, below the 0.9 floor. The project does not know which defect types it misses, why it misses them, or which change raises recall most for each token. This item measures the recall by defect type and the spread of three repeats, ranks the candidate changes by recall gain for each token, and changes no reviewer code.
Acceptance criteria
Requirement: Recall table by defect type
The analysis SHALL give the verify reviewer's recall for each defect type of the nine-type taxonomy, with the labelled, found and missed counts.
Scenario: Every defect type has a row
- WHEN A test reads the analysis section of
docs/ROADMAP_WORKFLOW.md. - THEN The table has one row for each of the nine defect types, and each row gives the labelled count, the found count and the missed count.
Requirement: Recall against the floor
The analysis SHALL state whether the serious recall reaches CONST_ROADMAP_VERIFY_RECALL_FLOOR.
Scenario: The floor is compared
- WHEN A test reads the analysis section.
- THEN The section gives the serious recall, the floor value 0.9 and the statement that the recall reaches or does not reach the floor.
Requirement: Type-matched and actionable recall
The analysis MUST give the type-matched serious recall and the actionable serious recall that counts only findings with severity blocker or major.
Scenario: Both recall figures are present
- WHEN A test reads the serious-recall part of the analysis section.
- THEN The section gives the type-matched serious recall, the actionable serious recall, and the count of serious defects that the two figures differ on.
Requirement: Limit of the type-only match
The analysis SHALL state that matched_defects matches by type only and that open recall needs a report field.
Scenario: The limit is stated
- WHEN A test reads the method part of the analysis section.
- THEN The section states the type-only match, the case where a minor finding matches a serious defect, and that open recall is a follow-up item.
Requirement: Run-to-run spread
The analysis SHALL give the recall of three repeats on the same cases and the spread between them.
Scenario: Three repeats are reported
- WHEN A test reads the spread part of the analysis section.
- THEN The section gives each repeat's recall over the cases it verified, the verified and failed counts, the minimum, the median, the maximum and the mean pairwise Jaccard agreement.
Requirement: Cause of each miss
The analysis MUST give one cause class for each missed serious defect.
Scenario: Each miss has a cause class
- WHEN A test reads the miss table.
- THEN Each missed serious defect has one of the classes
tool not called,file not read,rule without a modelorunexplained, and the evidence text from the report or the case.
Requirement: Ranked options with cost
The analysis SHALL rank each candidate change by recall gain for each token and give its estimated cost.
Scenario: Each option has a rank and a cost
- WHEN A test reads the ranked list.
- THEN Each option gives its rank, its expected recall gain, its estimated token cost for each plan and the reason for its rank.
Requirement: Follow-up items for the options
The analysis SHALL give a Conventional Commit title and a body for each option that the ranking marks worth building.
Scenario: Each worth-building option has a title and a body
- WHEN A test reads the ranked list.
- THEN Each option marked worth building has a title of the form
<type>(<scope>): <summary>and a body with its acceptance criteria.
Requirement: No change to the reviewer
The pull request MUST NOT change the verify reviewer's code, prompts or the recall floor.
Scenario: The pull request changes only the analysis and the change folder
- WHEN The command
git diff --name-only origin/main...HEADruns. - THEN The list holds
docs/ROADMAP_WORKFLOW.mdand the files of the OpenSpec change folder or its archive only.
Requirement: Pending a person after the merge
A person SHALL post the summary of the merged analysis on issue #4402 and file each follow-up issue that the analysis marks worth building.
Scenario: Summary and follow-ups are posted
- WHEN The analysis is merged and a person reads the section.
- THEN Issue feat(roadmap): raise the recall of the verify reviewer #4402 holds a comment with the table, the spread and the ranked list, and each worth-building option has a new issue.
Existing Tool Considered
The alternatives check in the issue body gives the verdict in-use for pydantic-evals (https://pypi.org/project/pydantic-evals), MIT, maintained. The issue body records what the tool covers and lacks. The proposal runs devops roadmap eval verify three times for the repeats. It records provider usage for the cost. It classifies each miss from the stored report and the case. It reports the type-only match limit and defers open recall to a separate issue.
Key questions
- How does the analysis treat the type-only match and the finding severity?: Report two serious-recall figures. The first is the type-matched figure from
matched_defects. The second counts only findings with severityblockerormajor. State thatmatched_defectsmatches by type only, so aminorfinding can match a serious defect. Defer the open-recall code change to a separate issue. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify_eval.py, docs/roadmap/stage.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Chosen: Type-matched and actionable figures. The stored report gives the findings. The severity is in the review. Two figures show the gap that a minor finding makes.
- Rejected: Type-matched only. It overstates recall when a minor finding matches a serious defect.
- Rejected: Actionable only. It loses the current measure and the history of the floor.
- Rejected: Add open recall now. It is a code change, and the issue forbids a code change.
- How does the analysis cover the open recall that
matched_defectsdoes not measure?: It states the gap and files a follow-up issue. The stored report does not hold the open findings or the tool answers that decide if a finding is open. The follow-up adds an open recall to the report fromopen_findingsand the tool answers. This item changes no code. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify_eval.py, docs/roadmap/stage.md]- Chosen: State the gap and defer. The issue forbids a code change, and the follow-up can add the field.
- Rejected: Add open recall now. It is a code change and breaks the issue constraint.
- Rejected: Ignore the gap. The analysis would report a recall that the gate does not act on.
- How does the analysis give a cause for each missed serious defect?: From the stored report and the case. Name
rule without a modelwhen a gate can decide the defect type. Namefile not readwhen the defect's file is outside the files that the plan cites and the reviewer made no finding there. Nametool not calledwhen the defect needs a tool outside the reviewer's toolset. Nameunexplainedotherwise. The report holds no tool trace, so a logged trace is a follow-up. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify_eval.py:348, docs/ROADMAP_WORKFLOW.md:372, CONTEXT.md:173, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Chosen: Report and case classification. It uses the stored findings and the case's files, and names
unexplainedwhere the report cannot show the tool call. - Rejected: Logged re-run of each miss. The report records no tool calls, so this needs a code change that the issue forbids.
- Rejected: Ask the reviewer to explain the miss. ADR 0005 shows that model self-report and model verdicts are unreliable.
- Rejected: Read the stored review session. A review session holds findings and verdicts, not the verify eval's tool calls.
- Chosen: Report and case classification. It uses the stored findings and the case's files, and names
- How does the analysis report the run-to-run spread?: Run the command three times on the same cases. Report each recall over the cases it verified and the verified and failed counts. Report the minimum, the median, the maximum and the mean pairwise Jaccard agreement of the found sets. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md:3, src/devops_cli/roadmap/stage/stage_verify_eval.py:339]
- Chosen: Three repeats with Jaccard agreement. The body asks for 3 repeats, and ADR 0005 uses Jaccard to compare two runs.
- Rejected: One repeat with a binomial interval. The variance of the reviewer is larger than the sampling error.
- Rejected: Five repeats. It costs 5 times the tokens for a spread that the body does not ask for.
- How does the run stay within the approved 25 USD of cloud spend?: Record the tokens and the spend of each repeat from the provider's usage. Estimate each repeat from the measured 578,119 input tokens and about 6 minutes for one case. Stop before the 25 USD that the issue records as approved. Report the cases and repeats not run as a coverage gap. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify_eval.py:348, docs/ROADMAP_WORKFLOW.md:371]
- Chosen: Budget-capped repeats. It gives a cost figure and a partial spread, which the follow-up issues need.
- Rejected: One repeat only. It gives no spread.
- Rejected: Ask for more spend first. The issue records the approved spend as unspent, so the work can start.
- Where does the analysis live, so that a test can check it offline?: In a new section of
docs/ROADMAP_WORKFLOW.mdunderMeasure the verification pass. The issue cites that section. A test reads the section. A person posts the summary on issue feat(roadmap): raise the recall of the verify reviewer #4402 after the merge. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:372, docs/roadmap/stage.md]- Chosen: Section of
docs/ROADMAP_WORKFLOW.md. The issue cites the measurement section there, and a test reads it offline. - Rejected: Section of
docs/roadmap/stage.md. That page documents the stage job, and its heading isThe verification pass, notMeasure the verification pass. - Rejected: A new top-level doc. The docs index lists no analysis page, and a one-off page adds a file to keep.
- Rejected: An issue comment only. No offline test reads an issue comment.
- Chosen: Section of
- Where do the paid repeats run?: On a person's workstation, outside the roadmap jobs, with the 25 USD of cloud spend that the issue records as approved and unspent. The implement step cannot run them. Its shell holds no model key. Its item budget and time limit are below one 48-case run. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:282, docs/CONFIGURATION.md:281, docs/ROADMAP_WORKFLOW.md:371, docs/ROADMAP_WORKFLOW.md:353, docs/adr/0004-ci-is-the-authoritative-gate.md]
- Chosen: Person's workstation with the approved spend. It holds the model keyring and needs no code change; the issue records the 25 USD as approved and unspent.
- Rejected: Implement step. The step's shell holds no model key, and its item budget and time limit are below one run.
- Rejected: GitHub Actions workflow. A workflow is a code change, which the issue forbids, and ADR 0004 keeps the GitHub App private key out of Actions secrets.
- Rejected: Service model lane. No row runs
eval verify, so a new row is a code change. The lane runs one round at a time, so a multi-hour eval would hold it.
Fit
Fits in one pull request.
Suspected block
The three paid repeats need a person at a workstation with the approved 25 USD spend; no roadmap job holds the model key or the item budget for one 48-case run.
Activity
dan-petty commentedon Nov 10, 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.The recall gap is large but this is an investigation, not a direct fix.Low recall lets serious defects reach a person as the last model check.Requires defect-type analysis, three repeat runs, and a ranked option list, but no code change.Both concern the model verify step in the stage job, but #3153 adds the step while the candidate investigates how to raise its recall.devops-cli-service commentedon Nov 10, 2026
Status set to Ready at 9bb67a0 (see proposed design in issue body).
devops-cli-service commentedon Nov 11, 2026
Alternatives check: partly
Reason: The issue already builds its measurement on pydantic-evals:
devops roadmap eval verifyruns the golden cases through the reviewer, scores them withRecalland writes a per-type JSON report, which is exactly the recall-by-defect-type table the item needs. It does not cover the rest of the need — it has no repeat option, stores no token, spend or tool-call figures, and gives no ranked options with cost, so the three repeats, the cost ranking and the "tool not called" causes stay manual work (Inspect AI, the other candidate, is a maintained framework but would still need the repository's labelled set, taxonomy and floor and is a code change the item forbids).Tool: pydantic-evals (https://pypi.org/project/pydantic-evals)
Covers:
Recalldevops roadmap eval verifycommand, which adds the 317 labelled defects, the nine-type taxonomy, the recall floor and the JSON report formatLacks:
tool not calledcause need the provider's usage and extra instrumentationTools considered:
Searches run:
Sources:
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 13, 2026
The recall of
devops roadmap eval verifydoes not show what the gate acts on. It counts each finding, also a finding that is advice.matched_defects(src/devops_cli/roadmap/stage/stage_verify_eval.py) matches a finding to a labeled defect by type only. So a finding that an open rule makes advice can still match a labeled blocker. Example: on the first head of #5418 (#5410), case 2166, the review nameddesign (feasibility)for the labeledfalse_premiseblocker ofproposal.md. The place rule of that head made the finding advice, but the greedy match gave it the blocker. The serious recall (6/9) thus counted a blocker that the gate did not act on. #5418 now makes a key of the proposal or the design a place of both files, so this finding is open, but the gap in the measure stays.Proposal for this item: add an open recall to the report: the labeled defects that the open findings of the run match (
open_findingson the input and the tool answers of the run, asreturningcounts them now). Report it for the base and the head of a change to the open rules, so the eval measures such a change.dan-petty commentedon Nov 13, 2026
Measurement note from #5411 (PR #5557). After that change, each review finding has a severity, and only a blocker or a major finding keeps a draft.
matched_defects(src/devops_cli/roadmap/stage/stage_verify_eval.py) still matches a finding to a labeled defect by type only. So a serious defect that only a minor finding of the same type matches counts in the serious recall, but it keeps no draft. A reviewer that grades each finding minor would keep its recall and get no finding that returns a good plan.On the head of #5411 (cases 2166 and 2169,
deepseek-v4.1-flash-1017), the type match gives 8 of 9 serious defects, and 6 of 9 when the match also needs a blocker or a major finding.The decision of #5411 kept the match by type, because its issue asks for no change of the measure (design of the archived change). When this item measures the recall, report both counts, or match a serious defect only with a blocker or a major finding.
devops-cli-service commentedon Nov 18, 2026
The result in the alternatives block of the issue body changed. Before this check:
partly, tool https://pypi.org/project/pydantic-evals. A person decides what the new result means for the item.Searches (4)
Tools considered:
Searches run:
Sources:
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 26, 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.