Skip to content

feat(arms): arms run --reps N with per-question paired deltas and a noise floor - #1560

Merged
napetrov merged 8 commits into
intel:mainfrom
vchamarthi:arms-reps
Dec 6, 2026
Merged

napetrov merged 8 commits into
intel:mainfrom
vchamarthi:arms-reps

Conversation

@vchamarthi

Copy link
Copy Markdown
Contributor

Dokimi stops declaring "documentation helps" or "documentation hurts" from a single lucky run. It repeats the test and reports only effects that hold up.

Why

  • arms run compares answers with and without extra context, for example docs. It could not repeat a question set, and its report printed a significance verdict from one run.

  • Measured with Dokimi on two question sets (Haiku answers, Sonnet judge), single runs called deltas significant that later repeats did not reproduce:

    • docs −5.6 (p 0.025, "yes"), then −0.5 and −2.0;
    • docs +5.8 (p 0.035, "yes"), then −1.6.

    Repeats had to be pooled by hand.

What changes

  • arms run --reps N answers and judges the set N times.
    • Each repeat is saved as <out>.rep<k>.json (plain arms.v1, the files eval headroom reads).
    • --out holds a new pooled arms_reps.v1 artifact, and --out-md holds its report.
  • Pooling (dokimi/eval/arms_reps.py):
    • the mean per repeat;
    • the per-repeat delta;
    • a noise floor (max − min across repeats);
    • sign agreement;
    • a paired sign-flip test over per-question means, so the question is the unit and multiple arms are corrected.
    • The verdict is differs only when the effect is significant, has the same sign in every repeat and exceeds the noise floor. Otherwise it is within_noise, not_significant or inconclusive. One repeat is always inconclusive.
  • Safety:
    • a pinned --seed advances by one per repeat;
    • --reps above 1 is refused while DOKIMI_RESPONSE_CACHE is set, because every repeat would replay the first;
    • a stopped repeat is saved, and the run exits 1 without pooling.
  • Single-run report: prints 1 run under Sig. instead of yes/no. p, adjusted p and the CI stay, and stored fields are unchanged.
  • The schema, fixture, docs (evaluating-treatments.md), changelog and cli-interface.json are updated.

Evidence

Case One run said Pooled over 3 repeats
docs vs baseline, set A −5.6, significant within_noise (floor 5.1)
docs vs baseline, set B +5.8, significant not reproduced

How to test

cd dokimi
python -m pytest -q tests/test_arms_reps.py
make ci-local CI_LOCAL_ARGS='--offline'
dokimi arms run --questions <questions.json> --arm baseline,docs:local:<docs-dir> --model haiku --judge --judge-model sonnet --reps 3 --out arms.json --out-md arms.md

Full offline CI: 34,142 passed, 1 failed. The failure (test_repo_compare_interval::test_the_row_p_places_zero_where_large_deltas_round_p_at_zero_apart) fails the same way on unchanged main.

Mutation

Tests added for the 21 survivors; changed-line mutation now 79 of 80 caught, 0 survived, 1 waived (the TYPE_CHECKING import guard: type-only names under postponed annotations).

References

…oise floor; no verdict from one run

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi
vchamarthi requested a review from a team as a code owner December 3, 2026 03:47
Copilot AI balanced review requested due to automatic review settings December 3, 2026 03:47
@github-actions github-actions Bot added the cli-interface-change Changes dokimi's user-facing CLI surface label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

CLI interface change detected

This PR changes dokimi's user-facing CLI surface (commands and/or options):

~ `dokimi arms run` parameters changed:
    + added option `--reps`
