Skip to content

fix(roadmap): Make the alternatives comment brief #6168

Closed

Description

@dan-petty

Problem Description

The comment of devops roadmap alternatives is too long to read quickly. The owner asked on 2026-11-17 for a brief and concise comment.

Two comments of 2026-11-17 show the problem:

The length comes from two sources:

  1. The prompt src/devops_cli/ai/tasks/roadmap_alternatives.md asks for a reason of "one or two sentences" and sets no limit on covers, lacks and sources. The model writes a reason of 2 or 3 long sentences, and 3 covers and 3 lacks items of 15 to 25 words each. The reply schema AlternativesReply has no length limit.
  2. The render _comment_of in src/devops_cli/roadmap/alternatives.py adds a "Tools considered" list, a "Searches run" list of up to 10 lines, and a footer of two sentences. For not-applicable it writes three lines that say little: "Class: docs. The check makes no search…", "Tool: none found" and the footer.

Reproduction Steps

  1. Read the comments on fix(ci): set the pytest-asyncio default fixture loop scope #5384 and fix(pr): pr describe refuses the Closes line of the scaffold #5398 that hold the marker <!-- devops roadmap alternatives -->.
  2. Count the characters and the lines.

Expected vs Actual Behavior

Expected:

  • The prompt asks for a reason of one sentence of at most 30 words, at most 3 covers and 3 lacks items of at most 12 words each, and at most 3 sources. The reply schema refuses a longer reply, so the retry of the run fixes it.
  • The comment keeps the verdict, the reason, the tool with its license, last activity and maintained state, and the covers and lacks lists.
  • The comment folds the tools considered and the searches into one collapsed <details> block.
  • The footer is one short sentence.
  • A not-applicable comment is one line, for example "Alternatives check: not-applicable (docs item; no search)."
  • The marker and the lines that other code reads stay the same.

Actual: the comments above, with no limit on the length.

Environment Diagnostics

devops-cli 0.173.0, the Service job alternatives.

Logs, Traces, or Terminal Output

None.

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    effort/medium
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 17, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 17, 2026
  5. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 15:42 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/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions