You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(docs): the docs check validates the options inside optional-group brackets such as [-v <ver>] #1299
priority/p3-lowPriority P3: a small improvementscope/docsDocuments, guides, ADRs and generated referencestype/bugType bug: the code does not do what it must
Copilot thread 3 on #1283, verified at 61f9b67. markdown_argv_collector treats any token that starts with [ or ends with ] as a placeholder [code: src/devops_cli/docs/markdown_argv_collector.py:35], so a bad option written inside brackets escapes the check. Requiring a matched pair, as suggested, would break RELEASE_CYCLE.md:142-145, where [-v <ver>] splits into [-v and <ver>]. It came in with #921 (bfd4229).
Acceptance criteria
The check strips optional-group brackets and validates the option inside, so [-v <ver>] passes and [--no-such-flag] fails. Tests cover both.
changelog.d/<n>.md records the change; CHANGELOG.md and docs/ROADMAP.md are not edited.
devops docs check now validates an option written inside synopsis optional-group brackets ([-v <ver>], [--json]). It used to skip it as a placeholder, so a misspelled option such as [--no-such-flag] passed the check.
_tokenize_command in src/devops_cli/docs/markdown_argv_collector.py now maps each word through a new _argv_token. It strips one leading [ and one trailing ], and a word that then starts with - is that option. Every other word keeps the existing is_placeholder mapping, so <ver>], INT], [OPTIONS] and [ARGS]... stay placeholders. A matched-pair rule was rejected because shlex splits [-v <ver>] into [-v and <ver>].
The -p/-v options in the devops release table of RELEASE_CYCLE.md are now checked, and they resolve. All checked docs stay at 0 findings.
Updated the two lines of docs/agent/tasks/task-921-docs-name-only-what-exists.md that this change made stale. Added changelog.d/1299.md and docs/agent/tasks/task-1299-docs-check-validates-optional-group-options.md.
Acceptance Criteria of docs/agent/tasks/task-1299-docs-check-validates-optional-group-options.md:
[-v <ver>] resolves with -v checked as an option, and [--no-such-flag] is reported as an unknown option: test_an_option_in_optional_group_brackets_is_validated in tests/test_docs_knowledge_base_argv.py.
changelog.d/1299.md records the fix under ### Fixed. CHANGELOG.md and docs/ROADMAP.md are not edited.
priority/p3-lowPriority P3: a small improvementscope/docsDocuments, guides, ADRs and generated referencestype/bugType bug: the code does not do what it must
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to v0.2.30: a critical fix can join v0.2.30 after it starts.
Closes a hole in the docs-check gate so invalid options inside optional groups are caught before release.The fix is localized to one function in markdown_argv_collector.py plus two test cases, as the body specifies.fix(docs): the docs check validates the options inside optional-group…
dan-petty-bot commentedon Oct 9, 2026
What changed
#1458, merged into
release/v0.2.30as 6b65810.5 file(s) changed.
How it was verified
Check runs at 54fe3ec:
Acceptance Criteria of
docs/agent/tasks/task-1299-docs-check-validates-optional-group-options.md:[-v <ver>]resolves with-vchecked as an option, and[--no-such-flag]is reported as an unknown option:test_an_option_in_optional_group_brackets_is_validatedintests/test_docs_knowledge_base_argv.py.changelog.d/1299.mdrecords the fix under### Fixed.CHANGELOG.mdanddocs/ROADMAP.mdare not edited.uv run devops cipasses.feat(release): v0.2.30 (#1473)