Repository navigation
docs(cli): help text for every option; test the deferred list - #1420
Conversation
86 option entries across eval, arms, skill novelty, subjects, tasks, explore, delivery, data, docs, benchmark, repo and tools had no help text. Each now says what the option does, read from the code it sets. No name, default, choice, type or behaviour changes; the CLI snapshot has no help keys and is unchanged. tests/test_cli_option_help.py walks build_parser(): every non-suppressed option and positional has help, except the DEFERRED options (model and judge family, plus the output and inputs renames of this wave). A DEFERRED row fails once it is gone or fully documented. Part of intel#94 Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 22 selected item(s). CI at Review limit reached. This PR has had 6 reviews, so it will only be reviewed again when you ask. Test notes (2)
Review details
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1420 +/- ##
==========================================
- Coverage 96.47% 96.46% -0.01%
==========================================
Files 533 533
Lines 71339 71340 +1
Branches 12333 12333
==========================================
- Hits 68823 68818 -5
- Misses 1540 1541 +1
- Partials 976 981 +5
🚀 New features to boost your workflow:
|
Mutation of changed linesAt 5853150: 4 caught · 2 missed · 2 inconclusive · 72 not tried in time Each row is a small deliberate break (a mutant) of a line this PR changes that every test reaching that line still passes. Add a test that fails on it or, if it cannot change behaviour, put
Not the whole picture:
Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary. |
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟡 Changes needed · reviewed 109ce01
To fix: a few new help texts say something the code does not do (line comments); the smaller wording points there are optional.
✅ make ci-local --offline: 31,395 passed, 116 skipped (the changed-line mutation step did not finish here) · ✅ 142 options without help on the base, 56 on this head, all in DEFERRED: the "86" holds · ✅ every change only sets help=
A useful sweep, and the test keeps new options from landing without help.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> # Conflicts: # dokimi/dokimi/commands/judge_reliability.py # dokimi/dokimi/commands/questions.py # dokimi/dokimi/commands/skill.py
Thread: PRRT_kwDOVBg7g869mN9o Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g869mN9z Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g869mN-B Thread: PRRT_kwDOVBg7g869mN-I Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g869mN94 Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g869mN99 Thread: PRR_kwDOVBg7g88AAAABbIMQsg Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
Re: review by vlad-perevezentsev
|
vchamarthi
left a comment
There was a problem hiding this comment.
@napetrov, could you fix the problem I found (in the line comments)? Then push and I'll take another look.
Also holding my approval:
- A check of the change fails on this head.
What I checked on 1047c41:
- The full test suite fails with main merged in, at
tests/test_cli_option_help.py::test_every_option_has_help_or_is_deferred,ci.yml:test / Run tests,ci.yml:test / Repeat changed tests. - When I changed the code on purpose, the tests still passed for 9 of 12 changes, and no test pins these down yet (non-blocking):
dokimi/dokimi/commands/answer_formats.py:122(the call is dropped),dokimi/dokimi/commands/arms.py:355(the call is dropped),dokimi/dokimi/commands/arms.py:478(the call is dropped) and 6 more. - The 3 changed tests pass, and fail on main as expected.
- It merges cleanly onto main.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-G2if Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRR_kwDOVBg7g88AAAABbZXjag Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open issues
This test relies onargparseprivate APIs (parser._actionsand… · New This test relies onargparseprivate APIs (parser._actionsand… · New The_parsers()docstring says it yields each parser 'once per parser object', but the current… · New The help string contains non-ASCII punctuation (curly apostrophe’and en dash–). CLI help… · New
What changed in this PR
This PR expands CLI option/positional help text across the command tree and adds a test to enforce that all visible CLI actions have help, with an explicit deferred list for intentionally undocumented flags (e.g., model/judge family owned by #1197).
Changes:
- Added
tests/test_cli_option_help.pyto validate help coverage and to fail on stale deferrals. - Added/expanded
help=strings for many existing options across CLI command modules (without changing flags/defaults/types). - Added a changelog fragment documenting the CLI help expansion.
| File | Description |
|---|---|
| dokimi/tests/test_cli_option_help.py | New test that walks the CLI parser tree, enforcing per-action help with a deferred allowlist. |
| dokimi/dokimi/commands/tools.py | Adds help text for tools preference options (--concurrency, --out). |
| dokimi/dokimi/commands/tasks.py | Adds help for tasks run output/baseline harness flags. |
| dokimi/dokimi/commands/subjects.py | Adds help for several subjects run options (output dirs, concurrency, retrieval knobs). |
| dokimi/dokimi/commands/skill.py | Adds help for skill novelty * output/view/verification flags and token ceilings. |
| dokimi/dokimi/commands/run.py | Adds help for docs check/compare spec and output options. |
| dokimi/dokimi/commands/routing_parser.py | Adds help for routing/sensitivity output and token ceiling flags. |
| dokimi/dokimi/commands/repo_skill_reach.py | Adds help for repo skill reach --max-turns. |
| dokimi/dokimi/commands/repo_run.py | Adds help for repo run --reps. |
| dokimi/dokimi/commands/questions.py | Adds help for question refinement targets and review concurrency. |
| dokimi/dokimi/commands/novelty_flags.py | Adds help for novelty model concurrency and probe toggles. |
| dokimi/dokimi/commands/judge_reliability.py | Adds help for concurrency/baseline/seeding/min-accuracy options. |
| dokimi/dokimi/commands/explore.py | Adds help for baseline arm and output paths in explore run. |
| dokimi/dokimi/commands/delivery.py | Adds centralized help strings for delivery path flags and --json/positional help. |
| dokimi/dokimi/commands/dataset.py | Adds help for export --kind and --format. |
| dokimi/dokimi/commands/data.py | Adds help for data schema show kind. |
| dokimi/dokimi/commands/benchmark.py | Adds help for preflight concurrency/retrieval tokens and batch output dir. |
| dokimi/dokimi/commands/arms.py | Adds help for rerank threshold, concurrency, and plugin-delta --out. |
| dokimi/dokimi/commands/answer_formats.py | Adds help for reference scoring concurrency. |
| dokimi/changelog.d/20261129_150111_napetrov_docs-cli-help-strings.md | Changelog entry describing the expanded CLI help and new enforcement test. |
Review effort: Lite
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-LcoC Thread: PRRT_kwDOVBg7g86-Lcm8 Thread: PRRT_kwDOVBg7g86-Lcne Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-Lcoo Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
The option-help check now visits shared parsers once, and the judge accuracy help uses ASCII punctuation. |
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟢 LGTM · re-checked 8b00a9f · nothing required from @napetrov
🔀 Merge: safe now · merges cleanly into current main, 13 commits behind; its tests pass on the merge · after it, #1197 (benchmark.py, routing_parser.py, skill.py), #1413 (novelty_flags.py, skill.py) and #1522 (run.py) need a rebase
✅ make ci-local --offline: 32,487 passed, 125 skipped · ✅ tests/test_cli_option_help.py on a merge with current main: 4 passed · ✅ a new command's --root without help now fails the test
The earlier points are fixed; the deferred list now excuses only the exact command and option.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> # Conflicts: # dokimi/dokimi/commands/benchmark.py # dokimi/dokimi/commands/routing_parser.py # dokimi/dokimi/commands/skill.py
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> (cherry picked from commit e249323eb321bbc70ac425c03170071d835a143c)
* docs(cli): help text for the 18 options DEFERRED still listed; empty the list The renames that #1420 waited on have landed, so the options that the DEFERRED list still covered get their help text here. DEFERRED is now empty, and the option-help test fails on any visible option without help. Part of #94 (Q15: help strings). Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * fix(subjects): --out-md help names its real default Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com> --------- Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com> Co-authored-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>


Part of #94 (Q15: help strings and labels; REVIEW M3).
Summary
agent replay --profile. The CLI interface snapshot confirms identical flags, defaults, choices, and types.tests/test_cli_option_help.pychecks that every visible option and positional has help.DEFERREDlists exact command and option pairs and rejects stale entries.benchmark preflightandrepo comparestayFREE(see below). The model and judge options introduced by Part of #94 (F1b, model + judge) #1197 are preserved.Table (leaf, option, new help)
agent replay--profilearms matrix-run--concurrencyarms matrix-run--rerank-thresholdarms plugin-delta--outarms run--concurrencyarms run--rerank-thresholdbenchmark batch--out-dirbenchmark preflight--concurrencybenchmark preflight--retrieval-tokenscatalog novelty--concurrencycatalog novelty--no-paraphrasecatalog novelty--no-reversalcatalog routing--max-output-tokenscatalog routing--outdata export--formatdata export--kinddata schema showkinddelivery release--jsondelivery release--manifestdelivery release--outdelivery release--policydelivery release--tasksdelivery report--jsondelivery reportresultdelivery scan--corpusdelivery scan--jsondelivery scan--manifestdelivery scan--outdelivery scan--tasksdocs check--outdocs check--specdocs compare--candidatedocs compare--outeval judge agreement--baseline-armeval judge agreement--concurrencyeval judge wording--concurrencyeval judge wording--min-accuracyeval judge wording--seedeval questions refine--target-advancedeval questions refine--target-beginnereval questions refine--target-intermediateeval questions review--concurrencyeval score checklist--concurrencyeval score pairwise--baseline-armeval score pairwise--concurrencyeval score reference--concurrencyexplore run--baseline-armexplore run--outexplore run--out-dirrepo run--repsrepo skill reach--max-turnsskill novelty analyze--concurrencyskill novelty analyze--formatskill novelty analyze--no-paraphraseskill novelty analyze--no-reversalskill novelty analyze--no-shortenskill novelty analyze--outskill novelty analyze--out-dirskill novelty atoms--max-output-tokensskill novelty atoms--no-verifyskill novelty atoms--outskill novelty items--outskill novelty probe--concurrencyskill novelty probe--no-paraphraseskill novelty probe--no-reversalskill novelty probe--outskill novelty retest--scoringskill novelty view--formatskill novelty view--outskill routing--max-output-tokensskill routing--outskill shorten--max-output-tokenssubjects run--concurrencysubjects run--context7-idsubjects run--max-iterationssubjects run--no-plugin-deltassubjects run--outsubjects run--out-dirsubjects run--rerank-thresholdsubjects run--top-ksubjects run--work-baseline-harnesssubjects run--work-command-templatesubjects run--work-output-dirtasks run--baseline-harnesstasks run--outtasks run--out-dirtools preference--concurrencytools preference--outKept without help (deferred, with reason)
tests/test_cli_option_help.pylists the 18 remaining command and option pairs without help. It checks that every entry still exists and still lacks help. Those entries cover the remaining model and judge options,--out-mdon four commands, anddocs check --root. Removed provider options and the now-documented extractor options are no longer deferred.REVIEW M3
benchmark preflightis FREE because it validates the execution plan and prints an independence warning.repo compareis FREE because it reads and scores saved results. The CLI interface snapshot confirms their labels.Test
pytest tests/test_cli_option_help.py: verifies help coverage, rejects stale deferrals, and rejects a new command reusing a deferred option. Compared the generated CLI interface from both trees to verify the help edits preserve the interface.Changelog fragment:
changelog.d/20261129_150111_napetrov_docs-cli-help-strings.md(### Changed).🤖 Generated with Claude Code