Skip to content

feat(roadmap): Add reason and queries to the alternatives comment #2944

Description

@dan-petty

What happened

A verdict of the alternatives check is one line: "not-applicable. Tool: none found." A person cannot tell what the model searched, what it found, or why it decided that no open tool applies.

What should happen

  • The comment of a check lists the queries that ran (each with its result count) and the tools that were considered, with the license and the date of the last release, and gives the reason of the verdict in one or two sentences.
  • A verdict not-applicable names the class that excluded the item (see the issue on fixed classes) or says what the searches found and why it does not cover the need.
  • The comment keeps its marker and its rule that it changes no label and closes no issue.

Evidence (2026-10-31)

Tracker: #2908 (one issue workflow). Owner request of 2026-10-31: confirm that all issues are vetted for open alternatives.

Acceptance criteria

  • A test with a scripted model and a fake search shows the queries and the reason in the comment.
  • A comment of an old check is not rewritten.
  • The text cites no more than a bounded number of results, and a result URL is shown as a link.
  • uv run devops ci passes.

Proposed design

Problem statement

The alternatives check writes a one-line comment with no reason, no queries, and no tool detail. A person cannot tell what the model searched or why it gave the verdict. This change enriches the comment with the queries that ran, the tools considered, and the reason for the verdict.

Acceptance criteria

Requirement: Comment shows queries and reason

The alternatives check comment SHALL list each query that ran with its result count and SHALL give the reason for the verdict in one or two sentences.

Scenario: Scripted model with fake search

  • WHEN A test runs the alternatives check with a scripted model and a fake search that returns two results
  • THEN The comment contains both queries with their result counts and a reason sentence

Requirement: Old comment not rewritten

The alternatives check SHALL NOT rewrite a comment of a previous check on the same item.

Scenario: Second check on same item

  • WHEN A second alternatives check runs on an item that already has a check comment
  • THEN The first comment is unchanged and a new comment is added

Requirement: Bounded results with links

The comment SHALL cite no more than a bounded number of results and SHALL show each result URL as a link.

Scenario: More results than the bound

  • WHEN A search returns more results than the bound
  • THEN The comment shows at most the bounded number of results and each URL is rendered as a link

Requirement: CI passes

The change SHALL pass uv run devops ci.

Scenario: Full CI run

  • WHEN uv run devops ci is run on the branch
  • THEN All checks pass

Existing Tool Considered

No check has run. No open tool covers formatting an internal job's output comment. The project builds this code. The written cost is the tokens to build, keep, and fix the comment-formatting code (query list, tool details, reason text, bounded results, link rendering) and its test with a scripted model and fake search, plus the elapsed time to iterate until uv run devops ci passes.

Key questions

  • What is the current comment format and where is it written in the source?: The current comment is one line: 'not-applicable. Tool: none found.' The row behavior is described in k8s/README.md. The exact source file that writes the comment needs investigation. [sources: k8s/README.md:610, docs/TELEMETRY.md:83]
  • What fields does the enriched comment include?: The comment lists each query with its result count, each tool considered with its license and last release date, and the reason for the verdict in one or two sentences. (best practice) [sources: k8s/README.md:610]
    • Chosen: Full detail: queries, tools, reason. The body specifies these fields. A person can then judge the verdict.
    • Rejected: Verdict and tool name only (current). A person cannot tell what was searched or why the verdict was given.
  • How many results are shown per query in the comment?: At most 5 results per query. (proposed)
    • Chosen: 5 results. Bounded for comment readability. Matches the row's daily limit of 5 items.
    • Rejected: 10 results. Too many for a comment. A person cannot scan them quickly.
    • Rejected: Unlimited. The body requires a bounded number.
  • How is a not-applicable verdict expressed in the comment?: It names the class that excluded the item, or it says what the searches found and why the result does not cover the need. (best practice) [sources: k8s/README.md:610]
    • Chosen: Name the excluding class or explain the gap. The body specifies both paths. A person can judge whether the exclusion is valid.
    • Rejected: Only say 'none found'. A person cannot tell why no tool applies.
  • Is the comment of an old check rewritten by a new check?: No. A new check adds a new comment. It does not edit the old one. (best practice) [sources: k8s/README.md:610]
    • Chosen: Add a new comment, leave the old one. The body acceptance criteria state an old comment is not rewritten.
    • Rejected: Edit the old comment in place. The body forbids this. It loses the history of the check.

Open questions

  • What is the marker of the comment that the check must keep? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-04: none.
Tool: none found.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Oct 31, 2026
  2. dan-petty commented on Oct 31, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The check runs but its output is opaque; fixing it restores trust but no user is blocked.
    • Value: Medium. A person can audit why an item was cleared, which is the core purpose of the check.
    • Effort: Medium. It changes the comment template and adds a bounded query list; no new search logic is needed.
    • Related: feat(roadmap): devops roadmap alternatives searches the web for the open tool that covers an item and records what it covers and lacks #2650, which asks for a different change. Both target the alternatives check; #2650 builds the search command, the candidate improves the comment it posts.
  3. added
    priority/p2-medium
    on Oct 31, 2026
  4. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at e093ac8 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • What is the marker of the comment that the check must keep? (missing verified source)
  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Tool: none found

    Lacks:

    • No open tool renders this project's alternatives-check comment: the queries that ran with result counts, the tools considered with license and last-release date, and the verdict reason in prose.
    • The searches returned generic GitHub bot/comment-posting frameworks and code-search tools; none keeps the check's comment marker, adds a new comment without rewriting an old one, or bounds and link-renders the result URLs of an internal report.
    • The marker, the not-applicable class text and the comment template are internal to this project's roadmap job, so the formatting and its scripted-model/fake-search test must be built here.
    • The issue's evidence (devops_cli_roadmap_alternatives_total stuck on not-applicable, suspended row on feat(roadmap): onboard checks a repository for the roadmap jobs #1359) points at this project's own check logic, not at an adoptable dependency.

    Searches run:

    • open source tool that posts GitHub issue comments listing web search queries and results
    • library render audit report comment with search queries result counts and reasons
    • open source bot posts markdown comment with search provenance queries results and rationale on GitHub issue
    • probot github app comment template audit trail search queries rationale license release date

    Sources:

    Checked on 2026-11-04. A person decides what this means for the item. The check changes no label and closes no issue.

  6. changed the title [-]feat(roadmap): the alternatives comment shows its reason and the searches that ran[/-] [+]feat(roadmap): Add reason and queries to the alternatives comment[/+] on Nov 6, 2026
  7. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    The job shortened the title of this item. The summary had 67 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(roadmap): the alternatives comment shows its reason and the searches that ran
    • After: feat(roadmap): Add reason and queries to the alternatives comment
    • Source of the summary: the background model
  8. added
    owner/agent
    on Nov 6, 2026
  9. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards, under the owner's instruction of 2026-11-05.

    Question: what is the marker of the comment that the check must keep?

    Answer: <!-- devops roadmap alternatives -->. The constant CONST_ROADMAP_ALTERNATIVES_COMMENT_MARKER in src/devops_cli/config/constants.py holds it. _comment_of in src/devops_cli/roadmap/alternatives.py writes it as the first line of each comment, and replies_after_marker reads it to find the replies of a person. The change keeps it and keeps the rule that the check changes no label and closes no issue.

  10. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 6, 2026
  11. Repository owner deleted a comment from on Nov 6, 2026
  12. removed
    status/in-review
    owner/agent
    on Nov 6, 2026
  13. added a commit that references this issue on Nov 6, 2026
  14. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 22:51 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/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions