From b0c0fe68124197b19ccbd4364ee02280712f102c Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Tue, 24 Nov 2026 23:52:07 -0800 Subject: [PATCH 1/6] feat(cli): one spelling for the arms, harness and baseline flags (F1b, #94) --arms on arms run, arms matrix-run and explore run becomes --arm (repeatable, joined with commas, so the old comma list still gives the same value). --harnesses on tasks run becomes --harness. --baseline-json on arms plugin-delta and --base on docs compare become --baseline. The old spellings tombstone and exit 2 with the new argv. --arms stays on eval and novelty commands, where it names a score or measurement arm. --matrix-cells, --plugin-json and --work-harnesses stay for now: no same-meaning canonical yet. Signed-off-by: Nikolay Petrov --- .github/workflows/agent-quality.yml | 2 +- dokimi/Makefile | 2 +- dokimi/README.md | 2 +- .../20261124_120000_napetrov_cli-f1b-arms.md | 3 + dokimi/data/explore_tasks/README.md | 6 +- .../references/example-scenario.md | 2 +- .../references/verifier-self-test.md | 6 +- dokimi/docs/architecture.md | 2 +- dokimi/docs/benchmarking-and-comparison.md | 8 +-- dokimi/docs/coding-harnesses.md | 18 ++--- dokimi/docs/contributing-metric.md | 2 +- .../docs/contributing-terminal-bench-task.md | 8 +-- dokimi/docs/documentation-index.md | 2 +- dokimi/docs/evaluating-treatments.md | 28 ++++---- dokimi/docs/external-content.md | 6 +- dokimi/docs/knowledge-runs.md | 14 ++-- dokimi/docs/reference/cli-interface.json | 12 ++-- dokimi/docs/reviewing.md | 4 +- dokimi/docs/what-it-measures.md | 2 +- dokimi/dokimi/cli_flags.py | 16 +++++ dokimi/dokimi/commands/arms.py | 29 ++++---- dokimi/dokimi/commands/explore.py | 12 ++-- dokimi/dokimi/commands/run.py | 3 +- dokimi/dokimi/commands/tasks.py | 15 ++-- dokimi/dokimi/report/compare_limits.py | 2 +- dokimi/dokimi/report/model_compare.py | 2 +- dokimi/dokimi/report/task_runs_report.py | 2 +- dokimi/dokimi/treatments/factory.py | 2 +- dokimi/dokimi/treatments/specs.py | 8 +-- dokimi/scripts/replay_product_experiment.py | 2 +- dokimi/tests/data/cli_flags_allowlist.txt | 13 ++-- .../fixtures/model_compare_sections.json | 6 +- dokimi/tests/outcomes/journeys.yaml | 4 +- dokimi/tests/test_arm_runner.py | 6 +- dokimi/tests/test_arm_runner_float_range.py | 2 +- dokimi/tests/test_arm_runner_incremental.py | 12 ++-- dokimi/tests/test_arms_adapter.py | 2 +- dokimi/tests/test_arms_matrix_cells_input.py | 2 +- dokimi/tests/test_arms_output_errors.py | 10 +-- dokimi/tests/test_arms_run_config.py | 6 +- dokimi/tests/test_arms_run_config_parity.py | 4 +- dokimi/tests/test_benchflow_harness.py | 2 +- dokimi/tests/test_bundled_skills.py | 14 ++-- dokimi/tests/test_cli_f1b_arms.py | 72 +++++++++++++++++++ dokimi/tests/test_cli_f1b_reps.py | 4 +- dokimi/tests/test_cli_flag_moves.py | 2 +- dokimi/tests/test_cli_flags.py | 3 + dokimi/tests/test_cli_m3_moves.py | 2 +- dokimi/tests/test_cli_refusal_parity.py | 8 +-- dokimi/tests/test_docker_null_check.py | 8 +-- dokimi/tests/test_docs_code_refs.py | 2 +- dokimi/tests/test_empty_question_rule.py | 4 +- dokimi/tests/test_exit_codes_boundaries.py | 10 +-- dokimi/tests/test_explore_run_outputs.py | 2 +- dokimi/tests/test_external_integration.py | 2 +- dokimi/tests/test_judge_provider_default.py | 4 +- .../test_judge_temperature_entry_points.py | 4 +- dokimi/tests/test_knowledge_run.py | 2 +- dokimi/tests/test_llm_cli.py | 6 +- dokimi/tests/test_matrix_rollup.py | 14 ++-- dokimi/tests/test_model_defaults.py | 4 +- dokimi/tests/test_plugin_delta.py | 2 +- dokimi/tests/test_record_readers.py | 4 +- dokimi/tests/test_report_writers_surrogate.py | 2 +- dokimi/tests/test_run_compare_errors.py | 22 +++--- dokimi/tests/test_session_runner.py | 4 +- dokimi/tests/test_skill_loader.py | 2 +- dokimi/tests/test_skill_selection.py | 2 +- dokimi/tests/test_swebench_tasks.py | 6 +- dokimi/tests/test_tasks_command.py | 30 ++++---- .../tests/test_writers_save_artifact_rest.py | 2 +- 71 files changed, 310 insertions(+), 224 deletions(-) create mode 100644 dokimi/changelog.d/20261124_120000_napetrov_cli-f1b-arms.md create mode 100644 dokimi/tests/test_cli_f1b_arms.py diff --git a/.github/workflows/agent-quality.yml b/.github/workflows/agent-quality.yml index 8f023324b..9785fec8f 100644 --- a/.github/workflows/agent-quality.yml +++ b/.github/workflows/agent-quality.yml @@ -150,7 +150,7 @@ jobs: python cli.py tasks run \ --tasks onetbb-histogram-local-aggregation \ --tasks-root "${{ runner.temp }}/uxl-skills/evaluation/harbor/tasks" \ - --harnesses docker-oracle,docker-probe \ + --harness docker-oracle,docker-probe \ --out "${{ github.workspace }}/logs/external-catalog-smoke/runs.json" # The base the merge commit (refs/pull/N/merge) was built on, its first parent; not origin/$BASE_REF, which may have moved since. # A PR that does not merge records nothing. A later docs-only push skips only while origin/$BASE_REF is still this one. diff --git a/dokimi/Makefile b/dokimi/Makefile index 3c77dcbb1..789d631cb 100644 --- a/dokimi/Makefile +++ b/dokimi/Makefile @@ -29,7 +29,7 @@ benchmark-run: benchmark-compare: @test -f "$(BASE)" || { echo "ERROR: base snapshot $(BASE) not found. Take one with 'make benchmark-run', copy baselines/current.json to it, or pass BASE=."; exit 1; } - python cli.py docs compare --base $(BASE) --candidate baselines/current.json --out reports/compare.json --out-md reports/compare.md + python cli.py docs compare --baseline $(BASE) --candidate baselines/current.json --out reports/compare.json --out-md reports/compare.md # Regenerate the CLI snapshot after a command or flag changes. tests/test_cli_flags.py fails # while docs/reference/cli-interface.json is stale. It uses the venv's Python (the one diff --git a/dokimi/README.md b/dokimi/README.md index 0e953a3c8..c6da170d2 100644 --- a/dokimi/README.md +++ b/dokimi/README.md @@ -241,7 +241,7 @@ The task definitions are evaluation content and live in a separate content repos ```bash python cli.py tasks run --tasks-root /evaluation/harbor/tasks \ - --tasks --harnesses docker-oracle --out results/runs.json + --tasks --harness docker-oracle --out results/runs.json ``` The directory layout and `task.toml` fields a task must provide are specified in [docs/contributing-terminal-bench-task.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/contributing-terminal-bench-task.md). CI runs a real external catalog through the same harness (see [CI](#ci) below) with network disabled at solve and verify time. diff --git a/dokimi/changelog.d/20261124_120000_napetrov_cli-f1b-arms.md b/dokimi/changelog.d/20261124_120000_napetrov_cli-f1b-arms.md new file mode 100644 index 000000000..932a4cc22 --- /dev/null +++ b/dokimi/changelog.d/20261124_120000_napetrov_cli-f1b-arms.md @@ -0,0 +1,3 @@ +### Changed + +- **Arms, harness and baseline flags: one spelling each.** `--arms` on `arms run`, `arms matrix-run` and `explore run` is now `--arm`, and it repeats: `--arm baseline --arm docs` gives the same list as `--arm baseline,docs`, which still works. `--harnesses` on `tasks run` is now `--harness`, repeatable the same way. `--baseline-json` on `arms plugin-delta` and `--base` on `docs compare` are now `--baseline`. The old spellings print the new command and exit 2, so scripts and CI that pass them must change the flag. `--arms` stays on `eval` and `skill novelty` commands, where it names a score or measurement arm, not a treatment. `--matrix-cells`, `--plugin-json` and `--work-harnesses` keep their names for now: each has no same-meaning canonical spelling yet. diff --git a/dokimi/data/explore_tasks/README.md b/dokimi/data/explore_tasks/README.md index 590f056c5..0a9d7865c 100644 --- a/dokimi/data/explore_tasks/README.md +++ b/dokimi/data/explore_tasks/README.md @@ -35,7 +35,7 @@ references: ```bash python cli.py eval tasks list --format localization -python cli.py explore run --all --arms oracle,empty --baseline-arm empty \ +python cli.py explore run --all --arm oracle,empty --baseline-arm empty \ --out results/explore-runs/explore_runs.json \ --out-md reports/exploration.md ``` @@ -45,7 +45,7 @@ floor); `command: