Skip to content

feat(cli): move --output, --view-format and -o to the output concept - #1414

Merged
napetrov merged 4 commits into
intel:mainfrom
napetrov:feat/cli-f1b-output-2
Nov 30, 2026
Merged

napetrov merged 4 commits into
intel:mainfrom
napetrov:feat/cli-f1b-output-2

Conversation

@napetrov

@napetrov napetrov commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

F1b output remainder. --output becomes --out on every leaf that wrote one file, skill novelty analyze --view-format becomes --format, and -o stays as the short form of --out. The four other banned spellings keep their rows, each with a reason in the allowlist. Old spellings print moved: dokimi ... and exit 2 through FLAG_MOVES. The --output move is scoped to the 17 leaves that wrote one file and so had --output; on every other leaf --output keeps its argparse error.

Part of #94 (F1b, output concept).

Moved (leaf -> old -> new)

Leaf Old New
answers generate --output --out
eval import --output / -o --out / -o
eval judge agreement --output --out
eval judge validate --output --out
eval judge wording --output --out
eval personas discover --output --out
eval questions analyze --output --out
eval questions generate --output --out
eval questions refine --output --out
eval questions review --output --out
eval score checklist --output --out
eval score grounding --output --out
eval score pairwise --output --out
eval score panel --output --out
eval score pointwise --output --out
eval score reference --output / -o --out / -o
report generate --output --out
skill novelty analyze --view-format --format

repo run --output DIR is not moved: repo run has no --out file flag, so --output keeps its argparse error. Its directory is --out-dir.

Kept (reasons in tests/data/cli_flags_allowlist.txt)

Spelling Why it stays
--out-md Markdown written beside --out on every leaf that has both
--items-out Tools preference: a second file beside --out
--no-json Dashboard: dashboard.json beside DASHBOARD.md
--results-dir Dashboard generate: input directory, not an output file

Evidence

  • make ci-local CI_LOCAL_ARGS="--offline --jobs static,typecheck" (pre-push set): 0 failed, 17 passed, 3 skipped.
  • Full pytest -n 8 tests on this head: 31521 passed, 28 skipped, 0 failed.
  • Scope and invariants (second commit): tests/test_cli_flag_moves.py now checks that the --output move covers exactly those 17 leaves, each of which accepts --out, that each move's printed argv parses on each leaf it applies to, that a cycle of moves stops, and that repo run --output is not moved. The rewrite loop is bounded by the number of moves.
  • docs/reference/cli-interface.json regenerated with make cli-snapshot.
  • Docs, schemas and .agent-eval task check renamed to --out where they taught dokimi usage.

Merge Danger

  • Scripts that pass --output or --view-format to the leaves above now exit 2 with the new argv printed. Nothing runs silently.
  • -o keeps its meaning, so eval import x.jsonl -o q.json is unchanged.
  • Other tools' own --output flags are untouched (ci/build.py, .github/workflows/intel-ci.yml, the bazel doc, the external l0 typecheck runner).

Not in this PR

  • The four kept rows above. Each stays until its leaf gets a single-file or dashboard redesign.
  • Any change to the output concept's other leaves that already use --out-dir.

🤖 Generated with Claude Code

--output becomes --out on every leaf that wrote one file (-o stays as
its short form), and skill novelty analyze --view-format becomes
--format. Old spellings print the moved argv and exit 2 through
FLAG_MOVES; a move that lands on another move applies in one pass
(repo run --output -> --out -> --out-dir).

Kept, with reasons in the allowlist: --out-md (Markdown beside --out),
--items-out (second file beside --out), --no-json (dashboard.json beside
DASHBOARD.md), --results-dir (dashboard input directory).

Part of intel#94 (F1b, output concept).

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
@napetrov
napetrov requested a review from a team as a code owner November 29, 2026 23:09
@napetrov napetrov added the cli-interface-change Changes dokimi's user-facing CLI surface label Nov 29, 2026
@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 `--output`
    + added option `--out`
~ `dokimi eval import` parameters changed:
    - removed option `--output/-o`
    + added option `--out/-o`
~ `dokimi eval judge agreement` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval judge validate` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval judge wording` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval personas discover` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval questions analyze` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval questions generate` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval questions refine` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval questions review` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval score checklist` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval score grounding` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval score pairwise` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval score panel` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval score pointwise` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi eval score reference` parameters changed:
    - removed option `--output/-o`
    + added option `--out/-o`
~ `dokimi report generate` parameters changed:
    - removed option `--output`
    + added option `--out`
~ `dokimi skill novelty analyze` parameters changed:
    - removed option `--view-format`
    + added option `--format`

Updated on every push; the cli-interface-change label is on while the diff is non-empty.

@exai-bot

exai-bot commented Nov 29, 2026 •

Copy link
Copy Markdown

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

CI at e1d3a66: 26 passing, 4 skipped.

Review details
  • Commit reviewed: e1d3a66 against merge base 7f82075
  • Coverage: 2 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 35k tokens (21k from cache), 4s
  • Tool calls: 2 (2 file_read)
  • small change set: 2 files

@codecov-commenter

codecov-commenter commented Nov 29, 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.27%. Comparing base (e260503) to head (e1d3a66).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1414      +/-   ##
==========================================
- Coverage   96.28%   96.27%   -0.01%     
==========================================
  Files         513      513              
  Lines       68470    68482      +12     
  Branches    11884    11886       +2     
==========================================
+ Hits        65924    65931       +7     
- Misses       1566     1567       +1     
- Partials      980      984       +4     
Files with missing lines Coverage Δ
dokimi/dokimi/cli_flags.py 100.00% <ø> (ø)
dokimi/dokimi/cli_routes.py 98.03% <100.00%> (+0.07%) ⬆️
dokimi/dokimi/commands/answer_formats.py 87.77% <100.00%> (+0.13%) ⬆️
dokimi/dokimi/commands/answers.py 96.29% <100.00%> (ø)
dokimi/dokimi/commands/evaluate.py 94.00% <100.00%> (ø)
dokimi/dokimi/commands/judge_reliability.py 98.27% <100.00%> (+<0.01%) ⬆️
dokimi/dokimi/commands/personas.py 100.00% <100.00%> (ø)
dokimi/dokimi/commands/questions.py 87.82% <100.00%> (+0.04%) ⬆️
dokimi/dokimi/commands/report.py 82.60% <100.00%> (ø)
dokimi/dokimi/commands/skill.py 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

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

napetrov and others added 3 commits November 29, 2026 15:46
…the move chain

--output -> --out is scoped to the 17 leaves that write one file, so a
tombstone always prints an argv that parses. On other leaves it keeps its
argparse error. The rewrite loop runs at most once per move, so a cycle in
FLAG_MOVES stops instead of recursing. Tests: the --output leaf set is
exact, every move's printed argv parses on each leaf it applies to, a
cycle stops, and repo run --output is not moved.

Part of intel#94 (F1b, output concept).

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

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

🔀 Merge: safe now · merges cleanly into current main, 0 commits behind · after it, #1197 needs a rebase (26 files: docs, cli_routes.py, commands/*.py, tests), and so do #1420 (judge_reliability.py, questions.py, skill.py) and #1190 / #1416 (answer_formats.py, test_saved_self_judge_warning.py)

✅ make ci-local --offline: 0 failed, 27 passed, 22 skipped (31,433 tests, changed lines 100% covered, mutations of changed lines caught) · ✅ each old spelling (--output, --output=, --view-format, the novelty alias) prints a command that parses

The 17 leaves and skill novelty analyze move cleanly, and --output stays an error where --out would mean something else.

Fixed in this branch, up to e1d3a66:

  • The quickstart did not say 0.2.0 still takes --output: a8701ba adds the note under Pipeline.
  • The interfaces row said "this PR": e1d3a66 links #1414.

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