Skip to content

cli: reps and concurrency flags have one spelling each (F1b, part of #94) - #957

Merged
napetrov merged 7 commits into
intel:mainfrom
napetrov:feat/cli-f1b-reps
Nov 20, 2026
Merged

napetrov merged 7 commits into
intel:mainfrom
napetrov:feat/cli-f1b-reps

Conversation

@napetrov

Copy link
Copy Markdown
Contributor

Part of #94 (F1b, reps + concurrency concepts). Does not close #94.

Summary

Repetitions of one cell get one spelling, --reps. How much runs at once gets --concurrency, with -j kept as its short form. The old spellings are tombstoned: they exit 2 and print the new command. Values, meanings and JSON keys do not change.

Leaf Old New
tasks run --repeats --reps
subjects run --work-repeats --reps
benchmark run --multi-run --reps
catalog trigger-probe --trials --reps
catalog check --jobs --concurrency
eval check --jobs --concurrency (-j kept)
repo run --jobs --concurrency (-j kept)

Each old spelling was on its one leaf only (checked by walking the parser on base and head), so the move is limited to that leaf; elsewhere the old spelling is not tombstoned, as before.

Evidence

  • tests/test_cli_f1b_reps.py: each old spelling tombstones with the new argv; canonical spellings and old spellings on leaves that never had them are not moved; the moved values parse to the same destinations.
  • tests/test_cli_flags.py ratchet: banned spellings removed from the allowlist; --typed-threads and --min-reps kept with reasons.
  • Snapshot docs/reference/cli-interface.json regenerated with make cli-snapshot.
  • Full suite on the pre-leaf-restriction head: 23785 passed, 20 skipped. Every test file that mentions a moved spelling: 6392 passed, 8 skipped, on the final head.
  • Self-review (local mode, five passes, fresh context): findings fixed, the remaining declines are in the review file, not here.

Merge danger

Scripts and docs that still say --repeats, --work-repeats, --multi-run, --trials or --jobs on the leaves above stop running with exit 2. The tombstone prints the new command. Prefix abbreviations of the old spellings (--repeat, --job) no longer parse, and --re is now ambiguous on benchmark run and subjects run (it is a prefix of the new --reps).

Not in this PR

  • --typed-threads (torch intra-op threads), --min-reps (a gate threshold), --threads FILE on eval tasks generate (an input file), harbor/benchflow --jobs-dir (external), ci_local.py --jobs (a separate parser): different meanings, kept on the allowlist with reasons.
  • Non-registry declarations of --reps and --concurrency on other leaves (routing_parser, tools, answers, arms, evaluate, benchmark, ...) are F1c's sweep; they are on base too.
  • Unreleased changelog fragments from other PRs (20261111_180000_napetrov_repo-batch-lifecycle.md, 20261114_140000_*) still name --jobs; a release-notes follow-up.

🤖 Generated with Claude Code

…ntel#94)

Repetitions of one cell are --reps. The old spellings --repeats
(tasks run), --work-repeats (subjects run), --multi-run (benchmark run)
and --trials (catalog trigger-probe) move there and tombstone with exit 2.

How much runs at once is --concurrency, with -j kept as its short form.
The old --jobs (catalog check, eval check, repo run) moves there and
tombstones.

Each old spelling counted the same thing on its leaf, so values are
unchanged. JSON output keys are unchanged. --typed-threads, --min-reps,
ci_local --jobs and harbor --jobs-dir keep their meaning and stay on the
allowlist with reasons.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov
napetrov requested a review from a team as a code owner November 19, 2026 08:00
@napetrov napetrov added the cli-interface-change Changes dokimi's user-facing CLI surface label Nov 19, 2026
@exai-bot

exai-bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

CI at 75e4882: 25 passing, 3 skipped.

Test notes (2)
  • dokimi/dokimi/commands/catalog_probe.py:192: With cli_flags.add(p, "reps", "--reps", type=positive_int, default=1, dest="trials", metavar="N", help="Fresh runs per query (default: 1)") changed to pass, the tests still pass: dokimi/tests/test_answering_stack_p_step2.py, dokimi/tests/test_benchmark_command_question_set.py, dokimi/tests/test_benchmark_registry_wiring.py, dokimi/tests/test_catalog_jsonl.py, dokimi/tests/test_cli_flags.py. If this condition matters, a test should pin it.
  • dokimi/dokimi/commands/tasks.py:353: With cli_flags.add( run_p, "reps", "--reps", type=positive_int, default=1, dest="repeats", metavar="N", help="Run each (task, harness) cell N times for pass-rate/cost variance (default: 1)", ) changed to pass, the tests still pass: dokimi/tests/test_answering_stack_p_step2.py, dokimi/tests/test_benchmark_command_question_set.py, dokimi/tests/test_benchmark_registry_wiring.py, dokimi/tests/test_catalog_jsonl.py, dokimi/tests/test_cli_flags.py. If this condition matters, a test should pin it.
Review details
  • Commit reviewed: 75e4882 against merge base 32a39f0
  • Coverage: 33 files in 6 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 497k tokens (294k from cache), 25s
  • Tool calls: 48 (36 file_read, 7 code_search, 4 file_read_diff, 1 pr_comments)
  • CLI flag migration and compatibility checks: 7 files
  • Benchmark execution, harness integration, and methodology: 8 files
  • Catalog, subject, and task discovery commands: 8 files
  • Repository execution and batch lifecycle: 6 files
  • User journey traceability and outcome fixtures: 3 files
  • Growth baseline configuration: 1 file

@github-actions

Copy link
Copy Markdown

CLI interface change detected

This PR changes dokimi's user-facing CLI surface (commands and/or options):

~ `dokimi benchmark run` parameters changed:
    - removed option `--multi-run`
    + added option `--reps`
~ `dokimi catalog check` parameters changed:
    - removed option `--jobs`
    + added option `--concurrency`
~ `dokimi catalog trigger-probe` parameters changed:
    - removed option `--trials`
    + added option `--reps`
~ `dokimi eval check` parameters changed:
    - removed option `--jobs/-j`
    + added option `--concurrency/-j`
~ `dokimi repo run` parameters changed:
    - removed option `--jobs/-j`
    + added option `--concurrency/-j`
~ `dokimi subjects run` parameters changed:
    - removed option `--work-repeats`
    + added option `--reps`
~ `dokimi tasks run` parameters changed:
    - removed option `--repeats`
    + added option `--reps`

Updated on every push; the cli-interface-change label is on while the diff is non-empty.

@codecov-commenter

codecov-commenter commented Nov 19, 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 95.87%. Comparing base (32a39f0) to head (75e4882).
⚠️ Report is 2 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     #957      +/-   ##
==========================================
- Coverage   95.89%   95.87%   -0.02%     
==========================================
  Files         448      448              
  Lines       59289    59291       +2     
  Branches    10224    10224              
==========================================
- Hits        56853    56848       -5     
- Misses       1514     1517       +3     
- Partials      922      926       +4     
Files with missing lines Coverage Δ
dokimi/dokimi/cli_flags.py 100.00% <ø> (ø)
dokimi/dokimi/commands/benchmark.py 91.63% <100.00%> (ø)
dokimi/dokimi/commands/catalog.py 98.93% <100.00%> (+<0.01%) ⬆️
dokimi/dokimi/commands/catalog_probe.py 93.33% <100.00%> (+0.05%) ⬆️
dokimi/dokimi/commands/catalog_scan.py 96.92% <100.00%> (ø)
dokimi/dokimi/commands/repo_run.py 97.09% <100.00%> (ø)
dokimi/dokimi/commands/subjects.py 94.57% <100.00%> (ø)
dokimi/dokimi/commands/tasks.py 96.49% <100.00%> (ø)
dokimi/dokimi/harnesses/benchflow.py 95.43% <ø> (ø)
dokimi/dokimi/repos/runner.py 97.76% <ø> (ø)

... and 4 files with indirect coverage changes

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

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
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

I checked 88c297f. The renames are right: each old spelling moves only on the leaves that had it, every new flag parses to the dest the handler reads, and the JSON keys stay. The small points I had are fixed in this branch (below).

Merge: after a rebase: it conflicts with current main in tests/test_repo_batch_lifecycle.py, where #949 rewrote a Ctrl-C test; keep main's lines with --concurrency for --jobs. On that merge the lifecycle, CLI-flag and catalog JSONL tests pass. Once it is in, #955, #954, #956, #958, #781, #787, #848 and #845 conflict with it and need a rebase. Two break with no textual conflict: #956's test_schema_only_refuses_the_self_check_options passes eval check --jobs 2, which now prints moved:, and #840 / #846 add a --jobs flag to catalog novelty, which the flag contract refuses once --jobs leaves the allowlist; both need --concurrency.

What I ran, at 88c297f:

  • make ci-local --offline: 0 failed, 25 passed, 20 skipped (network-only jobs); tests 23,742 passed, 72 skipped.
  • Old and new spellings on this head and on d2790e1: every exact old spelling exits 2 with the moved: line. A prefix of one (--repeat, --job, --multi, --work-rep) parsed on the base and now exits 2 without it. That is how moved_flags_argv on main matches, so it goes to an issue, not to this PR.
  • Dropped dest="work_repeats" from subjects run --reps: test_subjects.py fails, so the dest is covered.
  • CI's external-catalog-smoke command (docker-oracle, docker-probe): 1/1 pass each.

Checked, no issues

  • Moves: tasks run --jobs and subjects run --repeats are not moved, and nothing after -- is; on the base, each old spelling was on the moved leaves only.
  • Docs and changelog: no doc or README names an old spelling any more. The .agent-eval task rename-cli-flag is pinned to an older base, so it is not affected. The fragment says what changed and what to type.

Fixed in this branch, up to 88c297f:

  • --help showed the retired names as the value placeholder (--reps TRIALS, --concurrency, -j JOBS): bfcc285 passes metavar="N" at the five calls, and a test checks the help of all seven leaves.
  • The BenchFlow comment lost the note that its help calls --retry-attempts "Reserved": 60a9274 and 88c297f bring it back, in two lines, so the growth baseline stays.
  • subjects run --reps did not say it repeats only suite.tasks: 5505dc1 says so in the help, and that the arms matrix runs once.
  • The tombstone cases re-checked the whole registry seven times: 5b57ebf drops it; test_registry_data_is_consistent already checks it once.

The new help test fails on daf705d for the six leaves it fixes.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov
napetrov merged commit 72d34c9 into intel:main Nov 20, 2026
28 checks passed
xaleryb added a commit that referenced this pull request Nov 21, 2026
…1069)

`--concurrency, -j N` is what argparse prints from Python 3.13; before that it
repeats the metavar, `--concurrency N, -j N`. The check looked for the first
form only, so it failed on Python 3.11 and 3.12 and has kept push runs of
ci.yml on main red, where the whole version matrix runs. Pull requests run
3.14 only, so #957 passed. The pattern now accepts both renderings and still
rejects the old metavar.

Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli-interface-change Changes dokimi's user-facing CLI surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI API: the evaluation loop at the top level, subject and eval groups below, one enforced flag vocabulary (proposal v2.1)

4 participants