Skip to content

fix(roadmap): Label other job comments in the alternatives request #6203

Closed

Description

@dan-petty

Problem

#6192 (closes #4960, merged 2026-11-17) fixed a real bug: the alternatives request sent the comments of other roadmap jobs to its model as person replies. Its fix drops every job-marker comment from the request through the shared filter. That conflicts with the owner rule of 2026-11-17: "no fancy ignore system or hard character caps that will cause jobs to fail or miss context like alternative checks, service improvement suggestions, failure reasons on previous attempts, etc". The alternatives model now gets no refine proposal, intake reason or failure reason of another job.

Expected behavior

  • The alternatives request keeps the comments of other jobs, labeled as job comments (by job), apart from the replies of persons. No job comment is dropped.
  • A person's reply still counts as a person's reply; a job comment never does.
  • The comments use the form of fix(roadmap): give stage and implement the item comments #6182: newest in full, an index of the older ones, and read_comment for any comment in full, when they do not all fit.
  • A test shows an intake reason comment that reaches the model as a job comment and not as a person reply.

Related

Alternatives check of 2026-11-18: none.
Tool: none found.
Reason: Searches returned only generic documentation pages, no maintained library that separates job-marker comments from person replies or builds an indexed comment window; the change belongs in the project's own comment assembly.

Lacks:

  • No library labels each job comment with its job name
  • No library splits job comments from person replies
  • No library provides the newest-whole plus index window
  • No generic tool replaces the project's own request assembly

Proposed design

Problem statement

The alternatives request drops every comment of another roadmap job. Its model then misses a refine proposal, an intake reason and a failure reason. The change keeps each job comment, labels it with its job, and separates it from person replies. It uses the existing comment window and read_comment.

Acceptance criteria

Requirement: Job comment keeps its job label

The alternatives request SHALL keep each comment of a roadmap job and SHALL label it with the name of that job.

Scenario: An intake reason reaches the request

  • WHEN the item has an intake reason comment and the alternatives request is built
  • THEN a test in tests/roadmap/test_roadmap_item_comments.py asserts that the request holds the comment in job_comments with job intake.

Requirement: Person reply stays apart

The alternatives request SHALL put a person's reply in replies and SHALL NOT put a job comment there.

Scenario: A person reply and an intake reason on one item

  • WHEN the item has one person reply and one intake reason comment
  • THEN a test in tests/roadmap/test_roadmap_item_comments.py asserts that replies holds only the person reply and job_comments holds only the intake reason.

Requirement: No job comment is dropped

The shared comment filter SHALL return every comment of a roadmap job and SHALL NOT drop one.

Scenario: Each job marker is kept

  • WHEN a comment holds the marker of a roadmap job, such as an intake reason or a stage plan
  • THEN a test in tests/roadmap/test_roadmap_item_comments.py asserts that held_comments returns the comment with the job name of its marker.

Requirement: Job label comes from the marker

The shared comment filter SHALL classify a job comment by its job marker and SHALL NOT use the author account.

Scenario: A person writes a job comment

  • WHEN a person with write access writes a comment that holds an intake reason marker
  • THEN a test in tests/roadmap/test_roadmap_item_comments.py asserts that held_comments gives the comment job intake and that replies does not hold it.

Requirement: Comment window of #6182

The alternatives request SHALL show the newest comments whole, SHALL give one index line for each older comment while the index fits, and SHALL name read_comment for any comment not given whole.

Scenario: The comments exceed the room

  • WHEN the comments of the item exceed the token room of the alternatives request
  • THEN a test in tests/roadmap/test_roadmap_item_comments.py asserts that the newest comment is whole, older comments that fit have index lines, and the request names read_comment and counts the unlisted comments.

Requirement: Read a job comment in full

The read_comment tool SHALL return the whole text of a job comment when the request gives its number.

Scenario: The model reads an indexed job comment

  • WHEN the model calls read_comment with the number of an older job comment
  • THEN a test in tests/roadmap/test_roadmap_item_comments.py asserts that the tool returns the whole text of that comment.

