Skip to content

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

Description

@dan-petty

Problem

Area 4 of the parent item. Each stage and restage posts a new full stage comment (stage.py:4012 calls store.comment), and the old one stays. Both hold the same branch, PR and groups (#3717: 10.7 KB and 23.6 KB, 40 min apart, both for PR #5945). Each fix-plan attempt (fix_plan.py:1017) posts a new issue comment that lists again the open findings, because plan_comment (fix_plan.py:453) reads only the newest comment. The record key stage.groups (stage.py:3990, :4065) repeats the group list, and no code reads it.

Expected behavior

  • One plan-state issue comment for each plan PR, keyed by the PR number and edited in place. It holds the branch, the PR, the groups with their tokens, the open findings and the advisory findings. Stage writes it on stage and restage; fix-plan rewrites its findings part after each attempt.
  • Each stage or restage run posts an event comment with the facts of that run that no other place holds: moved paths, run report, overlap reads, comments held, not-validated, warnings, label notes. No groups and no findings.
  • Each fix-plan attempt posts an event comment with the result, the counts before and after, the regated reason (_regated_why), the dismissed findings, the stop evidence (_stop_evidence), the timeout step and counts, and the advice section (fix_plan.py:903-962). It has no open-findings list.
  • plan_comment reads the state comment by its key. For a PR staged before the change, fix-plan builds the state comment from the newest legacy comment that holds findings, and the fallback skips event comments. plan_drift.py:193 and steps/review_facts.py:348 keep working through plan_comment. Check repair.py:131 and :143 (filler return).
  • IssueComment (stores/store.py:684) gets updated_at. item_comments.held_comments orders a state comment by its last edit, so the stage and implement models read it in full as a recent comment.
  • The index label in item_comments.py:136-141 skips every <!-- line, so a hidden key line does not hide the content.
  • Remove StageRecordKey.GROUPS and its writers. Update the eval fixtures tests/fixtures/roadmap_eval/stage/*/issue.txt.
  • request_plan.py:863 and :963 (stage and fix-plan dry runs) show the upsert and the event comments.

Related

Source: #6193

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/high
    on Nov 17, 2026
  2. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 17, 2026
  4. removed
    status/in-progress
    on Nov 17, 2026
  5. added a commit that references this issue on Nov 17, 2026
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 19:36 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions