Skip to content

test(roadmap): Add a false_premise case to the verify golden set #3431

Closed

Description

@dan-petty

Problem or Motivation

The verification golden set holds no plan whose design restates a rule of a file that the plan cites and gets the restatement wrong. The pass can therefore miss that defect without a score that shows it.

The plan of PR #3408 (for #3405) is an example. Its design said: "The defect type exists already and names exactly this defect." The cited src/devops_cli/ai/tasks/roadmap_stage_verify.md defines missing_path only for "a file that does not exist and that no earlier group creates". The plan widened the type to a file that exists and that the plan does not change, so the restatement contradicted the cited text. The pass read the prompt (group 2 lists it in reads) and reported no false_premise finding.

Proposed Solution & Architectural Design

  1. Add a case to tests/fixtures/roadmap_eval/stage/ from the plan of PR docs(openspec): plan #3405 Require the message file a task names #3408 before the fix. Set the defect type to false_premise, the gate to none, and the evidence to the design line and the missing_path bullet of the prompt.
  2. Add the case name to the score of devops roadmap eval verify, so a pass that reports no such finding fails the case.
  3. Add a test to tests/roadmap/test_roadmap_stage_verify_eval.py that asserts the case holds the false_premise defect and that the expected quote is a text of the input.

Evidence

  • PR docs(openspec): plan #3405 Require the message file a task names #3408 design: "The existing missing_path type names a code change that needs a file the plan does not change" (rejected alternatives).
  • src/devops_cli/ai/tasks/roadmap_stage_verify.md: "missing_path: the plan names a file that does not exist and that no earlier group creates."
  • The verification pass returned no finding for the plan.

Target Subsystem

tests/fixtures/roadmap_eval/stage/, tests/roadmap/test_roadmap_stage_verify_eval.py, src/devops_cli/roadmap/stage_eval_cases.py.

Existing Tool Considered

The golden set, devops roadmap eval verify, and the task slot ai.tasks.verification exist. The change adds one case and a test and builds no new tool.

Estimated cost: about 1,000 tokens to build, about 500 tokens per year to keep and fix, and about 1 hour elapsed.

Source: PR #3408

Proposed design

Problem statement

The verification golden set has no plan that cites a rule and restates it wrongly. The verification pass can therefore miss a false_premise defect and still show no case that checks it. The change adds the PR #3408 plan as a golden case and a test that checks the case and its expected quote.

Acceptance criteria

Requirement: False-premise golden case

The golden set SHALL hold a case from the PR #3408 plan that records a false_premise defect with the gate none.

Scenario: The new case is loaded

Requirement: Base commit before the prompt change

The case MUST use a base commit before #3405 changes the missing_path bullet.

Scenario: The cited prompt is read at the base commit

  • WHEN A test reads src/devops_cli/ai/tasks/roadmap_stage_verify.md at the case's base_commit.
  • THEN The missing_path bullet defines only a file that does not exist and that no earlier group creates.

Requirement: Exact evidence in the input

The case MUST store the exact design line and the exact missing_path bullet as the defect evidence.

Scenario: The evidence is checked against the input

  • WHEN A test builds the verification input for the case.
  • THEN The design line is a text of the plan and the missing_path bullet is a text of the files map.

Requirement: Score includes the case

devops roadmap eval verify SHALL score the new case and count its false_premise defect as labeled.

Scenario: A pass reports no finding

  • WHEN The model returns an empty finding list for the new case.
  • THEN The score names the case and reports one labeled false_premise defect with zero found.

Requirement: Fixture test asserts the case

tests/roadmap/test_roadmap_stage_verify_eval.py MUST hold a test that asserts the new case has the false_premise defect and that each quoted text in Defect.evidence is a text of the input.

Scenario: The fixture test runs

Existing Tool Considered

No alternatives check has run. No external tool covers this test-fixture need. The existing golden set, devops roadmap eval verify, and the ai.tasks.verification task slot cover the need, so the change builds no new tool. The written cost is about 1,000 tokens to build, about 500 tokens per year to keep and fix, and about 1 hour elapsed.

Key questions

  • Which field stores the expected quote of the false premise?: Use the existing Defect.evidence field for the exact design line and the exact missing_path bullet. Do not add a quote field to the case schema. (best practice) [sources: src/devops_cli/roadmap/stage_eval_cases.py, src/devops_cli/ai/tasks/roadmap_stage_verify.md]
    • Chosen: Existing Defect.evidence. Defect already holds free text evidence, and the case needs no schema change.
    • Rejected: New Defect.quote field. The model has no quote field, and one fixture does not justify a schema change.
    • Rejected: Defect.message. message holds the text that a gate must give, not the expected quote.
  • Which gate must the new false-premise case name?: none. No stage gate judges a restated cited rule. The verification pass reports this defect. (best practice) [sources: src/devops_cli/roadmap/stage_eval_cases.py, docs/ROADMAP_WORKFLOW.md:259]
    • Chosen: none. The docs say a defect that no gate judges has gate none.
    • Rejected: paths. The paths gate checks file paths, spec deltas and verify form, not a restated rule.
    • Rejected: pending. No future gate is planned for this defect.
  • Which base commit must the case use?: Use a commit before fix(roadmap): the stage check names the message file a plan must change #3405 widens the missing_path bullet. The plan then cites the old prompt and its restatement is false. (best practice) [sources: openspec/changes/3405-the-stage-check-names-the-message/design.md, src/devops_cli/ai/tasks/roadmap_stage_verify.md]
  • How does the case put the cited prompt bullet into the verification input?: A task group of the case plan lists src/devops_cli/ai/tasks/roadmap_stage_verify.md in reads. The verification pass then puts the first lines of that file from the case's base commit into files. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_stage_verify.md, tests/roadmap/test_roadmap_stage_verify_eval.py]
    • Chosen: List the prompt in a group's reads. The pass gives files the files that the plan names.
    • Rejected: Put the bullet in the issue body. This does not prove that the plan cites the rule.
    • Rejected: Put the bullet in facts.json only. The verification pass does not read the case facts.
  • How does devops roadmap eval verify include the new case in its score?: Add the case directory under tests/fixtures/roadmap_eval/stage/. load_cases reads every directory that holds case.json, and evaluate_cases scores each loaded case. [sources: src/devops_cli/roadmap/stage_eval_cases.py, tests/roadmap/test_roadmap_stage_verify_eval.py]
  • Does the new case need a change to stage_eval_cases.py?: No. Defect already holds type, gate and evidence, and load_cases reads every case directory under CASES_DIRECTORY. [sources: src/devops_cli/roadmap/stage_eval_cases.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-07: not-applicable.
Class: test, no search.
Tool: none found.

Activity

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 4, 2026
  2. dan-petty commented on Nov 4, 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/test. The test prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low.
    • Value: Medium.
    • Effort: Low.
  3. added
    priority/p3-low
    on Nov 4, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 4, 2026
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 89682e4 (see proposed design in issue body).

  6. changed the title [-]test(roadmap): the verify golden set holds a plan that restates a cited rule wrongly[/-] [+]test(roadmap): Add a false_premise case to the verify golden set[/+] on Nov 6, 2026
  7. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

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

    • Before: test(roadmap): the verify golden set holds a plan that restates a cited rule wrongly
    • After: test(roadmap): Add a false_premise case to the verify golden set
    • Source of the summary: the background model
  8. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: test. The check makes no search and no model call for an item of this class.

    Tool: none found

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

  9. added 2 commits that reference this issue on Nov 10, 2026
  10. removed
    status/ready
    on Nov 11, 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/lowpriority/p3-lowscope/roadmapsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions