Skip to content

fix(roadmap): Keep the alternatives result in the body block only #6195

Closed

Description

@dan-petty

Problem

Area 2 of the parent item. _block_of (alternatives.py:942) writes the verdict, the skip class, _basis and _tool_line to the body block. _comment_of (:911) writes the same _basis and _tool_line to the comment; the _tool_line docstring (:827) says "the same line in the comment and in the block". A skip-class comment only repeats the verdict and class of the block. Refine then sends the record verdict and tool, the block and the comment (refine.py:664-679), so its model gets these facts three times. Refine also cuts the comment to CONST_ROADMAP_REFINE_MAX_REPLY_TOKENS, against the owner rule of 2026-11-17 on hard caps.

Live: 22 of 22 sampled alternatives comments repeat the block; the 6 not-applicable comments are 99% body text (1,554 of 1,788 B). Examples: #3885, #3827, #5319, #5318, #3655.

Expected behavior

  • The body block (between devops-roadmap-alternatives:start/end) holds the current result: date, verdict, class, basis, tool line, the model reason, Covers and Lacks.
  • The comment is an event. It posts only when _result_changed (alternatives.py:1410) is true. It holds the job marker, one line that says the result in the body block changed and what it was before, and the folded evidence of that run: tools considered, searches with result counts, every source. The body does not hold this evidence.
  • A skip-class check posts no comment.
  • Refine reads verdict, reason, covers and lacks from block. It still gets the latest alternatives comment (the evidence), in full, with no cut. For an item checked before this change, the old comment still holds covers and lacks, so refine keeps them.
  • roadmap_refine_proposal.md lines 1 and 13 name block as the source of covers, lacks and the tool. The prompt tells the model to cite the block, not to restate it, and not to write "no alternatives check has run" when the block holds a result (feat(roadmap): devops review runs in the runner shell #3827, feat(research): agent judges findings with read tools #3909).
  • The bigger block grows the body. Intake compares raw bodies (intake.py:820 _Entry(..., issue.body) into nearest.py:16), so job text in the block makes more false duplicate flags. Use body_hash.py:56 text_of_a_person, as consolidate.py:386 does.
  • request_plan.py:574 (alternatives dry run) shows no comment for a skip class.
  • A contract test builds the block and the comment from one input and fails when a content line of the comment is in the block.

Related

Source: #6193

Activity

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

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    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
  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