Skip to content

fix(roadmap): Write each job fact in one place on an issue or pull request #6193

Open
7 of 8 issues completed

Description

@dan-petty

Problem

Owner rule, 2026-11-17: "ensure no job posts duplicate content to issues and pull requests, if content is in the body of an issue it should not be in a comment as well".

An audit of origin/main 319cdb8 (60 cases on 25 issues and 15 PRs, every write site of the roadmap jobs) found 10 places where a job writes the same content two or more times:

Expected behavior

  • Each fact has one place. The current state of an item is in the body (a job section or block) or in one state comment that the job edits in place. An event comment holds only the facts that no other place holds, and a link or a section name for the rest.
  • An event comment posts only when its facts differ from the last event of that job and key.
  • Every reader of the moved content reads it at its kept place. No job loses context. No filter, cut or length refusal.
  • Old comments stay on GitHub. Readers accept the old and the new shapes.
  • The dry-run request plans of each job show the new requests.
  • A test fails when a job comment repeats a content line of the body, and when code outside the shared writer posts a job comment.

Areas (one sub-issue each)

  1. Implement: stop report once on the issue; PR run comment with a link and one table; Service Job report only when the runner left no result.
  2. Alternatives: the body block holds the result; the comment is an event with the search evidence.
  3. Refine: short event comments on a change of the result; deferrals and watched files in the section.
  4. Stage and fix-plan: one plan-state comment for each plan PR; event comments for runs and attempts.
  5. Intake and retitle: no Related line for a number in the body; no Priority value; no After line.
  6. CI and PR comments: job-time alarm edits its body block; one conflict comment per PR; one AI review comment per head.
  7. Shared job-comment writer, marker registry and invariant tests (last).

Related

Alternatives check of 2026-12-01: none.
Tool: none found.
Reason: Searches found only two GitHub Actions that edit one comment in place. Neither runs in the Python job pods. No tool removes a line that the body already holds, keeps a marker registry or tests the writer.

Lacks:

  • No Python API to find and edit a job comment
  • No check that a comment line repeats body text
  • No marker registry shared by the jobs
  • No per-head identity for a review comment
  • No test that refuses a write outside the writer

Sub-issues

Sub-issues

7 of 8 Issues completed
Loading 8 sub-issues

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    value/medium
    effort/high
    priority/p2-medium
    on Nov 17, 2026
  4. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • github-comment CLI create or update comment with marker suzuki-shunsuke, results: 5
    • tool upsert GitHub issue comment update in place marker hidden idempotent, results: 5
    • "sticky-pull-request-comment" action update comment, results: 5
    • suzuki-shunsuke github-comment CLI tool, results: 5
    • probot comment update existing comment marker, results: 5
    • GitHub App bot comment deduplication library python, results: 5
    • danger-js comment deduplication sticky comment, results: 5
    • peter-evans create-or-update-comment GitHub Action, results: 5
    • "github-comment" hidden comment marker idempotent post, results: 5
    • upsert comment GitHub API hidden marker bot avoid duplicate comments, results: 5

    Sources:

  5. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: partly, tool https://github.com/suzuki-shunsuke/github-comment. A person decides what the new result means for the item.

    Searches (10)

    Searches run:

    • python library upsert GitHub issue comment marker deduplicate bot comments, results: 5
    • GitHub action create or update comment in place with hidden marker identifier, results: 5
    • marocchino sticky-pull-request-comment, results: 5
    • peter-evans create-or-update-comment find-comment action, results: 5
    • "sticky pull request comment" GitHub action update existing comment, results: 5
    • GitHub comment deduplication tool bot, results: 5
    • thollander actions-comment-pull-request identifier, results: 5
    • github actions update existing comment marker <!-- -->, results: 5
    • probot sticky comment plugin, results: 5
    • "create-or-update-comment" peter-evans, results: 5

    Sources:

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/agentstatus/newtype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions