Skip to content

fix(roadmap): the stage review blocks a plan that does not deliver an acceptance criterion #3448

Closed

Description

@dan-petty

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

  1. 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.
  2. Add the rule to src/devops_cli/ai/tasks/roadmap_stage_verify.md and to the open-finding rule in src/devops_cli/roadmap/stage_verify.py.
  3. 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.
  4. 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]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Priority: P2-Medium. A plan can become ready with an unmet acceptance criterion, but the gap is one finding type among many in the review.
    • Value: Medium. It closes a specific path where a plan ships with a requirement unmet, but it affects only plans that trigger this one finding form.
    • Effort: Low. The body states about 3,000 tokens and 45 minutes to build and test the rule, test, and golden-set case.
    • Related: feat(roadmap): the stage job maps each acceptance criterion of the issue to a task group #3019, which asks for a different change. 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.
  4. added
    priority/p2-medium
    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 d478e5f (see proposed design in issue body).

  6. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    The premise of this item does not hold for its example. The item cannot be built as written.

    Evidence:

    • The gap is real. src/devops_cli/roadmap/stage_verify.py:54 sets OPEN_TYPES to the return types and spec_delta_wrong. A finding of type criterion_dropped or other does not keep a plan in draft.
    • The cited defect is not in the merged plan. The field CaseFacts.search_evidence (src/devops_cli/roadmap/stage_eval_cases.py:159) exists. Section 3.2 of the archived change 2026-11-04-3410 added it.
    • Section 4.1 of that archive adds the case that holds the search evidence. Section 4 is test-only and uses the field from section 3. So the group delivers its acceptance criterion.
    • Pull request docs(openspec): plan #3410 Refuse a negative search that proves nothing #3435 is a merged plan. Its body names no review finding. The finding that the issue quotes was a model review that GitHub does not record. This check cannot confirm it.

    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.

  7. added
    status/new
    and removed
    status/ready
    on Nov 5, 2026
  8. removed
    status/new
    on Nov 5, 2026
  9. 1 remaining item

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

    @devops-cli-service
    Contributor

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

  11. added
    owner/agent
    on Nov 6, 2026
  12. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    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.

    • The gap is real. Before the change, OPEN_TYPES in src/devops_cli/roadmap/stage_verify.py held the return types and spec_delta_wrong, so a criterion_dropped finding did not keep a plan in draft.
    • The example does not hold. The merged plan of fix(roadmap): the stage gate proves a negative search verify #3410 is correct: its last group changes only fixture files and a test file, and an earlier group adds the field CaseFacts.search_evidence that the case needs. A rule that flags every test-only group would refuse that plan.
    • So the rule is narrow. A criterion_dropped finding 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 no criterion_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.
    • The golden set gets two cases, so that the replay and devops roadmap eval verify can 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 one criterion_dropped defect and the gate none. 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 branch fix/3448-criterion-dropped-keeps-plan-draft. devops ci fail-to-pass --base origin/main shows 5 tests that fail on the base and pass on the branch.

    What the runs show.

    For a person. Run the whole-set score of devops roadmap eval verify before and after the prompt change when #3717 is fixed, as docs/ROADMAP_WORKFLOW.md asks for a change of the verification prompt.

  13. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 6, 2026
  14. removed
    status/in-review
    owner/agent
    on Nov 6, 2026
  15. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 04:26 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/lowpriority/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