Repository navigation
Description
Problem Description
The alternatives check still gives false rejected verdicts after #4661 (PR #5062, merged 2026-11-12). Three open items hold rejected for a tool that the project uses, or for the project itself:
| Item | Check | Tool | Basis line | Why it is false |
|---|---|---|---|---|
| #5524 | 2026-11-17 | kubernetes/kubernetes |
Rejected by ADR 0021 | ADR 0021:267 rejects "A Kubernetes Lease for each lock". It rejects a Lease, not Kubernetes. The project runs on Kubernetes (k8s/). |
| #5323 | 2026-11-16 | cli/cli |
Rejected by ADR 0006 | ADR 0006:29 rejects "Everything through the gh CLI" for the session requests only. The project uses gh (devops gh), and the item adds more gh pass-through commands. |
| #4719 | 2026-11-14 | <owner>/devops-cli |
Rejected by ADR 0014 | The tool is the repository itself. ADR 0014:60 is a rejected option with a link to https://github.com/<owner>/devops-cli/issues/2086. |
The cause has two parts:
rejects()(src/devops_cli/roadmap/adr.py:318) says that an ADR rejects a tool when a rejected option names the tool.names()(adr.py:283) matches the fullowner/nameanywhere, also in a link target:_spansputs eachhrefin the marked spans (adr.py:267). It matches a one-word name in strong emphasis or a code span, also when the word only qualifies another thing ("Kubernetes Lease", "ghCLI")._verdict_of(src/devops_cli/roadmap/alternatives.py:1123) tests the ADR (:1140) before the inventory (:1149). So a tool that the inventory holds can getrejected.
The model only proposes the ADR number. The job confirms it with rejects(), and that test is too loose. Tracker #4624 (body line 117) sets the target "false rejected verdicts: 0".
Reproduction Steps
-
On
origin/main(0d90de5), runrejects()for each ADR in force:from pathlib import Path from devops_cli.roadmap.adr import adr_of, rejects p = "docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md" print(rejects(adr_of(p, Path(p).read_text()), "kubernetes/kubernetes", "kubernetes")) # True
-
Do the same for ADR 0014 with
("<owner>/devops-cli", "devops-cli")and for ADR 0006 with("cli/cli", "gh"). Each givesTrue. -
Read the alternatives blocks of feat(roadmap): the poll frees the check-out of a gone job #5524, feat(gh): pass through gh repo, gh ruleset, gh variable and gh org #5323 and feat(roadmap): the implement Job gates before its PR #4719. Each says
rejectedand names the ADR above.
Expected vs Actual Behavior
Expected:
- An ADR rejects a tool only when a rejected option is about that tool. A link target, or a word that qualifies another thing ("Kubernetes Lease", "
ghCLI"), does not reject the tool. - The check never gives
rejectedfor the repository of the item. - An ADR that rejects a tool on one path still gives
rejectedon that path. Example: ADR 0018 rejects bubblewrap for the planner run tool, and feat(roadmap): wire sandboxed run tool into stage toolbox and prompt #4098 (check of 2026-11-18) has that verdict, although.devcontainer/Dockerfile:302installs bubblewrap. So "inventory first" alone is not a correct fix. The plan chooses the rule.
Actual: rejects() gives True for tools in use. Replay over the ADRs in force at 0d90de5:
| Tool names | ADRs that rejects() confirms |
|---|---|
kubernetes/kubernetes, kubernetes |
0005, 0016, 0021, 0022 |
<owner>/devops-cli, devops-cli |
0014, 0018, 0022 |
valkey-io/valkey, valkey |
0008, 0021, 0022 |
astral-sh/uv, uv |
0021 |
Environment Diagnostics
- DevOps CLI Version: 0.180.0 (
origin/main0d90de5) - Python Version: 3.14.10
- Execution Environment: the alternatives job of the roadmap Service in the cluster; the replay ran in the devcontainer.
Logs, Traces, or Terminal Output
# Alternatives block of #5524
Alternatives check of 2026-11-17: rejected.
Rejected by ADR 0021. A newer fact can change an ADR.
Tool: kubernetes/kubernetes (https://github.com/kubernetes/kubernetes), Apache-2.0, last activity 2026-11-17, maintained.
# Alternatives block of #4719
Alternatives check of 2026-11-14: rejected.
Rejected by ADR 0014. A newer fact can change an ADR.
Tool: <owner>/devops-cli (https://github.com/<owner>/devops-cli), MIT, last activity 2026-11-14, maintained.
# Verdicts of 7 days (Prometheus)
sum by (verdict) (increase(devops_cli_roadmap_alternatives_total[7d])) -> rejected ~17, in-use ~225Pre-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: "alternatives rejected" (title), "rejects ADR" (title), "false rejected verdict", "alternatives in-use rejected inventory". fix(roadmap): an ADR rejects a tool that no chosen option names #5082 (closed) fixed the chosen-option case of ADR 0010. feat(roadmap): Require a rejected alternative with a fact #3257 (open) is about another rule. No open issue covers this case.
Acceptance Criteria
- A test replays the replies of feat(roadmap): the poll frees the check-out of a gone job #5524, feat(gh): pass through gh repo, gh ruleset, gh variable and gh org #5323 and feat(roadmap): the implement Job gates before its PR #4719 with the ADR text and the inventory of 0d90de5. No check gives
rejected. - A test keeps
rejectedfor the feat(roadmap): wire sandboxed run tool into stage toolbox and prompt #4098 case: ADR 0018 rejects bubblewrap on the run-tool path. - A test: a rejected option that names the repository only in a link to one of its issues does not reject the repository.
- The requirements of
openspec/specs/roadmap-alternatives/spec.mdthat definerejectsand the verdict order state the new rule. - Live proof: after the merge and the release, a check of feat(roadmap): the poll frees the check-out of a gone job #5524, feat(gh): pass through gh repo, gh ruleset, gh variable and gh org #5323 and feat(roadmap): the implement Job gates before its PR #4719 gives no
rejected. A comment gives the new block lines.
Dependencies
- fix(roadmap): the alternatives check reads the tools in use #4661 (closed): delivered the inventory and the ADR test.
Merge order
#6347 (open) changes _verdict_of too. It is no blocker: rebase before the second of the two merges.
Related
Tracker #4624: target "false rejected verdicts: 0".
Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Searches found ADR authoring CLIs and generic Markdown parsers, but none decides whether a rejected ADR option names a tool as its subject or orders that test against the inventory, so the repository-specific rule still needs its own code.
Lacks:
- No matching of a tool name in a rejected ADR option
- No separation of link targets and qualifiers from the option subject
- No verdict order over own repository, ADR and inventory
Proposed design
Problem statement
The alternatives check gives false rejected verdicts. It matches a tool name in a link target or in a qualifier such as Kubernetes Lease or gh CLI. It also tests the ADR before the inventory, so a tool in use can get rejected. The fix makes the ADR match precise, treats the item's own repository as in use, and keeps genuine path-specific rejections such as ADR 0018 bubblewrap.
Acceptance criteria
Requirement: Ignore link targets
rejects() SHALL ignore Markdown link targets when it matches a tool name.
Scenario: A repository named only in an issue link
- WHEN a test calls
rejects()on ADR 0014 with the tool names<owner>/devops-clianddevops-cli - THEN the call returns
False.
Requirement: Kubernetes qualifier does not reject
rejects() SHALL NOT match a bare tool name that only modifies a different head noun in a rejected option title.
Scenario: A Kubernetes Lease
- WHEN a test calls
rejects()on ADR 0021 with the tool nameskubernetes/kubernetesandkubernetes - THEN the call returns
False.
Requirement: gh CLI instrument does not reject
rejects() SHALL NOT match a bare tool name that only follows the preposition through in a rejected option title.
Scenario: Everything through the gh CLI
- WHEN a test calls
rejects()on ADR 0006 with the tool namescli/cliandgh - THEN the call returns
False.
Requirement: Bundling CodeQL is a method
rejects() SHALL NOT match a bare tool name that only names the object of bundling in a rejected option title.
Scenario: The CodeQL CLI bundled by licence
- WHEN a test calls
rejects()on ADR 0005 with the tool namesgithub/codeqlandCodeQL - THEN the call returns
False.
Requirement: Genuine path rejection stays
_verdict_of SHALL return rejected for a tool that a rejected ADR option names as its subject, even when the inventory holds the tool.
Scenario: ADR 0018 rejects bubblewrap
- WHEN a test calls
_verdict_ofwith the ADR 0018 text, an inventory that holdsbubblewrap, and the toolbubblewrap - THEN the verdict is
rejected.
Requirement: Own repository is in use
_verdict_of SHALL return in-use and never rejected for the item's own repository.
Scenario: The item repository appears in a rejected ADR link
- WHEN a test calls
_verdict_ofwith the item repository<owner>/devops-cli, the ADR 0014 text, and a tool that names<owner>/devops-cli - THEN the verdict is
in-use.
Requirement: Replay of known false rejections
The check SHALL give no rejected verdict when it replays the ADR text and inventory of commit 0d90de50b for #5524, #5323 and #4719.
Scenario: Three known false rejections
- WHEN a test replays the stored ADR text and inventory for each of feat(roadmap): the poll frees the check-out of a gone job #5524, feat(gh): pass through gh repo, gh ruleset, gh variable and gh org #5323 and feat(roadmap): the implement Job gates before its PR #4719
- THEN no replay gives the verdict
rejected.
Requirement: Census tests pass
The ADR census tests SHALL pass with the new rejection rule.
Scenario: The census suite
- WHEN
uv run pytest tests/roadmap/test_roadmap_adr.py tests/roadmap/test_roadmap_alternatives.pyruns - THEN it exits 0.
Requirement: Spec states the rule
The roadmap-alternatives spec SHALL state the precise rejection rule and the verdict order.
Scenario: The change's spec delta validates
- WHEN
uv run openspec validate --strictruns on the change - THEN it exits 0 and the spec delta holds the updated requirements for
rejects()and_verdict_of.
Existing Tool Considered
The alternatives check in the issue body (2026-11-19) gives none with no tool. It lists the lacks: no matching of a tool name in a rejected ADR option, no separation of link targets and qualifiers, and no verdict order. The change extends existing functions in src/devops_cli/roadmap/adr.py and src/devops_cli/roadmap/alternatives.py. Written cost: about 8k tokens to build and test, about 2k tokens for each later change to keep and fix, and about one engineer-day.
Key questions
- How does
rejects()decide that a rejected ADR option names a tool?: Parse each rejected option title with a Markdown inline parser. Remove link targets before the match. Match the fullowner/namein the title. Match a bare name only when it is part of the head noun phrase of the option: the head noun, a product-name compound, or a versioned name. Do not match a bare name that modifies a different head noun, such asKubernetes Lease, or that followsthrough, such asgh CLI. Treatbundling the CodeQL CLIas a method, not a tool subject, and update the ADR 0005 census expectation toFalse. Keep the product-name cases true:agent-sandbox controller,IBM Carbon tokens,GitHub Primer primitivesandDBOS Transact in-process. (best practice) [sources: src/devops_cli/roadmap/adr.py:253, src/devops_cli/roadmap/adr.py:267, src/devops_cli/roadmap/adr.py:283, src/devops_cli/roadmap/adr.py:318, tests/roadmap/test_roadmap_adr.py:459, tests/roadmap/test_roadmap_alternatives.py:1325, openspec/specs/roadmap-alternatives/spec.md:492]- Rejected: Match every occurrence of the tool name. It matches link targets and qualifiers, so feat(roadmap): the poll frees the check-out of a gone job #5524, feat(gh): pass through gh repo, gh ruleset, gh variable and gh org #5323 and feat(roadmap): the implement Job gates before its PR #4719 get false
rejected. - Rejected: Match only the full owner/name. ADRs name bare tools such as
bubblewrapandAPScheduler, so a real rejection would be lost. - Chosen: Match the head noun phrase, ignore link targets and instruments. It rejects the tool that the option is about and ignores a link, a modifier or a
throughphrase. - Rejected: Keep the ADR 0005 CodeQL CLI expectation true. It treats a method rejection as a tool rejection and conflicts with the gh CLI case.
- Rejected: Match every occurrence of the tool name. It matches link targets and qualifiers, so feat(roadmap): the poll frees the check-out of a gone job #5524, feat(gh): pass through gh repo, gh ruleset, gh variable and gh org #5323 and feat(roadmap): the implement Job gates before its PR #4719 get false
- In what order does
_verdict_oftest the item repository, the ADR and the inventory?: Test the item's own repository first and returnin-use. Then test the precise ADR rejection and returnrejected. Then test the inventory and returnin-use. Then use the model verdict. This order keeps ADR 0018 bubblewrap rejected and stops a tool in use from gettingrejectedthrough a loose ADR match. (best practice) [sources: src/devops_cli/roadmap/alternatives.py:1172, openspec/specs/roadmap-alternatives/spec.md]- Rejected: Test the inventory before the ADR. ADR 0018 rejects bubblewrap for the planner run tool, although
.devcontainer/Dockerfile:302installs bubblewrap. - Rejected: Keep the ADR before the inventory with the current matcher. The current matcher gives false
rejectedfor tools in use. - Chosen: Test the own repository, then the precise ADR, then the inventory. It keeps genuine path-specific rejections and gives
in-usefor the item's own repository.
- Rejected: Test the inventory before the ADR. ADR 0018 rejects bubblewrap for the planner run tool, although
- Which open, maintained tool or library covers this need?: No open, maintained tool or library covers this need. The alternatives check in the issue body (2026-11-19) gives
nonewith no tool. It lists the lacks: no matching of a tool name in a rejected ADR option, no separation of link targets and qualifiers, and no verdict order. The change extends existing functions insrc/devops_cli/roadmap/adr.pyandsrc/devops_cli/roadmap/alternatives.py. Written cost: about 8k tokens to build and test, about 2k tokens for each later change to keep and fix, and about one engineer-day. (best practice) [sources: src/devops_cli/roadmap/adr.py, src/devops_cli/roadmap/alternatives.py, openspec/specs/roadmap-alternatives/spec.md]- Rejected: Use a generic Markdown parser for link spans. It parses Markdown but does not decide the subject of a rejected option or the verdict order.
- Rejected: Use an ADR authoring tool. It manages ADR files and does not match a tool name or order the verdict.
- Chosen: Extend the existing matcher and verdict function. The change is small and stays in the code that owns the rule.
- Should the census replay keep or flip the ADR 0005
github/codeqlexpectation, and how areCLIqualifiers and multi-word or versioned subjects distinguished?: Flip the ADR 0005 expectation toFalse. ADR 0005 rejects bundling the CodeQL CLI by its licence, not the CodeQL tool. The rule uses the head noun phrase: a bare name matches when it is the head or part of a product-name head. It does not match when it modifies a different head noun or followsthrough. A version stays part of the head. A product-name compound stays part of the head. This keepsAPScheduler 4,agent-sandbox controller,IBM Carbon tokens,GitHub Primer primitivesandDBOS Transact in-processtrue, and makesKubernetes Lease,gh CLIandCodeQL CLIfalse. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md:52, tests/roadmap/test_roadmap_adr.py:459, tests/roadmap/test_roadmap_adr.py:463, tests/roadmap/test_roadmap_alternatives.py:1325, openspec/specs/roadmap-alternatives/spec.md:492]- Rejected: Keep the ADR 0005 expectation true. It treats a method rejection as a tool rejection and conflicts with the gh CLI case.
- Chosen: Flip the ADR 0005 expectation to false. It is consistent with the method and subject rule.
- Rejected: Special-case CLI as a tool suffix. It keeps gh CLI true and does not separate the two cases.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
Both target false rejected verdicts in the alternatives check, but #4661 added the ADR-based check while this candidate fixes the matching logic that check relies on.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See 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 (9)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 19, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
fix(roadmap): Keep blockers that a sentence opens with other words (#…
5 remaining items
devops-cli-service commentedon Nov 25, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
chore(main): release 0.219.0 (#7177)
devops-cli-service commentedon Nov 25, 2026
Released in v0.219.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.219.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 17:09 UTC