Skip to content

fix(roadmap): keep a plan with a dropped criterion in draft - #3718

Merged
dan-petty merged 9 commits into
mainfrom
fix/3448-criterion-dropped-keeps-plan-draft
Nov 6, 2026
Merged

dan-petty merged 9 commits into
mainfrom
fix/3448-criterion-dropped-keeps-plan-draft

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The model review of a plan can report that an acceptance criterion is not delivered, with the finding type criterion_dropped. That type was advice, so a plan with an undelivered criterion could stage as clean. A criterion_dropped finding whose quote is in the input now keeps the plan in draft with the label plan/needs-fix. It does not send the plan back to the planner. In the review of refine it stays advice, because a proposal has no task groups. The verification prompt now says that a group which changes only test files delivers its criterion when an earlier group changes the code that it needs. The golden set holds the merged plan of #3410, which stays good, and the same plan without its field group, which stays bad.

Closes #3448

Change: openspec/changes/archive/2026-11-06-3448-criterion-dropped-keeps-plan-draft/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Review findings

I checked each finding against the branch before I changed it. All of them hold.

  • Refine advice in docs/roadmap/stage.md (two findings, same cause): the sentence said that only task_order and verify_form are advice in the review of refine. JUDGE_OPEN_TYPES now also removes criterion_dropped, so the sentence now names the three types.
  • ADDED in place of MODIFIED in the spec delta (two findings, same cause): the reason in design.md was false. The change of feat(roadmap): an independent verifier refutes a plan before the draft pull request opens #3039 is archived (c1191e25, feat(roadmap): the verifier reads the repository and repairs a plan twice #3710), and the living requirement "An open finding keeps the plan in draft" still listed six types. The delta of roadmap-stage now holds that requirement as MODIFIED, with its full text, its five scenarios, criterion_dropped in the type list and the three new scenarios. The false decision in design.md is replaced with the real reason.
  • "Last group" (two findings, same cause): in both plans the group that adds the case of a move of the stage modules is group 4 of 5 (good plan) and group 3 of 4 (reviewed plan). It is not the last group. The module docstring, the test name, the case.json summary, the proposal, the design, the tasks and the comment in test_roadmap_stage_eval_cases.py now name that group.
  • "The change fits one pull request": added to What Changes in the proposal.
  • Case count in docs/ROADMAP_WORKFLOW.md: the cost line and the line about the number of model calls named a count of cases, so each new case made them stale. Both now name no count.

Rebase

The branch was not pushed before. I rebased it onto origin/main (76e8301d). #3716 (feat(roadmap): require the eval replay for a stage check change) refused the merged plan of #3410 in the golden set: that plan changes stage_form.py, stage_change.py and stage_eval_gates.py, and it has no group task that runs the eval replay. That is a different gate from the rule of this change, and the rule of this change (criterion_dropped keeps the plan in draft) does not refuse the good case. Both plans of #3410 now carry the task to run uv run devops roadmap eval stage --replay with the score before and after in their last group, as the rule of #3331 asks. The two plans still differ by the one group that changes stage_eval_cases.py. The case.json notes of both cases say this. The counts of the set are now 47 cases, 4 good, and 69 of 306 defects judged.

Runs

  • fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 5 tests fail on the base and pass on the branch. They are test_the_open_types_add_the_spec_delta_and_the_dropped_criterion_to_the_return_types, test_a_dropped_criterion_finding_of_a_test_only_group_with_a_quote_in_the_input_is_open, test_the_dropped_criterion_type_names_a_test_only_group_and_one_that_delivers, test_a_quoted_dropped_criterion_finding_on_the_dropped_case_keeps_the_plan_in_draft and the measure-doc test. The test of the review of refine passes on the base too, because the finding was advice there before; it guards the refine path.
  • Full uv run devops ci under the shared lock, on the branch before the archive commit: 19290 tests passed, 4 failed and 1 error. The 4 failures and the error are the known host failures: tests/crypto/test_ssh.py, tests/telemetry/test_config_env_overrides.py, tests/commands/test_devcontainer_install_tools_dry_run.py and tests/ai/test_tool_executor_contract.py (fix(ci): host state fails four tests and one case #3585). The test row took 6m 11s, over the 5 minute budget (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593). The coverage row shows fail because the test row failed. Every other row passed, including openspec, docs, typecheck, lint and security.
  • After the archive and the second rebase (onto e9bf5a9d), I ran the 135 tests of the 7 changed test files (all pass) and uv run devops openspec check (passes). I did not repeat the full run.
  • The pre-push hook (fast static checks) passed.

Score of the verification pass: not run

The rule of docs/ROADMAP_WORKFLOW.md asks for the score of the verification pass before and after a change of roadmap_stage_verify.md. The agent pass of #3039 stops with a text tool error on some cases (#3717), so I could not run uv run devops roadmap eval verify on the whole set with that pass. The proposal records two runs on the single-call pass that ran before #3039 with the prompt before and after the change: both gave the same findings, and no criterion_dropped finding on the good plan of #3410. The score of the agent pass before and after the change is not run. A person must decide whether this pull request may merge without it, or whether it waits for #3717.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 02:23
The requirement "An open finding keeps the plan in draft" exists in the
living spec, and the change of #3039 that rewrote it is archived. The
delta now holds that requirement as MODIFIED with criterion_dropped in its
type list, states that the change fits one pull request, and names the
group that adds the case in place of the last group.
The review of refine keeps a criterion_dropped finding as advice, as it
does for task_order and verify_form, because a proposal has no task
groups. The cost line and the case line of the workflow document name no
count of cases, so that a new case changes no sentence.
…the plans of #3410

The group that adds the case of a move of the stage modules is group 4 of
5 in the good plan, not the last group. The plans of #3410 change paths
that the rule of #3331 guards, so the last group of each plan now runs the
eval replay with the score before and after, and the good plan stays good.
@dan-petty
dan-petty force-pushed the fix/3448-criterion-dropped-keeps-plan-draft branch from 5d4f842 to dc9ca69 Compare November 6, 2026 03:35
@dan-petty
dan-petty merged commit dacaf57 into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3448-criterion-dropped-keeps-plan-draft branch November 6, 2026 03:45
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.2](v0.64.1...v0.64.2)
(2026-11-06)


### Bug Fixes

* **k8s:** keep grafana, prometheus and loki off the control-plane node
([#3723](#3723))
([34010d6](34010d6))
* **roadmap:** keep a plan with a dropped criterion in draft
([#3718](#3718))
([dacaf57](dacaf57))
* **roadmap:** the alternatives check reads the ADRs and the item
([#3714](#3714))
([a22260c](a22260c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant