Skip to content

Part of #94 (F1b, model + judge) - #1197

Merged
napetrov merged 61 commits into
intel:mainfrom
napetrov:feat/cli-f1b-model
Dec 2, 2026
Merged

napetrov merged 61 commits into
intel:mainfrom
napetrov:feat/cli-f1b-model

Conversation

@napetrov

@napetrov napetrov commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Part of #94 (F1b, model + judge). This PR does not close #94.

Summary

The provider moves into the model value. --model PROVIDER/MODEL and --judge PROVIDER/MODEL replace --provider, --judge-model and --judge-provider. A bare model name (haiku, or meta-llama/x where meta-llama is no provider) keeps the leaf's default provider, as --model alone always did. A prefix that names a provider the command does not take is refused. Use --model openai/deepseek/deepseek-chat to send a provider-shaped model name to an OpenAI-compatible endpoint.

A missing value after --provider leaves the next option for the argument parser. Retired spellings print a hint and exit 2 (tombstones). --judge-model and --judge-provider stay as spellings on arms run, arms matrix-run, subjects run and novelty, where --judge is a switch or a panel.

Leaf -> old -> new

Leaf Old New
benchmark run, benchmark preflight, benchmark batch, evaluate, eval judge validate, eval judge wording, eval score checklist/pairwise/pointwise/reference --judge-model M --judge PROVIDER/MODEL (a bare M still runs on the default provider)
same leaves --judge-provider P folded into --judge P/MODEL; --judge P/ with no model is refused
eval judge agreement --judges X,Y --judge X --judge Y (repeat = panel). An empty old list adds no fresh judges, as on main.
every leaf with --provider, including delivery scan --provider P --model P/MODEL
catalog novelty, skill novelty analyze, skill novelty probe --extract-provider P --extract-model P/MODEL
arms run, arms matrix-run, subjects run, skill novelty, catalog novelty --judge-model, --judge-provider unchanged spellings; --judge is a switch or a panel here

Not in this PR (KEEP)

Flag Why it stays
--work-model Names the work agent's model, a role outside the judge and answerer concept; it keeps its spelling until the work-role decision.
--judge-panel Classified as a panel switch on arms run (allowlisted in the flag tests); the registry lists it as banned elsewhere.
--judge2, --judge2-provider Keep the separate second-judge options on novelty commands.
--judge-configs Takes a file of judge configurations, not a provider/model pair.

Evidence

  • On dbd9e311c5, local CI passed all 27 applicable steps and GitHub reported 25 completed checks without a failure. The latest review adds targeted regressions for explicit OpenAI-compatible routing, empty provider migration hints and qualified model guidance.

Merge danger

  • Scripts that pass --provider, --judge-model, --judge-provider, --judges or --extract-provider on the leaves above now exit 2.
  • --judge P/ requires a model. Previously, --judge-provider P alone selected that provider's default judge.
  • A repeated --judge on a single-judge command keeps the last value (as --judge-model did on base). Only the panel commands take several.
  • With a native-looking nested model name such as deepseek/deepseek-chat, a bare --model preserves the native route and --model openai/deepseek/deepseek-chat explicitly selects the OpenAI-compatible endpoint. When a migration hint gives the qualified form for an old invocation that used the native route, use the bare model to preserve that route. Repeatable judge panels and nested names beginning with a built-in Dokimi provider such as anthropic/ keep their prior provider resolution. For example, --model openai/anthropic/claude-sonnet-4-5 records the configured provider as openai. LiteLLM sends that call to Anthropic using the nested anthropic/claude-sonnet-4-5 route.

🤖 Generated with Claude Code

The extractor migration warning follows the first panel judge. Regression tests cover both orderings of Anthropic and OpenRouter.

…, --judge-provider, --judges

One flag now names a model and its provider. `--model openai/gpt-6.1-sol` sets
both; a bare name keeps the command's default provider, as `--model` alone did.
`--judge PROVIDER/MODEL` replaces `--judge-model` and `--judge-provider` on
benchmark, eval and evaluate, and repeats for a judge panel. `--ROLE-model` takes
the same form for the extractor and the other roles.

The retired spellings exit 2 with a `moved:` line naming the new command (argv
rewritten by FLAG_MOVES and FLAG_JOINS in cli_flags.py). `--judge-provider` and
`--judge-model` stay as judge switches on arms run, arms matrix-run, subjects run
and novelty, where they still pick the judge family.

