Skip to content

fix(roadmap): only blocker and major review findings block a plan - #5557

Merged
dan-petty merged 5 commits into
mainfrom
fix/5411-finding-severity
Nov 13, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/5411-finding-severity

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Each finding of the model review of a plan now has a severity: blocker, major, minor or nit, as in the golden set. Only a blocker or a major finding is open. So only such a finding returns the plan to the planner, keeps plan/needs-fix, counts in the decisions of fix-plan and refuses an item of a bot in refine. A minor or a nit finding is advice in the comment. Plan pull request #4917 kept the label for one minor finding that one line of the plan fixes.

The comment line starts with the severity, and fix-plan reads a line with no severity from an older release as a major finding. The prompt describes the four severities, and spec_delta_wrong now needs a scenario where no test can assert any part of its THEN. devops roadmap eval verify states a ceiling of the findings that return a good plan, next to the recall floor, so recall cannot grow by returned good plans.

Closes #5411

Change: openspec/changes/archive/2026-11-13-5411-only-blocker-and-major-review-findings/

@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 13, 2026
@dan-petty

dan-petty commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner Author

Evidence for #5411

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main (exit 0, at origin/main 97d4f12): 50 tests fail on the base and 5 test modules stop at collection on the base, among them tests/roadmap/stage/test_roadmap_stage_verify.py (holds test_a_minor_finding_is_advice) and tests/roadmap/stage/test_roadmap_stage_verify_eval.py (holds test_the_report_gates_good_returning). Both tests pass on the head.

devops roadmap eval verify, cases 2166 and 2169, deepseek-v4.1-flash-1017, one run at a time

Run 2166 serious 2169 serious Serious recall All recall Findings Returning
Base, 17:23Z 3 of 4 failed 4 times (connection reset, #5527) 3 of 4 (2166 only) 5 of 8 (2166 only) 6 (2166) 4 (2166)
Earlier runs of today with no severity: the pass before #5410 (13:43Z, 15:06Z) and the pass of #5410, which the base holds (15:30Z, 16:24Z) 2, 2, 3, 3 of 4 4, 4, 3, 4 of 5 6, 6, 6, 7 of 9 10, 9, 10, 11 of 17 16, 15, 21, 18 12, 9, 15, 14
Head, 17:52Z 3 of 4 5 of 5 8 of 9 (89%) 13 of 17 (76%) 22 12

By the match of the eval, which reads the type and not the severity, the head finds 8 of 9 serious defects against 6 to 7 of 9 for the pass with no severity. A serious defect keeps a draft only when a blocker or a major finding finds it. By that count the head finds 6 of 9. Each finding of the pass with no severity was open, so its 6 to 7 of 9 compare with that count: the head is at the low end of the range of the runs with no severity. Two cases cannot show a difference of one defect, because one pass alone varies from 2 to 3 of 4 on 2166. The 2 others (2169, spec_delta_wrong and other) matched a minor finding about a different defect of the same type: one part of a THEN that no test can assert, and a missing conversion of a loop. The head graded 6 of 22 findings minor and none nit. The floor of 90% stays unmet, as on the base (#4402).

Good plans: the new ceiling

Head, 19:16Z to 21:22Z, the 6 good cases (good-3410 ran again after a connection reset, #5527): 27 findings, 9 return a plan, a mean of 1.50 for each good plan. 6 of the 9 are on good-3264. The 4 plans good-2491, good-2735, good-2739 and good-2950 got 15 findings and 1 returning finding: 12 of the 15 are minor or nit. With no severity (2026-11-10, same model), the pass gave 14 returning findings on 5 good plans, 2.8 for each plan; on the same 5 plans the head gives 8.

CONST_ROADMAP_VERIFY_GOOD_RETURNING_CEILING is 2.0. The returning findings of the cases 2166 and 2169 varied from 9 to 15 between runs of one pass today, about a third, so 2.0 holds the head (1.50) with that variance, and the count with no severity (2.8) does not. The report of the head:

Findings on the good plans: 27 on 6 plan(s). 9 of them would return a plan to the planner.
Ceiling of the findings that return a good plan: 2.00 for each good plan. The mean of 1.50 does not pass it.
Cases by end: verified 6, failed 0.

Validation on real plan pull requests (read-only)

The first review of the head ran on the plan that the stage job staged for each item, at the commit that the planner read (stage.sha of the item record). No write to GitHub.

Release and next step

The Service and the fix-plan Jobs run the image, so the change needs a release. After the release, the owner-approved step D9 sets roadmap.fix_plan.mode to on. The first attempts then read the comment lines of the open plan pull requests in the old form as major findings (for example #5449).

Later review (rule of docs/ROADMAP_WORKFLOW.md for roadmap_stage_verify_later.md)

This change adds the key severity to the earlier findings of a later review, and the later review reads the changed prompt of the pass. So the review replayed one later round of the head on the cases 2166 and 2169 with deepseek-v4.1-flash-1017, as #5423 did for #5409 (scratch script, not in the repository). The plan does not change, so answer is empty. earlier holds the findings of the head report above of an open type and of the severity blocker or major whose place the plan holds.

Case Earlier holds gone New findings Open after Serious defects matched before after
2166 5 5 0 0 5 3 3
2169 7 7 0 0 7 3 3

The base run of #5423 on the same cases gave the same result with its own earlier findings (2166: 3 of 3 hold, 2169: 9 of 9 hold, no new finding). The later review closes no blocker or major finding of a plan that did not change.

Fix of the review

  • The spec of roadmap-stage-eval requires the key good_returning_mean in the JSON report, and no test asserted it. test_the_json_report_holds_the_mean_of_the_findings_that_return_a_good_plan now checks the mean of two good plans (1.5) and null for a run with no good plan. Task 3.1 names it.
  • CI shard 2 of a5d1b5b failed tests/roadmap/test_roadmap_limit_classes.py::test_every_numeric_limit_of_the_roadmap_jobs_has_a_class: AssertionError: ... ['CONST_ROADMAP_VERIFY_GOOD_RETURNING_CEILING'] != []. Each numeric CONST_ROADMAP_ constant needs a class. The ceiling now has the class other, a score bar of the eval, as the recall floor has. Task 3.2 names it.

Checks of the review (base origin/main 97d4f12)

  • uv run devops ci --check --only lint,format,domain,typecheck,docs,openspec,test-tree,swallowed-failures,constructs,startup-imports: all pass.
  • uv run devops ci test tests/roadmap/stage tests/roadmap/steps tests/roadmap/refine tests/roadmap/test_roadmap_failure.py tests/roadmap/test_roadmap_repair.py tests/commands/test_roadmap_eval_screen.py tests/commands/test_roadmap_step_fix_plan.py tests/telemetry/test_roadmap_stage_steps.py tests/roadmap/test_roadmap_labels_file.py: 3441 passed, 1 skipped, at the head of the builder. At the final head d628ff3 (on origin/main 7adcb33), uv run devops ci test tests/roadmap/test_roadmap_limit_classes.py tests/roadmap/stage/test_roadmap_stage_verify_eval.py: 79 passed. uv run devops ci test tests/roadmap/stage/test_roadmap_stage_registry.py tests/telemetry/test_telemetry_instruments.py tests/grafana/test_grafana_dashboards.py tests/config, the other tests that read each constant: 498 passed. The pre-push hook passed.
  • uv run devops openspec check: pass.

Render diff

No path under k8s/ changes. There is no kustomize or helm render difference and no restart.

After the merge

  • Live proof of the issue: after the release, the stage review runs as the App on the open plan pull requests of the Service bot, and a comment gives the review verdicts and the severity of each blocking finding.

Plan the severity of a review finding: a required field of the reply, an open rule for blocker and major findings only, the advice of fix-plan, and a ceiling of the findings that return a good plan in the verify eval.
Each finding of the model review of a plan now has a severity: blocker, major, minor or nit, the grades of the golden set. Only a blocker or a major finding is open, so only such a finding returns the plan, keeps the draft with plan/needs-fix, counts in the decisions of fix-plan, and refuses an item of a bot in refine. A minor or a nit finding is advice in the comment. A later review opens a new finding by the same rule. The comment line starts with the severity, and fix-plan reads a line with no severity as a major finding.

The spec_delta_wrong rule of the prompt now needs a scenario where no test can assert any part of its THEN. devops roadmap eval verify states a ceiling of the findings that return a good plan, as a mean for each good plan, next to the recall floor.
…rning findings

The spec of roadmap-stage-eval requires the key good_returning_mean in the JSON report, and no test asserted it. The test checks the mean for two good plans and null for a run with no good plan.
…score bar

test_every_numeric_limit_of_the_roadmap_jobs_has_a_class needs a class for each numeric CONST_ROADMAP_ constant. CONST_ROADMAP_VERIFY_GOOD_RETURNING_CEILING is a score bar of the verify eval, as CONST_ROADMAP_VERIFY_RECALL_FLOOR is, so it has the class other.
Move the change of #5411 to the archive and apply its spec deltas to roadmap-stage/verification, roadmap-stage/fix-plan, roadmap-refine/review and roadmap-stage-eval.
@dan-petty
dan-petty force-pushed the fix/5411-finding-severity branch from a5d1b5b to d628ff3 Compare November 13, 2026 21:54
@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 22:05
@dan-petty
dan-petty merged commit 75d45b5 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5411-finding-severity branch November 13, 2026 22:12
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.133.0](v0.132.1...v0.133.0)
(2026-11-13)


### Features

* **roadmap:** run each stage item in its own Job
([#5559](#5559))
([b771fc4](b771fc4))


### Bug Fixes

* **cli:** Print the elapsed line only on a terminal
([#5554](#5554))
([5dc5882](5dc5882))
* **roadmap:** only blocker and major review findings block a plan
([#5557](#5557))
([75d45b5](75d45b5))

---
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): only blocker and major review findings block a plan

1 participant