Skip to content

feat(cli): one spelling each for run name, force and correction - #1195

Merged
napetrov merged 9 commits into
intel:mainfrom
napetrov:feat/cli-f1b-small
Nov 26, 2026
Merged

napetrov merged 9 commits into
intel:mainfrom
napetrov:feat/cli-f1b-small

Conversation

@napetrov

Copy link
Copy Markdown
Contributor

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.

Old spelling New spelling Leaves that moved
--run-id --name answers generate, eval score pointwise, report eval
--batch --name repo run (the batch name is its directory under --out)
--force-regen --force benchmark run, benchmark batch
--stats-correction --correction holm|bh arms run, arms matrix-run, report model-compare

Not in this PR

No same-meaning canonical spelling exists, so these keep their allowlist rows with a # why reason in tests/data/cli_flags_allowlist.txt:

  • --doc-source: the doc source of a whole run. Arms carry docs only as --arm docs:SOURCE; using --arm would 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-runs and --golden-runs. --name is one run's name.

Decisions to check

  • --correction changes from free text to choice {holm,bh}, so argparse choices and the meaning check agree. No other leaf uses --correction.
  • --force means "re-run over existing output". On benchmark run and benchmark batch it discards cached personas and questions, as --force-regen did.
  • repo run --name keeps dest=batch; answers, eval and report keep dest=run_id. Code and JSON keys are unchanged.
  • The unreleased changelog fragments 20261111_100000 and 20261116_120000 now name --force.

Evidence

  • tests/test_cli_flags.py (contract) and tests/test_cli_f1b_small.py (59 tests: a tombstone per move and leaf, namespace parity with the new spelling, metavars, choices, kept spellings): green.
  • Full suite, credentials stripped (pytest -n auto): 28383 passed, 24 skipped.
  • mypy: clean (499 files). ruff check clean on changed files; 50 findings remain in untouched .agent-eval lines, also on intel/main. bandit -ll: clean.
  • docs/reference/cli-interface.json regenerated; matches scripts/cli_surface.py dump.
  • The new test file was written after the rename, so its red state was not recorded. The contract test did fail red on the synthetic --batch spelling until that row was removed.

Merge Danger

  • The old spellings are no longer accepted. Any script or CI step in another repo that passes --batch, --run-id, --force-regen or --stats-correction fails until it is updated. None were found in this repo's workflows or docs.
  • The .agent-eval grader for feat-codex-profile keeps --batch: it runs against the task's historical base revision.

🤖 Generated with Claude Code

--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>
@napetrov
napetrov requested a review from a team as a code owner November 25, 2026 08:53
@napetrov napetrov added the cli-interface-change Changes dokimi's user-facing CLI surface label Nov 25, 2026
@exai-bot

exai-bot commented Nov 25, 2026 •

Copy link
Copy Markdown

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

CI at 6971966: 26 passing, 4 skipped.

Test notes (2)
  • .agent-eval/tasks/feat-codex-profile/check.py:151: With pass changed to pass raise, the tests still pass: dokimi/tests/test_arm_runner.py, dokimi/tests/test_arms_run_config_parity.py, dokimi/tests/test_batch_ledger_golden.py, dokimi/tests/test_cli_f1b_reps.py, dokimi/tests/test_cli_f1b_small.py, dokimi/tests/test_cli_flags.py. If this condition matters, a test should pin it.
  • .agent-eval/tasks/feat-codex-profile/check.py:150: With return build_parser().parse_args([*argv, flag, "b"]).harness == "codex" changed to return None, the tests still pass: dokimi/tests/test_arm_runner.py, dokimi/tests/test_arms_run_config_parity.py, dokimi/tests/test_batch_ledger_golden.py, dokimi/tests/test_cli_f1b_reps.py, dokimi/tests/test_cli_f1b_small.py, dokimi/tests/test_cli_flags.py. If this condition matters, a test should pin it.
Review details
  • Commit reviewed: 6971966 against merge base 1b24ab3
  • Coverage: 56 files in 8 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 1.03M tokens (682k from cache), 55s
  • Tool calls: 113 (84 file_read, 15 code_search, 8 file_read_diff, 3 local_check_results, 2 ci_status, 1 file_find)
  • Agent evaluation documentation and checks: 2 files
  • CLI flags and F1B small profile: 7 files
  • Question processing and input validation: 8 files
  • Arm configuration and benchmarking: 8 files
  • Repository batch lifecycle and reporting: 7 files
  • Repository execution, context, and exit handling: 10 files
  • Repository harnesses, graders, and integration tests: 7 files
  • Workflow documentation and journey outcomes: 7 files

@github-actions

Copy link
Copy Markdown

CLI interface change detected

This 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 cli-interface-change label is on while the diff is non-empty.

@codecov-commenter

codecov-commenter commented Nov 25, 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.07%. Comparing base (1b24ab3) to head (6971966).
⚠️ Report is 8 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    #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     
Files with missing lines Coverage Δ
dokimi/dokimi/cli_flags.py 100.00% <ø> (ø)
dokimi/dokimi/commands/answers.py 96.29% <100.00%> (ø)
dokimi/dokimi/commands/arms.py 97.71% <100.00%> (ø)
dokimi/dokimi/commands/benchmark.py 92.51% <100.00%> (ø)
dokimi/dokimi/commands/evaluate.py 93.75% <100.00%> (+0.01%) ⬆️
dokimi/dokimi/commands/repo_run.py 96.80% <100.00%> (ø)
dokimi/dokimi/commands/report.py 85.31% <100.00%> (+0.10%) ⬆️
dokimi/dokimi/orchestrator/pipeline.py 94.63% <ø> (ø)
dokimi/dokimi/repos/batch_ledger.py 95.48% <ø> (ø)
dokimi/dokimi/repos/report.py 97.84% <ø> (ø)
... and 1 more

... and 16 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 · 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

⚠️ Break after a rebase, even without a conflict: these PRs add new uses of the old spellings, which exit 2 once this is in: #1192 (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 · ⚠️ one repeat-tests run failed on pytest's tmp cleanup after all 497 passed; the same seed passes again · ✅ 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:

  • run_parser_ok parsed only --batch: 284a7e3 tries --name, then --batch.
  • --name help named <out>: 3370293 says <out-dir>.
  • The busy-batch message told repo hits to use --name: 2acfa4f names repo run.
  • --correction continuation lines kept the old indent: 243ba80, 206d123.

Comment thread dokimi/tests/test_cli_f1b_small.py Resolved
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>
@napetrov
napetrov merged commit 9cd2a9e into intel:main Nov 26, 2026
30 checks passed
xaleryb added a commit to napetrov/dokimi that referenced this pull request Nov 27, 2026
…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'.
xaleryb added a commit that referenced this pull request Nov 27, 2026
…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>
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.

4 participants