Repository navigation
Description
Problem Description
The plan reader reports a wrong error when a verification command lacks the prefix $ .
Pull request #3912 established that command spans in Verification: lines must start with $ . When a command lacks $ , parse_task_groups treats the code span as prose. The verification field of the task becomes empty.
The reader then infers that the task group has the kind other. It emits the error:
Value error, The group '<title>' has the kind other, and it has neither verify nor process.
This message misleads the user. The group is a behavior group, but the command span lacks the command prefix.
Reproduction Steps
- Create a
tasks.mdfile where a task contains:
- Verification: \uv run devops ci test tests/sample.py` fails on the base` - Run
devops roadmap plan-check <number>. - Read the output error message.
Expected vs Actual Behavior
Expected: The plan reader detects the unmarked command span. It emits a diagnostic that tells the user to add $ to the command span.
Actual: The plan reader classifies the group as other. It complains that the group lacks both verify and process.
Environment Diagnostics
- DevOps CLI Version: 0.82.0
- Python Version: 3.14.10
- OS & Architecture: Linux x86_64
- Execution Environment: DevContainer
Proposed design
Problem statement
The plan reader reports a misleading group-kind error when a Verification: command span lacks the $ prefix. The reader must detect the unmarked span and tell the user to add $ .
Acceptance criteria
Requirement: Unmarked verification command diagnostic
When a Verification: line has a code span that does not start with $ , the plan reader SHALL raise a diagnostic that names the task group and tells the user to add $ .
Scenario: Unmarked command span
- WHEN A tasks.md file contains: - Verification:
uv run devops ci test tests/sample.pyfails on the base. - THEN
devops roadmap plan-check <number>exits nonzero, and the error names the group and contains the instruction to add$.
Requirement: Valid verification command parsing
The plan reader SHALL continue to parse a Verification: line whose code span starts with $ as the group's verification command.
Scenario: Marked command span
- WHEN A tasks.md file contains: - Verification:
$ uv run devops ci test tests/sample.pyfails on the base. - THEN
parse_task_groupsreturns the group with the verification commanduv run devops ci test tests/sample.pyand raises no unmarked-command error.
Requirement: No group-kind misclassification
The plan reader SHALL check the command marker before it infers the kind of a task group.
Scenario: Unmarked command is not reported as kind other
- WHEN A behavior task group has a
Verification:line with a code span that lacks$. - THEN The error does not contain the text
has the kind otherand does contain the missing-marker diagnostic.
Requirement: Non-verification code spans unchanged
The plan reader SHALL apply the missing-marker check only to code spans on a Verification: line.
Scenario: Inline code outside a Verification line
- WHEN A tasks.md file has a prose line with a code span that lacks
$. - THEN
parse_task_groupsdoes not raise the missing-marker error.
Existing Tool Considered
No check has run. No open, maintained tool or library covers a diagnostic for this repository's internal plan grammar. Build the fix in the project: about 40k tokens to implement and test, about 10k tokens per year to keep and fix, and 0.5 day elapsed.
Key questions
- What marks a verification command in a tasks.md Verification line?: The command span must start with
$, a dollar sign and one space, before the command. [sources: tests/roadmap/stage/test_roadmap_stage_task_verification.py, src/devops_cli/roadmap/plan_read.py] - Which code parses task groups and infers the group kind?:
parse_task_groupsinsrc/devops_cli/roadmap/plan_read.pyparses the groups and infers the kind. [sources: src/devops_cli/roadmap/plan_read.py, docs/roadmap/plan-recheck.md:54] - How should the reader handle a code span on a Verification line that lacks
$?: Reject it with a diagnostic that names the group and tells the user to add$. Do not infer kindotherfrom the empty verification field. (best practice) [sources: tests/roadmap/stage/test_roadmap_stage_task_verification.py, src/devops_cli/roadmap/plan_read.py]- Chosen: Reject the unmarked span at parse time. It reports the real cause and matches the command grammar.
- Rejected: Keep the span as prose and improve the kind error. It still hides the missing marker and misleads the user.
- Rejected: Accept the span as a command without
$. It hides a grammar error and lets malformed plans pass.
- What should the new diagnostic contain?: It should name the task group and say to add
$to the command span. It should not say the group has kindother. (best practice) [sources: src/devops_cli/roadmap/plan_read.py]- Chosen: Name the group and the missing
$prefix. The user sees the cause and the fix. - Rejected: Reuse the kind-other message. That message misstates the problem.
- Chosen: Name the group and the missing
- Where should the regression tests go?: Add cases to
tests/roadmap/stage/test_roadmap_stage_task_verification.py. Keeptests/roadmap/test_roadmap_plan_rewrite.pypassing. (best practice) [sources: tests/roadmap/stage/test_roadmap_stage_task_verification.py, tests/roadmap/test_roadmap_plan_rewrite.py]- Chosen: Extend the verification test module. It already covers Verification line parsing.
- Rejected: Add a new test module. It duplicates existing coverage.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-09: none.
Tool: none found.
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The wrong error message misleads users but does not block the plan or cause data loss.A precise diagnostic saves user time when a common formatting mistake occurs.Adding one targeted diagnostic branch in the plan reader is a small, localized change.Both address unmarked verification commands after #3596, but 3967 fixes the plan-recheck rewrite logic while this candidate fixes the plan-check diagnostic message.devops-cli-service commentedon Nov 8, 2026
Status set to Ready at 5c9fb88 (see proposed design in issue body).
devops-cli-service commentedon Nov 9, 2026
Alternatives check: none
Reason: One search found no tool for this. The fix is a diagnostic in the project's own plan grammar (
parse_task_groupsinplan_read.py) for a$marker onVerification:lines. A general Markdown linter does not know that grammar, so it cannot give the group-specific error the issue asks for.Tool: none found
Lacks:
$marker only on code spans ofVerification:linesSearches run:
Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.
test(roadmap): check the marker text without an opaque tuple (#4010)
chore(main): release 0.138.0 (#5690)
devops-cli-service commentedon Nov 14, 2026
Released in v0.138.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.138.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 15:02 UTC