Skip to content

feat(roadmap): raise the recall of the verify reviewer #4402

Not planned

Description

@dan-petty

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

What to find out

  1. The recall by defect type (which of the 317 labelled defects does the reviewer miss: kinds, tools needed).
  2. 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.
  3. 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.
  4. 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

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 model or unexplained, 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...HEAD runs.
  • THEN The list holds docs/ROADMAP_WORKFLOW.md and 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

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 severity blocker or major. State that matched_defects matches by type only, so a minor finding 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_defects does 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 from open_findings and 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 model when a gate can decide the defect type. Name file not read when the defect's file is outside the files that the plan cites and the reviewer made no finding there. Name tool not called when the defect needs a tool outside the reviewer's toolset. Name unexplained otherwise. 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 unexplained where 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.
  • 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.md under Measure 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 is The verification pass, not Measure 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.
  • 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.

Dependencies

#6521

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The recall gap is large but this is an investigation, not a direct fix.
    • Value: High. Low recall lets serious defects reach a person as the last model check.
    • Effort: Medium. Requires defect-type analysis, three repeat runs, and a ranked option list, but no code change.
    • Related: feat(roadmap): the stage job verifies its plan with a model after the gates #3153, which asks for a different 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.
  3. added
    priority/p2-medium
    on Nov 10, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 9bb67a0 (see proposed design in issue body).

  6. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: The issue already builds its measurement on pydantic-evals: devops roadmap eval verify runs the golden cases through the reviewer, scores them with Recall and 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)

    • License: MIT
    • Last activity: 2026-11-11
    • Maintained: yes

    Covers:

    • Runs a dataset of golden cases through the reviewer agent and scores each case with evaluators such as Recall
    • Backs the repository's devops roadmap eval verify command, which adds the 317 labelled defects, the nine-type taxonomy, the recall floor and the JSON report format
    • Stores each case's findings in a JSON report, from which missed defects can be listed and classified

    Lacks:

    • No repeat option in the repository's command, so the three repeats on the same cases must be run by hand
    • The report holds no token, spend or tool-call figure, so the cost per option and the tool not called cause need the provider's usage and extra instrumentation
    • No ranking of candidate changes by recall gain per token; that analysis is done by a person
    • Does not itself hold the labelled defect set, the nine-type taxonomy or the 0.9 recall floor, which the repository adds

    Tools considered:

    Searches run:

    • pydantic-evals evaluation library datasets scorers, results: 5
    • Inspect AI framework model evaluation UK AISI, results: 5
    • "Inspect AI" eval framework github, results: 5
    • "pydantic-evals" GitHub pydantic-ai, results: 5
    • promptfoo llm evaluation tool, results: 5
    • pydantic evals, results: 5
    • ai.pydantic.dev evals dataset evaluate repeat evaluator, results: 5

    Sources:

    Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.

  7. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    The recall of devops roadmap eval verify does 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 named design (feasibility) for the labeled false_premise blocker of proposal.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_findings on the input and the tool answers of the run, as returning counts them now). Report it for the base and the head of a change to the open rules, so the eval measures such a change.

  8. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    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.

  9. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    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:

    • pydantic-evals evaluation recall scorer library, results: 5
    • pydantic-ai evals dataset evaluators report, results: 5
    • pydantic evals evaluation framework repeat runs usage limits, results: 5
    • pydantic-ai evals evaluation documentation, results: 5

    Sources:

  10. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

  11. added
    status/new
    and removed
    status/ready
    on Nov 26, 2026
  12. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    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.

  13. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    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.

  14. removed
    status/new
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions