Repository navigation
Description
Problem Description
The alternatives job sends the comments of other roadmap jobs to its model as person replies. _request in src/devops_cli/roadmap/alternatives.py takes every trusted comment when the job left no comment, else every trusted comment after its own comment. It does not remove a comment that holds a job marker (CONST_ROADMAP_JOB_COMMENT_MARKERS). The intake reason comment is on almost each new item, and its author is the owner account or the Service bot, so it is trusted. A refine, stage or retitle comment after the last alternatives comment also goes to the model on a check again.
Reproduction Steps
- Run intake on a new candidate, so it gets the reason comment.
- Run
devops roadmap alternatives --planon the item. - Look at
repliesin the request of the model: it holds the intake reason comment.
Expected vs Actual Behavior
- Expected:
repliesholds only the comments of persons, as in refine (replies_since_refineremoves the comments of other jobs, feat(roadmap): devops roadmap alternatives searches the web for the open tool that covers an item and records what it covers and lacks #2650). - Actual:
repliesholds the comments of other jobs too.
Proposed Solution
- Remove each comment that holds a marker of
CONST_ROADMAP_JOB_COMMENT_MARKERSfrom the replies of the alternatives request, with the same helper as refine.
Existing Tool Considered
No tool covers the request of this job. Cost to build: about 30,000 tokens and 1 hour.
Acceptance Criteria
- A test: an item with an intake reason comment and a person reply gives a request whose
repliesholds only the person reply. - A test: a check again after a refine comment does not send the refine comment.
Dependencies
None. #4836 makes the intake comment shorter, but it does not remove it.
Source: #4955
Alternatives check of 2026-11-15: none.
Tool: none found.
Proposed design
Problem statement
The alternatives job sends the comments of other roadmap jobs to its model as person replies. _request in src/devops_cli/roadmap/alternatives.py takes every trusted comment when the job left no comment, and every trusted comment after its own comment otherwise. It does not drop a comment that holds a job marker. The intake reason comment is on almost each new item, and its author is trusted, so the model reads it as a person reply. A refine, stage or retitle comment after the last alternatives comment reaches the model too.
Acceptance criteria
Requirement: Job comments are left out of the replies
The alternatives request SHALL drop each trusted comment that holds a marker of CONST_ROADMAP_JOB_COMMENT_MARKERS from replies.
Scenario: Intake comment and person reply
- WHEN An item holds an intake reason comment and one person reply, and the alternatives job has left no comment.
- THEN The request's
repliesholds only the person reply.
Requirement: A later job comment is left out on a recheck
The alternatives request SHALL drop a trusted job comment that follows the last alternatives comment from replies.
Scenario: Refine comment after a check
- WHEN A check runs again after a refine comment.
- THEN The request's
repliesdoes not hold the refine comment.
Requirement: A person reply is kept
The alternatives request SHALL keep each trusted comment that holds no job marker in replies.
Scenario: Person reply after a check
- WHEN A person replies after the last alternatives comment.
- THEN The request's
repliesholds the person reply.
Existing Tool Considered
No open, maintained tool or library covers the need. The alternatives check of 2026-11-15 gave the verdict none, and its searches found no filter for job-marker comments. The change builds its own code: about 30,000 tokens and 1 hour to build, keep and fix the filter and its two tests.
Key questions
- Which trusted comments must the alternatives request drop from
replies?: Drop each trusted comment that holds a marker ofCONST_ROADMAP_JOB_COMMENT_MARKERS. Keep each other trusted comment. The author type does not tell a job comment from a person reply, because the owner account and the Service bot write both. (best practice) [sources: src/devops_cli/config/constants.py:3894, src/devops_cli/roadmap/refine/refine.py:2118]- Chosen: The job markers of
CONST_ROADMAP_JOB_COMMENT_MARKERS. Refine uses these markers (feat(roadmap): devops roadmap alternatives searches the web for the open tool that covers an item and records what it covers and lacks #2650), and the issue asks for the same filter. The author stays trusted. - Rejected: The author type, bot or user. The owner account writes person replies and job comments, so this drops a person reply.
- Rejected: The author association, OWNER or MEMBER. The intake reason comment has a trusted association, so this keeps it.
- Chosen: The job markers of
- Where does the job-marker filter live?: Reuse the marker filter that
replies_since_refineuses, and call it in_requestafter thereplies_after_markerselection. If refine does not export it, move it to a shared module and call it from both jobs. (best practice) [sources: src/devops_cli/roadmap/alternatives.py, src/devops_cli/roadmap/refine/refine.py:2118]- Chosen: Reuse refine's filter. The issue asks for the same helper, and one copy keeps the behavior equal.
- Rejected: Add a filter in
alternatives.py. Two copies drift, and a later change to one leaves the other wrong. - Rejected: Make
replies_after_markerdrop job comments. It answers which comments follow the marker, a different question. The drop belongs to the caller that builds the model request.
- Does the request drop job comments before or after the reply cap?: Drop the job comments first, then keep the last
CONST_ROADMAP_REFINE_MAX_REPLIESperson replies. A job comment then cannot push a person reply out of the request. (best practice) [sources: src/devops_cli/roadmap/alternatives.py]- Chosen: Drop job comments, then cap. The cap counts person replies only, so a job comment cannot hide a person reply.
- Rejected: Cap, then drop job comments. A job comment in the last N comments pushes a person reply out of the request.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
(roadmap)scope of the title gives the scope.The defect sends job comments to the model and lowers the quality of the alternatives verdict, but it blocks no user action.The fix makes the alternatives verdict agree with the refine behaviour and gives the model clean person replies.The change reuses the helper of refine and adds two tests, with a cost of about one hour.Both items stop a roadmap job from reading the comments of other jobs. Item 4799 changes the repair selector and this candidate changes the alternatives model request.dan-petty commentedon Nov 12, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The model receives wrong context on every check, degrading verdict quality but not breaking the pipeline.Correct replies improve the accuracy of alternatives verdicts for every new and rechecked item.The fix reuses the existing refine helper to filter job-marker comments, about one hour of work.Both fix a job that reads comments of other jobs, but #4799 fixes repair._newest while the candidate fixes alternatives._request.devops-cli-service commentedon Nov 15, 2026
Alternatives check: none
Reason: The searches returned no library or tool for filtering job-marker comments out of GitHub issue replies: the results were unrelated documentation pages about CSS/HTML comments, MDN discussions and speech alternatives, none of which address building a model request from GitHub issue comments. The need is a small change inside the project's own code (reuse refine's existing helper to drop comments holding
CONST_ROADMAP_JOB_COMMENT_MARKERSinalternatives._request), which no external tool supplies; the ADRs in force also name no tool for this. The issue itself reaches the same conclusion and no reply rules out a tool.Tool: none found
Lacks:
replies_since_refinebehaviour, which is project-specific codeSearches run:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 16, 2026
Status set to Ready at 0cdf3e4 (see proposed design in issue body).
devops-cli-service commentedon Nov 17, 2026
Released in v0.173.3: https://github.com/dan-petty/devops-cli/releases/tag/v0.173.3
devops-cli-service commentedon Nov 17, 2026
Live since 2026-11-17 19:36 UTC