Skip to content

fix(roadmap): fix-plan compares the revision with a review of the head - #5160

Merged
dan-petty merged 2 commits into
mainfrom
fix/5150-fix-plan-head-review-baseline
Nov 12, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5150-fix-plan-head-review-baseline

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The step fix-plan compared the count of open findings of the last plan comment, which an earlier review wrote at an earlier commit, with the last review of the revision. Two reviews of one plan can find different counts: on #4980 the comment listed 1 open finding and a review of the same head plan found 2, so the attempt reported a revision with 2 open findings as worse.

Now each attempt reviews the head plan with the verification pass at the latest default branch and compares the last review of the revision with that review. The planner gets the open findings of that review and of the comment. A head plan with no open finding in its review loses the label with no plan call. The result line and the report of the command also show the count of the comment.

Closes #5150

Change: openspec/changes/archive/2026-11-12-5150-fix-plan-compares-the-revision-with/

The step reviews the head plan in each attempt and compares the last review of the revision with that review, not with the count of the last plan comment, which an earlier review wrote. The planner gets the open findings of the review and of the comment, and the result line reports the count of the comment.

Closes #5150.
@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 12, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

  • uv run devops ci fail-to-pass --base origin/main: 6 changed tests fail on the base and pass on the head. The test of the defect fails on the base with assert (unchanged, 1, 1) == (revised, 2, 1): with the real stage comment of fix(github): Fix check-readiness base and monitor merged state #4980 (1 open finding), a review of the head with 2 open findings and a revision with 1, the base compares 1 with 1 and pushes nothing.
  • uv run devops ci test tests/roadmap/steps/ tests/roadmap/stage/ tests/commands/test_roadmap_step_fix_plan.py tests/roadmap/test_job_result.py tests/lang: 2614 passed, 1 skipped.
  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-tree: pass. mypy on the changed source files: no issue.

Evidence

The first live attempt (Job devops/fix-plan-validate-4980, 0.119.0) ended unchanged: 1 open finding(s) before the repair, 2 after it. The 1 came from the stage comment of 08:34Z. One review of the same head 89b5e650822f with the Service verification model deepseek-v4.1-flash-1017, the code of 0.119.0 and the default branch of the Job (22176a02be18) found 2 open findings: false_premise at specs (the defect that the comment lists as criterion_dropped) and verify_form at group 3, which the comment does not list. So the revision (2) was not better than the head, but not worse.

Cost of the change: one more review for each attempt on a plan whose comment lists a finding (about 3.3M tokens, 96% cache reads, and 9 minutes on #4980). An attempt whose head review is clean now makes no plan run.

Service code: the owner merges after a "safe and vetted" call.

@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 17:33
@dan-petty
dan-petty merged commit 490513f into main Nov 12, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/5150-fix-plan-head-review-baseline branch November 12, 2026 17:35
dan-petty pushed a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.121.1](v0.121.0...v0.121.1)
(2026-11-12)


### Bug Fixes

* **roadmap:** fix-plan compares the revision with a review of the head
([#5160](#5160))
([490513f](490513f))

---
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): fix-plan compares the revision with a review of the head

1 participant