Skip to content

feat(roadmap): compare a branch and name the gate in plan-recheck - #3732

Merged
dan-petty merged 9 commits into
mainfrom
feat/3498-plan-recheck-gate-compare
Nov 6, 2026
Merged

dan-petty merged 9 commits into
mainfrom
feat/3498-plan-recheck-gate-compare

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A person who adds a plan gate could not see its hits and its false refusals. The golden set holds few good plans, and devops roadmap plan-recheck named no gate and compared no branch with the default branch.

plan-recheck now names the gate of each refusal and lists the refusals of each gate. The option --branch <ref> judges the change folders of the ref and of the default branch with no model. It lists each refusal that the branch adds, marked as a case to review. A folder that the reader cannot read is listed as not read, and the run goes on. The docs state the rule for a new gate and what plan-recheck judges less than the stage job. The run with --branch takes under one minute.

Closes #3498

Change: openspec/changes/archive/2026-11-06-3498-plan-recheck-gate-compare/

… the rebase

The stage job now has the gate eval_replay_problems (#3331). check_gates
names it eval-replay, the page of plan-recheck lists it, and the plan of
this change holds the replay task that the gate asks for.
…hared fakes

The text report of --branch now lists the result of each folder of the branch and the
count of each result. PlanRecord drops the property reasons and the JSON key reasons: the
keys notes and refusals hold the same facts once. The tests use the openspec_fake, the
roadmap_store and the model_fake fixtures and patch no devops-cli name. The proposal states
the true size of the change.
@dan-petty dan-petty 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 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence for #3498.

  • Full uv run devops ci on the branch before the rebase onto the last origin/main: 19447 passed, 2 failed, 1 error, coverage 94.58% (limit 85%). All other checks passed: lint, format, mypy, bandit, docs, openspec, test tree, startup imports, swallowed failures, k8s, build and the rest.
  • The 2 failures and the 1 error are the known host failures that fail on origin/main too: tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run and tests/ai/test_tool_executor_contract.py (fix(ci): host state fails four tests and one case #3585).
  • The test row took 6m 37s on a shared host, over the 5 minutes budget. The known cause is fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593. The slowest tests are test_ai_local_dry_run (58s) and the test_roadmap_implement_step tests, which this change does not touch.
  • After the rebase, the three test files of this change pass (22 tests): tests/roadmap/test_roadmap_plan_recheck.py, tests/roadmap/test_roadmap_stage_gates.py, tests/commands/test_roadmap_plan_recheck_cmd.py.
  • uv run devops roadmap eval stage --replay on the branch exits 0: Defects that a gate judges: 69 of 306 (23%), Good plans that every gate accepts: 4 of 4. The same run on origin/main was not run. check_proposal returns the same flat list of problems, and a test in tests/roadmap/test_roadmap_stage_gates.py proves it.
  • Run time of uv run devops roadmap plan-recheck --source . --branch HEAD: 46 seconds against 44 seconds with no option (see design.md).
  • No fail-to-pass run: this is a feature, and its tests are new.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 05:02
@dan-petty
dan-petty merged commit 363ba6a into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the feat/3498-plan-recheck-gate-compare branch November 6, 2026 05:05
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.65.0](v0.64.3...v0.65.0)
(2026-11-06)


### Features

* **roadmap:** compare a branch and name the gate in plan-recheck
([#3732](#3732))
([363ba6a](363ba6a))
* **roadmap:** the Service continues a Job that has no result
([#3731](#3731))
([4a2d958](4a2d958))

---
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>
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/`
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): a new plan gate states its hits and false refusals

1 participant