Skip to content

fix(roadmap): One plan-state comment for each plan PR - #6209

Merged
dan-petty merged 4 commits into
mainfrom
fix/6197-plan-state-comment
Nov 17, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/6197-plan-state-comment

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

The stage job and the step fix-plan keep one plan-state comment on the issue for each plan pull request: the branch, the pull request, the task groups with their tokens, the open findings and the advice. A hidden key line names the pull request, and the upsert of steps/comment.py edits the comment in place through the new RoadmapStore.edit_comment. Each stage run and each fix-plan attempt also posts a comment with the facts of that run only, with no copy of the groups, the open findings or the advice. plan_comment reads the state comment by its key. For an older pull request it reads the newest legacy comment and skips the comments of a run. The jobs read the state comment at the time of its last edit, and the index label skips hidden lines. StageRecordKey.GROUPS goes, because no code read it. So the issue keeps one copy of each fact (#6193).

Closes #6197

Change: openspec/changes/archive/2026-11-17-6197-plan-state-comment/

@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 17, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 18:41
@dan-petty
dan-petty enabled auto-merge (squash) November 17, 2026 18:42
The stage job and the step fix-plan keep one plan-state comment for each plan pull request, keyed by its number and edited in place through the upsert of steps/comment.py and RoadmapStore.edit_comment. Each run posts a comment with the facts of that run only. plan_comment reads the state comment by its key, and for an older pull request the newest legacy comment, never the comment of a run. held_comments orders a state comment by its last edit, and StageRecordKey.GROUPS goes.
… comment only

The comment of an attempt listed the advice of its reviews, and the plan-state comment listed the same lines. The advice is now only in the state comment, and the comment of the attempt says so in one sentence. A contract test builds both comments from one attempt and fails when a line of text of the comment of the attempt is in the state comment.
@dan-petty
dan-petty force-pushed the fix/6197-plan-state-comment branch from 9bfb2fc to ec03310 Compare November 17, 2026 18:52
@dan-petty
dan-petty merged commit 32a0df2 into main Nov 17, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/6197-plan-state-comment branch November 17, 2026 19:01
dan-petty pushed a commit that referenced this pull request Nov 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.173.3](v0.173.2...v0.173.3)
(2026-11-17)


### Bug Fixes

* **ci:** Let npm audit ignore a no-fix finding until a date
([#6205](#6205))
([b1a0266](b1a0266))
* **ci:** Show the row name in every gate row line
([#6188](#6188))
([319cdb8](319cdb8))
* **git:** Give the branch-current fetch a 24 second limit
([#6190](#6190))
([a116fa2](a116fa2))
* **github:** Retry a timed-out gh auth token lookup
([#6201](#6201))
([ffa602f](ffa602f))
* **roadmap:** Keep the alternatives result in the body block only
([#6208](#6208))
([6cb6e23](6cb6e23))
* **roadmap:** Leave other job comments out of the alternatives request
([#6192](#6192))
([e6f5718](e6f5718))
* **roadmap:** One plan-state comment for each plan PR
([#6209](#6209))
([32a0df2](32a0df2)),
closes [#6197](#6197)

---
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): One plan-state comment for each plan PR

1 participant