Repository navigation
Description
Problem or Motivation
The model review of a plan can report that a task group does not deliver an acceptance criterion of the issue as a point of type other. other does not keep the plan in draft. #3435 is the evidence. The issue #3410 requires a stage eval case that holds the plan of #3378 and its recorded search evidence. Group 4 of the plan wrote a new pytest file and did not change src/devops_cli/roadmap/stage_eval_cases.py, where StageCase and CaseFacts live. The case had no field for the evidence that the replay must read. The review reported this as other, and a separate spec_delta_wrong finding kept the pull request a draft. When a later round clears that finding, the plan can become ready with the requirement unmet.
Proposed Solution & Architectural Design
- Treat a finding that a group does not deliver an acceptance criterion of the issue as
spec_delta_wrong, or as a new blocking type. - Add the rule to
src/devops_cli/ai/tasks/roadmap_stage_verify.mdand to the open-finding rule insrc/devops_cli/roadmap/stage_verify.py. - Add a test with the group 4 form: the criterion names a golden-set case, the group writes only a test file, and the review must return an open finding.
- Add the case to the stage eval golden set, so the replay judges the rule offline.
Target Subsystem
src/devops_cli/ai/tasks/roadmap_stage_verify.md, src/devops_cli/roadmap/stage_verify.py, tests/fixtures/roadmap_eval/stage/
Existing Tool Considered
The criteria gate of #3019 (src/devops_cli/roadmap/stage_criteria.py) already maps each acceptance criterion to a group. This change adds a review finding that the group does not deliver the criterion, so it adds no new tool. The cost is about 3,000 tokens to build and test and about 45 minutes elapsed.
Proposed design
Problem statement
The stage review can report a group that does not deliver an acceptance criterion as other, and other is not open. A later round can clear the separate blocking finding, and the plan can become ready with the requirement unmet. The cited #3435 example does not hold because CaseFacts.search_evidence exists, so the change uses a synthetic case. The change makes the existing criterion_dropped finding type open, updates the prompt and the stage document, and adds an offline golden case.
Acceptance criteria
Requirement: Open types include criterion dropped
The stage verification pass SHALL include criterion_dropped in OPEN_TYPES.
Scenario: The open type set holds criterion dropped
- WHEN The OPEN_TYPES constant is read
- THEN The set contains criterion_dropped.
Requirement: Quoted criterion dropped finding is open
The stage verification pass SHALL treat a criterion_dropped finding as open when its quote is in the input.
Scenario: A quoted criterion dropped finding is open
- WHEN A verification reply holds a criterion_dropped finding whose quote is in the input
- THEN open_findings returns the finding.
Requirement: Unquoted criterion dropped finding is advice
The stage verification pass MUST NOT keep the plan in draft for a criterion_dropped finding whose quote is not in the input.
Scenario: An unquoted criterion dropped finding is advice
- WHEN A verification reply holds a criterion_dropped finding whose quote is not in the input
- THEN open_findings returns no finding.
Requirement: Prompt defines the undelivered criterion rule
The stage verification prompt MUST define a test-only group that does not deliver its acceptance criterion as a criterion_dropped finding.
Scenario: The prompt names the test-only group rule
- WHEN The prompt file is loaded
- THEN The text names the test-only group and the criterion_dropped type.
Requirement: Group 4 regression test
The test suite SHALL hold a regression test with a criterion_dropped finding.
Scenario: The group 4 finding is open
- WHEN The test passes a plan whose group 4 changes only a test file and a quoted criterion_dropped finding to open_findings
- THEN The test asserts that open_findings returns the finding.
Requirement: Golden set holds the undelivered criterion case
The stage eval golden set MUST hold a case whose issue requires a change to the stage eval case model and whose mapped group changes only a test file.
Scenario: The replay loads the undelivered criterion case
- WHEN The stage eval replay loads the new case
- THEN The case has one criterion_dropped defect and the replay lists it with gate none.
Requirement: Stage documentation lists the open criterion finding
The stage documentation MUST list criterion_dropped as an open finding type.
Scenario: The stage document lists open finding types
- WHEN The stage document is read
- THEN The open finding list names criterion_dropped.
Existing Tool Considered
No alternatives check has run. The criteria gate of #3019 (src/devops_cli/roadmap/stage_criteria.py) maps each acceptance criterion to a group, but it does not judge whether the group delivers the criterion. No open, maintained tool or library covers this review finding, so the change adds a rule to the existing verification pass. The written cost is about 3,000 tokens to build and test, and about 45 minutes elapsed.
Key questions
- Which finding type should a group that does not deliver a mapped acceptance criterion use?: Reuse the existing criterion_dropped type and add it to OPEN_TYPES. Update its prompt definition to cover a mapped group that changes only a test file and does not change the code the criterion needs. Do not add a new type and do not reuse spec_delta_wrong. (best practice) [sources: src/devops_cli/roadmap/stage_verify.py:54, src/devops_cli/ai/tasks/roadmap_stage_verify.md, src/devops_cli/roadmap/stage_eval_cases.py, src/devops_cli/roadmap/stage_criteria.py, docs/roadmap/stage.md]
- Chosen: Reuse criterion_dropped and add it to OPEN_TYPES. The enum already holds the type, and the prompt already describes a missing criterion. The change adds no schema type.
- Rejected: Reuse spec_delta_wrong. A correct spec delta can sit beside a group that does not deliver the criterion. The type would send the planner to the wrong part.
- Rejected: Add a new blocking type. A new type duplicates criterion_dropped. It also expands the nine-type schema, the prompt, the tests and the golden set.
- Must the new open finding require a quote in the input?: Yes. Use the existing open_findings rule. A criterion_dropped finding is open only when VerificationInput.contains finds its quote. A finding with no quote stays advice. (best practice) [sources: src/devops_cli/roadmap/stage_verify.py:205, src/devops_cli/roadmap/stage_verify.py:210]
- Chosen: Require a quote in the input. The existing open_findings rule uses VerificationInput.contains. It stops an unsupported finding from blocking a correct plan.
- Rejected: Open every criterion_dropped finding. A finding with no evidence can block a correct plan and add a false positive.
- Is the cited docs(openspec): plan #3410 Refuse a negative search that proves nothing #3435 example a valid premise for the golden case?: No. CaseFacts.search_evidence exists at src/devops_cli/roadmap/stage_eval_cases.py:159, so the recorded case can hold the search evidence. The change uses a synthetic case and does not depend on the fix(roadmap): the stage gate proves a negative search verify #3410 plan. [sources: src/devops_cli/roadmap/stage_eval_cases.py:159]
- Where does the stage eval golden set hold a case, and which files does a case need?: A case is a directory under tests/fixtures/roadmap_eval/stage/. It holds case.json, issue.txt, plan.json and facts.json. Add the new synthetic case there. [sources: src/devops_cli/roadmap/stage_eval_cases.py]
- Which gate must the new golden-set case name for the criterion_dropped defect?: Name the gate none. No deterministic gate judges whether a mapped group delivers its criterion; the verification pass judges it. The criteria gate only checks that each criterion maps to a group. (best practice) [sources: src/devops_cli/roadmap/stage_criteria.py, src/devops_cli/roadmap/stage_eval_cases.py, src/devops_cli/roadmap/stage_verify.py]
- Chosen: Use gate none. The verification pass judges the defect, and no deterministic gate in stage_eval_cases catches it.
- Rejected: Use gate criteria. The criteria gate checks the mapping of criteria to groups, not whether a group delivers its criterion.
- What is the next step after the docs(openspec): plan #3410 Refuse a negative search that proves nothing #3435 example does not hold?: Keep the item. Use a synthetic golden case that does not depend on the fix(roadmap): the stage gate proves a negative search verify #3410 plan. Do not close the item. (best practice) [sources: src/devops_cli/roadmap/stage_eval_cases.py, src/devops_cli/roadmap/stage_verify.py]
- Chosen: Use a synthetic case. The gap in OPEN_TYPES remains, and a synthetic case tests it without the invalid docs(openspec): plan #3410 Refuse a negative search that proves nothing #3435 example.
- Rejected: Close the item. criterion_dropped is still not open, so the defect remains.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
A plan can become ready with an unmet acceptance criterion, but the gap is one finding type among many in the review.It closes a specific path where a plan ships with a requirement unmet, but it affects only plans that trigger this one finding form.The body states about 3,000 tokens and 45 minutes to build and test the rule, test, and golden-set case.Both work on the criteria-to-group mapping in the stage pipeline; #3019 adds the mapping, the candidate adds a blocking review finding when a mapped group does not deliver.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at d478e5f (see proposed design in issue body).
dan-petty commentedon Nov 5, 2026
The premise of this item does not hold for its example. The item cannot be built as written.
Evidence:
A person must decide the next step. Either file a new issue with a new example and a golden case that does not depend on the #3410 plan, or close this item.
1 remaining item
devops-cli-service commentedon Nov 5, 2026
Status set to Ready at d254410 (see proposed design in issue body).
dan-petty commentedon Nov 6, 2026
Answer from project standards, under the owner's instruction of 2026-11-05.
Question. The comment of 2026-11-05 says that the example of this issue does not hold, and that the item cannot be built as written. What is the next step?
Answer. Build the narrow rule that the current design of this issue gives, and keep the item.
OPEN_TYPESinsrc/devops_cli/roadmap/stage_verify.pyheld the return types andspec_delta_wrong, so acriterion_droppedfinding did not keep a plan in draft.CaseFacts.search_evidencethat the case needs. A rule that flags every test-only group would refuse that plan.criterion_droppedfinding whose quote is in the input keeps the plan in draft, and the prompt says that a test-only group which tests code of an earlier group is nocriterion_dropped. The finding does not send the plan back. The review of refine keeps the type as advice, because a proposal holds no task group.devops roadmap eval verifycan judge the rule. The good case is the merged plan of fix(roadmap): the stage gate proves a negative search verify #3410. The bad case is the same plan without the group that adds the field, with onecriterion_droppeddefect and the gatenone. The two plans differ by that one group.Rule and evidence. AGENTS.md rule 2 (check the premise, and re-scope when the item cannot be built as written), the key question "What is the next step after the #3435 example does not hold?" in the proposed design of this issue, and the change folder
openspec/changes/3448-criterion-dropped-keeps-plan-draft/(Feasibility). The work is on the branchfix/3448-criterion-dropped-keeps-plan-draft.devops ci fail-to-pass --base origin/mainshows 5 tests that fail on the base and pass on the branch.What the runs show.
qwen3.8:27bgave amissing_pathfinding on both new cases, with the old prompt and with the new prompt. It gave nocriterion_droppedfinding on the good case. So the narrow rule did not refuse the good plan in that run. The model typed the bad case asmissing_path, which already keeps a plan in draft.Tool <text> exceeded max retries count of 2. I filed fix(roadmap): the agent verification pass stops with a text tool error #3717 for it. The score of the agent pass before and after the prompt change is not run.For a person. Run the whole-set score of
devops roadmap eval verifybefore and after the prompt change when #3717 is fixed, asdocs/ROADMAP_WORKFLOW.mdasks for a change of the verification prompt.docs(openspec): plan #3448 keep a plan with a dropped criterion in draft
docs(openspec): record the verification runs of #3448
docs(openspec): modify the open-finding requirement for #3448
devops-cli-service commentedon Nov 6, 2026
Released in v0.64.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.64.2
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 04:26 UTC