Repository navigation
fix(docs): report missing required options in command resolver - #6373
Merged
dan-petty merged 2 commits intoNov 20, 2026
Merged
Conversation
The devops-pr-ci skill instructs agents to run `uv run devops pr describe <issue>`. The command requires the option `--summary`. The command resolver only checks for unknown commands, unknown options, and unexpected arguments. It does not report a missing required option or argument. Because of this omission, documentation checks and stage plan checks accept invalid command lines. Agents then copy these invalid command lines and encounter runtime errors. Closes #4862 Change: `openspec/changes/archive/2026-11-19-4862-the-argv-check-finds-a-missing-required-option/`
The first draft scanned the tokens for each required option by hand. It missed Click forms such as `-sx` when a placeholder failed conversion first, and it ignored a default and an environment variable. The resolver now runs Click's option parser, `consume_value` and `value_is_missing` on a probe context, the same probe that `_gives_action_option` uses. The new check finds `devops review benchmark --no-static-scan` in docs/SELF_IMPROVEMENT.md, which gives no targets: the line now names `<targets>`. The change carries spec deltas, because `devops docs check` and the stage plan-check show the new message: the new capability docs-command-lines and one requirement in roadmap-stage/claims.
dan-petty
force-pushed
the
fix/4862-the-argv-check-finds-a-missing-required-option
branch
from
November 20, 2026 16:42
fd66446 to
d5124c6
Compare
dan-petty
marked this pull request as ready for review
November 20, 2026 16:49
dan-petty
deleted the
fix/4862-the-argv-check-finds-a-missing-required-option
branch
November 20, 2026 17:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The devops-pr-ci skill told agents to run
devops pr describe <issue>with no--summary. The command resolver ofdevops docs checkand the stage plan-check did not find a missing required option or argument, so agents copied the line and failed.The resolver now reports
missing_requiredwith the parameter name. When the strict parse fails, it asks Click's option parser,consume_valueandvalue_is_missingon a probe context, because a placeholder that fails conversion hidesMissingParameter. A placeholder fills an argument, never an option. A bare command mention gives no finding.The change corrects the nine document lines that the check found. It adds the capability
docs-command-linesand one requirement inroadmap-stage/claims.Closes #4862
Change:
openspec/changes/archive/2026-11-20-4862-the-argv-check-finds-a-missing-required-option/