~ `dokimi runs list` parameters changed:
    ~ changed option `--kind`: choices: ["'agent_run'", "'answer_key'", "'answers'", "'arms'", "'baseline_manifest'", "'catalog_eval'", "'checklist'", "'cli_routes'", "'cross_judge'", "'dashboard'", "'delivery'", "'docling_sources'", "'docs_run'", "'dokimi_config'", "'effective_instructions'", "'eval'", "'eval_controls'", "'eval_coverage'", "'explore_runs'", "'grounding'", "'guidance_reach'", "'headroom'", "'judge_validity'", "'judge_wording'", "'leak'", "'matrix_rollup'", "'need_graph'", "'novelty'", "'novelty_atoms'", "'novelty_retest'", "'opportunities'", "'pairwise'", "'persona_analysis'", "'personas'", "'plan'", "'plugin_delta'", "'question_panel'", "'question_quality'", "'questions'", "'ragas'", "'reach_matrix'", "'redteam'", "'repo_budget'", "'repo_environment'", "'repo_hits_judged'", "'repo_ledger'", "'repo_readiness'", "'report_qa'", "'report_summary'", "'result'", "'run'", "'run_context'", "'security_report'", "'skill_coverage'", "'skill_discovery'", "'skill_evidence'", "'subject_scorecard'", "'task_inspect'", "'task_runs'", "'tool_preference'"] -> ["'agent_run'", "'answer_key'", "'answers'", "'arms'", "'arms_reps'", "'baseline_manifest'", "'catalog_eval'", "'checklist'", "'cli_routes'", "'cross_judge'", "'dashboard'", "'delivery'", "'docling_sources'", "'docs_run'", "'dokimi_config'", "'effective_instructions'", "'eval'", "'eval_controls'", "'eval_coverage'", "'explore_runs'", "'grounding'", "'guidance_reach'", "'headroom'", "'judge_validity'", "'judge_wording'", "'leak'", "'matrix_rollup'", "'need_graph'", "'novelty'", "'novelty_atoms'", "'novelty_retest'", "'opportunities'", "'pairwise'", "'persona_analysis'", "'personas'", "'plan'", "'plugin_delta'", "'question_panel'", "'question_quality'", "'questions'", "'ragas'", "'reach_matrix'", "'redteam'", "'repo_budget'", "'repo_environment'", "'repo_hits_judged'", "'repo_ledger'", "'repo_readiness'", "'report_qa'", "'report_summary'", "'result'", "'run'", "'run_context'", "'security_report'", "'skill_coverage'", "'skill_discovery'", "'skill_evidence'", "'subject_scorecard'", "'task_inspect'", "'task_runs'", "'tool_preference'"]

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

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.

🟡 Changes recommended

The pooled statistics mix ask and answer rubrics, which can reverse the reported answer effect. Reused judge context can discard skill context between repetitions and change the judging protocol; separately, reusing an output path can overwrite inputs still referenced by an existing pool. Verdicts can incorrectly report differs because of noise-floor rounding or inconsistent question populations across repeats, and cumulative judge counters overstate per-repetition usage.

6 open issues
What changed in this PR

7 findings.

This PR adds repeated treatment comparisons to Dokimi, aiming to distinguish reproducible effects from run-to-run noise.

Changes:

  • Adds arms run --reps N, per-repeat artifacts, and pooled results.
  • Introduces per-question statistical tests, sign agreement, and noise-floor verdicts.
  • Updates reports, artifact registration, documentation, and tests.
File Description
dokimi/​tests/​test_runs_show.py Checks pooled artifact counts.
dokimi/​tests/​test_runs_scan.py Checks pooled artifact discovery.
dokimi/​tests/​test_arms_sign_flip.py Updates single-run report expectations.
dokimi/​tests/​test_arms_reps.py Tests repetition execution, pooling, and reporting.
dokimi/​tests/​test_arms_report.py Updates significance-cell assertions.
dokimi/​tests/​fixtures/​report_fmt.json Updates report snapshots.
dokimi/​tests/​fixtures/​artifacts/​arms_reps.v1.json Adds a pooled artifact fixture.
dokimi/​dokimi/​schemas/​arms_reps.v1.json Defines the pooled artifact format.
dokimi/​dokimi/​runs/​kinds.py Registers pooled run metadata.
dokimi/​dokimi/​report/​arms_reps_report.py Renders pooled comparisons.
dokimi/​dokimi/​report/​arms_report.py Replaces single-run verdicts with 1 run.
dokimi/​dokimi/​eval/​arms_reps.py Computes pooled statistics and verdicts.
dokimi/​dokimi/​commands/​arms.py Adds the repetitions option and routing.
dokimi/​dokimi/​commands/​arms_reps.py Executes and saves repetitions.
dokimi/​dokimi/​artifacts.py Registers the new schema version.
dokimi/​docs/​reference/​cli-interface.json Records the updated CLI interface.
dokimi/​docs/​evaluating-treatments.md Documents repetition usage and interpretation.
dokimi/​changelog.d/​20261202_120000_vchamarthi_arms-reps.md Describes repetition support and report changes.

