Skip to content

feat(roadmap): run the plan checks before the stage push - #5416

Merged
dan-petty merged 3 commits into
mainfrom
feat/4725-stage-plan-check
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4725-stage-plan-check

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job pushed plans that the CI job Plan Check then refused. On 2026-11-13 it staged #5136 with no gate return, and Plan Check refused plan pull request #5407 because group 2 packs no file.

The stage job now runs the rules of devops roadmap plan-check that need no pull request on the files that it writes, after openspec validate: the title and body rules, the plan reader, the stage gates and the size of each group. The command and the job call the same functions of plan_check.py, so no rule has a second copy. A refused reply goes back to the model as a gate return of the gate plan-check. A reply that the rules still refuse after the last return fails the item, and the job pushes no branch.

This also covers the group-no-files refusal that #3970 and #3965 ask for. The run of the invariant tests before the push waits for #4559.

Closes #4725

Change: openspec/changes/archive/2026-11-13-4725-run-the-plan-checks-before-the/
Elapsed: 2.73s

The stage job pushed plans that the CI job Plan Check then refused. On
2026-11-13 it staged #5136 with no gate return, and Plan Check refused
plan pull request #5407: group 2 changes a file and packs no file.

The rules of the title, the body, the plan reader, the stage gates and
the size of each group now take a change folder in memory (PlanFolder).
devops roadmap plan-check and the stage job call the same functions.
The stage job runs them in _settle after openspec validate. A refused
reply goes back to the model as a gate return of the gate plan-check,
and a reply that the rules refuse after the last return fails the item
with no push.

The head of #5407 is a test fixture. Four stage tests had plans that
CI refuses, and three test files planned on a checkout that lacked the
files of their tree; they now name the file and plan on a clone.
The new title and body rules of plan_check.py had the name form_problems.
That name is already the task-group form rule of stage_form.py, which the
stage gates, the specs and the eval cases use. The rules are now
title_body_problems, so a search finds each function by one name.
The stage job runs the rules of the plan check before its push. The archive adds the two requirements to roadmap-plan-check and roadmap-stage/replies.
@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 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review notes for this pull request.

Fail first (base 6a5b450, branch tests on the base source)

  • test_a_plan_that_the_plan_check_refuses_goes_back_to_the_planner_as_a_gate_return: IndexError: list index out of range (one model call, not two).
  • test_a_plan_that_the_plan_check_refuses_after_each_return_is_never_pushed: process edge reached without a fake: gh api rate_limit (the apply step tried to open the pull request).
  • devops ci fail-to-pass --base origin/main cannot load the new test module on base, because it imports the new PlanFolder: "errored on base: tests.roadmap.stage.test_roadmap_stage_plan_check (collection failure)". This is a feature, so the run above is the fail-first proof.

Checks on the branch

  • uv run devops ci test on the new and changed stage tests, the plan-check tests, the fix-plan step tests, tests/invariants/test_change_folders.py and tests/openspec: all passed (247 and 157 tests).
  • The builder ran tests/roadmap/stage tests/roadmap/steps tests/roadmap/implement and the plan tests: 4602 passed, 1 skipped.
  • tests/telemetry/test_roadmap_stage_steps.py, plan-recheck, pull-form and plan-read tests: 245 passed.
  • mypy --strict on the 4 changed source files, ruff, devops openspec check, devops docs check, and the pre-push hook: pass.
  • uv run devops roadmap plan-check 5407 --json: one group-no-files problem, the same as the CI log of fix(ci): Accept copilot branches in the branch-name hook #5407.
  • uv run devops roadmap eval stage --replay: no change (82 of 319 defects judged, 6 of 6 good plans accepted).

Render diff: no k8s/ path and no chart values change, so there is no render diff and no restart.

Review fix: the new title and body rules of plan_check.py had the name form_problems, which is already the task-group form rule of stage_form.py. They are now title_body_problems.

Release: needed. The stage job runs in the Service image and fix-plan in the runner image.

Not in this change: the run of tests/invariants before the stage push waits for #4559. No first stage push failed a test check in the 14 days before (see the Feasibility section). The stage job does not judge an open issue dependency, the Semantic PR title check or a moved base spec; these still fail only in CI.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 14:03
@dan-petty
dan-petty merged commit 4c3de9d into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/4725-stage-plan-check branch November 13, 2026 14:07
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.129.0](v0.128.0...v0.129.0)
(2026-11-13)


### Features

* **roadmap:** run the plan checks before the stage push
([#5416](#5416))
([4c3de9d](4c3de9d))

---
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): run the plan checks before the stage push

1 participant