Repository navigation
fix(roadmap): One plan-state comment for each plan PR - #6209
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 17, 2026 18:41
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
force-pushed
the
fix/6197-plan-state-comment
branch
from
November 17, 2026 18:52
9bfb2fc to
ec03310
Compare
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyedits the comment in place through the newRoadmapStore.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_commentreads 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.GROUPSgoes, 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/