Review effort: Balanced

Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
@exai-bot

exai-bot commented Dec 3, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Found nothing that must be fixed in this commit.

CI at 4814e14: 21 passing, 4 skipped.

Review limit reached. This PR has had 6 reviews, so it will only be reviewed again when you ask.
To ask: re-request review from exai-bot in the Reviewers list.

Other findings not posted (1)

1 should fix

Test notes (2)
  • dokimi/dokimi/commands/arms.py:121: With if reps > 1: # a destination known to be invalid is refused before any provider call changed to if reps >= 1: # a destination known to be invalid is refused before any provider call, the tests still pass: dokimi/tests/test_arms_report.py, dokimi/tests/test_arms_reps.py, dokimi/tests/test_arms_sign_flip.py, dokimi/tests/test_runs_scan.py, dokimi/tests/test_runs_show.py. A value exactly at the boundary gives the same result either way here, so no test says which one is meant.
  • dokimi/dokimi/commands/arms_reps.py:35: With cache = None # a misconfigured cache: the run's own check reports it changed to cache = None raise # a misconfigured cache: the run's own check reports it, the tests still pass: dokimi/tests/test_arms_report.py, dokimi/tests/test_arms_reps.py, dokimi/tests/test_arms_sign_flip.py, dokimi/tests/test_runs_scan.py, dokimi/tests/test_runs_show.py. If this condition matters, a test should pin it.
Review details
  • Commit reviewed: 4814e14 against merge base 5225c2a
  • Coverage: 18 files in 4 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 1.24M tokens (892k from cache), 1m41s
  • Tool calls: 84 (56 file_read, 14 code_search, 5 file_read_diff, 4 pr_threads, 3 local_check_results, 1 ci_status, 1 code_comment)
  • Arms repetition commands and evaluation: 5 files
  • Arms repetition artifacts, schemas, and reporting: 7 files
  • Run kind registration and discovery: 3 files
  • Feature documentation and CLI reference: 3 files

Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
@codecov-commenter

codecov-commenter commented Dec 3, 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 95.58233% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.43%. Comparing base (5225c2a) to head (4814e14).

Files with missing lines Patch % Lines
dokimi/dokimi/commands/arms_reps.py 91.91% 8 Missing ⚠️
dokimi/dokimi/report/arms_reps_report.py 94.44% 1 Missing and 1 partial ⚠️
dokimi/dokimi/eval/arms_reps.py 98.76% 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    #1560      +/-   ##
==========================================
- Coverage   96.44%   96.43%   -0.02%     
==========================================
  Files         575      578       +3     
  Lines       75717    75952     +235     
  Branches    13046    13081      +35     
==========================================
+ Hits        73022    73241     +219     
- Misses       1646     1656      +10     
- Partials     1049     1055       +6     
Files with missing lines Coverage Δ
dokimi/dokimi/artifacts.py 96.07% <ø> (ø)
dokimi/dokimi/commands/arms.py 98.41% <100.00%> (+0.04%) ⬆️
dokimi/dokimi/report/arms_report.py 100.00% <100.00%> (ø)
dokimi/dokimi/runs/kinds.py 100.00% <ø> (ø)
dokimi/dokimi/eval/arms_reps.py 98.76% <98.76%> (ø)
dokimi/dokimi/report/arms_reps_report.py 94.44% <94.44%> (ø)
dokimi/dokimi/commands/arms_reps.py 91.91% <91.91%> (ø)