Part of intel#94 (F1b).

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
The registry said a repeated --judge is a panel. It is one only where the command
takes several (novelty, catalog, eval judge agreement); on benchmark run, evaluate
and orchestrate a repeat replaces the earlier one, as --judge-model did.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
An empty model after a provider reached the API as an empty name; only Bedrock
reported it, and only after sampling. Refuse it up front, as --judge-provider P
alone was. Restore the preflight refusal test under its name with the new spelling,
and trim the comment block over JUDGE_MOVED_LEAVES to two lines.

Test-narrowed: test_every_judge_command_defaults_the_model_to_its_provider is replaced by test_every_judge_command_takes_the_placeholder_judge_model and test_a_judge_provider_switch_defaults_the_model_to_its_provider; the provider-alone default it checked is retired, and the replacements cover the placeholder and switch defaults on the same judge commands.
Test-narrowed: test_a_named_judge_provider_is_kept_for_a_claude_cli_answerer_when_the_judge_model_is_left_out cut 5 cases to 1; only arms run still takes --judge-provider alone, and the other commands refuse it with the tombstone (exit 2), so those cases no longer apply.
Test-narrowed: test_judge_validity_rejects_providers_judge_rejects cut 2 cases to 1; azure is not a provider name (a model prefix under --judge P/M) and bedrock is amazon-bedrock, so openai-codex keeps the judge-rejected case.
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 09:50
@napetrov napetrov added the cli-interface-change Changes dokimi's user-facing CLI surface label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

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 `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi arms matrix-run` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi arms run` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi benchmark batch` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    - removed option `--provider`
    + added option `--judge`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi benchmark preflight` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    - removed option `--provider`
    + added option `--judge`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi benchmark run` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    - removed option `--provider`
    + added option `--judge`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi catalog novelty` parameters changed:
    - removed option `--extract-provider`
    - removed option `--provider`
    ~ changed option `--extract-model`: action: '_StoreAction' -> 'ProviderModelAction'
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi catalog routing` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi delivery scan` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi eval judge agreement` parameters changed:
    - removed option `--judges`
    + added option `--judge`
~ `dokimi eval judge validate` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    + added option `--judge`
~ `dokimi eval judge wording` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    + added option `--judge`
~ `dokimi eval personas discover` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi eval questions analyze` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi eval questions generate` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi eval questions review` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi eval score checklist` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    + added option `--judge`
~ `dokimi eval score pairwise` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    + added option `--judge`
~ `dokimi eval score panel` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi eval score pointwise` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    + added option `--judge`
~ `dokimi eval score reference` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    + added option `--judge`
~ `dokimi eval triggers generate` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi evaluate` parameters changed:
    - removed option `--judge-model`
    - removed option `--judge-provider`
    - removed option `--provider`
    + added option `--judge`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi skill novelty analyze` parameters changed:
    - removed option `--extract-provider`
    - removed option `--provider`
    ~ changed option `--extract-model`: action: '_StoreAction' -> 'ProviderModelAction'
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi skill novelty atoms` parameters changed:
    - removed option `--provider`
    ~ changed option `--extract-model`: action: '_StoreAction' -> 'ProviderModelAction'
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi skill novelty probe` parameters changed:
    - removed option `--extract-provider`
    - removed option `--provider`
    ~ changed option `--extract-model`: action: '_StoreAction' -> 'ProviderModelAction'
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi skill routing` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi skill sensitivity` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi skill shorten` parameters changed:
    - removed option `--provider`
    ~ changed option `--extract-model`: action: '_StoreAction' -> 'ProviderModelAction'
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi subjects run` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'
~ `dokimi tools preference` parameters changed:
    - removed option `--provider`
    ~ changed option `--model`: action: '_StoreAction' -> 'ProviderModelAction'

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

❌ Patch coverage is 98.51852% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.36%. Comparing base (8464f57) to head (2dc34b7).

Files with missing lines Patch % Lines
dokimi/dokimi/cli_model_ref.py 94.28% 1 Missing and 1 partial ⚠️
dokimi/dokimi/commands/catalog.py 92.59% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1197    +/-   ##
========================================
  Coverage   96.36%   96.36%            
========================================
  Files         523      525     +2     
  Lines       70254    70418   +164     
  Branches    12143    12179    +36     
========================================
+ Hits        67697    67858   +161     
+ Misses       1584     1582     -2     
- Partials      973      978     +5     
Files with missing lines Coverage Δ
dokimi/dokimi/cli_flags.py 100.00% <100.00%> (ø)
dokimi/dokimi/cli_routes.py 98.52% <100.00%> (+0.49%) ⬆️
dokimi/dokimi/commands/answer_formats.py 87.77% <100.00%> (ø)
dokimi/dokimi/commands/answers.py 96.33% <100.00%> (ø)
dokimi/dokimi/commands/arms.py 97.76% <100.00%> (-0.01%) ⬇️
dokimi/dokimi/commands/backends.py 100.00% <ø> (ø)
dokimi/dokimi/commands/benchmark.py 93.02% <100.00%> (+0.43%) ⬆️
dokimi/dokimi/commands/delivery.py 97.14% <100.00%> (ø)
dokimi/dokimi/commands/evaluate.py 93.96% <100.00%> (-0.04%) ⬇️
dokimi/dokimi/commands/judge_reliability.py 98.26% <100.00%> (-0.02%) ⬇️
... and 19 more

... and 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The empty-model refusal ran before the CLI backend check, so `--model codex-cli/`
and `--model copilot-cli/` got the generic message and not the one that names the
models the CLI takes (test_llm_cli_replies, both CI legs on 3.14). The backend check
already refuses an empty model, so the generic refusal skips the CLI backends.

Drop the in-test narrowing comment: this commit carries the waiver instead.
The file is back at its growth baseline (2233 lines), which the ratchet requires.

Test-narrowed: test_judge_validity_rejects_providers_judge_rejects cut 2 cases to 1; azure is not a provider name (under --judge P/M it is a model prefix) and bedrock is amazon-bedrock, so openai-codex keeps the judge-rejected case.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@exai-bot

exai-bot commented Nov 25, 2026 •

Copy link
Copy Markdown

OpenCodeReview: Commit 2dc34b7 was not reviewed. This PR has reached its review limit (6 reviews).

CI at `2dc34b7`: 10 still running, 5 passing, 2 skipped
Check Status
Build docs (strict) still running
CLI interface diff still running
CodeQL (actions) still running
CodeQL (python) still running
Linux Python 3.14 still running
Linux Wheels Python 3.14 still running
Static checks (ruff, schema, zizmor, licenses, pre-commit, bandit, secrets, changelog, schema com... still running
atheris (parsers) still running
benchmark still running
mypy still running

To review this commit: re-request review from exai-bot in the Reviewers list.

Last review (50c7eb5): 2 medium

Open threads from the bot: 0

Comment thread dokimi/docs/evaluating-treatments.md Resolved
Comment thread dokimi/docs/external-content.md Resolved
Comment thread dokimi/docs/how-evaluation-works.md Resolved
Comment thread dokimi/docs/knowledge-runs.md Resolved
Comment thread dokimi/dokimi/commands/skill.py Resolved
Comment thread dokimi/dokimi/commands/tools.py Resolved
Comment thread dokimi/dokimi/judge_rule.py Resolved
Comment thread dokimi/tests/test_llm_cli_replies.py Resolved
Comment thread dokimi/tests/test_llm_cli.py Resolved
refuse_judge_model ended with a per-command hint naming --judge-model and
--judge-provider. Both are retired on every command but the judge switches,
so the hint sent users to a flag this PR removes. The message already names
--judge PROVIDER/MODEL (or --judge PROVIDER/<Claude model>); the hint is dropped.

Regression test: the refusal names no retired spelling in either branch.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Comment thread dokimi/dokimi/cli_model_ref.py Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

# Conflicts:
#	dokimi/docs/external-content.md
#	dokimi/docs/knowledge-runs.md
#	dokimi/docs/reviewing.md
#	dokimi/dokimi/commands/arms.py
#	dokimi/tests/test_judge_provider_default.py
#	dokimi/tests/test_knowledge_run.py
#	dokimi/tests/test_llm_cli.py
Thread: PRRT_kwDOVBg7g8671_d1
Thread: PRRT_kwDOVBg7g8671_eM
Thread: PRRT_kwDOVBg7g8671_ec
Thread: PRRT_kwDOVBg7g8671_ei
Thread: PRRT_kwDOVBg7g8671_e8
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8671_d7
Thread: PRRT_kwDOVBg7g8671_eC
Thread: PRRT_kwDOVBg7g8671_ep
Thread: PRRT_kwDOVBg7g8671_fR
Thread: PRRT_kwDOVBg7g8672d3V
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8671_eV
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8671_ey
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8671_fJ
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8671_fU
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8672d3a
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8671_cL
Thread: PRRT_kwDOVBg7g8671_cY
Thread: PRRT_kwDOVBg7g8671_c6
Thread: PRRT_kwDOVBg7g8671_dF
Thread: PRRT_kwDOVBg7g8671_dS
Thread: PRRT_kwDOVBg7g8671_db
Thread: PRRT_kwDOVBg7g8671_dq
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov

Copy link
Copy Markdown
Contributor Author

Re: review by vlad-perevezentsev

the reproduce line of delivery scan no longer runs, and an OpenRouter-style --extract-model silently moves the extractor to another provider
Replay now parses. Ambiguous OpenRouter references warn. 4632f36

Verify that the stored namespace still resolves to the legacy endpoint.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

# Conflicts:
#	dokimi/tests/test_caller_provider_choices.py
Preserve the required option and provider choices from main while using the migrated spelling.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

@vchamarthi vchamarthi 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.

@napetrov, could you fix the new problem I found (in the line comments) and answer my question below? Then push and I'll take another look.

My question before I approve:

  • --model openai/anthropic/claude-sonnet-4-5 is sent to Anthropic, because the openai/ prefix is dropped when the rest starts with a built-in provider (dokimi/dokimi/cli_model_ref.py:48), but the stored provider stays openai, so the saved run records openai for an Anthropic call. Either store anthropic as the provider for that case, or state in the PR description that the recorded provider stays openai while the call goes to Anthropic.

What I checked on 4e2aad5:

  • When I changed the code on purpose, the tests still passed for 1 of 12 changes, and no test pins this one down yet (non-blocking): dokimi/dokimi/cli.py:346 (the handled error is raised again).
  • The 2277 changed tests pass, and fail on main as expected.
  • The full test suite passes with main merged in (43,514 tests), apart from failures main has too.
  • It merges cleanly onto main.

Comment thread dokimi/dokimi/cli.py Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-G11C
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRR_kwDOVBg7g88AAAABbZXNcw
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 16:43
@napetrov

napetrov commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: review by vchamarthi

Either store anthropic as the provider for that case, or state in the PR description that the recorded provider stays openai while the call goes to Anthropic.
The PR description now names both routes. Two existing tests catch the re-raise. 54ec0be

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

1 open issue
What changed in this PR

This PR migrates the CLI interface to encode provider selection inside model references (e.g., --model PROVIDER/MODEL, --judge PROVIDER/MODEL) and retires older provider/judge flag spellings with tombstone guidance.

Changes:

  • Introduces a shared argparse action for provider-qualified model refs and applies it across commands.
  • Adds flag-move/join logic to rewrite retired --provider, --judge-provider/--judge-model, --judges, and --extract-provider into the new spellings (or hints + exit 2).
  • Updates LiteLLM routing behavior and broadens tests/docs to cover nested routes, OpenAI-compatible routing, and migration edge cases.
File Description
dokimi/​tests/​test_writers_save_artifact.py Updates personas discovery test to use --model PROVIDER/MODEL.
dokimi/​tests/​test_subjects.py Updates subjects run tests to use provider-qualified --model.
dokimi/​tests/​test_session_runner.py Migrates cross-judge invocation from --judges to repeatable --judge.
dokimi/​tests/​test_saved_self_judge_warning.py Updates judge args to --judge and adjusts self-judge warning scenarios.
dokimi/​tests/​test_report_stop_note.py Migrates provider/model flags to --model/--judge qualified refs.
dokimi/​tests/​test_record_readers.py Updates cross-judge tests to use --judge instead of --judges.
dokimi/​tests/​test_provider_call_budgets.py Updates budget/call-count tests for the new model/judge flags.
dokimi/​tests/​test_pipeline_empty_question_set.py Migrates benchmark args to --model + --judge qualified refs.
dokimi/​tests/​test_personas_dry_run_and_cap.py Switches personas discover to use default generator model via qualified --model.
dokimi/​tests/​test_panel_quorum_identity.py Migrates panel scoring tests to qualified --model.
dokimi/​tests/​test_openai_compatible_route.py Adds coverage for explicit OpenAI namespace behavior and nested routing rules.
dokimi/​tests/​test_novelty_tiers.py Migrates novelty analyze to provider-qualified answerer model.
dokimi/​tests/​test_novelty_spend_cap.py Migrates novelty spend-cap tests to qualified --model and --extract-model.
dokimi/​tests/​test_novelty_routing_cli_gaps.py Migrates routing CLI tests to qualified provider/model.
dokimi/​tests/​test_novelty_estimate_roles.py Migrates cost estimation tests to qualified provider/model.
dokimi/​tests/​test_novelty_cli.py Updates novelty CLI behavior tests for provider-qualified model refs.
dokimi/​tests/​test_novelty_answer_key_wiring.py Adds routing tests for extractor overrides with qualified --extract-model.
dokimi/​tests/​test_llm_cli_replies.py Updates parse-time error expectations for --model PROVIDER/ missing model.
dokimi/​tests/​test_llm_cli.py Updates many CLI-provider and judge tests to use qualified refs and new errors.
dokimi/​tests/​test_llm_callers.py Migrates judge selection tests to --judge PROVIDER/MODEL.
dokimi/​tests/​test_knowledge_run.py Updates knowledge run tests to qualified --model and new hint text.
dokimi/​tests/​test_knowledge_cli_answerers.py Migrates knowledge answer generation to provider-qualified --model.
dokimi/​tests/​test_key_files.py Updates preflight tests for qualified answer/judge selection.
dokimi/​tests/​test_judge_validity.py Updates validity parsing tests for qualified --judge.
dokimi/​tests/​test_judge_temperature_entry_points.py Migrates temperature forwarding tests to --judge and qualified models.
dokimi/​tests/​test_judge_reliability.py Updates cross-judge and reliability tests to use repeatable --judge.
dokimi/​tests/​test_judge_provider_default.py Adjusts default-judge rule tests for new --judge interface and kept spellings.
dokimi/​tests/​test_judge_provider_choices.py Updates provider-choice tests for qualified --judge parsing.
dokimi/​tests/​test_judge_placeholder_entry_points.py Updates shared judge argv constants to qualified --judge.
dokimi/​tests/​test_judge_not_measured.py Migrates agreement/wording tests to --judge.
dokimi/​tests/​test_judge_context_mode.py Migrates measure flag selection from --judges to --judge.
dokimi/​tests/​test_input_refusal_pins.py Updates invalid judge-spec tests for --judge behavior.
dokimi/​tests/​test_input_devices.py Migrates benchmark device-refusal tests to qualified --model/--judge.
dokimi/​tests/​test_import_architecture.py Updates architecture import allowlist for new modules (cli_model_ref, llm_providers).
dokimi/​tests/​test_exit_codes_input_errors.py Migrates many provider/judge CLI arguments to qualified refs.
dokimi/​tests/​test_exit_codes_boundaries.py Adds/updates boundary tests for trigger rewrite model resolution and qualified model parsing.
dokimi/​tests/​test_eval_score_method_version.py Migrates judge argv constants to --judge.
dokimi/​tests/​test_eval_output_write_errors.py Migrates stub judge commands to --judge.
dokimi/​tests/​test_empty_question_rule.py Updates cross-judge command tests from --judges to --judge.
dokimi/​tests/​test_delivery.py Adds reproduction parsing test ensuring scan reproduction preserves model/provider/fixture.
dokimi/​tests/​test_cross_judge_judge_errors.py Migrates agreement command to --judge.
dokimi/​tests/​test_cli_model_ref.py New tests for ProviderModelAction parsing rules and malformed refs.
dokimi/​tests/​test_cli_flag_moves.py Adds tests validating tombstone rewrites and route-preserving migration hints.
dokimi/​tests/​test_caller_provider_choices.py Updates provider-choice coverage to include trigger rewrite leaf and qualified models.
dokimi/​tests/​test_benchmark_command_question_set.py Migrates benchmark preflight tests to qualified --model/--judge.
dokimi/​tests/​test_arms_run_config_parity.py Updates parity tests to reflect provider moved into --model.
dokimi/​tests/​test_answer_imports.py Migrates pointwise judge args to --judge.
dokimi/​tests/​data/​cli_flags_allowlist.txt Removes retired --provider, --judges, --extract-provider from allowlist.
dokimi/​scripts/​growth_baseline.json Updates growth baselines for changed file sizes/complexities.
dokimi/​dokimi/​novelty/​client.py Updates remedy text to reflect --extract-model PROVIDER/MODEL.
dokimi/​dokimi/​llm_providers.py New provider/alias/credential module split out of llm.py.
dokimi/​dokimi/​llm.py Uses llm_providers and refines OpenAI/nested-route resolution behavior.
dokimi/​dokimi/​judge_rule.py Updates refusal messages to distinguish unified vs separate judge flags.
dokimi/​dokimi/​harnesses/​delivery.py Adjusts scan reproduction construction to emit qualified --model refs.
dokimi/​dokimi/​eval/​arms_refusals.py Updates error messages to guide users toward --model PROVIDER/MODEL.
dokimi/​dokimi/​defaults.py Tweaks judge model help string to remove deprecated flag mention.
dokimi/​dokimi/​commands/​tools.py Replaces separate --provider + --model with unified model ref flag.
dokimi/​dokimi/​commands/​subjects.py Switches answerer selection to unified model ref; adjusts judge refusal behavior.
dokimi/​dokimi/​commands/​skill.py Updates novelty atoms/shorten to use unified model ref and extractor override helper.
dokimi/​dokimi/​commands/​routing_parser.py Migrates routing/sensitivity commands to unified model ref flag.
dokimi/​dokimi/​commands/​questions.py Migrates question generation/review/analyze/panel commands to unified model ref flag.
dokimi/​dokimi/​commands/​personas.py Migrates personas discover to unified model ref flag.
dokimi/​dokimi/​commands/​orchestrate.py Migrates evaluate judge to --judge PROVIDER/MODEL and answerer to unified model ref.
dokimi/​dokimi/​commands/​novelty_flags.py Adds unified extractor model ref and migrates answerer model ref.
dokimi/​dokimi/​commands/​novelty_atoms_file.py Fixes extractor provider selection to use extract_provider when present.
dokimi/​dokimi/​commands/​novelty.py Fixes extractor provider selection to use extract_provider when present.
dokimi/​dokimi/​commands/​judge_reliability.py Makes cross-judge accept repeatable --judge; migrates judge flags to unified ref where applicable.
dokimi/​dokimi/​commands/​evaluate.py Migrates judge flags to --judge PROVIDER/MODEL and answerer/panel config to unified model ref.
dokimi/​dokimi/​commands/​delivery.py Migrates delivery scan adapter to unified model ref flag; removes separate provider flag.
dokimi/​dokimi/​commands/​catalog.py Migrates trigger rewrite model/provider to unified model ref and defers route lookup.
dokimi/​dokimi/​commands/​benchmark.py Migrates benchmark model/judge selection to unified model ref flags.
dokimi/​dokimi/​commands/​backends.py Updates help text to reflect --model PROVIDER/MODEL usage.
dokimi/​dokimi/​commands/​arms.py Migrates arms run/matrix-run answerer selection to unified model ref.
dokimi/​dokimi/​commands/​answers.py Migrates answers generate to unified model ref.
dokimi/​dokimi/​commands/​answer_formats.py Migrates eval reference judge selection to unified --judge.
dokimi/​dokimi/​cli_routes.py Adds “flag joins” (provider+model -> model ref) and split-list handling for tombstones.
dokimi/​dokimi/​cli_model_ref.py New shared argparse action and helper to parse/store provider-qualified model refs.
dokimi/​dokimi/​cli_flags.py Defines moved/joined flag metadata and updates concept metadata for repeatable --judge.
dokimi/​dokimi/​cli.py Updates parse flow for new defaults/tombstones, judge defaulting, and extractor/provider warnings.
dokimi/​docs/​user-flow.md Updates examples to use provider-qualified --model.
dokimi/​docs/​tool-preference.md Updates examples to use provider-qualified --model.
dokimi/​docs/​subscription-backends.md Updates docs for new model/judge spelling rules across commands.
dokimi/​docs/​skill-sensitivity.md Updates examples to use provider-qualified --model.
dokimi/​docs/​skill-novelty.md Updates novelty docs for unified model refs, panel judges, and extractor routing warnings.
dokimi/​docs/​skill-novelty-walkthrough.md Updates walkthrough examples to new --judge and qualified model refs.
dokimi/​docs/​reviewing.md Updates reviewing guide to new flags and judge-selection guidance.
dokimi/​docs/​quickstart.md Updates quickstart examples to use --model PROVIDER/MODEL and --judge PROVIDER/MODEL.
dokimi/​docs/​methodology.md Updates methodology examples to use --judge PROVIDER/MODEL.
dokimi/​docs/​knowledge-runs.md Updates knowledge run docs to provider-qualified --model usage.
dokimi/​docs/​judge-panel-study.md Updates cross-judge docs to repeatable --judge spelling.
dokimi/​docs/​how-evaluation-works.md Updates example to --judge PROVIDER/MODEL.
dokimi/​docs/​evaluating-treatments.md Updates agreement reference to repeatable --judge.
dokimi/​docs/​documentation-index.md Updates index entry wording for CLI backends and new model ref usage.
dokimi/​docs/​delivery.md Updates delivery scan examples to --model PROVIDER/MODEL.
dokimi/​docs/​benchmarking-and-comparison.md Updates primary how-to docs and examples for new flag spellings and defaults.
dokimi/​docs/​architecture.md Records new foundation module (llm_providers).
dokimi/​docs/​answer-formats.md Updates answer-format examples to provider-qualified --model.
dokimi/​changelog.d/​20261124_120000_napetrov_f1b-model-judge.md Adds changelog entry describing the flag migration and routing implications.
dokimi/​README.md Updates README example usage to provider-qualified --model.

Review effort: Lite

Comment thread dokimi/dokimi/cli_routes.py Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

# Conflicts:
#	dokimi/docs/reference/cli-interface.json
#	dokimi/docs/user-flow.md
#	dokimi/scripts/growth_baseline.json
Thread: PRRT_kwDOVBg7g86-LmyA
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

@vchamarthi vchamarthi 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.

@napetrov, could you fix the small thing I've marked fix before merge (in the line comments)? I'll approve once that's done.
I'll approve once that's done.

Also holding my approval:

  • A check of the change fails on this head.

What I checked on e8b7c82:

  • It conflicts with main.
  • When I changed the code on purpose, the tests still passed for 1 of 12 changes, and no test pins this one down yet (non-blocking): dokimi/dokimi/cli.py:337 (the handled error is raised again).
  • The 2290 changed tests pass, and fail on main as expected.
  • The full test suite passes (44,357 tests), apart from failures main has too.

Comment thread dokimi/tests/test_cli_model_ref.py Resolved
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

# Conflicts:
#	dokimi/scripts/growth_baseline.json
Thread: PRRT_kwDOVBg7g86-ccL2
Review: PRR_kwDOVBg7g88AAAABbkmxng
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov

napetrov commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Re: review by vchamarthi

A check of the change fails on this head.
I resolved the growth-baseline conflict with main. Both panel orders catch the first-to-last judge mutation. Re-raising the handled error also fails three existing default-judge cases. The focused model-reference suite passes. e64ed37

@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 2dc34b7 · nothing required from @napetrov

🔀 Merge: safe now · merges cleanly into current main, 1 commit behind (an unrelated repo scan change) · after it, #1190 and #1416 need a rebase (harnesses/delivery.py, commands/catalog.py, answer_formats.py), #1413 (novelty_flags.py, skill.py), #1420 (benchmark.py, routing_parser.py) and #1406 (judge_reliability.py)

✅ make ci-local --offline: 33,459 passed, mutation of changed lines 0 survived · ✅ delivery scan reproduce parses back to the same model and provider for 9 spellings · ✅ swapping the first panel judge for the last fails 2 tests

The earlier points are fixed; old spellings now point to the same route they used to take.

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.

CLI API: the evaluation loop at the top level, subject and eval groups below, one enforced flag vocabulary (proposal v2.1)

6 participants