Repository navigation
Description
Problem Description
The command check of the stage job refuses text that is no command. The check is command_citation_problems in src/devops_cli/roadmap/stage/stage_commands.py. The gate is citation, and the code is stage_problem_command_reference. A false refusal costs one more reply of the model, and an item can end with no plan.
Reproduction Steps
Give command_citation_problems a plan with one of these feasibility lines.
- A code span that is the name of a spec requirement:
For the requirement `devops pr describe has a JSON format`, write a test.
- A quoted source line that holds backticks. The citation rules ask the model for such a quote:
`read_file` showed `docs/ENV_VARS.md:3:Generated by `uv run devops docs generate` from `src/x.py`. Do not edit.
Expected vs Actual Behavior
Expected: the check returns no problem for the two lines.
Actual for line 1: missing required parameter '--summary' for 'devops pr describe'. 33 requirement names in openspec/specs start with devops . A plan that changes one of them must name it. A new requirement of the reply has the same problem.
Actual for line 2: unknown command 'generate' under 'devops docs'`. The backticks of the quote break the pairs of the line, so the check reads the command as prose and keeps the closing backtick in its last word.
A paired plan-only run of Ready items on two models recorded these refusals. stage_problem_command_reference was the second most frequent refusal for each model, and most of its findings had the first form.
Acceptance criteria
- A code span that is the name of a requirement of a base spec, or of the spec delta of the reply, gives no command problem.
- A quoted line that holds a command between backticks gives no command problem when the command resolves.
- A wrong command is still refused, as a code span and in a sentence.
Environment Diagnostics
- DevOps CLI Version: 0.264.1
- Python Version: 3.14
- Execution Environment: DevContainer
Activity
dan-petty commentedon Nov 30, 2026
False refusals cause extra model replies (increased AI spend) and can leave items with no plan.Both target the command citation gate in stage_commands.py, but 4956 fixes prose words being appended to a valid command, while the candidate fixes non-command code spans and broken backtick pairs being misread as commands.devops-cli-service commentedon Nov 30, 2026
Released in v0.265.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.265.0
devops-cli-service commentedon Nov 30, 2026
Live since 2026-11-30 22:54 UTC