... and 7 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 Dec 3, 2026 •

Copy link
Copy Markdown

Mutation of changed lines

⚠️ No break was missed, but only 79 of 80 were caught; the rest were waived, timed out or errored, and 229 more were over the limit

At 4814e14: 79 caught · 0 missed · 1 waived

Not checked:

  • 229 more breaks of covered changed lines were over the limit and not tried
  • 55 changed lines were not mutated

Marked harmless with mutation-ok:

Where Operator Change Reason
dokimi/dokimi/commands/arms_reps.py:22 negate-condition TYPE_CHECKING → not (TYPE_CHECKING) type-only names; annotations are strings under `from __future__ import annotatio

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

Change class: CONTRACT (head e353690)

  • Contract: changed. errors dokimi/dokimi/commands/arms_reps.py:34; errors dokimi/dokimi/commands/arms_reps.py:37
  • Responsibility: candidate (count signal only, no file:line)
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

2 new must-fix findings. The focused repeats tests pass. One unmeasured repeat is classified as within noise. A clean merge with #1541 rejects the pooled output schema.

# Finding Severity Provenance Evidence
1 One scored repetition is reported as within noise must-fix introduced Reproduced in an offline probe.
2 The pooled artifact cannot be saved with the new run envelope must-fix combined with #1541 Reproduced in an offline probe.

Checked the diff, input edges, and focused offline Linux tests (head: 268 passed, 1 skipped in 8.14s).

Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
Comment thread dokimi/dokimi/schemas/arms_reps.v1.json Resolved

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

To fix: the pooled verdict can say differs or within noise when the reps do not show it (the open threads); the smaller points in our line comments are optional. Also answer the @Copilot, @exai-bot and @napetrov threads below.

✅ make ci-local --offline: 34,050 passed · ⚠️ 1 test (eval score ragas fault contract), schema_compat and the mutation step fail from the base, not from this PR · ✅ repros: ask rows +40 with answer delta 0 → pooled +20 differs; 10 reps at +0.5 → pooled -8.09 differs

Testing over question means rather than question x rep is the right unit, and refusing replayed reps is a good guard.

Agreed with @Copilot: ask rows in the pool; the pooled sign against every rep; the rounded floor; and 3 more.

Agreed with @exai-bot on the same points and on small deltas printed as 0.0.

Agreed with @napetrov: one measured rep reads as within noise; dokimi_commit after #1541.

Comment thread dokimi/dokimi/commands/arms.py Resolved
Comment thread dokimi/dokimi/report/arms_report.py Resolved
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
- Pooled means and verdict leave out expected_outcome: ask rows.
- The verdict compares the unrounded noise floor, needs two measured
  reps, and needs the pooled delta to have every rep's sign.
- Each rep gets a fresh judge context store and its own judge usage.
- --reps above 1 is refused without --judge and over repetition files
  left by an earlier run.
- arms_reps.v1 accepts dokimi_commit; small deltas keep their digits in
  the report; the Sig. note no longer says p < 0.05 could be claimed.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

This is ready for another look: I've pushed 2 commits on arms-reps (e353690..de130c9).

  • @napetrov, 2 of your threads and 4 of your comments are answered; could you re-review?
  • @vlad-perevezentsev, 2 of your threads and 5 of your comments are answered; could you re-review?

Napetrov's comment:

  • A comparison measured by fewer than two repetitions now gets inconclusive; test_a_rep_with_no_scored_treatment_has_no_floor_and_no_verdict asserts it.
  • arms_reps.v1.json now allows the optional dokimi_commit; test_the_pooled_artifact_takes_the_run_envelope_commit validates it as null and as a 40-digit commit.
  • Each repetition now gets a new JudgeContextStore; pinned by test_each_rep_judges_with_a_fresh_context_store_and_its_own_usage.
  • Ask rows are left out of the pool; pinned by test_ask_rows_are_not_pooled_with_the_answer_rows.

Vlad-perevezentsev's comment:

  • Each is fixed in de130c9 with its own test: test_ask_rows_are_not_pooled_with_the_answer_rows, test_a_pooled_delta_against_the_sign_of_every_rep_is_within_noise, test_the_floor_is_compared_unrounded, test_small_deltas_and_floors_keep_their_digits_in_the_report.
  • A run over existing repetition files is refused before any answer; pinned by test_repetition_files_of_an_earlier_run_are_refused_and_left_alone (it covers a leftover .rep4).
  • It is now refused with an input error; pinned by test_reps_without_a_judge_are_refused_before_any_rep.
  • The note now says 1 run instead of yes or no, in arms_report.py, docs/evaluating-treatments.md and the report_fmt.json fixture.
  • It now asserts inconclusive.

Threads:

  • I answered each one in its thread: 15 fixed.

What I checked on the new commit: all 10 new tests fail before the fix and pass after it; the full test suite passes with main merged in (41,298 tests), apart from 1 failure main has too.

What each test shows
  • fresh judge context and per-rep usage: fails before, passes after.
  • ask rows excluded: fails before, passes after.
  • unrounded floor: fails before, passes after.
  • pooled sign must match reps: fails before, passes after.
  • small deltas in report: fails before, passes after.
  • one measured rep is inconclusive: fails before, passes after.
  • envelope commit accepted: fails before, passes after.
  • no judge refused: fails before, passes after.
  • stale rep files refused: fails before, passes after.
  • the one-run note wording: fails before, passes after.

Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
--out-md equal to a repetition's JSON path (e.g. run.rep1.json) overwrote
that saved repetition with the Markdown report while the pool listed it as
an input. Refuse any two equal output paths before the first repetition.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

This is ready for another look: I've pushed 1 commit on arms-reps (de130c9..7273a20).

Changes:

  • arms run --reps refuses runs where --out, --out-md or a repetition file share a path.

Threads:

  • I answered each one in its thread: 1 fixed.

What I checked on the new commit: the new test fails before the fix and passes after it; the full test suite passes with main merged in (41,319 tests), apart from 1 failure main has too.

What each test shows
  • an --out-md equal to a repetition file is refused before any repetition runs: fails before, passes after.

Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
refuse_colliding_outputs compared resolved paths, which differ for hard
links to one inode, so --out-md could overwrite the pooled JSON. Existing
paths are now compared by (device, inode); a test covers the hard link.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

This is ready for another look: I've pushed 1 commit on arms-reps (7273a20..43e15e0).

Threads:

  • I answered each one in its thread: 1 fixed.

What I checked on the new commit: the new test fails before the fix and passes after it; the full test suite passes with main merged in (41,340 tests), apart from 1 failure main has too.

What each test shows
  • hard-linked --out and --out-md are refused before any repetition: fails before, passes after.

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

Change class: CONTRACT (head 43e15e0)

  • Contract: changed. errors dokimi/dokimi/commands/arms_reps.py:35; errors dokimi/dokimi/commands/arms_reps.py:38
  • Responsibility: candidate (count signal only, no file:line)
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

No new blocking findings on 43e15e0b.

Reviewed the diff, edge cases and prior threads. Focused tests: 80 passed on head and 44 passed on merge base. Run and report tests used local fixtures. The full local suite was outside coverage.

@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. Every point raised in the earlier rounds is fixed at this head: ask rows are left out of the pool, the verdict uses the unrounded floor and the pooled sign, one measured rep is inconclusive, each rep gets a fresh judge context and its own usage, stale and colliding outputs are refused before any answer, and the schema takes dokimi_commit. One nit inline.

What I ran, on a Linux review host at 43e15e0:

  • make ci-local: 38 passed, 0 failed, 16 skipped (matrix legs on other Pythons and semgrep are not run locally).
  • The docs build, the CLI surface diff, the schema and fixture checks, and the arms test files all pass.
  • Read the code of all four new modules against the docs, schema and changelog; every flag the docs name (--reps, --arm, --correction, --baseline-arm) exists in arms run.

Checked, no issues

  • Pooling: the test runs over per-question means, the verdict needs the same sign in every measured rep and in the pooled delta, and the floor is compared unrounded.
  • Guards: --reps above 1 is refused without --judge, with the response cache set, and over earlier .rep<k> files or colliding paths, all before the first answer.
  • Housekeeping: every commit has a Signed-off-by, the changelog fragment is present, and arms_reps.v1 is registered in the schema versions and run kinds.

Comment thread dokimi/dokimi/commands/arms_reps.py Resolved
The per-rep judge reset test never checked _redrawn_judgements, so
dropping its reset left every suite green. Assert it starts at 0 in
each rep.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

@antonwolfy, this is ready for another look: 1 commit on arms-reps (43e15e0..93800b4) answers your thread.

Changes:

  • The per-rep judge test now asserts the redraw count starts at 0 in every rep.

Threads:

  • I answered each one in its thread: 1 fixed.

What I checked on the new commit: the 1 test of the fix pass; the full test suite passes with main merged in (41,548 tests), apart from 1 failure main has too.

What each test shows
  • Each rep starts with a zero redraw count: passes.

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

Change class: CONTRACT (head 93800b4)

  • Contract: changed. errors dokimi/dokimi/commands/arms_reps.py:35; errors dokimi/dokimi/commands/arms_reps.py:38
  • Responsibility: candidate (count signal only, no file:line)
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

1 blocking, 1 minor, with a merge conflict on main.

arms run --reps stores one artifact per repetition and a pooled artifact. The pooled verdict needs to account for unscored repetitions, and invalid output paths should be refused before sampling calls.

The head also conflicts with current main in the checked-in CLI interface snapshot.

CI on head 93800b4: 0 failing Actions jobs; merge base 1bf62d3 is behind base tip 5225c2a.

Compared the change and input edges against the merge base and checked existing threads and GitHub Actions. Runtime checks used focused Linux tests and local fixtures. Focused tests on the head: head 36 passed in 1.45s.

Comment thread dokimi/dokimi/eval/arms_reps.py Resolved
Comment thread dokimi/dokimi/commands/arms.py Resolved
Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
An --reps comparison that any repetition left unscored is inconclusive,
not differs, so sign agreement covers every repetition. The stale-output
and collision checks now run before prepare_arms, so a refused rerun
makes no provider call.

Signed-off-by: vchamarthi <123653452+vchamarthi@users.noreply.github.com>
@vchamarthi

Copy link
Copy Markdown
Contributor Author

@napetrov, this is ready for another look: 2 commits on arms-reps (93800b4..4814e14) answers 2 of your threads and your comment.

Changes:

  • _verdict returns inconclusive unless every repetition measured the comparison.

Your comment:

  • I merged main and kept both sides in docs/reference/cli-interface.json: main's new kinds plus arms_reps. The other two points are the threads answered above.

Threads:

  • I answered each one in its thread: 2 fixed.

What I checked on the new commit: all 2 new tests fail before the fix and pass after it; the full test suite passes with main merged in (41,766 tests), apart from 1 failure main has too.

What each test shows
  • unscored repetition cannot yield differs: fails before, passes after.
  • stale rep files refused before prepare_arms: fails before, passes after.

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

Change class: CONTRACT (head 4814e14)

  • Contract: changed. errors dokimi/dokimi/commands/arms_reps.py:35; errors dokimi/dokimi/commands/arms_reps.py:38
  • Responsibility: candidate (count signal only, no file:line)
  • Dependency: none
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

Ready for approval.

Both earlier regressions are fixed. Incomplete repetition thread and sampling-order thread.

CI on head 4814e14: 0 failing Actions jobs; merge base 5225c2a is behind base tip 60948d0.

Checked both regressions from the previous round, 82 focused tests, required CI, and a merge with current main. Test execution used local fixtures. The report still labels the measured repetitions as agreeing when one repetition has no score. Align that display and the documentation with the new inconclusive rule.

@napetrov
napetrov merged commit a655bb3 into intel:main Dec 6, 2026
25 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants