Skip to content

feat(roadmap): Give the model verification pass the requirement list #3610

Not planned

Description

@devops-cli-service

Split from #3253.

Problem The plan validator refuses a plan that gives no coverage entry for an extracted requirement ID. A model verification pass reads the plan after the gates. The issue asks the pass to receive the extracted requirement list, so it can report a weak mapping that the deterministic check accepts. ## Why deferred The issue names no verification pass module, prompt or reply schema. The stage return gives no evidence about which pass reads a staged plan. The deterministic coverage gate refuses an unmapped ID without the pass, so this part waits for its own change. ## Acceptance criteria - The verification prompt holds each requirement ID and its text. - A test shows that the prompt holds REQ-001 for an issue that names one requirement line. - The pass reports an unmapped ID as a finding, and the finding names the ID.

Dependencies

Proposed design

Problem statement

The stage job's model verification pass reads a plan after the deterministic gates. Its request holds the issue body, the plan and the cited files, but not the extracted requirement IDs. The pass cannot report a requirement that no group maps with the ID that the plan's coverage list uses. This change adds the extracted requirement IDs and their text to the request and an optional requirement_id to a finding.

Acceptance criteria

Requirement: Requirement list in the request

The verification pass SHALL put the ID and the text of each extracted requirement line in an issue_requirements list of its request.

Scenario: One requirement line

  • WHEN The issue body holds the heading ### What should happen and the bullet The row checks at most 20 items a round.
  • THEN VerificationInput.payload() of the input from VerificationInput.of holds one issue_requirements entry with ID REQ-001 and that text.

Requirement: Empty requirement list

The verification pass SHALL send an empty issue_requirements list for an issue that names no requirement line.

Scenario: No requirement line

  • WHEN The issue body holds no requirement line
  • THEN VerificationInput.payload() of the input from VerificationInput.of holds issue_requirements equal to an empty list.

Requirement: Optional requirement ID in a finding

A finding SHALL hold an optional requirement_id that matches REQ- and three or more digits, and a finding with none MUST stay valid.

Scenario: An optional requirement ID

  • WHEN One reply finding holds requirement_id equal to REQ-001, a second gives none, and a third holds REQ-1
  • THEN Verification.model_validate returns the first with requirement_id REQ-001, the second with requirement_id None, and refuses the third with a validation error.

Requirement: Prompt names the requirement list and the ID

The pass prompt SHALL name issue_requirements, requirement_id, REQ-001, and criterion_dropped for a requirement with no coverage.

Scenario: The prompt is read

  • WHEN load_task_prompt('roadmap_stage_verify.md') is read
  • THEN The text holds issue_requirements, requirement_id, REQ-001, and a criterion_dropped line that names issue_requirements and a requirement line with no group that maps it.

Requirement: Unmapped requirement is an open finding

The pass SHALL report an uncovered requirement as an open criterion_dropped finding with its requirement_id, its text as quote, and the ID in the comment.

Scenario: A requirement with no coverage entry

  • WHEN A VerificationInput holds one requirement line, and a reply holds a blocker criterion_dropped finding with requirement_id REQ-001, an issue where, and the line as quote
  • THEN open_findings returns the finding and finding_line holds REQ-001, so the plan goes back to the planner with the ID.

Requirement: Requirement list counts against the request budget

The pass MUST count the requirement list in the request budget, so it leaves out the cited files that no longer fit.

Scenario: A long requirement list

  • WHEN A body holds 40 requirement lines and one cited file fits the window only without them
  • THEN VerificationInput.of with that window returns an input with no cited file, and count_tokens of its text() is at most tool_stop(window) - CONST_ROADMAP_STAGE_TOOL_RESERVE_TOKENS.

Requirement: A requirement line past the body cut keeps its quote and its place

The pass SHALL treat each issue_requirements text as a valid quote and an issue place, so a finding past the body cut stays open.