Existing Tool Considered

The alternatives check in the issue body records verdict none and names no tool. No open, maintained tool or library covers the need. The change reuses src/devops_cli/roadmap/item_comments.py and read_comment and builds no new component. The written cost is about 3,000 tokens to build, about 1,000 tokens for each later fix, and about 1 hour of elapsed time.

Key questions

  • Which module holds the shared comment filter and the read_comment tool?: src/devops_cli/roadmap/item_comments.py holds held_comments, fit_comments and CommentReader. The read_comment tool is defined at src/devops_cli/roadmap/stage/stage_tools.py:432 and src/devops_cli/roadmap/implement/implement_comments.py:95. [sources: src/devops_cli/roadmap/item_comments.py, src/devops_cli/roadmap/stage/stage_tools.py:432, src/devops_cli/roadmap/implement/implement_comments.py:95, tests/roadmap/test_roadmap_item_comments.py]
  • How does the code tell a job comment from a person reply?: By the job marker in the comment text. HeldComment.by_person already rejects a comment that holds a marker of CONST_ROADMAP_JOB_COMMENT_MARKERS. Add HeldComment.job to return the job name of that marker. (best practice) [sources: src/devops_cli/roadmap/item_comments.py, src/devops_cli/config/constants.py]
    • Chosen: Body marker. A person with write access and the Service App both write comments, so the marker is the stable sign of a job comment.
    • Rejected: Author account. A person with write access and the Service App both write comments, so the author cannot tell a job comment from a person reply.
  • Where do the job comments go in the alternatives request?: In a separate job_comments list. Each entry names its job. The replies key holds only person comments. Both lists come from one fit_comments window over all held comments. (best practice) [sources: src/devops_cli/roadmap/alternatives.py:727, src/devops_cli/roadmap/item_comments.py]
  • Which form do the comments use when they do not all fit?: The fix(roadmap): give stage and implement the item comments #6182 window in fit_comments: the newest comments whole, index lines for older comments while they fit, an unlisted count, and read_comment for any comment in full. (best practice) [sources: src/devops_cli/roadmap/item_comments.py, tests/roadmap/test_roadmap_item_comments.py]
  • Does the shared filter keep every job comment?: held_comments returns every trusted comment, including job comments. The loss comes from the alternatives request that selects only by_person replies. The change splits the held comments into replies and job_comments and drops none. [sources: src/devops_cli/roadmap/item_comments.py, src/devops_cli/roadmap/alternatives.py:727]
  • Do the stage and implement requests change?: No. RequestForm and SectionForm already keep every held comment. The change adds the job label and the split for the alternatives request. [sources: src/devops_cli/roadmap/item_comments.py, docs/roadmap/stage.md:208, docs/roadmap/implement.md:26]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. A recent fix dropped all job context from the alternatives model, degrading its output quality.
    • Related: fix(roadmap): alternatives skips the comments of other jobs #4960, which asks for a different change. Both concern how the alternatives job handles other job comments, but #4960 asked to stop sending them as person replies while the candidate asks to keep them labeled as job comments.
  2. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    effort/medium
    value/high
    priority/p1-high
    on Nov 17, 2026
  3. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  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 (5)

    Searches run:

    • GitHub issue comment classifier separate bot comments from human replies library, results: 5
    • LLM context window comment truncation index older messages read full tool open source, results: 5
    • open source tool summarize GitHub issue thread comments into prompt context window, results: 5
    • python library detect bot comments GitHub issue comments classify author type, results: 5
    • GitHub REST API issue comments user type Bot field documentation, results: 5

    Sources:

  5. added
    status/ready
    and removed
    status/new
    on Nov 18, 2026
  6. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at d15dfcf (see proposed design in issue body).

  7. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 18, 2026
  8. removed
    status/in-review
    on Nov 18, 2026
  9. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-18 13:25 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/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions