Repository navigation
feat(cli): one spelling for the arms, harness and baseline flags (F1b, #94) - #1193
Conversation
…intel#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 <nikolay.a.petrov@intel.com>
CLI interface change detectedThis PR changes dokimi's user-facing CLI surface (commands and/or options): ~ `dokimi arms matrix-run` parameters changed:
- removed option `--arms`
+ added option `--arm`
~ `dokimi arms plugin-delta` parameters changed:
- removed option `--baseline-json`
+ added option `--baseline`
~ `dokimi arms run` parameters changed:
- removed option `--arms`
+ added option `--arm`
~ `dokimi docs compare` parameters changed:
- removed option `--base`
+ added option `--baseline`
~ `dokimi explore run` parameters changed:
- removed option `--arms`
+ added option `--arm`
~ `dokimi tasks run` parameters changed:
- removed option `--harnesses`
+ added option `--harness`Updated on every push; the |
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 71 selected item(s). CI at Test notes (1)
Review details
|
| raise InputError("No tasks selected. Pass --tasks <id[,id]> or --all.") | ||
|
|
||
| specs = [s.strip() for s in args.arms.split(",") if s.strip()] | ||
| specs = [s.strip() for s in (args.arms or "oracle,empty").split(",") if s.strip()] |
There was a problem hiding this comment.
Preserve the explicit-empty-arm refusal.
Trigger: python cli.py explore run --all --arm "" (also possible when a script expands an empty variable).
Evidence: JoinedValues stores "", but this or replaces it with oracle,empty, bypassing the existing No arms selected check; previously an explicit empty list was refused.
Impact: the command now runs synthetic ceiling/floor arms and writes a successful artifact instead of reporting invalid input.
Workaround: validate the variable before invoking the CLI.
Should fix: A run shows it; it was not judged to be met in ordinary use.
Check run: inconclusive, the result is not shown as a pass.
Shown by running: exit 1 (at the head) · exit 0 (at the merge base) · exit 0 (at the head with the fix)
python proof_c1.py
What the proof does: Calls cmd_explore_run with arms="" and a stubbed task list and arm builder, and checks that it raises InputError instead of building the default arms.
The problem shows as the output EMPTY ARM NOT REFUSED.
Script: dokimi/proof_c1.py (28 lines).
EMPTY ARM NOT REFUSED: built default arms ['oracle', 'empty']
Suggestion:
| specs = [s.strip() for s in (args.arms or "oracle,empty").split(",") if s.strip()] | |
| specs = [s.strip() for s in ("oracle,empty" if args.arms is None else args.arms).split(",") if s.strip()] |
There was a problem hiding this comment.
Fixed in 742f732: explore run falls back to oracle,empty only when --arm is not given, so --arm '' stops with "No arms selected" again; the refusal parity test covers it.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1193 +/- ##
==========================================
- Coverage 96.10% 96.08% -0.02%
==========================================
Files 491 493 +2
Lines 64882 64977 +95
Branches 11266 11280 +14
==========================================
+ Hits 62352 62434 +82
- Misses 1560 1568 +8
- Partials 970 975 +5
🚀 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 2bb3e6c · nothing required from @napetrov
🔀 Merge: safe now · merges cleanly into current main, 2 commits behind · after it, #1197, #1192 and #1195 need a rebase (cli_flags.py, commands/arms.py, test_cli_flags.py, docs); the new tests of #1158 (test_judge_context_mode.py) still pass --arms and will fail, with no textual conflict
✅ make ci-local --offline: 28,255 passed, 0 failed · ✅ changed lines: 9/9 mutants killed · ✅ the two new tests fail with the fixes reverted
The renames are complete, and the @exai-bot point on the empty --arm is fixed.
Fixed in this branch, up to 2bb3e6c:
explore run --arm ''ran the default arms: 742f732 falls back only when--armis not given; a refusal-parity case covers it.--arm [NAME=]REFin thearms runhelp, a form it rejects: 30af9d4 shows--arm SPEC.--baseline BASE/BASELINE_JSONin the help: 61d178d shows--baseline FILE.- The changelog missed
catalog novelty --arms: 10edf93. - The
--armsrefusal test could not fail: 2bb3e6c passes--arm xand checks the unrecognized-flag error.
Part of #94 (F1b, arms + cells + baseline + harness)
Summary
Four flags move to one spelling each. The old spellings tombstone: they exit 2 and print the new command.
arms run,arms matrix-run,explore run--arms--arm(repeatable;--arm a,bstill works)tasks run--harnesses--harness(repeatable;--harness a,bstill works)arms plugin-delta--baseline-json--baselinedocs compare--base--baselineA repeated
--armor--harnessjoins with commas (newcli_flags.JoinedValuesaction), so the downstream value is the same as the old comma list.Not in this PR
--armsoneval score,skill noveltyandjudgecommands stays. It names a score or measurement arm, not a treatment, so it has no--armmeaning.--matrix-cellsstays: it names one cell of a matrix file. The canonical--cell k=vis not on the tree yet.--plugin-jsonstays: it is the candidate artifact, with no canonical spelling.--work-harnessesstays: it is the work-scoped harness list ofsubjects run.schema_compat --basestays: it is a git revision, outside the CLI tree.Evidence
pytest tests: 28309 passed, 22 skipped.ruff check,mypyon the changed modules: clean.check_changelog_fragment,check_comment_blocks,check_growth: pass againstintel/main.docs/reference/cli-interface.jsonregenerated withmake cli-snapshot.Merge danger
Scripts and CI that pass the old spellings fail with exit 2 until they change the flag. The repo's own callers (CI workflow, Makefile, replay script, bundled skill docs, docs) are updated in this PR. Outside callers are not visible from here.
🤖 Generated with Claude Code