Repository navigation
Description
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:
- The prompt (
src/devops_cli/ai/tasks/roadmap_alternatives.md:25) asks forin_use: trueonly 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 givescoverswithin_use: false. _verdict_of(src/devops_cli/roadmap/alternatives.py:1151) tests the item text only when the model setsin_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.covers_question(src/devops_cli/roadmap/refine/refine.py:703) makes eachcoversverdict 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
- Read the alternatives block and the record of feat(docs): check links and anchors of all documents with rumdl #4899:
alternatives.verdictcovers,refine.alternatives_askedhttps://github.com/rvben/rumdl,refine.next_stepperson. - 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)".
- On
origin/main(0d90de5), runnames(_person_text(body), "rvben/rumdl", "rumdl")on the feat(docs): check links and anchors of all documents with rumdl #4899 body. It givesTrue. - 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/main0d90de5) - 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 TruePre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate. Searches: "already names covers", "covers question" (title), "adopt the tool" (title), "in_use flag alternatives", "covers verdict item names tool". fix(roadmap): the alternatives check calls the standard library covers #6347 covers the standard library only. fix(roadmap): the alternatives check reads the ADRs and the item #3714 (closed) added the ADR and item read.
Acceptance Criteria
- A test replays the feat(docs): check links and anchors of all documents with rumdl #4899 check (reply
coversforrvben/rumdl,in_usefalse, the body of the item). The item gets no person question. - A test replays the feat(monitoring): read the Service API with the Infinity datasource #4597 check with the
tool_nameyesoreyeram-infinity-datasourcethat the body writes. The item gets no person question. - A test keeps the question for a
coverstool that the item does not name. -
openspec/specs/roadmap-alternatives/spec.mdand the refine spec state the rule. The prompt text atroadmap_alternatives.md:25agrees with it. - Live proof: after the merge and the release, refine of feat(docs): check links and anchors of all documents with rumdl #4899 and feat(monitoring): read the Service API with the Infinity datasource #4597 asks no "adopt or keep" question. A comment gives the new step.
Dependencies
- fix(roadmap): the alternatives check calls the standard library covers #6347 (open): changes
_verdict_ofand the covers rule. Build after it, or rebase on it. Its requirement "A third-party tool keeps the covers verdict" must exclude a tool that the item names. - Tracker feat(roadmap): track the project brain #4624.
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_ofwith acoversreply forhttps://github.com/rvben/rumdlthat setsin_useto false, and a body whose person text holdsPin rumdl as a dev dependency. - THEN
_verdict_ofreturnsin-usewith the toolhttps://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_ofwith acoversreply forhttps://github.com/grafana/grafana-infinity-datasourcethat holds thetool_nameyesoreyeram-infinity-datasourceandin_usefalse, and a body whose person text holdsyesoreyeram-infinity-datasource@<version>. - THEN
_verdict_ofreturnsin-usewith the toolhttps://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_ofwith acoversreply for a maintained tool,in_usefalse, and a title and person text that name neither the repository name nor the replytool_name. - THEN
_verdict_ofreturnscovers.
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_ofon a body that namesrvben/rumdlinside the alternatives block and the refine section only, and whose title and person text name it nowhere. - THEN
_verdict_ofreturnscovers.
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
coverscheck forhttps://github.com/grafana/grafana-infinity-datasourcewith thetool_nameyesoreyeram-infinity-datasource. - THEN The block Tool line holds
yesoreyeram-infinity-datasourceand the job record holdsalternatives.tool_namewithyesoreyeram-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_questionwith a check block that givescoverswith the Tool linervben/rumdl (https://github.com/rvben/rumdl), and a body that holdsPin rumdl as a dev dependency. - THEN
covers_questionreturns 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_questionwith a check block that givescoverswith the Tool lineyesoreyeram-infinity-datasource (https://github.com/grafana/grafana-infinity-datasource), and a body that holdsyesoreyeram-infinity-datasource@<version>. - THEN
covers_questionreturns 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_questionwith a check block that givescoverswith a tool name and a tool URL, and a title and person text that name neither of them. - THEN
covers_questionreturns 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_ofandcovers_questionwith the same item text and the same named tool. - THEN
_verdict_ofreturnsin-useandcovers_questionreturns 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_useis 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 --strictruns on the branch of the change. - THEN It exits 0, and the change holds a
roadmap-alternativesdelta 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
- WHEN The release with the change is deployed, a person rechecks feat(monitoring): read the Service API with the Infinity datasource #4597 with the new alternatives check when its block holds no
tool_name, and the person runs refine on feat(docs): check links and anchors of all documents with rumdl #4899 and feat(monitoring): read the Service API with the Infinity datasource #4597. - THEN The refine comment asks no adopt-or-keep question, and
refine.next_stepis notperson.
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
coversfor a tool that the item names?:_verdict_oftests the item text only when the reply setsin_use. The prompt asks forin_useonly 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_ofcalls it and returnsin-use.covers_questioninsrc/devops_cli/roadmap/refine/refine.pycalls 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
coversrecords keep the person question until a new check runs. - Rejected: Change refine only. The check keeps the record
coversfor a tool that the item names.
- Which names of the tool does the test match?: The existing
names()helper: the fullowner/name, the last segment of the repository or package name, and thetool_nameof 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]- Chosen: The existing names() helper. It matches
rumdlandrvben/rumdlfor feat(docs): check links and anchors of all documents with rumdl #4899 and the replytool_namefor feat(monitoring): read the Service API with the Infinity datasource #4597. - Rejected: The repository name only. feat(monitoring): read the Service API with the Infinity datasource #4597 writes the plugin id and not the repository name.
- Rejected: The model
in_useflag only. 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. - Rejected: The whole body. A job block names the tool, so an item would match itself.
- Chosen: The existing names() helper. It matches
- Which text of the item counts as naming the tool?: The title and the person text of the body.
_person_textremoves the alternatives block and the refine section. (best practice) [sources: src/devops_cli/roadmap/alternatives.py, openspec/specs/roadmap-alternatives/spec.md]- Chosen: Title and person text. The job blocks name the tool, and
_person_textgives the text outside them. - Rejected: The whole body. A job block names the tool, so an item would match itself.
- Rejected: The title only. feat(docs): check links and anchors of all documents with rumdl #4899 and feat(monitoring): read the Service API with the Infinity datasource #4597 name the tool in the body and not in the title.
- Chosen: Title and person text. The job blocks name the tool, and
- How does refine get the tool name of an earlier check?: The check writes the reply
tool_namein the Tool line of the block and inalternatives.tool_nameof 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]- Chosen: Write the reply tool_name in the block and record. The block is the durable copy, and the record gives refine a typed value.
- Rejected: Read the repository name from the tool URL only. feat(monitoring): read the Service API with the Infinity datasource #4597 writes
yesoreyeram-infinity-datasourceand the URL holdsgrafana-infinity-datasource. - Rejected: Add no tool name and wait for a new model flag. 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, so the item would keep the question.
- 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.mdgives 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.mdrecords for an alternative. - Rejected: Always ask a person for a covers verdict. It keeps the no-choice question that this item fixes.
- Chosen: Keep the question for an unnamed tool.
- What must the prompt and the spec deltas state?: The prompt says
in_useis true for a tool that the item names as its solution or as a tool in use. Theroadmap-alternativesdelta states the deterministic name test. The refine delta states that a namedcoverstool 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_usefor 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.
Activity
dan-petty commentedon Nov 19, 2026
Both fix the alternatives check giving a covers verdict when the item names the tool, but #6347 covers only the standard-library case and the candidate covers the third-party tool case.devops-cli-service commentedon Nov 19, 2026
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.
devops-cli-service commentedon Nov 19, 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 (3)
Searches run:
Sources:
devops-cli-service commentedon Nov 20, 2026
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.
devops-cli-service commentedon Nov 27, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
chore(main): release 0.247.0 (#7752)
devops-cli-service commentedon Nov 29, 2026
Released in v0.247.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.247.0
devops-cli-service commentedon Nov 29, 2026
Live since 2026-11-29 16:17 UTC