Skip to content

fix(roadmap): diagnose unmarked verification commands in plan reader #4010

Description

@dan-petty

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

  1. Create a tasks.md file where a task contains:
    - Verification: \uv run devops ci test tests/sample.py` fails on the base`
  2. Run devops roadmap plan-check <number>.
  3. 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.py fails 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.py fails on the base.
  • THEN parse_task_groups returns the group with the verification command uv run devops ci test tests/sample.py and 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 other and 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_groups does 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_groups in src/devops_cli/roadmap/plan_read.py parses 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 kind other from 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 kind other. (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.
  • Where should the regression tests go?: Add cases to tests/roadmap/stage/test_roadmap_stage_task_verification.py. Keep tests/roadmap/test_roadmap_plan_rewrite.py passing. (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

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The wrong error message misleads users but does not block the plan or cause data loss.
    • Value: Medium. A precise diagnostic saves user time when a common formatting mistake occurs.
    • Effort: Low. Adding one targeted diagnostic branch in the plan reader is a small, localized change.
    • Related: fix(roadmap): plan-recheck rewrites unmarked verification commands #3967, which asks for a different 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.
  3. added
    priority/p2-medium
    on Nov 7, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 8, 2026
  5. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 5c9fb88 (see proposed design in issue body).

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

    @devops-cli-service
    Contributor

    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_groups in plan_read.py) for a $ marker on Verification: 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:

    • Check for the $ marker only on code spans of Verification: lines
    • Error that names the task group, raised before the group kind is inferred

    Searches run:

    • markdown linter custom rule code span must start with prefix in list item, results: 5

    Checked on 2026-11-09. A person decides what this means for the item. The check changes no label and closes no issue.

  7. added
    status/in-review
    and removed
    status/ready
    on Nov 14, 2026
  8. removed
    status/in-review
    on Nov 14, 2026
  9. added a commit that references this issue on Nov 14, 2026
  10. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 15:02 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/lowpriority/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