Scenario: A requirement line past the body cut

  • WHEN The issue body holds more requirement lines than CONST_ROADMAP_STAGE_VERIFY_BODY_MAX_TOKENS keeps, and a blocker criterion_dropped reply finding names the last line with its where and quote
  • THEN VerificationInput.contains and VerificationInput.holds return True, and open_findings returns the finding.

Existing Tool Considered

No alternatives check has run. OpenFastTrace is an open, maintained requirement-tracing suite at https://github.com/itsallcode/openfasttrace. It traces requirement IDs to code and test artifacts in a checkout. It does not extract requirement lines from a GitHub issue body, map them to stage plan groups, or hold the stage verification prompt and reply schema. OpenSpec validates the shape of a change and its spec delta but does not extract issue requirement lines or hold the pass. This change extends requirement_lines in src/devops_cli/roadmap/stage/stage_criteria.py and the pass in src/devops_cli/roadmap/stage/stage_verify.py. Written cost: about 4k tokens to build and test, about 1k tokens a year to keep and fix, and about half a day elapsed.

Key questions

  • Does the repository already extract requirement lines with IDs?: Yes. requirement_lines(body) returns a RequirementLine for each requirement line. Each entry holds id, kind, text and source_line. The ID is REQ- plus three digits from 1. The function cuts off the refine block first. [sources: src/devops_cli/roadmap/stage/stage_criteria.py]
  • Where does the verification pass get the requirement list?: Derive it in VerificationInput.of from the issue body before the body cut. Store it on VerificationInput. payload() writes {id, text} for each line. request_texts() yields each text. holds() includes each text for the issue part. Carry the field in the base input that _fitting measures, so the list counts against the window. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify.py, src/devops_cli/roadmap/stage/stage_criteria.py, src/devops_cli/config/constants.py]
    • Chosen: Derive the list in VerificationInput.of from the issue body. The body is already in the request, and one builder keeps the stage job, the refine review and the verification eval on the same list.
    • Rejected: Pass the list from the stage job into VerificationInput.of. The refine review and the verification eval would need a new parameter, so two request shapes would exist.
    • Rejected: Ask the model to extract the requirements in the pass. A second extraction can differ from the gate's IDs, and the finding's ID must match the plan's coverage entry.
  • Which request key holds the issue requirement list?: issue_requirements. The key names the list of issue requirement lines. It leaves a generic requirements key free for another use. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify.py]
    • Chosen: issue_requirements. It is explicit and names the issue requirement lines.
    • Rejected: requirements. It is vague and can hold another list.
    • Rejected: requirement_lines. It names the extractor function, not the request key.
  • What reply field names the requirement ID in a plan finding?: An optional requirement_id field on Finding. It matches ^REQ-\d{3,}$ and defaults to None. A reply that gives none stays valid. A stored report without the field still reads. finding_line appends the ID when it is present. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify.py, src/devops_cli/ai/tasks/roadmap_stage_verify.md]
    • Chosen: An optional requirement_id field on Finding. It is machine-readable, it names the ID of the plan's coverage list, and a default of None keeps each reply valid.
    • Rejected: Write the ID in where. where names the place in the plan, so the place would be lost.
    • Rejected: Write the ID in the problem text. A test cannot assert a field, and a comment cannot sort the findings by requirement.
    • Rejected: A new finding type requirement_unmapped. The prompt and the golden set fix nine types, so a tenth changes the eval and VERIFY_TYPES.
  • Which defect type does an unmapped or weak requirement get?: criterion_dropped. It already means an issue requirement with no task in the plan. It is one of the nine types of the prompt and the golden set. It is open, so an evidence-backed finding returns the plan to the planner. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify.py, src/devops_cli/ai/tasks/roadmap_stage_verify.md]
    • Chosen: criterion_dropped. It is the existing type for an issue requirement with no task, it is open, and the prompt and the golden set know it.
    • Rejected: other. other is not an open type, so the finding would be advice and would never return the plan.
    • Rejected: A new type. The prompt and the golden set fix the nine types, and a new type changes VERIFY_TYPES and the eval.
  • Does ADR 0005 forbid the model verification pass from reporting a plan finding?: No. ADR 0005 limits the findings of devops review to tools, advisories, confirmed facts, rule-pack rules and replayed observations. The plan verification pass is the stage job's review. Its open findings return the plan to the planner. ADR 0005 does not name it. [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md, src/devops_cli/roadmap/stage/stage_verify.py]
  • Does the change also change the request of the refine review?: Yes, in part. The refine review sends the same request through VerificationInput.of. It receives issue_requirements too. Its open-type set JUDGE_OPEN_TYPES is separate. This change does not touch it. The new reply field is optional, so every reply stays valid. [sources: src/devops_cli/roadmap/refine/refine_judge.py, src/devops_cli/roadmap/stage/stage_verify.py]
  • Does this item depend on feat(roadmap): map all issue requirements to a group #3253?: No. This change derives the list from the issue body with requirement_lines. It adds no read of a coverage field of the plan. feat(roadmap): map all issue requirements to a group #3253 adds the deterministic coverage gate. That gate is related work but no prerequisite. (best practice) [sources: src/devops_cli/roadmap/stage/stage_criteria.py, src/devops_cli/roadmap/stage/stage_verify.py, openspec/changes/3253-map-all-issue-requirements-to-a/proposal.md]
  • Which item must be delivered before this one?: Depend on chore(roadmap): hold incremental stage and implement work #6521. The issue body's Dependencies section holds the hold line that names it. Stage and implement leave the item while chore(roadmap): hold incremental stage and implement work #6521 is open. A person closes chore(roadmap): hold incremental stage and implement work #6521 to continue, or closes this item as not planned. [sources: docs/roadmap/refine.md, openspec/specs/roadmap-refine/waits/spec.md]
  • Must the pull request state the golden-set score of the verification pass?: Yes. devops roadmap eval verify scores the first review of a plan on the golden set. docs/TESTING.md and docs/ROADMAP_WORKFLOW.md say a change to a stage prompt states the score before and after. The pull request states the devops roadmap eval verify score before and after the change. [sources: docs/TESTING.md, docs/ROADMAP_WORKFLOW.md, src/devops_cli/roadmap/stage/stage_verify.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6521

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 5, 2026
  2. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    ContributorAuthor

    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. It improves verification quality but the deterministic gate already blocks hard failures, so it is not urgent.
    • Value: Medium. It lets the pass catch weak mappings that the deterministic check accepts, reducing missed defects.
    • Effort: Medium. It needs a prompt change, a data-passing change, and a test, but no new module or schema.
    • Related: feat(roadmap): map all issue requirements to a group #3253, which asks for a different change. Both work on requirement coverage in the roadmap stage, but #3253 maps requirements to groups while the candidate gives the verification pass the requirement list to report weak mappings.
  3. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at bd65ef6 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  4. changed the title [-]feat(roadmap): give the model verification pass the extracted requirement list[/-] [+]feat(roadmap): Give the model verification pass the requirement list[/+] on Nov 6, 2026
  5. dan-petty commented on Nov 6, 2026

    @dan-petty
    Owner

    The job shortened the title of this item. The summary had 63 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(roadmap): give the model verification pass the extracted requirement list
    • After: feat(roadmap): Give the model verification pass the requirement list
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at b4a4ffb 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.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: src/devops_cli/roadmap/stage/stage_criteria.py, src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/roadmap/plan_read.py.

  7. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 9f9fa49 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.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/roadmap/stage/stage_criteria.py.

  8. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    ContributorAuthor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  9. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    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.

  10. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  11. dan-petty commented on Nov 30, 2026

    @dan-petty
    Owner

    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.

  12. 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/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions