Repository navigation
Conversation
Mutation of changed linesAt 5e3347c: 46 caught · 9 missed Each row is a small deliberate break (a mutant) of a line this PR changes that every test reaching that line still passes. Add a test that fails on it or, if it cannot change behaviour, put
Not checked:
Warning only: a missed break does not fail the job. Updated on every push; the full report is in the ci run summary. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1648 +/- ##
==========================================
- Coverage 96.44% 96.43% -0.01%
==========================================
Files 585 586 +1
Lines 76600 76641 +41
Branches 13175 13177 +2
==========================================
+ Hits 73876 73910 +34
- Misses 1671 1673 +2
- Partials 1053 1058 +5
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
The token setting needs to be documented as a retrieval budget because it does not cap answer length, potentially misleading callers.
1 open issue
What changed in this PR
1 new finding.
This refactor centralizes evaluation-run inputs in EvaluationSettings and builds on #1644’s pipeline phase extraction.
Changes:
- Adds frozen settings while retaining keyword and positional construction.
- Migrates production callers and updates test fakes.
- Extracts pipeline phases and question-set helpers.
| File | Description |
|---|---|
dokimi/tests/test_pipeline_settings.py |
Tests settings and constructor compatibility. |
dokimi/tests/test_pipeline_question_set.py |
Updates the evaluate pipeline fake. |
dokimi/tests/test_benchmark_registry_wiring.py |
Reads settings in the registry spy. |
dokimi/tests/test_benchmark_command_question_set.py |
Updates the benchmark pipeline fake. |
dokimi/tests/test_answering_stack_p_step2.py |
Adapts the answering-stack fake. |
dokimi/scripts/growth_baseline.json |
Removes the reduced complexity baseline. |
dokimi/dokimi/orchestrator/question_sets.py |
Houses extracted question-set helpers. |
dokimi/dokimi/orchestrator/pipeline.py |
Accepts settings and extracts phase helpers. |
dokimi/dokimi/orchestrator/pipeline_settings.py |
Defines and documents run settings. |
dokimi/dokimi/orchestrator/__init__.py |
Exports EvaluationSettings. |
dokimi/dokimi/commands/orchestrate.py |
Constructs evaluation runs through settings. |
dokimi/dokimi/commands/benchmark.py |
Constructs benchmark runs through settings. |
dokimi/changelog.d/20261204_120000_napetrov_arch-r8-7-pipeline-split.md |
Documents the phase-helper extraction. |
Review effort: Balanced
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 11 selected item(s). CI at Review details
|
EvaluationPipeline.__init__ takes an EvaluationSettings dataclass with the same fields and defaults as the keyword arguments it had. The production callers (benchmark run and evaluate) pass settings=. The keyword form still works: it builds the settings, and a refusal reads the same as before. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g87AQkCS Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
…the settings object Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>

Summary
Give
EvaluationPipeline.__init__a settings dataclass, as #1644 left open.EvaluationSettings(new,dokimi/orchestrator/pipeline_settings.py, exported fromdokimi.orchestrator) is a frozen dataclass with the 25 fields of the old keyword signature, same names and defaults. The constructor is nowEvaluationPipeline(settings=None, **kwargs):settings=is used as given;EvaluationSettings. Unknown or missing fields raise the sameTypeErrortext as before (rewrapped underEvaluationPipeline.__init__);TypeError.Production callers move to
settings=:commands/benchmark.pyandcommands/orchestrate.py. ~50 test call sites keep the keyword form. Four test fakes that read the constructor kwargs now readvars(settings).Positional arguments still work: the constructor takes
*argsand maps them onto the fields in the old order, with the same refusal texts. No call site in the repo passes any positionally (AST scan: 56 calls, 0 positional); the positional path exists for external callers. The*args/**kwargssignature is kept on purpose: the old keyword and positional calls must keep working, so the constructor does not list the 25 fields. The typed path issettings=, whereEvaluationSettingschecks the field names and arity (it does not check value types, as the old keywords did not).Evidence
scratch/arch-r14-4/work/probe/pipeline_diff.py, not in the repo; base =75787690aextracted withgit archive): 40 scenarios, 6 of them positional. Kwargs mode on the new tree is byte-identical to base on all 40. Settings mode is byte-identical on 30; the 3 raw argument-error scenarios are kwargs-only by construction.tests/test_pipeline_settings.py(8 new tests): settings and kwargs build the same attributes; positional fields fill in order; a positional repeated as a keyword is refused; the settings fields are the keywords; both-given refusal; unknown and missing field messages.ci-local --offline --jobs static,typecheckon the head: 0 failed, 17 passed, 3 skipped.Merge Danger
Door: two-way. No schema, file or CLI change; a revert restores the keyword signature.
Blast Radius:
evaluateandbenchmark run/batchconstruct the pipeline through the new path. The probe covers every question-source branch, so those branches are the evidence.🤖 Generated with Claude Code