Skip to content

fix(roadmap): a job posts no comment that repeats a recent one #4793

Closed

Description

@dan-petty

Problem Description

A roadmap job posts the same comment again on one item. The census of 2026-11-11 counts 34 repeat refine comments on open items. On dotfiles #2, the implement checks posted 44 "Cleared the stop at docs" comments and 29 "Stopped at docs, ci_infra" comments from 2026-11-01 to 2026-11-04.

No shared guard refuses a repeat. ADR 0021 requires a test harness that stops a job after each GitHub write and runs it again. No code has this harness.

Reproduction Steps

  1. Read the comments of dotfiles feat(release): v0.1.8 #2. The same two texts occur 73 times.
  2. Find an open item with two refine comments that hold the same text. The census found 34.

Expected vs Actual Behavior

  • Expected: a job posts a marked comment only when the facts change.
  • Actual: a job posts the same text on each run.

Proposed Solution

  • In the store post path, keep a normalized body hash for each job marker and item in the job record.
  • Refuse a marked comment whose hash is the same as the hash of a comment of the same job on that item in the last 7 days.
  • Count each refusal in devops_cli_roadmap_comment_repeats_refused_total{job}.
  • Add the implement marker to CONST_ROADMAP_JOB_COMMENT_MARKERS.
  • Add a test harness on InMemoryRoadmapStore that stops a job after each GitHub write and runs it again (ADR 0021).

Existing Tool Considered

No GitHub feature refuses a repeat comment. hashlib gives the hash. Cost to build: about 100,000 tokens and 3 hours.

Acceptance Criteria

  • A replay test posts a refine comment one time and refuses the same text the second time.
  • A changed fact posts a new comment.
  • The harness runs the refine and stage jobs with a stop after each write, and the second run writes nothing new.
  • The counter has 12 series or fewer.

Dependencies

None. The resolve, group and split children of #4780 use this guard.

Source: #4780

Activity

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The defect wastes API quota and clutters threads but does not block delivery of any item.
    • Value: Medium. It removes 34 confirmed repeat comments and prevents future ones across all roadmap jobs.
    • Effort: Medium. The body estimates about 100,000 tokens and 3 hours for the hash guard, counter, marker update, and ADR 0021 harness.
    • Related: fix(roadmap): alternatives posts a comment only when its verdict changes #4054, which asks for a different change. Both prevent repeat comments on roadmap items, but #4054 fixes only the alternatives path by comparing verdict and tool, while the candidate adds a store-level hash guard for all jobs.
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 12:40 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/mediumpriority/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