Repository navigation
feat(cli): one spelling each for run name, force and correction - #1195
Conversation
--run-id and --batch become --name (run name / batch name), --force-regen becomes --force, and --stats-correction becomes --correction holm|bh. The old spellings exit 2 and print the new command. --doc-source, --context7-id and --run-ids keep their spellings (no canonical with the same meaning) and stay on the allowlist with reasons. Part of intel#94 (F1b, run_name + force + retrieval + policy). Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 56 selected item(s). CI at Test notes (2)
Review details
|
CLI interface change detectedThis PR changes dokimi's user-facing CLI surface (commands and/or options): ~ `dokimi answers generate` parameters changed:
- removed option `--run-id`
+ added option `--name`
~ `dokimi arms matrix-run` parameters changed:
- removed option `--stats-correction`
+ added option `--correction`
~ `dokimi arms run` parameters changed:
- removed option `--stats-correction`
+ added option `--correction`
~ `dokimi benchmark batch` parameters changed:
- removed option `--force-regen`
+ added option `--force`
~ `dokimi benchmark run` parameters changed:
- removed option `--force-regen`
+ added option `--force`
~ `dokimi eval score pointwise` parameters changed:
- removed option `--run-id`
+ added option `--name`
~ `dokimi repo run` parameters changed:
- removed option `--batch`
+ added option `--name`
~ `dokimi report eval` parameters changed:
- removed option `--run-id`
+ added option `--name`
~ `dokimi report model-compare` parameters changed:
- removed option `--stats-correction`
+ added option `--correction`Updated on every push; the |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1195 +/- ##
=======================================
Coverage 96.07% 96.07%
=======================================
Files 495 495
Lines 65206 65265 +59
Branches 11314 11320 +6
=======================================
+ Hits 62645 62703 +58
+ Misses 1585 1584 -1
- Partials 976 978 +2
🚀 New features to boost your workflow:
|
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
left a comment
There was a problem hiding this comment.
🟢 LGTM · re-checked 206d123 · nothing required from @napetrov
🔀 Merge: safe now · merges cleanly into current main, 1 commit behind; its tests and the CLI snapshot pass on the merge · after it, #1194 (.agent-eval/README.md, docs/reviewing.md), #1197 (cli-interface.json), #1193 (tests/test_arm_runner.py), #1199 (tests/test_repo_host_label.py) and #1158 (tests/test_arms_run_config_parity.py) need a rebase
repo run … --batch b in tests/test_cli_f1b_net.py), #1194 (--batch in the .agent-eval/README.md script and in docs/reviewing.md), #1158 (--stats-correction in tests/test_arms_run_config_parity.py).
✅ make ci-local --offline: 28,328 passed · run_parser_ok passes on the merge-base and on this head
Every moved flag keeps its destination, so run options and JSON keys stay as they were.
Fixed in this branch, up to 206d123:
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> # Conflicts: # dokimi/tests/test_arm_runner.py
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8678DC5 Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
…quires Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com> intel#1195 replaced repo run's --batch with a required --name, so the merged tree failed 4 of these tests with 'the following arguments are required: --name'.
…t of #94, F1b) (#1192) * feat(cli): one spelling for the network, timeout and cache flags (part of #94, F1b) The phase timeouts are one `--timeout [PHASE=]SEC`: `--build-timeout` is `--timeout build=SEC`, `--grade-timeout` is `--timeout verify=SEC`, and a bare SEC is the agent run's (repo run only; eval check refuses it). `tasks run --network` takes `[PHASE=]MODE[:hosts]`; with no PHASE= it sets every phase. The old timeout spellings tombstone (exit 2, print the new command). The `--cache` metavar is NAME=DIR. `--agent-network`, `--build-network` and `--cache-root` keep their names: their values are not the network policy modes or a `--cache` entry, so they stay on the allowlist with a reason. Also: `repo validate` in three stale comments and the oracle patch now names `eval check --schema-only`. Test-narrowed: the catalog trigger-probe --timeout float exception row and its parametrize case are gone: --timeout is text now (a phase carries the value), so no float type case applies to it. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Align network test calls with the harness flag on main Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Guide bare allowlist users to valid phases Thread: PRRT_kwDOVBg7g8673I2D Thread: PRR_kwDOVBg7g88AAAABaP8PFg Thread: PRR_kwDOVBg7g88AAAABaVz86g Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Restore the missing network mode diagnostic Thread: PRRT_kwDOVBg7g8673I2P Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Document how bare network modes apply to builds Thread: PRRT_kwDOVBg7g8673I2W Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Keep numeric CLI timeout types checked Thread: PRRT_kwDOVBg7g8673I2b Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Give eval check phase-specific timeout guidance Thread: PRRT_kwDOVBg7g8673I2p Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Keep the phase in a missing-timeout hint Thread: PRRT_kwDOVBg7g8673I2z Thread: PRRT_kwDOVBg7g867yraC Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Cover the option after a moved timeout Thread: PRRT_kwDOVBg7g868CofT Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Use the cache metavar in the error and docs Thread: PRRT_kwDOVBg7g8673I28 Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Reject explicit timeout defaults with schema-only Thread: PRRT_kwDOVBg7g868CofO Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * Thread: PRRT_kwDOVBg7g867yI0Z: already fixed in d53a7ab Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> * test(cli): build the repo run argv with --name, which repo run now requires Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com> #1195 replaced repo run's --batch with a required --name, so the merged tree failed 4 of these tests with 'the following arguments are required: --name'. --------- Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com> Co-authored-by: Alexander Rybkin <alexander.rybkin@intel.com>
Part of #94 (F1b, run_name + force + retrieval + policy).
Summary
Four banned spellings get one canonical spelling each. The old spellings exit 2 and print the new command (
moved: dokimi ...). Values, defaults and JSON keys are unchanged.--run-id--nameanswers generate,eval score pointwise,report eval--batch--namerepo run(the batch name is its directory under--out)--force-regen--forcebenchmark run,benchmark batch--stats-correction--correction holm|bharms run,arms matrix-run,report model-compareNot in this PR
No same-meaning canonical spelling exists, so these keep their allowlist rows with a
# whyreason intests/data/cli_flags_allowlist.txt:--doc-source: the doc source of a whole run. Arms carry docs only as--arm docs:SOURCE; using--armwould change the command shape.--context7-id: the Context7 library ID of a run. Same reason.--run-ids: a comma list matched by position to--regular-runsand--golden-runs.--nameis one run's name.Decisions to check
--correctionchanges from free text tochoice {holm,bh}, so argparsechoicesand the meaning check agree. No other leaf uses--correction.--forcemeans "re-run over existing output". Onbenchmark runandbenchmark batchit discards cached personas and questions, as--force-regendid.repo run --namekeepsdest=batch;answers,evalandreportkeepdest=run_id. Code and JSON keys are unchanged.20261111_100000and20261116_120000now name--force.Evidence
tests/test_cli_flags.py(contract) andtests/test_cli_f1b_small.py(59 tests: a tombstone per move and leaf, namespace parity with the new spelling, metavars, choices, kept spellings): green.pytest -n auto): 28383 passed, 24 skipped.mypy: clean (499 files).ruff checkclean on changed files; 50 findings remain in untouched.agent-evallines, also onintel/main.bandit -ll: clean.docs/reference/cli-interface.jsonregenerated; matchesscripts/cli_surface.py dump.--batchspelling until that row was removed.Merge Danger
--batch,--run-id,--force-regenor--stats-correctionfails until it is updated. None were found in this repo's workflows or docs..agent-evalgrader forfeat-codex-profilekeeps--batch: it runs against the task's historical base revision.🤖 Generated with Claude Code