Skip to content

docs(cli): help text for the 18 options DEFERRED still listed - #1570

Merged
napetrov merged 2 commits into
intel:mainfrom
napetrov:test/cli-help-deferred
Dec 3, 2026
Merged

napetrov merged 2 commits into
intel:mainfrom
napetrov:test/cli-help-deferred

Conversation

@napetrov

@napetrov napetrov commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Part of #94 (Q15: help strings; follow-up to #1420).

Summary

  • Adds help text to the 18 options that DEFERRED in tests/test_cli_option_help.py still listed. The renames they waited on have landed.
  • DEFERRED is now empty, so the test has no escape hatch: any visible option without help fails.
  • Help-only change. The CLI interface snapshot has no help field, so flags, defaults, choices and types are unchanged.

Table (leaf, option, new help)

leaf option help added
arms matrix-run --judge-provider Provider the judge model runs on (see --judge-model)
arms plugin-delta --out-md Plugin-delta Markdown output path (default: next to the JSON output)
arms run --judge-provider Provider the judge model runs on (see --judge-model)
benchmark batch --model Model under test (MODEL or PROVIDER/MODEL)
benchmark preflight --model Model under test (MODEL or PROVIDER/MODEL)
benchmark run --model Model under test (MODEL or PROVIDER/MODEL)
docs check --out-md Markdown report path (default: reports/current.md)
docs check --root Repository root the benchmark spec is run against (default: .)
docs compare --out-md Markdown comparison report path (default: reports/compare.md)
eval questions refine --fill-model Model that writes the questions for --fill-gaps
eval questions refine --fill-provider Provider for --fill-model
eval questions review --model Model the panel reviewers run on
eval score pairwise --escalate-provider Provider for --escalate-model
explore run --model Model for the explore runner, recorded in the run (default: none)
subjects run --judge Also score each arm with the LLM-as-judge
subjects run --judge-provider Provider the judge model runs on (see --judge-model)
subjects run --out-md Subject scorecard Markdown path (default: none)
subjects run --work-model Model for the task-suite work harnesses (default: --model)

Changelog

Fragment dokimi/changelog.d/20261202_120000_napetrov_cli-help-deferred.md (Documentation): the help text is user-visible.

Kept rows

None. Every row that DEFERRED listed now has help.

Not in this PR

  • subjects run --model stays argparse.SUPPRESS (hidden on purpose); the walk skips suppressed options.

Evidence

  • Before: a probe on intel/main bb6f920 lists all 18 rows as missing help.
  • After: pytest tests/test_cli_option_help.py passes 4 of 4. Full suite pytest -n 16: 34213 passed, 29 skipped. make ci-local CI_LOCAL_ARGS='--offline --jobs static,typecheck': 0 failed, 17 passed, 3 skipped.

🤖 Generated with Claude Code

…the list

The renames that intel#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 intel#94 (Q15: help strings).

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov
napetrov requested a review from a team as a code owner December 3, 2026 07:20
@napetrov napetrov added the cli-interface-change Changes dokimi's user-facing CLI surface label Dec 3, 2026
Copilot AI balanced review requested due to automatic review settings December 3, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The --out-md help text incorrectly states “default: none,” although omitting it still writes a Markdown copy derived from --out.

1 open issue
What changed in this PR

1 new finding.

Completes the CLI help follow-up to #1420 under #94, documenting the 18 remaining deferred options without changing flags or runtime behavior.

Changes:

  • Adds help for model, provider, output, and other options.
  • Empties DEFERRED, enforcing help coverage for all visible options.
  • Records the user-visible documentation update.
File Description
dokimi/​tests/​test_cli_option_help.py Removes all deferred help exceptions.
dokimi/​dokimi/​commands/​subjects.py Documents scorecard, judge, and work-model options.
dokimi/​dokimi/​commands/​run.py Documents repository root and Markdown outputs.
dokimi/​dokimi/​commands/​questions.py Documents generation and review models.
dokimi/​dokimi/​commands/​judge_reliability.py Documents the escalation provider.
dokimi/​dokimi/​commands/​explore.py Documents the runner model.
dokimi/​dokimi/​commands/​benchmark.py Documents model options on three commands.
dokimi/​dokimi/​commands/​arms.py Documents judge providers and Markdown output.
dokimi/​changelog.d/​20261202_120000_napetrov_cli-help-deferred.md Records the added CLI help.

Review effort: Balanced

Comment thread dokimi/dokimi/commands/subjects.py Outdated
help="Subject scorecard JSON path (default: subject-scorecard.json in --out-dir)")
run_p.add_argument("--out-md", default=None, dest="out_md")
run_p.add_argument("--out-md", default=None, dest="out_md",
help="Subject scorecard Markdown path (default: none)")
@github-actions github-actions Bot removed the cli-interface-change Changes dokimi's user-facing CLI surface label Dec 3, 2026
@exai-bot

exai-bot commented Dec 3, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 9 selected item(s).

CI at f63a540: 21 passing, 4 skipped.

Review details
  • Commit reviewed: f63a540 against merge base bb6f920
  • Coverage: 9 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 95k tokens (66k from cache), 12s
  • Tool calls: 14 (7 file_read, 5 code_search, 1 ci_status, 1 local_check_results)
  • Deferred CLI option help across commands, tests, and changelog: 9 files

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Mutation of changed lines

⚠️ Tests miss 5 of 13 small breaks of the lines this PR changes

At f63a540: 8 caught · 5 missed

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 # mutation-ok[<operator>]: <reason> at the end of the line or alone on the line above.

Where Operator Change no test notices Tests reaching the line
dokimi/dokimi/commands/explore.py:186 delete-statement run_p.add_argument("--model", default=None, help="Model for the explore runner, → pass 713
dokimi/dokimi/commands/questions.py:425 delete-statement refine_q_p.add_argument("--fill-model", default=DEFAULT_GENERATOR_MODEL, dest="f → pass 713
dokimi/dokimi/commands/questions.py:428 drop-element ["openai", "anthropic", "google"] → ["anthropic", "google"] 713
dokimi/dokimi/commands/questions.py:428 drop-element ["openai", "anthropic", "google"] → ["openai", "anthropic"] 713
dokimi/dokimi/commands/questions.py:428 drop-element ["openai", "anthropic", "google"] → ["openai", "google"] 713

Not checked:

  • 18 changed lines were not mutated

Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary.

@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.50%. Comparing base (bb6f920) to head (f63a540).
⚠️ Report is 11 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1570      +/-   ##
==========================================
+ Coverage   96.48%   96.50%   +0.02%     
==========================================
  Files         537      540       +3     
  Lines       72051    72237     +186     
  Branches    12438    12451      +13     
==========================================
+ Hits        69516    69710     +194     
+ Misses       1551     1547       -4     
+ Partials      984      980       -4     
Files with missing lines Coverage Δ
dokimi/dokimi/commands/arms.py 97.78% <100.00%> (ø)
dokimi/dokimi/commands/benchmark.py 94.63% <ø> (ø)
dokimi/dokimi/commands/explore.py 92.23% <100.00%> (ø)
dokimi/dokimi/commands/judge_reliability.py 98.30% <100.00%> (ø)
dokimi/dokimi/commands/questions.py 90.34% <100.00%> (ø)
dokimi/dokimi/commands/run.py 97.22% <100.00%> (ø)
dokimi/dokimi/commands/subjects.py 96.44% <100.00%> (ø)

... and 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@napetrov napetrov added the cli-interface-change Changes dokimi's user-facing CLI surface label Dec 3, 2026
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 LGTM · re-checked f63a540 · nothing required from @napetrov

🔀 Merge: safe now · no open PR conflicts with it · open PRs that add an option without help= (e.g. #1576, #1565) will now fail test_cli_option_help until they add one

✅ make ci-local --offline: 34,117 passed · ⚠️ test_cli_fault_contract[eval score ragas] fails on the base too, not from this PR · ✅ test_cli_option_help passes at f63a540

Every visible option now has help that matches its default in the code, and the empty DEFERRED keeps it so.

Fixed in this branch, up to f63a540:

  • subjects run --out-md help named the wrong default: f63a540 says it defaults to --out with .md.

@github-actions github-actions Bot removed the cli-interface-change Changes dokimi's user-facing CLI surface label Dec 3, 2026
@napetrov
napetrov merged commit 7e8e7ab into intel:main Dec 3, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants