Repository navigation
feat(cli): one spelling each for the spend and dry-run flags (part of #94) - #955
Conversation
Part of intel#94 (F1b, spend + dry-run concepts). A cap on the whole command is --max-usd. A cap per agent run is --max-usd-per-cell. An estimate that makes no paid call is --dry-run. - tools preference: --max-cost-usd -> --max-usd (dest max_usd) - repo run: --max-batch-usd -> --max-usd; --budget -> --max-usd-per-cell - repo reach, repo skill-reach: --budget -> --max-usd-per-cell - catalog routing, skill routing, skill novelty analyze: --estimate-only -> --dry-run - subjects run: --work-dry-run -> --dry-run The old spellings are tombstoned in FLAG_MOVES (exit 2, print the new argv). Their allowlist rows are deleted and the CLI snapshot is regenerated; the only changed rows are the moved ones. 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 catalog routing` parameters changed:
- removed option `--estimate-only`
+ added option `--dry-run`
~ `dokimi repo reach` parameters changed:
- removed option `--budget`
+ added option `--max-usd-per-cell`
~ `dokimi repo run` parameters changed:
- removed option `--budget`
- removed option `--max-batch-usd`
+ added option `--max-usd`
+ added option `--max-usd-per-cell`
~ `dokimi repo skill-reach` parameters changed:
- removed option `--budget`
+ added option `--max-usd-per-cell`
~ `dokimi skill novelty analyze` parameters changed:
- removed option `--estimate-only`
+ added option `--dry-run`
~ `dokimi skill routing` parameters changed:
- removed option `--estimate-only`
+ added option `--dry-run`
~ `dokimi tools preference` parameters changed:
- removed option `--max-cost-usd`
+ added option `--max-usd`Updated on every push; the |
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 53 selected item(s). CI at Review details
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #955 +/- ##
=======================================
Coverage 95.86% 95.86%
=======================================
Files 444 444
Lines 59101 59103 +2
Branches 10198 10198
=======================================
+ Hits 56655 56659 +4
+ Misses 1521 1520 -1
+ Partials 925 924 -1
🚀 New features to boost your workflow:
|
|
The CLI diff is intended: the spend and dry-run spellings move as listed in the description, and the
|
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
… batch 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
I checked fd49e38. The moves are right: each old spelling exits 2 with the new command on the listed leaves only, the new flags keep their old dests, so values and JSON keys do not change.
Merge: safe now: it merges cleanly into current main, 2 commits behind, and its CLI tests and the tests main changed pass on the merge. Once it is in, #954, #957 and #958 conflict with it (cli_flags.py, cli_flags_allowlist.txt, cli-interface.json, test_repo_host.py) and need a rebase.
What I ran, at fd49e38:
make ci-local --offline: 0 failed, 25 passed, 20 skipped; the test suite 23,743 passed, 72 skipped; coverage of changed lines passes.parse_argschecks:novelty routing --estimstill moves in one step toskill routing --dry-run;repo run --max-uis refused as ambiguous;--max-usdand--max-usd-per-cellparse to the old dests.- On the merge with
main:test_cli_f1b_spend.py,test_cli_types.py,test_repo_budget.py,test_repo_batch_lifecycle.py,test_near_duplicate_blocking.py: 184 passed.
Checked, no issues
- Callers that spawn dokimi:
repos/conformance.pynow passes--max-usd-per-celltorepo reach; no workflow, script or Makefile passes an old spelling to dokimi. - Schemas and stored keys:
tool_preference.v1.jsonchanges only descriptions;max_cost_usdstays the stored key. - Docs and changelog: the docs, journeys and
cli-interface.jsonuse the new spellings; the fragment is under Changed and says what to type now.
Fixed in this branch, up to fd49e38:
repo reach --fromnamed--outwhen refusing--out-dir, a spelling that is itself moved: 65b0bbd names--out-dir; the probe-only flags test covers it.- Help showed the old dests as metavars (
--max-usd-per-cell BUDGET,--max-usd MAX_BATCH_USD): afcc326 passesmetavar="X"onrepo run,repo reach,repo skill-reachandtools preference, and fd49e38 does the same inadd_spend_cap, so every--max-usdreadsXin help; a usage-line test covers each leaf. - The changelog did not say that
repo run --max-usdcounts earlier invocations of the batch: 5699a53 says so.
Each new test fails when the code it covers is broken.
Part of #94 (F1b, spend + dry-run concepts).
Summary
Two flag concepts get one spelling each, and the old spellings are tombstoned:
--max-usdtools preference --max-cost-usd,repo run --max-batch-usd--max-usd-per-cellrepo run --budget,repo reach --budget,repo skill-reach --budget--dry-runcatalog routing --estimate-only,skill routing --estimate-only,skill novelty analyze --estimate-onlyFLAG_MOVESgains the tombstones. Allowlist rows for the moved spellings are deleted; the CLI snapshot is regenerated (only the moved rows change).tools preference: dest is nowmax_usd(onlycommands/tools.pyread it).repo run --budgetand--max-batch-usdare not the same thing:--budgetcaps one agent run, so it maps to--max-usd-per-cell.tests/test_cli_f1b_spend.pycovers the tombstones and the parse equivalence.Not in this PR
subjects run --work-dry-runis kept. It gates only the executable-task agents; the other phases ofsubjects runstill call models, so it is not thedry_runconcept. It stays on the allowlist with that reason (CLI API: the evaluation loop at the top level, subject and eval groups below, one enforced flag vocabulary (proposal v2.1) #94 F1b).scripts/reach_conformance.py --budgetandscripts/mutate_changed.py --budgetare their own scripts' flags and are unchanged.catalog granularity's paid hint now prints--max-usd. That leaf is not on main, so the hint was already a stale command; only its spelling changed.Evidence
tests/test_repo_typecheck_grader.pyand are environmental (they also fail onintel/main).ruff checkclean;mypyclean on the touched modules; CLI snapshot current; comment-block, growth, duplicate and changelog-fragment checks pass.pre-push(make ci-local): 16 passed, 3 skipped, 0 failed.Merge danger
repo run --budgetchanges meaning only in name: it was already the per-run cap.subjects run --dry-runspelling is not used; keep it that way until the held decision on--work-dry-runis made.🤖 Generated with Claude Code