Repository navigation
Description
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
- 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 tofalse_premise, the gate tonone, and the evidence to the design line and themissing_pathbullet of the prompt. - Add the case name to the score of
devops roadmap eval verify, so a pass that reports no such finding fails the case. - Add a test to
tests/roadmap/test_roadmap_stage_verify_eval.pythat asserts the case holds thefalse_premisedefect 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_pathtype 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
- WHEN A test loads the cases from
tests/fixtures/roadmap_eval/stage/and selects the PR docs(openspec): plan #3405 Require the message file a task names #3408 case. - THEN The case has a defect of type
false_premiseand gatenone.
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.mdat the case'sbase_commit. - THEN The
missing_pathbullet 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_pathbullet is a text of thefilesmap.
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_premisedefect 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
- WHEN The test loads the PR docs(openspec): plan #3405 Require the message file a task names #3408 case and builds its verification input.
- THEN The test asserts the defect type and each quoted text against the plan or the
filesmap.
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.evidencefield for the exact design line and the exactmissing_pathbullet. Do not add aquotefield 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.Defectalready holds free text evidence, and the case needs no schema change. - Rejected: New
Defect.quotefield. The model has no quote field, and one fixture does not justify a schema change. - Rejected:
Defect.message.messageholds the text that a gate must give, not the expected quote.
- Chosen: Existing
- 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 gatenone. - 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.
- Chosen:
- 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_pathbullet. 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]- Chosen: A commit before fix(roadmap): the stage check names the message file a plan must change #3405. The old prompt defines
missing_pathonly for a missing file, so the plan's restatement is false. - Rejected: The default branch head. After fix(roadmap): the stage check names the message file a plan must change #3405 the prompt matches the plan, so the case has no false premise.
- Rejected: A commit after fix(roadmap): the stage check names the message file a plan must change #3405. The cited rule no longer contradicts the plan.
- Chosen: A commit before fix(roadmap): the stage check names the message file a plan must change #3405. The old prompt defines
- 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.mdinreads. The verification pass then puts the first lines of that file from the case's base commit intofiles. (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 givesfilesthe 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.jsononly. The verification pass does not read the case facts.
- Chosen: List the prompt in a group's
- How does
devops roadmap eval verifyinclude the new case in its score?: Add the case directory undertests/fixtures/roadmap_eval/stage/.load_casesreads every directory that holdscase.json, andevaluate_casesscores 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.Defectalready holdstype,gateandevidence, andload_casesreads every case directory underCASES_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
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
testprefix of the title gives the type.(roadmap)scope of the title gives the scope.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 89682e4 (see proposed design in issue body).
[-]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[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 69 characters, and the limit is 60. The type and the scope stay.
test(roadmap): the verify golden set holds a plan that restates a cited rule wronglytest(roadmap): Add a false_premise case to the verify golden setdevops-cli-service commentedon Nov 7, 2026
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.
docs(openspec): archive #3431 the false premise case
docs(openspec): archive #3431 the false premise case