Repository navigation
Description
Problem
Nobody states what a plan gate does over real plans before it merges. The golden set cannot show a false refusal, because it holds few good plans. So a gate can refuse many sound plans, or never fire on a true case, and only a person sees this later.
uv run devops roadmap eval stage --replayprints 43 cases,Defects that a gate judges: 67 of 303 (22%)andGood plans that every gate accepts: 3 of 3. The replay reads no git (docs/ROADMAP_WORKFLOW.md), and the gates need aStagedTree.devops roadmap plan-recheck(feat(roadmap): one pass re-checks each merged plan against main #3492) already runs the plan reader,check_proposalandopenspec validateover each change folder of the default branch. It calls no model. On 2026-11-06 it read 56 folders oforigin/mainin 29 seconds and gave 13ok, 38new-planand 5cleanup.plan-recheckprints one sentence for each problem. It names no gate. It compares no branch with the default branch. It labels no refusal as a case to review. So a person who adds a gate cannot see the hits and the false refusals of that gate.- 25 of the 31 plan pull requests in the window 2026-11-03T15:05Z to 2026-11-04T15:05Z hold a correction commit that the Service did not write. These numbers show no cause.
- An evaluation of the roadmap Service on 2026-11-04 ran approximate simulations in its plan reviews. They suggest the size of the risk. They are unverified: feat(roadmap): a plan that deletes a guard check records the weakened check #3320 matches 20 of 60 active plans, feat(roadmap): refuse a self-named or untested plan #3321 refuses 12 of 45, feat(roadmap): the plan check requires a new rule to accept its own plan #3404 fires on 13 of 25, fix(roadmap): refuse a plan group that only reacts to a possible failure #3433 refuses 7 groups, and feat(roadmap): Check finding defect types against DefectType #3343 and feat(roadmap): Refuse a plan that reads an absent model field #3344 have 0 true hits.
What plan-recheck judges less than the job
The stage job calls check_proposal with inputs that plan-recheck does not give. It also runs checks that plan-recheck does not run. A refusal of plan-recheck is therefore a case to review, and a plan that plan-recheck accepts can still fail the job.
- No
probes: the job refuses afeasibilitythat quotes no line of the premise probe.plan-recheckdoes not. - No
overlaps: the job refuses a plan that omits an open pull request that changes a path the item cites.plan-recheckreads no pull request. - No
search_evidence: the job records the hits of each negative-search literal at the staged commit.plan-recheckrecords no search, so the gatesearchjudges only the created paths. - No
plan_creates: the job refuses a path that the plan of another open item creates.plan-recheckdoes not read those plans. - No group measure: the job refuses a group above the setting
roadmap.stage.step_tokens.plan-recheckmeasures no group. - No secret scan and no title check: the job refuses a plan file that holds a secret and a staging title that breaks the form.
plan-recheckhas no pull request. - No verification pass: the job asks a model to review the plan.
plan-recheckcalls no model. - A different tree: the job judges a plan on the commit that it stages.
plan-recheckjudges it on the default branch or on the branch that a person names.
Expected
devops roadmap plan-recheck takes the option --branch <ref>. It judges the change folders of the ref and of the default branch with the same plan reader and the same gates, and it calls no model. The output names the gate of each refusal. For the branch and for the default branch, it lists the refusals under the name of each gate. It lists the refusals that the branch adds to the default-branch result, each with its folder, its gate and its message, and each marked as a case to review. A refusal on a change folder is a case to review, not a proven false refusal. A change folder that the reader cannot read appears as not read, and the run goes on. No new command exists. A plan or a pull request that adds a gate states the refusals of that gate and a replay of the defect that it cites.
Acceptance criteria
- A test:
check_proposalgives the problems of each gate under the name of the gate, and the flat list of problems does not change. - A test: with
--branch, the run reads each change folder of the branch and of the default branch withread_change, and it makes no model request. - A test: the output lists the refusals of each gate for the branch and for the default branch.
- A test: the output names the folder, the gate and the message of each refusal that the branch adds, and it marks each one as a case to review.
- A test: a change folder that the reader cannot read appears as not read, and the run goes on.
docs/ROADMAP_WORKFLOW.mdanddocs/roadmap/plan-check.mdstate the rule that a plan or a pull request that adds a gate gives this result and a replay of its cited defect, and they state whatplan-recheckjudges less than the job.- The run time of
plan-recheckwith--branchonorigin/mainis below 5 minutes.
Existing tool considered
devops roadmap plan-recheck (src/devops_cli/roadmap/plan_recheck.py), check_proposal (src/devops_cli/roadmap/stage_change.py), the plan reader read_change (src/devops_cli/roadmap/plan_read.py) and devops roadmap eval stage --replay. No outside tool runs the gates of this project. The change extends plan-recheck and adds no command. Written cost of the extension: about 50,000 tokens to build, about 5,000 tokens each year to keep and fix, and about 3 hours of elapsed time.
Moved to other issues
- The reader defect for a criterion of
Group 0stays in fix(roadmap): a criterion of group 0 escapes the plan reader #3591.plan-recheckdoes not catchValidationError. - The close of feat(roadmap): stage requires an eval replay task when a plan edits the stage prompt or gates #3331 and fix(roadmap): the eval replay task gives the before and after numbers #3397, and the decision on fix(pr): Require a replay score in stage-change PRs #3398, are in chore(roadmap): retire the superseded plan-gate issues #3706.
Dependencies
- fix(roadmap): the plan reader reports each bad plan with no crash #3482 (closed)
- fix(roadmap): a criterion of group 0 escapes the plan reader #3591
Related
Related: #3706, #3591, #3492, #3445, #3398, #3386, #3331, #3397, #3207, #3412, #3390, #3404, #3320, #3321, #3433, #3343, #3344
Proposed design
Problem statement
Nobody measures a plan gate over real plans before it merges. The golden set holds few good plans, so it cannot show a false refusal. A gate can refuse sound plans, or never fire on a true case, and only a person sees this later. The project has devops roadmap plan-recheck, which runs the gates over the change folders of the default branch with no model. It prints one sentence for each problem, names no gate, compares no branch, and labels no case to review. This change extends plan-recheck to run the gates over a branch and the default branch, print the refusals per gate, and label each new refusal as a case to review.
Acceptance criteria
Requirement: Plan-recheck reads the branch and the default branch
The plan-recheck command SHALL read each change folder of the given branch and of the default branch with the plan reader, and it SHALL make no model request.
Scenario: A run reads both sides
- WHEN A person runs
devops roadmap plan-recheckon a branch that holds one change folder, and the default branch holds two change folders - THEN The run reads three change folders with
read_changeand records no model call.
Requirement: Plan-recheck prints the refusals of each gate for both sides
The plan-recheck output SHALL hold the refusals of each gate for the branch and for the default branch.
Scenario: Each side lists its refusals under the gate
- WHEN One gate refuses one change folder on the branch and one change folder on the default branch
- THEN The output lists both refusals under the name of that gate.
Requirement: A new refusal names its folder, gate and message
The plan-recheck output SHALL name the change folder, the gate and the message of each refusal that the branch adds to the default-branch result.
Scenario: A new refusal holds its three facts
- WHEN A branch change folder makes one gate refuse, and the default-branch result holds no such refusal
- THEN The output holds one line with the folder path, the gate name and the gate message.
Requirement: A new refusal is a case to review
The plan-recheck output SHALL label each refusal that the branch adds as a case to review, not as a proven false refusal.
Scenario: A new refusal carries the review label
- WHEN The branch adds one refusal to the default-branch result
- THEN The output marks that refusal as a case to review.
Requirement: An unreadable change folder does not stop the run
The plan-recheck run SHALL report a change folder that the reader cannot read as not read, and it SHALL continue with the other folders.
Scenario: A folder that the reader refuses
- WHEN One change folder raises a read error and two other change folders read
- THEN The output names the unread folder as not read and holds the results of the two other folders.
Requirement: The workflow document states the gate-evidence rule
docs/ROADMAP_WORKFLOW.md SHALL state that a plan or a pull request that adds a gate gives this result and a replay of the defect that it cites.
Scenario: The workflow document holds the rule
- WHEN A reader searches
docs/ROADMAP_WORKFLOW.mdfor the rule on a new gate - THEN The document holds the rule and names the plan-recheck command and the replay.
Existing Tool Considered
No alternatives check has run. No external tool runs the gates of this project over its change folders. The change extends the project's own devops roadmap plan-recheck in src/devops_cli/roadmap/plan_recheck.py, which already reads each change folder of the default branch and calls the stage gates with no model. Written cost: about 12,000 tokens to build the branch comparison, the gate names and the review label, about 3,000 tokens per year to keep and fix that code, and about one day of elapsed time.
Key questions
- Should the change extend
plan-recheckor add a new command?: Extenddevops roadmap plan-recheck. It already reads each change folder of the default branch and calls the stage gates with no model, so the change adds a branch comparison, a gate name for each refusal and a review label. (best practice) [sources: src/devops_cli/roadmap/plan_recheck.py, src/devops_cli/commands/roadmap.py:793, src/devops_cli/roadmap/stage_change.py:593, src/devops_cli/roadmap/plan_check.py]- Rejected: Add a new command. It repeats the reader and the gate calls that
plan-recheckalready makes. - Chosen: Extend plan-recheck. It already reads the change folders of the default branch and calls the gates with no model.
- Rejected: Add a git mode to the eval replay. The replay reads no git and builds a
StagedTreefrom a file list, so it needs a new checkout path.
- Rejected: Add a new command. It repeats the reader and the gate calls that
- How does each refusal learn the name of its gate?:
check_proposalreturns each problem with the name of the gate that produced it. The command carries that name into its output. (best practice) [sources: src/devops_cli/roadmap/stage_change.py:593, src/devops_cli/roadmap/plan_check.py]- Chosen: Return the gate name with each problem. The gate that raises a problem is the only place that knows its name.
- Rejected: Match the message text to a gate. The message is prose and changes, so a match would break.
- Rejected: Run each gate on its own. The command calls
check_proposal, which runs every gate in one call.
- What makes a refusal new in the plan-recheck output?: A refusal is new when the branch run holds it and the default-branch run does not, for the same change folder. (best practice) [sources: src/devops_cli/roadmap/plan_recheck.py]
- Chosen: Compare the branch run with the default-branch run. The body defines a new refusal against the default branch.
- Rejected: Report every refusal of the branch. The default branch holds the same refusals, so the output would not show what changed.
- What does
read_changeraise for a criterion withGroup 0?: Apydantic.ValidationError, raised outside thetryblock ofread_change. Issue fix(roadmap): a criterion of group 0 escapes the plan reader #3591 fixes the reader to raise onlyPlanReadError. [sources: src/devops_cli/roadmap/plan_read.py:419]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It improves gate quality before merge but does not fix a live defect.It catches a bad gate before it ships, reducing silent false refusals.It reuses existing readers and adds a command, tests, and one docs rule.Both require a plan that adds a gate to show its effect, but #3386 asks for quoting one defect while the candidate asks for a command output that lists hits and false refusals per gate.dan-petty commentedon Nov 5, 2026
The premise check of #3498 fails for the plan as written.
The plan says that no command runs the gates over change folders. This is not true at origin/main (d254410).
devops roadmap plan-recheck(feat(roadmap): one pass re-checks each merged plan against main #3492,src/devops_cli/roadmap/plan_recheck.py,src/devops_cli/commands/roadmap.py:793) reads each change folder of the default branch. It runsread_change,check_proposalandvalidate_change. It calls no model.A gap remains.
plan-recheckreads only the default branch. It prints no refusal per gate.check_proposalreturns one sentence for each problem, with no gate name (src/devops_cli/roadmap/stage_change.py:593). It has no comparison with a branch and no label for a case to review.The reader defect that the plan names is real.
read_changeraisespydantic.ValidationErrorfor a criterion withGroup 0, outside itstryblock (src/devops_cli/roadmap/plan_read.py,read_change). It was reproduced on origin/main. The defect is filed as fix(roadmap): a criterion of group 0 escapes the plan reader #3591.The plan cites line numbers that moved.
check_proposalis atstage_change.py:593andread_changeis atplan_read.py:419. The plan's file list omitsplan_recheck.py.Proposed re-scope: extend
plan-recheckwith a branch comparison and a gate name for each refusal, instead of adding a new command. A person decides the re-scope.devops-cli-service commentedon Nov 5, 2026
Status set to Ready at f481be8 (see proposed design in issue body).
Moved to new items: #3706.
dan-petty commentedon Nov 6, 2026
Answer from project standards, under the owner's instruction of 2026-11-05.
The issue body now holds the re-scope of the premise check of 2026-11-05. The owner did not state the re-scope. It comes from the project rules named below, and a person can reverse it.
Should the change extend
plan-recheckor add a new command? Extendplan-recheck. AGENTS.md rule 3 asks for the tool that exists before new code.devops roadmap plan-recheck(#3492) already reads each change folder of the default branch and runs the plan reader, the gates andopenspec validatewith no model. A second command would repeat that. Code:src/devops_cli/roadmap/plan_recheck.py.How does a refusal learn its gate?
check_gatesinsrc/devops_cli/roadmap/stage_change.pygives the problems ofcheck_proposalunder the name of their gate (the enumProposalGate).check_proposaljoins them and returns the same list as before. A match on the text of a sentence would break when the text changes.plan-recheckadds the gatesreadandopenspecfor its other two checks.What makes a refusal new? The branch holds a refusal and the default branch holds none with the same folder, gate and message. The report marks each one as a case to review. It claims no proof of a false refusal.
What does
plan-recheckjudge less than the job? It givescheck_proposalnoprobes,overlaps,search_evidenceorplan_creates. It does not measure the groups, scan the files for secrets or check the staging title. It calls no model. It judges a plan on the tree of the default branch or of the branch, and not on the commit that the job staged. So a plan that it accepts can still fail the job. Sources:src/devops_cli/roadmap/stage.py(_settle) andsrc/devops_cli/roadmap/plan_recheck.py.Does the run fit the 5-minute rule (AGENTS.md rule 5)? Yes. On 2026-11-06,
uv run devops roadmap plan-rechecktook 22 seconds over 55 folders, and--source . --branch HEADtook 33 seconds.Where do the other criteria go? The reader defect for a criterion of
Group 0stays in #3591, andplan-recheckcatches noValidationError. The full pass onorigin/mainended with exit 0, so no folder holds that criterion today. The close of #3331 and #3397 and the decision on #3398 stay in #3706, because only a person closes an issue or decides the scope of another issue.The work is on the local branch
feat/3498-plan-recheck-gate-compare. It is not pushed. The change folderopenspec/changes/3498-plan-recheck-gate-compare/is not archived yet.dan-petty commentedon Nov 6, 2026
Answer from project standards, under the owner's instruction of 2026-11-05.
The branch is now on
origin/mainat 7496693 (release 0.64.1). The rebase changed two facts of the comment above.Does the run fit the 5-minute rule (AGENTS.md rule 5)? Yes. On 2026-11-06, after the rebase,
uv run devops roadmap plan-recheck --source . --branch HEADtook 46 seconds over 55 folders ofmainand 56 of the branch. The same command with no option took 44 seconds. The host is shared, so the time moves with its load: the earlier run took 33 and 22 seconds. The limit is 300 seconds.Does a new gate of the stage job change this plan? Yes. #3716 added the gate
eval-replay(eval_replay_problemsinsrc/devops_cli/roadmap/stage_change.py). It refuses a plan that changesstage_change.pyand holds no group task that runsuv run devops roadmap eval stage --replayand states the score before and after. This change editsstage_change.py, so its plan now holds that task (task 1.3 oftasks.md).check_gatesnames the new gateeval-replay, and the pagedocs/roadmap/plan-recheck.mdlists it. The replay printedDefects that a gate judges: 69 of 305 (23%)andGood plans that every gate accepts: 3 of 3onorigin/mainand on the branch. The two outputs are equal, becausecheck_proposalreturns the same list as before.The report of
--branch HEADalso shows the gate at work: 16 refusals ofeval-replayon merged plans, each one a case to review. The branch adds no refusal to them.The work is on the local branch
feat/3498-plan-recheck-gate-compare. It is not pushed.dan-petty commentedon Nov 6, 2026
Answer from project standards, under the owner's instruction of 2026-11-05.
The branch is now on
origin/mainat 9fc5d8f (release 0.64.2). The rebase had no conflict. It changes two numbers of the comment above.Does the run fit the 5-minute rule (AGENTS.md rule 5)? Yes. On 2026-11-06,
uv run devops roadmap plan-recheck --source . --branch HEADtook 63 seconds of wall time. The host is shared, so the time moves with its load: earlier runs took 33 and 46 seconds. The limit is 300 seconds.Does the replay change? On the rebased branch,
uv run devops roadmap eval stage --replayprintedDefects that a gate judges: 69 of 306 (23%)andGood plans that every gate accepts: 4 of 4. The change adds no gate, so the count follows the cases thatmaingained.The narrow tests of
tests/roadmap/test_roadmap_stage_gates.py,tests/roadmap/test_roadmap_plan_recheck.pyandtests/commands/test_roadmap_plan_recheck_cmd.pypass. The fulldevops ciis not run yet. The work is on the local branchfeat/3498-plan-recheck-gate-compare. It is not pushed.devops-cli-service commentedon Nov 6, 2026
Released in v0.65.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.65.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 05:30 UTC