Repository navigation
Description
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_commentfor 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
- fix(roadmap): alternatives skips the comments of other jobs #4960, fix(roadmap): Leave other job comments out of the alternatives request #6192, fix(roadmap): give stage and implement the item comments #6182, fix(roadmap): Write each job fact in one place on an issue or pull request #6193.
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.pyasserts that the request holds the comment injob_commentswith jobintake.
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.pyasserts thatrepliesholds only the person reply andjob_commentsholds 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.pyasserts thatheld_commentsreturns 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.pyasserts thatheld_commentsgives the comment jobintakeand thatrepliesdoes 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.pyasserts that the newest comment is whole, older comments that fit have index lines, and the request namesread_commentand 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_commentwith the number of an older job comment - THEN a test in
tests/roadmap/test_roadmap_item_comments.pyasserts 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_commenttool?:src/devops_cli/roadmap/item_comments.pyholdsheld_comments,fit_commentsandCommentReader. Theread_commenttool is defined atsrc/devops_cli/roadmap/stage/stage_tools.py:432andsrc/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_personalready rejects a comment that holds a marker ofCONST_ROADMAP_JOB_COMMENT_MARKERS. AddHeldComment.jobto 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_commentslist. Each entry names itsjob. Thereplieskey holds only person comments. Both lists come from onefit_commentswindow over all held comments. (best practice) [sources: src/devops_cli/roadmap/alternatives.py:727, src/devops_cli/roadmap/item_comments.py]- Chosen: Separate
job_commentskey. The issue asks to keep job comments apart from person replies, and a separate key makes that split visible in the request. - Rejected: One list with a
kindfield. The bug of fix(roadmap): Leave other job comments out of the alternatives request #6192 was that a job comment counted as a person reply, and one list keeps that count possible.
- Chosen: Separate
- 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, anunlistedcount, andread_commentfor any comment in full. (best practice) [sources: src/devops_cli/roadmap/item_comments.py, tests/roadmap/test_roadmap_item_comments.py]- Chosen: Reuse the fix(roadmap): give stage and implement the item comments #6182 window. The stage and implement requests already use this form, and the issue asks for it.
- Rejected: A new hard cap. The owner rule of 2026-11-17 forbids hard character caps that make a job miss context.
- Does the shared filter keep every job comment?:
held_commentsreturns every trusted comment, including job comments. The loss comes from the alternatives request that selects onlyby_personreplies. The change splits the held comments intorepliesandjob_commentsand 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.
RequestFormandSectionFormalready 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
dan-petty commentedon Nov 17, 2026
A recent fix dropped all job context from the alternatives model, degrading its output quality.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.devops-cli-service commentedon Nov 17, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
devops-cli-service commentedon Nov 18, 2026
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:
Sources:
devops-cli-service commentedon Nov 18, 2026
Status set to Ready at d15dfcf (see proposed design in issue body).
devops-cli-service commentedon Nov 18, 2026
Released in v0.176.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.176.0
devops-cli-service commentedon Nov 18, 2026
Live since 2026-11-18 13:25 UTC