Skip to content

fix(roadmap): a later plan review judges each earlier finding - #5423

Merged
dan-petty merged 3 commits into
mainfrom
fix/5409-a-later-plan-review-judges-each
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/5409-a-later-plan-review-judges-each

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The plan review of the stage job and of the step fix-plan did not converge. Each review was a new sample that did not see the earlier findings or the answer of the planner, and the steps compared the open counts of two independent reviews. So one new finding on unchanged text kept plan/needs-fix.

Now each review after a repair is a later review. Its request also holds earlier, the open findings of the review before it, and answer, the blocks of plan lines that the revision added or changed (difflib). The reply gives each earlier finding the verdict holds or gone. A new finding is open only when its quote is in answer. A missing or conflicting verdict keeps a finding open. A repair round past the setting, and a revised or cleared result of fix-plan, need more fixed than added findings. The first review of a plan keeps its request, prompt and schema.

Closes #5409

Change: openspec/changes/archive/2026-11-13-5409-a-later-plan-review-judges-each/

The model review of a plan did not converge in the stage job and in
fix-plan. Each review was a new sample that did not see the earlier
findings or the answer of the planner, and the stage and fix-plan
decided on the counts of two independent reviews.

A review after a repair is now a later review. Its request holds
`earlier`, the open findings of the review before it, and `answer`,
the blocks of plan lines that the revision added or changed (difflib).
Its reply gives each earlier finding the verdict `holds` or `gone`.
A new finding is open only when its quote is in the changed text.
The extension of the repair rounds and the result of fix-plan decide
on the findings that the reviews fixed and added, not on two counts.
The first review of a plan keeps its request, prompt and schema.

Closes #5409.
… gone

A reply that gives one earlier finding both verdicts now keeps the
finding open, so a reply that breaks the rules never closes a finding.
The reply rule of the later prompt now says that it replaces the reply
rule of the pass. Wrap a long comment, fix two docstrings and undo two
import changes that changed no name.
Move the change of #5409 to the archive and merge its spec deltas into roadmap-stage/verification and roadmap-stage/fix-plan.
@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

Checks and evidence (head 2290f61)

  • uv run devops ci fail-to-pass --base origin/main: exit 0. 37 changed tests fail on the base and pass on the head, 0 errored. The three acceptance tests are among them: test_a_later_review_gets_the_earlier_findings_and_the_answer (TypeError on the base), test_a_new_finding_outside_the_changed_text_is_advice (ImportError on the base) and test_a_revision_that_fixes_the_head_finding_is_kept (AssertionError on the base: the result is not cleared and has no after; on the head the result is cleared with before=1 and after=0). The CI Fail-to-Pass Check run of this pull request is the cited run.
  • uv run devops ci --check --only lint,format,docs,openspec,constructs,test-tree,startup-imports,swallowed-failures,domain,git,test-settings,deps: all pass.
  • uv run mypy src: no issues in 844 source files.
  • uv run pytest tests/roadmap/stage tests/roadmap/steps tests/commands/test_roadmap_step_fix_plan.py tests/roadmap/refine tests/telemetry/test_roadmap_stage_steps.py tests/roadmap/test_roadmap_limit_classes.py: 3201 passed, 1 skipped.
  • openspec validate --all --strict: 344 passed. uv run devops openspec check: pass.

Recall of the golden defects

  • The first review of a plan keeps its request, its prompt and its reply schema byte for byte (test_a_first_review_keeps_its_request_and_its_prompt). So the golden-set score of devops roadmap eval verify cannot change through this change.
  • uv run devops roadmap eval verify --model deepseek-v4.1-flash-1017 --case 2166 --case 2169 (the Service model; the run stopped after 2 cases, at about 20 min for each case): recall 10/17, serious 6/9.
  • uv run devops roadmap eval stage --replay: each gate refuses what it must refuse; 6 of 6 good plans accepted.
  • Later review on the same 2 golden cases, plan not changed, earlier = the findings of an open type of the eval report (scratch script, not in the repository):
Case Earlier holds gone New findings Serious defects matched before Serious defects matched after
2166 3 3 0 0 2 2
2169 9 9 0 0 4 4

No recall loss on the golden defects. This run used the later prompt before one review fix, which added the clause "In a later review, this rule replaces the rule of the reply above". The clause changes no key and no verdict rule.

Render diff

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

Release

A release is necessary. The stage job and fix-plan run in the roadmap Service image, so the change takes effect after the patch release of this fix and the roll of the image. The change adds no setting and changes no manifest or ConfigMap. The log line stage review extended: now holds fixed=<n> added=<n> in place of before=<n> open=<n>. No dashboard, alert or test outside this change reads it.

Not in this pull request

Fixes of the review

  • judge_later: a reply that marks one earlier finding both holds and gone now keeps the finding open (test_an_earlier_finding_with_both_verdicts_holds, spec scenario "Two verdicts keep a finding").
  • roadmap_stage_verify_later.md: the reply rule now says that it replaces the reply rule of the pass.
  • Two spec scenarios whose names still named open counts got new names.
  • A long comment in constants.py is wrapped, two docstrings say "Empty" in place of "None", and two import changes that changed no name are removed.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 14:32
@dan-petty
dan-petty merged commit 68227f9 into main Nov 13, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5409-a-later-plan-review-judges-each branch November 13, 2026 14:35
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.129.1](v0.129.0...v0.129.1)
(2026-11-13)


### Bug Fixes

* **ci:** Accept copilot branches in the branch-name hook
([#5407](#5407))
([be2b71c](be2b71c))
* **roadmap:** a later plan review judges each earlier finding
([#5423](#5423))
([68227f9](68227f9))

---
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): a later plan review judges each earlier finding

1 participant