Skip to content

fix(roadmap): a review finding must name a part of the plan to block it #5410

Closed

Description

@dan-petty

Problem Description

A review finding blocks a plan even when its where names no part of the plan. Any plan can get a false blocker this way.

Evidence: plan pull request #5350 (item #5118, head ccfbab2e9586). Its only open finding names "specs (A release writes through one Status writer)". The spec delta of that head has three other requirements and none with that name. The quote comes from openspec/specs/roadmap-item-labels/spec.md:216, which the reviewer read with the tool read_spec. The plan already sends the release through write_status (design.md:5, proposal.md:10 and tasks.md of the plan). So the plan obeys the base rule "Every job writes the Status through one writer", and the finding is false.

Cause

  • Finding.where is free text (src/devops_cli/roadmap/stage/stage_verify.py:88-99).
  • open_findings (stage_verify.py:298-313) checks only that the type is open and that the quote is in a text of the input or of a tool answer. It never checks where.
  • VerificationInput.contains (stage_verify.py:237-241) accepts a quote from any tool answer, also from a file that the plan does not change.

Reproduction Steps

  1. Read the last stage or fix-plan comment on docs(openspec): plan #5118 Restore the Status on a claim release #5350: the finding and its where.
  2. Read the spec delta of head ccfbab2e9586: no requirement has the name that the finding gives.
  3. Read stage_verify.py:298-313: no check uses where.

Expected vs Actual Behavior

Expected: a finding that names a part that the plan does not hold is advice. It does not keep plan/needs-fix.

Actual: the finding is open, 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

  1. Replace the free text where of Finding with a structured locator: part (proposal, design, tasks, spec or issue) and section (a task group number, a heading, or a requirement name with its capability).
  2. In open_findings, check the locator against the plan (StageProposal). A finding whose part or section is not in the plan is advice. A type that reports a missing part names what needs it: criterion_dropped names the criterion of the issue (part: issue), and missing_path names the group that needs the file.
  3. Update the prompt src/devops_cli/ai/tasks/roadmap_stage_verify.md, the reply schema and the comment line stage_finding.

Acceptance Criteria

  • uv run pytest tests/roadmap/stage/test_roadmap_stage_verify.py::test_a_finding_on_a_requirement_that_the_plan_does_not_hold_is_advice passes. The fixture is the docs(openspec): plan #5118 Restore the Status on a claim release #5350 case: a spec delta with three requirements, a finding that names a fourth, and a quote from a read_spec answer.
  • uv run pytest tests/roadmap/stage/test_roadmap_stage_verify.py::test_a_finding_on_a_requirement_of_the_plan_stays_open passes.
  • uv run pytest tests/roadmap/stage/test_roadmap_stage_verify.py::test_criterion_dropped_names_the_criterion_of_the_issue passes, and the finding stays open.
  • uv run devops ci fail-to-pass --base origin/main shows that the first test fails on the base and passes on the head. The pull request cites the run.
  • On the same cases, the recall of uv run devops roadmap eval verify --model <Service model> on the head is not lower than on the base. The pull request comment gives both numbers.
    (Changed 2026-11-13: the base does not meet CONST_ROADMAP_VERIFY_RECALL_FLOOR (0.9) either: 0.38 on 44 cases on 2026-11-05, 0.45 to 0.67 on 9 and 10 cases on 2026-11-10. feat(roadmap): raise the recall of the verify reviewer #4402 owns the recall. matched_defects matches by type only, so only the new prompt text can change the recall.)

Existing Tool Considered

A pydantic model with a Literal part, and the plan as the step already reads it (StageProposal). No library judges where a review finding points. Cost to build (estimate): 0.6 M tokens and 2.5 hours elapsed. Keep: one model field and one check. Fix: about 0.1 M tokens for each wrong locator rule.

Related

#5215 (a Jev check in fix-plan only; it does not check the locator), #4402 (the recall of the reviewer), #5211.

Source: #4843

Activity

  1. added
    source/agent
    on Nov 13, 2026
  2. added
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  3. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 13, 2026
  5. removed
    status/in-progress
    owner/agent
    on Nov 13, 2026
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 18:17 UTC

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/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions