Skip to content

fix(roadmap): Implement writes its stop report once, on the issue #6194

Closed

Description

@dan-petty

Problem

Area 1 of the parent item. Implement writes its stop report two or three times.

  • implement_run.py:2125 gives the stop text to the PR run comment as extra, and :2126 posts the same text as an issue comment. _comment (:1730) then adds summary_table after extra, and extra already holds _stop_table (:1845). The PR comment shows the step table two times (PR feat(roadmap): Add a loopback gateway broker to a step #6157, lines 30-38 and 48-56).
  • After each runner Job ends, implement_submit.py:358 _report posts another issue comment with the last 40 log lines. It posts also when the runner already posted its stop comment (:2126) or its finished comment (:2007). The log tail repeats the end lines of the runner ("Failure class provider. Action left: retry."), and the digest repeats record implement.job_digest.
  • The review step does the reverse: steps/review.py:563-569 posts only "The review discarded pull request #N" on the issue. The judgement and evidence are only in the PR comment (steps/review.py:473-475), which item_comments.held_comments and refine do not read.

Live: #3827 / PR #6166 (21,361 B and 21,616 B in the same minute), #3902 / PR #6169, #3885 / PR #6150; #3885, #3827, #3902, #3717 and #1928 hold Job reports after a stop.

Expected behavior

  • The issue stop comment holds the stop report: the failure reason, the end of the check log, the last agent message, the discarded diff and the retry instructions. It is the only copy. Only issue comments reach the models and retry_asked (item_comments.py:121).
  • On a stop, the PR run comment holds one link line ("Stopped at . The stop report is on #: .") and the lines only it holds: amendments, skipped steps, scoped runs, strength and check lines. It has no second step table. A finished run keeps its table on the PR.
  • Post the issue comment first, so the PR line can link it. comment() in stores/github_store.py:1055, stores/store.py:1275 and the fake tests/support/fakes/roadmap_store.py:600 return the comment URL (or the URL of the earlier comment when the repeat guard refuses it).
  • _report posts its comment only when the runner left no result (_settles_as_stop(item) is true at implement_submit.py:220, or the Job is gone). Otherwise it writes only the record marks.
  • retry_asked (implement.py:260) and stop_clear.py:375 still work: a person's "implement: retry" after a stop is used once, and a retry does not loop. Add a test for this.
  • The review discard reason goes to the issue comment. The PR comment gets a link line.
  • request_plan.py:1131 and :1139 (implement dry run) show the new order.

Related

Source: #6193

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    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. added
    status/in-review
    and removed
    status/in-progress
    on Nov 17, 2026
  5. removed
    status/in-review
    on Nov 17, 2026
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 20:02 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