Skip to content

feat(roadmap): the plan check requires a new rule to accept its own plan - #3641

Merged
dan-petty merged 5 commits into
mainfrom
feat/3404-the-plan-check-requires-a-new
Nov 6, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/3404-the-plan-check-requires-a-new

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

content_problems now refuses a plan with a behavior group that changes src/devops_cli/roadmap/stage_change.py and has no group test that shows the rule accepts the plan. The stage job and the replay both call it through check_proposal. The staging prompt states the same rule, so the model writes the test at once.

A plan that adds a rule over plan text can write text that its own rule refuses. The plan of #3349 named a finding with a kind outside DefectType. The stage checks never ran the proposed rule on the plan. #3386 makes the conflict certain: a plan that adds a gate must quote the defect that the gate refuses.

The recorded plans of #3410 in the golden set carry the new test, so the good plan stays accepted.

Closes #3404

Change: openspec/changes/archive/2026-11-05-3404-the-plan-check-requires-a-new/

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 3253225/15971 pytest on base: tests/roadmap/test_roadmap_stage_content.py
group 2 done 1 3318133/9585 pytest on base: tests/roadmap/test_roadmap_stage_prompt_rules.py
  • scoped check pre-push: passed, 10 s
  • scoped check static: passed, 43 s
  • scoped check tests: passed, 144 s
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.test_roadmap_stage_content::test_a_rule_of_the_plan_check_needs_its_self_acceptance_test.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.roadmap.test_roadmap_stage_prompt_rules::test_the_prompt_states_the_self_acceptance_rule_of_a_plan.

@devops-cli-service devops-cli-service Bot added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 5, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Replay of the stage golden set (uv run devops roadmap eval stage --replay, no model call), score before and after this change:

  • Before (origin/main): 47 cases, 4 good. Gates judge 69 of 306 known defects (23%). All caught, 0 missed. Good plans accepted: 4 of 4.
  • After (this branch): 47 cases, 4 good. Gates judge 69 of 306 known defects (23%). All caught, 0 missed. Good plans accepted: 4 of 4.

The counts do not change. The recorded plans of #3410 carry the new self-acceptance test, so the good plan stays accepted and the dropped plan stays judged by no gate. No model run (--model) was made.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 05:19
@dan-petty
dan-petty self-requested a review as a code owner November 6, 2026 05:19
@dan-petty
dan-petty merged commit 5df365a into main Nov 6, 2026
27 checks passed
@dan-petty
dan-petty deleted the feat/3404-the-plan-check-requires-a-new branch November 6, 2026 05:24
dan-petty added a commit that referenced this pull request Nov 6, 2026
`test_a_stage_check_change_with_no_replay_task_is_a_problem_of_the_gate_eval_replay`
fails on `main`. #3641 made the gate `content` refuse a behavior group
that changes `stage_change.py` and holds no self-acceptance test. #3732
added this test, and its sample group holds no such test. Each pull
request passed alone. Together the test sees two gates and not only
`eval-replay`.

The changed group of the test now holds a task test with the three marks
of the rule, so only `eval-replay` refuses the plan.

Closes #3736

Change:
`openspec/changes/archive/2026-11-06-3736-gate-test-self-acceptance/`
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.66.0](v0.65.0...v0.66.0)
(2026-11-06)


### Features

* **roadmap:** ask for a smaller edit after a parser failure
([#3737](#3737))
([2a5cd39](2a5cd39)),
closes [#3053](#3053)
* **roadmap:** list the local devops commands in the shell catalog
([#3739](#3739))
([0784e8b](0784e8b))
* **roadmap:** the implement job re-checks a plan premise against the
base ([#3657](#3657))
([29309f0](29309f0))
* **roadmap:** the plan check requires a new rule to accept its own plan
([#3641](#3641))
([5df365a](5df365a))


### Bug Fixes

* **roadmap:** a gate test holds the self-acceptance test
([#3738](#3738))
([303bf4f](303bf4f))
* **roadmap:** the plan check fails a citation of a line that moved
([#3668](#3668))
([cfee381](cfee381))

---
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): the plan check requires a new rule to accept its own plan

1 participant