Skip to content

fix(roadmap): only blocker and major review findings block a plan #5411

Closed

Description

@dan-petty

Problem Description

All open finding types block a plan the same. A minor finding keeps a plan at plan/needs-fix. The eval of the reviewer gates only recall, so nothing limits findings on good plans.

Evidence: plan pull request #4917 (item #4472). Its only open finding is a spec_delta_wrong on the 7-file scenario. With 7 files the serial fallback and a zero count both give -n 0, because DEFAULT_CI_TEST_SERIAL_MAX_FILES = 12 (src/devops_cli/config/defaults.py:494). A test can still check the warning, so most of the scenario is testable. The defect is minor, and one line of the plan fixes it.

Cause

  • OPEN_TYPES (src/devops_cli/roadmap/stage/stage_verify.py:66-76) and the rule text (src/devops_cli/ai/tasks/roadmap_stage_verify.md:11) have no severity. Finding (stage_verify.py:88-99) has no severity field.
  • The rule for spec_delta_wrong says "a scenario that no test can assert". The reviewer applies it when one part of the THEN is not testable.
  • The eval already labels each golden defect with Severity (src/devops_cli/roadmap/stage/stage_eval_cases.py:112: blocker, major, minor, nit). It gates only the recall of blocker and major defects against CONST_ROADMAP_VERIFY_RECALL_FLOOR 0.9 (src/devops_cli/roadmap/stage/stage_verify_eval.py:370-381). It counts good_returning (stage_verify_eval.py:162-165), the findings that return a good plan, but no gate limits it.

Reproduction Steps

  1. Read the last fix-plan comment on docs(openspec): plan #4472 Size narrowed test workers by collected tests #4917: one spec_delta_wrong finding on the 7-file scenario.
  2. Read stage_verify.py:66-76: each listed type is open, with no severity.
  3. Run uv run devops roadmap eval verify: the report gates recall only.

Expected vs Actual Behavior

Expected: only blocker and major findings keep plan/needs-fix. Minor and nit findings go into the comment as advice. The eval fails when good plans get too many returning findings.

Actual: a minor finding blocks the plan, and the eval has no gate for good_returning.

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. Add severity to Finding and to the reply schema. Use the Severity enum of stage_eval_cases.py. open_findings opens only blocker and major findings. Minor and nit findings are advice in the comment.
  2. Change the spec_delta_wrong text to "has a scenario where no test can assert any part of its THEN".
  3. Add a ceiling for good_returning to devops roadmap eval verify, next to the recall floor. Set its value from the current eval report and write the reason in the comment of the constant.

Acceptance Criteria

  • uv run pytest tests/roadmap/stage/test_roadmap_stage_verify.py::test_a_minor_finding_is_advice passes.
  • uv run pytest tests/roadmap/stage/test_roadmap_stage_verify_eval.py::test_the_report_gates_good_returning passes: a score above the ceiling gives the missed line.
  • uv run devops ci fail-to-pass --base origin/main shows that the two tests fail on the base and pass on the head. The pull request cites the run.
  • uv run devops roadmap eval verify meets the recall floor and the new ceiling. The pull request cites the report.

Existing Tool Considered

The Severity enum and the eval harness of the project (stage_verify_eval.py). No new library. Cost to build (estimate): 0.5 M tokens and 2 hours elapsed. Keep: one field and one constant. Fix: about 0.1 M tokens for each wrong severity rule.

Related

#4402 (raises the recall of the reviewer, the opposite direction; the ceiling keeps the two in balance), #5273 (the verify screen records serious findings), #5211.

Source: #4843

Owner decision 2026-11-13

The owner approved the roadmap pipeline split (tracker #5482). This item is in Phase 0, and its scope does not change. #5410 merged (PR #5418). The stage Job of Phase 1 (#5483, #4559) and E1 (#5501) start when this item merges, because they change the same stage files.

  • Live proof: after the merge and the release, the stage review runs as the App on the open plan PRs of devops-cli-service[bot]. A comment gives the review verdicts and the severity of each blocking finding.

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
    on Nov 13, 2026
  5. added
    status/in-progress
    and removed
    status/new
    on Nov 13, 2026
  6. added
    status/in-review
    and removed
    status/in-progress
    on Nov 13, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  8. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 22:33 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