Skip to content

refactor(commands): share command helpers publicly, one safe filename helper - #1413

Merged
xaleryb merged 20 commits into
intel:mainfrom
napetrov:arch/r6-5
Dec 3, 2026
Merged

xaleryb merged 20 commits into
intel:mainfrom
napetrov:arch/r6-5

Conversation

@napetrov

@napetrov napetrov commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Command modules imported about 25 private names from each other. This PR gives them public names in a new commands/_shared.py, and owners expose their cross-module names without the underscore. _safe_name existed twice (commands/arms.py, eval/matrix_rollup.py) and now lives once as dokimi.artifacts.safe_file_name, the lowest layer both callers may import (the eval layer cannot import commands).

No behaviour change. Moved bodies are unchanged except for their names.

Evidence

  • Full pytest: 31436 passed, 28 skipped. Two initial failures, both explained: the CLI snapshot (regenerated: judge_ref now lives under _shared) and a timed-out-scenario test that passes serially (parallel flake under -n 8).
  • ruff check --select F clean. scripts/check_growth.py passes. tests/test_import_architecture.py passes.
  • Probe: each moved function's free names resolve to the same objects in base and head, except the intended _cache_dir to cache_dir_from_args rename inside parse_source.
  • Probe: safe_file_name matches both old _safe_name copies on 17 inputs (0 mismatches).
  • Self-review (local mode, one pass): nothing blocking. Marker written for 51953c7.

Merge danger

Every cross-module private name below is removed with no alias, so an open PR that still uses the old name fails with ImportError, AttributeError or ruff F821 once both are on main. To check a branch, grep its added lines for the left column.

Old name (module) New name (module)
_add_bundle_args, _add_model_args (novelty_flags, deleted) same without _ (_shared)
_add_cache_dir, _add_common (novelty_flags) add_cache_dir_arg, add_common_args (_shared)
_arms, _settings, _bundle_from_args (novelty) arms_from_spec, settings_from_args, bundle_from_args (_shared)
_default_dir (novelty) default_dir (novelty)
_cache_dir, _code_index (repo) cache_dir_from_args, code_index_for (_shared)
_parse_source, _normalize_whitespace (repo) same without _ (_shared)
_load_manifest, _source_tree (repo) manifest_for_tree, source_tree (repo)
_baseline_manifest (baseline) baseline_index (baseline)
_errors (repo_run) run_errors (_shared)
_refuse_typed (repo_run) refuse_typed (repo_run)
_judge_ref (repo_hits; redteam keeps its own) judge_ref (_shared)
_load_runtime_config (answers) load_runtime_config (_shared)
_require_ragas, _run_ragas_eval (evaluate) same without _ (_shared)
_pairwise_judges (judge_reliability) pairwise_judges (_shared)
_print_scan_text, _scan_gate, _scan_reason, _typecheck_or_exit (repo_scan) same without _ (_shared)
_loaded_with_default (repo_scan) loaded_with_default (repo_scan)
_load_registry (library) load_registry (library)
_partial_destinations (novelty_routing_report) partial_destinations (novelty_routing_report)
_safe_name (commands.arms, eval.matrix_rollup) safe_file_name (dokimi.artifacts)

All modules are dokimi.commands.* unless named in full. The map comes from the def lines this PR removes and adds (base 0eeaaf9c0).

  • A test that monkeypatches a moved name must patch the module that calls it, because callers bind the name when they import it. For example, evaluate._require_ragas becomes evaluate.require_ragas.
  • docs/reference/cli-interface.json is regenerated here. A later change to the module path of a CLI type makes it stale again.

Open PRs that use old names (checked at their current heads, against this head)

PR Old names in its added lines Textual conflict with this PR
#1494 merged; its 3 _safe_name calls in subjects.py are renamed in this PR's merge commit resolved
#1406 monkeypatch.setattr(evaluate, "_require_ragas", ...) in test_expected_outcome.py commands/evaluate.py
#1522 _baseline_manifest() in commands/baseline.py commands/baseline.py
#1328 _code_index(...) in commands/repo.py commands/repo.py
#1197 imports _add_bundle_args, _add_cache_dir, _add_common, _add_model_args from novelty_flags and adds _add_extractor_arg there novelty.py, novelty_flags.py (deleted here), skill.py, growth_baseline.json, a test; it already conflicts with main
#1420 none novelty_flags.py (deleted here: its help text moves to _shared.py), skill.py

Merge order

Each of these PRs conflicts textually with this one, so whichever lands second resolves the conflict either way. Two orders work:

The order is the author's call. Either way, #1522, #1328, #1197 and #1420 update their branches and rename after this PR lands.

🤖 Generated with Claude Code

@napetrov napetrov added the skip-changelog No user-visible change: bypasses the changelog fragment check label Nov 29, 2026
@github-actions github-actions Bot 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 eval graph` parameters changed:
    ~ changed option `--extract-model`: type: 'dokimi.commands.repo_hits._judge_ref#f8f456f0565f' -> 'dokimi.commands._shared.judge_ref#2304e1942183'
~ `dokimi repo hits judge` parameters changed:
    ~ changed option `--judge`: type: 'dokimi.commands.repo_hits._judge_ref#f8f456f0565f' -> 'dokimi.commands._shared.judge_ref#2304e1942183'

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

@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

❌ Patch coverage is 97.70774% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.48%. Comparing base (ed7a4e2) to head (4789d42).

Files with missing lines Patch % Lines
dokimi/dokimi/commands/_shared.py 96.34% 3 Missing and 3 partials ⚠️
dokimi/dokimi/commands/answers.py 75.00% 1 Missing ⚠️
dokimi/dokimi/commands/novelty_budget.py 75.00% 0 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    #1413      +/-   ##
==========================================
- Coverage   96.50%   96.48%   -0.02%     
==========================================
  Files         534      535       +1     
  Lines       71550    71572      +22     
  Branches    12362    12362              
==========================================
+ Hits        69046    69056      +10     
- Misses       1530     1536       +6     
- Partials      974      980       +6     
Files with missing lines Coverage Δ
dokimi/dokimi/artifacts.py 96.00% <100.00%> (+0.08%) ⬆️
dokimi/dokimi/commands/arms.py 97.78% <100.00%> (-0.02%) ⬇️
dokimi/dokimi/commands/baseline.py 95.52% <100.00%> (ø)
dokimi/dokimi/commands/benchmark.py 94.63% <100.00%> (ø)
dokimi/dokimi/commands/catalog_novelty.py 94.05% <100.00%> (-0.45%) ⬇️
dokimi/dokimi/commands/eval_graph.py 94.26% <100.00%> (ø)
dokimi/dokimi/commands/evaluate.py 96.66% <100.00%> (+0.33%) ⬆️
dokimi/dokimi/commands/judge_reliability.py 98.30% <100.00%> (-0.02%) ⬇️
dokimi/dokimi/commands/library.py 91.57% <100.00%> (ø)
dokimi/dokimi/commands/novelty.py 99.29% <100.00%> (-0.05%) ⬇️
... and 17 more

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

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Mutation of changed lines

⚠️ Not a clean result: some breaks or tests were left out

At 4789d42: 34 caught · 0 missed · 7 inconclusive · 39 not tried in time

This is not a clean result:

  • 39 breaks were not tried before the time budget ran out
  • 116 more breaks of covered changed lines were over the limit and not tried
  • 101 candidate test files were not run
  • 44 changed lines were not mutated

Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary.

@napetrov napetrov changed the title [stacked on #1247] refactor(commands): share command helpers publicly, one _safe_name refactor(commands): share command helpers publicly, one safe filename helper Nov 30, 2026
@napetrov
napetrov marked this pull request as ready for review November 30, 2026 17:28
@napetrov
napetrov requested a review from a team as a code owner November 30, 2026 17:28
@exai-bot

exai-bot commented Nov 30, 2026 •

Copy link
Copy Markdown

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

CI at `4789d42`: 10 still running, 11 passing, 3 skipped
Check Status
CodeQL (python) still running
External catalog smoke test (uxlfoundation/skills) still running
Linux Wheels Python 3.14 still running
Static checks (ruff, schema, zizmor, licenses, pre-commit, bandit, secrets, changelog, schema com... still running
Windows smoke test (py3.13) still running
self / repo scan still running
self / repo tasks check fix-degrade-pre still running
self / repo tasks check rename-cli-flag still running
self / repo tasks check review-clean-diff still running
self / repo tasks check review-pr-conventions still running

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

Last review (948a3ce): no findings

Open threads from the bot: 0

@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 problem I found and the small thing I've marked fix before merge (in the line comments)? Then push and I'll take another look.

Also holding my approval:

  • A check of the change fails on this head.
Optional, non-blocking (1)
  • dokimi/dokimi/repos/compare.py:586: Input: three patterns near 1e9, 1e9 + 1/3, 1e9 + 0.1, 2e9 + 0.2, with paired deltas a, b, c, a, -b, a, b (main has it too).

What I checked on 509ff05:

  • The full test suite fails with main merged in, at tests/test_answers_command.py::test_top_k_flag_below_one_is_refused[-1], tests/test_answers_command.py::test_top_k_flag_below_one_is_refused[0], tests/test_benchmark_command_question_set.py::test_preflight_check_failure_alone_stays_1.
  • When I changed the code on purpose, the tests still passed for 10 of 12 changes, and no test pins these down yet (non-blocking): dokimi/dokimi/commands/_shared.py:37 (the condition is negated), dokimi/dokimi/commands/_shared.py:74 (the condition is negated), dokimi/dokimi/commands/_shared.py:212 (the handled error is raised again) and 6 more.
  • The 1286 changed tests pass, and fail on main as expected.
  • It merges cleanly onto main.

Comment thread dokimi/dokimi/commands/novelty.py Resolved
Comment thread dokimi/dokimi/commands/_shared.py Resolved
Copilot AI balanced review requested due to automatic review settings December 1, 2026 16:42
@napetrov

napetrov commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: review by vchamarthi

A check of the change fails on this head.
The three named tests pass after de3fb01. For the optional sign_flip_summary example, 8 of the 128 sign patterns meet the observed threshold. That matches p = 0.0625 on head, with an interval starting at zero. Waiting on a decision before I change this: which output did you expect? I recommend keeping this refactor scoped to command helpers and tracking a statistics change separately if the expected result differs.

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

Refactors command-layer helpers to reduce cross-module imports of private names by centralizing shared utilities in dokimi/commands/_shared.py, and deduplicates filename sanitization into dokimi.artifacts.safe_file_name.

Changes:

  • Added dokimi/commands/_shared.py and migrated multiple helpers (argparse flag builders, repo scan helpers, source parsing, ragas helpers, etc.) to public names.
  • Replaced duplicated _safe_name implementations with dokimi.artifacts.safe_file_name and updated callers accordingly.
  • Updated tests and docs (including regenerated CLI interface snapshot) to import/patch the new public helpers.
File Description
dokimi/​tests/​test_saved_self_judge_warning.py Updates monkeypatch targets for renamed/moved judge + ragas helpers.
dokimi/​tests/​test_repo_source_exit_2.py Switches tests to use refuse_typed public helper.
dokimi/​tests/​test_repo_l0_typecheck.py Switches tests to use typecheck_or_exit shared helper.
dokimi/​tests/​test_repo_environment.py Switches tests to use normalize_whitespace shared helper.
dokimi/​tests/​test_repo_cache_env_usable.py Switches tests to use cache_dir_from_args shared helper.
dokimi/​tests/​test_repo_cache_dir_usable.py Switches tests to use cache_dir_from_args shared helper.
dokimi/​tests/​test_ragas_runtime.py Switches to shared run_ragas_eval and adds coverage for runtime failure handling.
dokimi/​tests/​test_questions_generate_inputs.py Updates monkeypatching from answers._load_runtime_config to shared load_runtime_config.
dokimi/​tests/​test_pipeline_empty_question_set.py Updates registry loader monkeypatch to benchmark.load_registry.
dokimi/​tests/​test_novelty_routing_spend_cap_partial.py Updates to partial_destinations public helper.
dokimi/​tests/​test_llm_cli.py Updates registry loader monkeypatch to benchmark.load_registry.
dokimi/​tests/​test_input_devices.py Updates registry loader monkeypatch to benchmark.load_registry.
dokimi/​tests/​test_exit_codes_boundaries.py Updates monkeypatch targets for manifest loader, registry loader, and ragas requirement.
dokimi/​tests/​test_eval_writers_save_artifact.py Switches to shared run_ragas_eval.
dokimi/​tests/​test_eval_output_write_errors.py Switches to shared run_ragas_eval.
dokimi/​tests/​test_empty_question_rule.py Switches to shared run_ragas_eval.
dokimi/​tests/​test_cli_output.py Switches to shared scan_reason.
dokimi/​tests/​test_benchmark_command_question_set.py Updates registry loader monkeypatch to benchmark.load_registry.
dokimi/​tests/​test_answers_command.py Updates to answers.load_runtime_config public name.
dokimi/​dokimi/​repos/​compare.py Removes trailing blank line (format-only change).
dokimi/​dokimi/​eval/​matrix_rollup.py Replaces local _safe_name with artifacts.safe_file_name.
dokimi/​dokimi/​commands/​tasks_generate.py Uses shared helpers for repo parsing, code index loading, scan/run error handling.
dokimi/​dokimi/​commands/​subjects.py Switches output directory sanitization to safe_file_name.
dokimi/​dokimi/​commands/​skill_sensitivity.py Uses novelty.default_dir public helper.
dokimi/​dokimi/​commands/​skill.py Switches novelty argparse flag helpers to shared public versions.
dokimi/​dokimi/​commands/​runs.py Switches baseline manifest helper to baseline_index.
dokimi/​dokimi/​commands/​repo_scan.py Exposes loaded_with_default publicly and removes moved helpers.
dokimi/​dokimi/​commands/​repo_run.py Exposes refuse_typed publicly and uses shared run_errors and cache/source helpers.
dokimi/​dokimi/​commands/​repo_hits.py Reuses shared judge_ref type parser.
dokimi/​dokimi/​commands/​repo.py Uses shared helpers for cache/source parsing, scan output, typecheck selection, code index loading.
dokimi/​dokimi/​commands/​questions.py Uses shared load_runtime_config.
dokimi/​dokimi/​commands/​novelty_routing_report.py Exposes partial_destinations publicly and updates call sites/docs.
dokimi/​dokimi/​commands/​novelty_routing.py Uses novelty.default_dir public helper.
dokimi/​dokimi/​commands/​novelty_flags.py Removes file; its content moved into _shared.py.
dokimi/​dokimi/​commands/​novelty_budget.py Updates import to partial_destinations public helper.
dokimi/​dokimi/​commands/​novelty.py Uses shared novelty helpers and exposes default_dir publicly.
dokimi/​dokimi/​commands/​library.py Makes registry loader public as load_registry.
dokimi/​dokimi/​commands/​judge_reliability.py Reuses shared pairwise_judges helper.
dokimi/​dokimi/​commands/​evaluate.py Uses shared require_ragas + run_ragas_eval.
dokimi/​dokimi/​commands/​eval_graph.py Reuses shared judge_ref (aliased).
dokimi/​dokimi/​commands/​catalog_novelty.py Uses shared novelty settings/arms/bundle + shared flag helpers.
dokimi/​dokimi/​commands/​benchmark.py Switches to library.load_registry public helper.
dokimi/​dokimi/​commands/​baseline.py Makes baseline manifest loader public as baseline_index.
dokimi/​dokimi/​commands/​arms.py Switches to artifacts.safe_file_name for cell artifact names.
dokimi/​dokimi/​commands/​answers.py Uses shared ragas helpers and shared runtime config loader.
dokimi/​dokimi/​commands/​_shared.py New shared helper module hosting refactored cross-command utilities.
dokimi/​dokimi/​artifacts.py Adds safe_file_name helper shared across layers.
dokimi/​docs/​skill-novelty.md Updates dependency list from removed novelty_flags.py to _shared.py.
dokimi/​docs/​skill-novelty-walkthrough.md Updates dependency list from removed novelty_flags.py to _shared.py.
dokimi/​docs/​reference/​cli-interface.json Regenerates CLI snapshot to reference shared helper module paths.
dokimi/​changelog.d/​20261129_120000_napetrov_shared-command-helpers.md Adds changelog entry describing shared helpers + filename normalization consolidation.

Review effort: Lite

Comment on lines +422 to +425
def safe_file_name(name: str) -> str:
"""A file-name piece for a cell or product name: other characters become ``-``, ``cell`` if none is left."""
safe = "".join(c if c.isalnum() or c in ("-", "_", ".") else "-" for c in name)
return safe.strip("-") or "cell"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is main's _safe_name, moved unchanged. Both directory uses refuse ./.. before writing (_safe_subject_id, _validate_unique_product_output_dirs; tests in test_subjects.py). The other calls add a suffix. Mapping .. to cell would hide those refusals.

@napetrov

napetrov commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: review by vchamarthi

compare.py:586: three patterns near 1e9 … deltas a, b, c, a, -b, a, b
I checked all 128 sign patterns in exact rational arithmetic: 8 reach the observed |sum|, so p = 8/128 = 0.0625. sign_flip_summary gives 0.0625 on head and on main, so no change.

@xaleryb

xaleryb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

napetrov and others added 8 commits December 1, 2026 22:25
Command modules imported about 25 private names from each other. Each
helper now has a public name in commands/_shared.py, which holds only
code that moved unchanged (plus the renames). A name used by one module
stays where it is, and owner modules expose their cross-module names
without the underscore.

_safe_name existed twice (commands/arms.py and eval/matrix_rollup.py).
It is now dokimi.artifacts.safe_file_name, the lowest layer both callers
may import; the eval layer cannot import commands.

No behaviour change. The CLI interface snapshot records the new home of
the judge_ref type, so docs/reference/cli-interface.json is regenerated.

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>
Thread: PRRT_kwDOVBg7g86-G26W
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-G26j
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
The cache-dir refusal, parse_source and the code-index helpers moved
from commands/repo.py to commands/_shared.py. List the new module in
the contract's depends_on so the docs-review prompt names the page.

Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
…oader

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

napetrov commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Re: comment by xaleryb

the merge order and a rename map in the "Merge danger" section.
#1494 has landed and its callers use safe_file_name. The PR description now maps the remaining renames and both merge orders. 2d27cdc keeps the task verifier compatible with its pinned historical source.

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

🟡 Changes needed · reviewed 2d27cdc

To fix: the branch conflicts with main since #1497, and its ignored count has to move into _shared.print_scan_text, or the console line loses it (line comments). The changelog wording and the small leftovers there are quick.

✅ make ci-local --offline: 33,316 passed, 27 checks pass · ✅ the moved helpers match their originals, the three _safe_name copies were identical · ✅ no command module imports another's private name now

The helpers are now public and shared, with no change to flags, output or exit codes.

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

# Conflicts:
#	dokimi/dokimi/commands/novelty.py
#	dokimi/dokimi/commands/novelty_flags.py
#	dokimi/dokimi/commands/repo_scan.py
#	dokimi/dokimi/commands/skill.py
#	dokimi/tests/test_saved_self_judge_warning.py
Thread: PRRT_kwDOVBg7g86-mbhm
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-mbh8
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-mbh1
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-mbiG
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-mbiM
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g86-equs: already fixed in 2d27cdc
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Review: PRR_kwDOVBg7g88AAAABbpwsVw
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 vlad-perevezentsev

Its ignored count has to move into _shared.print_scan_text
eb1e8f8 restores it. The count regression passes after merging main.

Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
(cherry picked from commit e249323eb321bbc70ac425c03170071d835a143c)

@antonwolfy antonwolfy 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. The moved helpers keep their bodies, no module imports another's private name any more, and a search of the tree finds no caller of a removed name. safe_file_name is the old _safe_name unchanged, and the one directory use is guarded.

What I ran, on a Linux review host at 5e4ce5f:

  • make ci-local: 38 passed, 0 failed, 16 skipped. The skips are jobs that need the GitHub runner or other Python versions.
  • A search of the tree for every removed name from the PR description: the only hits are a local helper of the same name in test_ragas_real_runtime.py and the pinned-base verifier in .agent-eval/tasks/rename-cli-flag/check.py, which imports benchmark from the historical base on purpose.
  • All 17 non-merge commits carry a Signed-off-by.

Checked, no issues

  • Changelog and label: the fragment now says the refactor changes no flags, output, file names or exit codes, and skip-changelog is on the PR.
  • CLI snapshot: cli-interface.json differs from the base only in the judge_ref type path of --extract-model and --judge, as the CLI-surface comment shows.
  • Earlier review points: the ignored count is in print_scan_text (_shared.py:88), the generic RAGAS failure has a test (test_ragas_runtime.py), the raising=False patch is gone, and _default_dir callers use default_dir.
Bot points I checked that no longer apply at this head (1)
  • Copilot's point on safe_file_name returning . or .. does not apply: the one call that makes a directory, subjects.py:197, runs after _validate_unique_product_output_dirs (subjects.py:523, 551-560) has refused any product that maps to . or ... The other calls append .json or a suffix. The function is the base's _safe_name, moved without a change.

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

# Conflicts:
#	dokimi/dokimi/commands/evaluate.py
#	dokimi/dokimi/commands/skill.py

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

Approved on 4789d42. Command helpers are shared publicly with one safe filename helper; CLI help, repo scan text and json are identical to main, the (N ignored) count is back, and subjects code from #1494 runs on the new names. Merge note for #1406: keep AskOutcomeError re-raised in _shared.run_ragas_eval. Windows smoke had not started (the hosted Windows queue was stuck); every other check passed.

@xaleryb
xaleryb merged commit ec3913a into intel:main Dec 3, 2026
31 checks passed
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 skip-changelog No user-visible change: bypasses the changelog fragment check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants