Skip to content

fix(roadmap): a tool the item names gets covers, not in-use #6443

Description

@dan-petty

Problem Description

When an item already plans to adopt a tool, the alternatives check gives covers for that same tool. Refine then asks a person "Adopt the tool, or keep the item" ((a person decides)). The question has no real choice, because the item already adopts the tool. The item waits on a person (refine.next_step person).

Item Check Tool Refine question Record
#4899 2026-11-14, covers rvben/rumdl 2026-11-16T02:07Z: "Adopt rumdl or keep the item with a reason? (a person decides)" refine.alternatives_asked rumdl, refine.next_step person
#4597 2026-11-13, covers grafana/grafana-infinity-datasource 2026-11-14T04:15Z: "Adopt the tool, or keep the item and give the reason. (a person decides)" refine.alternatives_asked infinity, refine.next_step person

Item #4899 says "with rumdl" in its title and "Pin rumdl as a dev dependency" in its body (line 7). #4597 adds yesoreyeram-infinity-datasource@<version> to the Grafana plugins (body line 7). The reason of the #4597 check (comment of 2026-11-13T00:25Z) calls the tool "the maintained open-source plugin that the issue already proposes".

The same run of 2026-11-14 gave in-use to #4880 for rvben/rumdl ("The item already names this tool."), because the model set in_use there. So the result for the same case is not consistent.

The cause has three parts:

  1. The prompt (src/devops_cli/ai/tasks/roadmap_alternatives.md:25) asks for in_use: true only when the issue names the tool "as a tool that the project uses". An item that proposes to adopt a tool does not match that text, so the model usually gives covers with in_use: false.
  2. _verdict_of (src/devops_cli/roadmap/alternatives.py:1151) tests the item text only when the model sets in_use. Loki has no "dropped the flag in_use" line for feat(monitoring): read the Service API with the Infinity datasource #4597 or feat(docs): check links and anchors of all documents with rumdl #4899 (query {namespace="devops"} |= "dropped the flag in_use" from 2026-11-12), so the model did not set the flag.
  3. covers_question (src/devops_cli/roadmap/refine/refine.py:703) makes each covers verdict a person question (:709, :1416). It does not test whether the item already names the tool.

The name test of the job already exists: names(_person_text(body), "rvben/rumdl", "rumdl") gives True for #4899. For #4597 it gives False, because the body names the plugin by its plugin id yesoreyeram-infinity-datasource and as "Infinity datasource". So the fix must also use the name that the item writes for the tool (the tool_name of the reply), not only the repository name.

Item #6347 (open, status/ready) covers only the standard-library case (#6328). Its refined design has the requirement "A third-party tool keeps the covers verdict". This item narrows that requirement: a third-party tool that the item itself names as its solution asks no person.

Reproduction Steps

  1. Read the alternatives block and the record of feat(docs): check links and anchors of all documents with rumdl #4899: alternatives.verdict covers, refine.alternatives_asked https://github.com/rvben/rumdl, refine.next_step person.
  2. Read the refine comment of 2026-11-16T02:07Z on feat(docs): check links and anchors of all documents with rumdl #4899. It asks "Adopt rumdl or keep the item with a reason? (a person decides)".
  3. On origin/main (0d90de5), run names(_person_text(body), "rvben/rumdl", "rumdl") on the feat(docs): check links and anchors of all documents with rumdl #4899 body. It gives True.
  4. Do the same for feat(monitoring): read the Service API with the Infinity datasource #4597 and feat(docs): track current content and brain-fed reference docs #4880.

Expected vs Actual Behavior

Expected: an item whose title or body (outside the job blocks) names the covering tool as its solution gets no "adopt or keep" question. The check gives in-use (or refine skips the question), and the item goes on to Ready.

Actual: the check gives covers, and refine holds the item on a person for a question with no choice (#4899 since 2026-11-16, #4597 since 2026-11-14).

Environment Diagnostics

  • DevOps CLI Version: 0.180.0 (origin/main 0d90de5)
  • Python Version: 3.14.10
  • Execution Environment: the alternatives and refine jobs of the roadmap Service in the cluster; the name test ran in the devcontainer.

Logs, Traces, or Terminal Output

# #4899 record (excerpt)
"alternatives.verdict": "covers", "alternatives.tool": "https://github.com/rvben/rumdl",
"refine.alternatives_asked": "https://github.com/rvben/rumdl", "refine.next_step": "person"

# #4880 block, same run
Alternatives check of 2026-11-14: in-use.
The item already names this tool.
Tool: rvben/rumdl (https://github.com/rvben/rumdl), NOASSERTION, last activity 2026-11-14, maintained.

# names() replay on 0d90de50b
4899 title False body True
4597 title False body False
4880 title False body True

Pre-Submission Checklist

Acceptance Criteria

Dependencies

Alternatives check of 2026-11-26: none.
Tool: none found.
Reason: Searches found no tool or library: the need is an internal change to the project's own alternatives check and refine code. The named tools (rumdl, Infinity datasource) are the item's own proposed solutions, not fixes for the check.

Lacks:

  • Gives in-use when the item names the covering tool
  • Shares one name test between the check and refine
  • Skips the adopt-or-keep question for a named tool

Proposed design

Problem statement

The alternatives check gives covers for a tool that the item already names as its solution. Refine then asks a person to adopt the tool or keep the item. The item waits on a person for a question with no choice. The change makes the check give in-use for a named tool. The change also makes refine skip the adopt-or-keep question for a named covers record. Refine keeps the question for an unnamed covering tool.

Acceptance criteria

Requirement: Repository name in the item gives in-use

The alternatives check SHALL return in-use when the item text names the last segment of the tool URL, even if the reply sets in_use false.

Scenario: Replay of item 4899

  • WHEN A unit test calls _verdict_of with a covers reply for https://github.com/rvben/rumdl that sets in_use to false, and a body whose person text holds Pin rumdl as a dev dependency.
  • THEN _verdict_of returns in-use with the tool https://github.com/rvben/rumdl.

Requirement: Reply tool name in the item gives in-use

The alternatives check SHALL return in-use when the item text names the reply tool_name, even if the tool URL repository name does not occur.

Scenario: Replay of item 4597

  • WHEN A unit test calls _verdict_of with a covers reply for https://github.com/grafana/grafana-infinity-datasource that holds the tool_name yesoreyeram-infinity-datasource and in_use false, and a body whose person text holds yesoreyeram-infinity-datasource@<version>.
  • THEN _verdict_of returns in-use with the tool https://github.com/grafana/grafana-infinity-datasource.

Requirement: An unnamed covering tool keeps covers

The alternatives check MUST keep covers when the item text names neither the tool URL repository name nor the reply tool_name.

Scenario: A covering tool that the item does not name

  • WHEN A unit test calls _verdict_of with a covers reply for a maintained tool, in_use false, and a title and person text that name neither the repository name nor the reply tool_name.
  • THEN _verdict_of returns covers.

Requirement: The job blocks do not name the tool

The alternatives check MUST test the title and the person text only, and MUST ignore the alternatives block and the refine section.

Scenario: The tool name only in a job block

  • WHEN A unit test calls _verdict_of on a body that names rvben/rumdl inside the alternatives block and the refine section only, and whose title and person text name it nowhere.
  • THEN _verdict_of returns covers.

Requirement: The check writes the reply tool name

The alternatives check SHALL write the reply tool_name in the block Tool line and in the alternatives.tool_name job record key.

Scenario: A covering reply with a different tool name

  • WHEN A unit test writes a covers check for https://github.com/grafana/grafana-infinity-datasource with the tool_name yesoreyeram-infinity-datasource.
  • THEN The block Tool line holds yesoreyeram-infinity-datasource and the job record holds alternatives.tool_name with yesoreyeram-infinity-datasource.

Requirement: Refine skips the question for a named tool

Refine MUST return no adopt-or-keep question for a covers record whose tool the item names by the tool URL or the block tool_name.

Scenario: A covers record of item 4899

  • WHEN A unit test calls covers_question with a check block that gives covers with the Tool line rvben/rumdl (https://github.com/rvben/rumdl), and a body that holds Pin rumdl as a dev dependency.
  • THEN covers_question returns no person question.

Requirement: Refine skips the question for the tool name of the block

Refine MUST return no adopt-or-keep question for a covers record whose tool the item names by the tool_name of the block Tool line.

Scenario: A covers record of item 4597

  • WHEN A unit test calls covers_question with a check block that gives covers with the Tool line yesoreyeram-infinity-datasource (https://github.com/grafana/grafana-infinity-datasource), and a body that holds yesoreyeram-infinity-datasource@<version>.
  • THEN covers_question returns no person question.

Requirement: Refine asks the question for an unnamed covering tool

Refine MUST return the adopt-or-keep question for a covers record whose tool the item text does not name.

Scenario: A covers record with no item name

  • WHEN A unit test calls covers_question with a check block that gives covers with a tool name and a tool URL, and a title and person text that name neither of them.
  • THEN covers_question returns the adopt-or-keep person question.

Requirement: The check and refine share one name test

The check and refine SHALL use one shared name test for the item text, the tool URL and the tool name.

Scenario: One named tool in both paths

  • WHEN A unit test calls _verdict_of and covers_question with the same item text and the same named tool.
  • THEN _verdict_of returns in-use and covers_question returns no person question.

Requirement: The prompt states the named-tool rule

The roadmap alternatives task prompt SHALL state that in_use is true for a tool that the item names as its proposed solution.

Scenario: The loaded prompt holds the rule

  • WHEN A unit test loads the alternatives task prompt through the task loader.
  • THEN The loaded text states that in_use is true for a tool that the item names as its proposed solution.

Requirement: The spec deltas state the named-tool rule

The change SHALL add a roadmap-alternatives spec delta and a refine spec delta that state the named-tool rule.

Scenario: The change validates

  • WHEN uv run openspec validate --strict runs on the branch of the change.
  • THEN It exits 0, and the change holds a roadmap-alternatives delta and a refine delta that state the named-tool rule.

Requirement: Pending a person after the merge

After the release, a person SHALL confirm that refine of #4899 and #4597 asks no adopt-or-keep question.

Scenario: Live proof on items 4899 and 4597

Existing Tool Considered

The alternatives check in the issue body gives the verdict none and names no tool. The block lists the missing behavior. No open maintained library covers an internal rule of the alternatives and refine code. The change reuses the existing names() helper and adds one small shared helper. Written cost: about 12,000 tokens to build, about 2 hours elapsed, and about 1,000 tokens to keep and fix.

Key questions

  • Why does the check give covers for a tool that the item names?: _verdict_of tests the item text only when the reply sets in_use. The prompt asks for in_use only for a tool that the project already uses. The model set no flag for feat(monitoring): read the Service API with the Infinity datasource #4597 or feat(docs): check links and anchors of all documents with rumdl #4899. [sources: src/devops_cli/roadmap/alternatives.py, src/devops_cli/ai/tasks/roadmap_alternatives.md, openspec/specs/roadmap-alternatives/spec.md]
  • Where should the named-tool rule live?: One shared helper in src/devops_cli/roadmap/alternatives.py. _verdict_of calls it and returns in-use. covers_question in src/devops_cli/roadmap/refine/refine.py calls it and skips the question. (best practice) [sources: src/devops_cli/roadmap/alternatives.py, src/devops_cli/roadmap/refine/refine.py, openspec/specs/roadmap-alternatives/spec.md]
    • Chosen: One shared helper in alternatives.py. One rule serves the check and refine, and the two paths cannot drift.
    • Rejected: Change the check only. Existing covers records keep the person question until a new check runs.
    • Rejected: Change refine only. The check keeps the record covers for a tool that the item names.
  • Which names of the tool does the test match?: The existing names() helper: the full owner/name, the last segment of the repository or package name, and the tool_name of the reply or block. The test ignores case and takes a space, -, _ and . as one separator. (best practice) [sources: src/devops_cli/roadmap/alternatives.py, openspec/specs/roadmap-alternatives/spec.md]
  • Which text of the item counts as naming the tool?: The title and the person text of the body. _person_text removes the alternatives block and the refine section. (best practice) [sources: src/devops_cli/roadmap/alternatives.py, openspec/specs/roadmap-alternatives/spec.md]
  • How does refine get the tool name of an earlier check?: The check writes the reply tool_name in the Tool line of the block and in alternatives.tool_name of the job record. Refine reads the block, and reads the record when the block holds no tool name. (best practice) [sources: src/devops_cli/roadmap/alternatives.py, src/devops_cli/roadmap/refine/refine.py, openspec/specs/roadmap-alternatives/spec.md]
  • Does refine keep the question for a covering tool that the item does not name?: Yes. A person still decides whether to adopt a covering tool that the item did not choose. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/refine/refine.py, openspec/specs/roadmap-alternatives/spec.md]
    • Chosen: Keep the question for an unnamed tool. CONTEXT.md gives a person the decision on an alternative that the item did not choose.
    • Rejected: Never ask a person for a covers verdict. It removes the owner decision that CONTEXT.md records for an alternative.
    • Rejected: Always ask a person for a covers verdict. It keeps the no-choice question that this item fixes.
  • What must the prompt and the spec deltas state?: The prompt says in_use is true for a tool that the item names as its solution or as a tool in use. The roadmap-alternatives delta states the deterministic name test. The refine delta states that a named covers tool asks no person. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_alternatives.md, openspec/specs/roadmap-alternatives/spec.md, src/devops_cli/roadmap/refine/refine.py]
    • Chosen: The prompt and both deltas. The item requires the prompt and the spec to agree, or the model and the spec drift.
    • Rejected: The code only. The prompt still says in_use for a tool that the project uses only.
    • Rejected: The prompt only. The job confirms the name from the text, so the spec needs the rule.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6347

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.

  5. devops-cli-service commented on Nov 19, 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 (3)

    Searches run:

    • library detect package or tool names mentioned in free text, results: 5
    • open source tool extract software dependency names from issue description text, results: 5
    • python library match known project names occurrences in text gazetteer aho-corasick, results: 5

    Sources:

  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.

  7. added
    status/ready
    and removed
    status/new
    on Nov 27, 2026
  8. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  9. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 29, 2026
  10. removed
    status/in-review
    owner/agent
    on Nov 29, 2026
  11. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-29 16:17 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