Skip to content

fix(roadmap): fix-plan records the true result of each attempt - #5279

Merged
dan-petty merged 5 commits into
mainfrom
fix/5213-fix-plan-records-the-true-result
Nov 12, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/5213-fix-plan-records-the-true-result

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The step fix-plan logged results that did not occur, and it lost work. On #4917 the checks refused the head, the planner wrote a plan that passed them, and a clean review of that plan removed the label with no push. On #4963 the reader refused the head, and the step logged a review that did not run.

Now the step reads the head before the attempt marks: a refused plan ends unreadable, uses no attempt and writes no result line. The revision keeps the gated plan and the findings of the head review on a failure, and a gated plan that differs from the head is pushed (regated). The results are stopped, failed, revised, cleared, regated, dismissed and unchanged, and only revised and cleared are a success. The result line holds before and after only when the attempt measured them, and the head review skips the screen.

Closes #5213

Change: openspec/changes/archive/2026-11-12-5213-fix-plan-records-the-true-result/

The tests replay the heads of #4917, #4963 and #5032 with their real stage comments, and hold each result of an attempt: unreadable, stopped, failed, regated, dismissed and unchanged.
The step reads the plan of the head before the attempt marks, and a plan that the reader refuses ends unreadable with no attempt and no result line. The revision keeps the gated plan and the findings of the head review on a failure, so the step pushes a plan that the checks pass in place of a refused head (regated). The results are stopped, failed, revised, cleared, regated, dismissed and unchanged, in that order, and only revised and cleared are a success. The result line holds before and after only when the attempt measured them.
@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

Validation

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main (base 7a158c4, 0.124.0): 17 tests fail on the base and pass on the head, 41 pass on both, 0 errors. These guards pass on both, as #5213 says: test_an_unreadable_head_waits_six_hours (the base writes fix_plan.at before the read), test_fix_plan_counts_only_a_pushed_repair_as_success, and the replays of #4963 and #5032 (the reader of #5205 reads them on the base too). The replay of #4917 fails on the base and passes on the head.

The result of each live attempt, then and with this change

The Job logs are gone. The evidence is the fix-plan comments on #4472 and #4945, the records of #2968, #4472 and #2530, and the validation file of the tracker #5211. #4917, #4963 and #5032 run as replay tests on their real heads and stage comments. #5053 and #4980 run through _decide of this branch with the recorded counts.

Attempt Recorded evidence Result then Result with this change
#4917 (item #4472), 2026-11-12 18:39Z, head ba8cc66fd2f4 The checks refused the head. The planner wrote a plan that passed them (3 plan calls, 2 gate returns, 7,567,057 tokens). The review of that plan found 0 open findings. The stage comment listed 1. cleared, success=true. No push. The label went, and the comment said "The plan stays as it is", so the branch kept the refused plan. regated, success=false. The gated plan is one commit on the latest main, and the label goes (clean review, no failed step). Line: comment=1 before=0, no after.
#4963 (item #2968), 2026-11-12 17:58Z, head 9c4b2cf75c64 The plan reader refused group 3 (a manifest group read as behavior). No review ran. failed, class plan_defect, before=0 after=0 comment=0. 1 of 2 attempts used, and the line lowered the fix_plan grade. With the reader of that release: unreadable. One warning names tasks.md and the reason, only fix_plan.at and fix_plan.result change, no attempt is used, and no result line is written. With the reader of 0.123.1 (#5205): the head reads, the comment gives comment=2, and the head review runs. The pull request is closed now.
#5053 (item #4945), 2026-11-12 19:23Z The review of the head found 2 open findings. The revision is another plan, and its review found 1. The step pushed 3b7b21a20fc8. revised, success=true. Push. The label stayed. revised, success=true. The same push, and the label stays.
#4980 (item #2530), 2026-11-12 15:52Z, 0.119.0, head 89b5e650822f The checks passed the head. The stage comment listed 1. A review of the head found 2, and the review of the revision found 2. unchanged, with before=1 from the comment (before #5150) and after=2. unchanged, success=false. No push, and the label stays. Line: comment=1 before=2 after=2.

Selection with no --confirm

uv run devops roadmap step fix-plan --pull <n> with no --confirm (no model call, no write), 2026-11-12 about 23:20Z, for each open plan pull request with plan/needs-fix. #4963, #5032 and #5053 are closed.

Pull request origin/main 7a158c4 This branch
#4917 Left out: the last attempt of #4472 was at 17:58:10Z, less than 6 hours ago. The same.
#4980 Left out: the last attempt of #2530 was at 22:41:52Z, less than 6 hours ago. The same.

The record of #2530 holds 2 attempts on head 89b5e650822f, fix_plan.at 22:41:52Z and no fix_plan.result, so an attempt started at 22:41Z and recorded no result. After the merge and the release, the App Jobs of #4917 (and of #4980 when a new head comes) add their rows.

Changes from the issue text

  • ADR 0021 gets one Status History line and no edit of the fix-plan row of section 8. docs(adr): add MADR front matter, a Status History and the ADR rules #5270 (in 0.124.0) does not let a pull request edit the body of an accepted record.
  • revise_plan passed no read of the open plans to the planner, so the planner never stopped on an open blocker in this step. The step now passes the read that the stage job uses (open_plan_creates), so the stop blocked is real and a test drives it.
  • The dry run also lists the GraphQL read of the open pull requests that the planner makes when the item cites a path.

@dan-petty
dan-petty force-pushed the fix/5213-fix-plan-records-the-true-result branch from d8db23c to cd56ea2 Compare November 12, 2026 23:33
@dan-petty
dan-petty marked this pull request as ready for review November 12, 2026 23:40
@dan-petty
dan-petty merged commit 4a5a118 into main Nov 12, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/5213-fix-plan-records-the-true-result branch November 12, 2026 23:40
dan-petty-release Bot added a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.125.0](v0.124.0...v0.125.0)
(2026-11-12)


### Features

* **monitoring:** build service dashboards from one SRE template
([#5280](#5280))
([0fe31a6](0fe31a6))


### Bug Fixes

* **roadmap:** fix-plan records the true result of each attempt
([#5279](#5279))
([4a5a118](4a5a118))

---
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 records the true result of each attempt

1 participant