Skip to content

fix(pipeline): evaluate and benchmark answer and judge through ArmRunner - #1542

Merged
napetrov merged 20 commits into
intel:mainfrom
vlad-perevezentsev:fix/pipeline-on-arm-runner
Dec 4, 2026
Merged

napetrov merged 20 commits into
intel:mainfrom
vlad-perevezentsev:fix/pipeline-on-arm-runner

Conversation

@vlad-perevezentsev

@vlad-perevezentsev vlad-perevezentsev commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#228 step 4c. evaluate and benchmark run|batch answered with the Answerer and judged with Judge.evaluate_answers (Stack P). On the same questions that gave different numbers than arms run (Stack A). Now the pipeline answers each question in two arms, a baseline arm and a docs arm, through ArmRunner, and the same runner judges both answers. The new module is orchestrator/arm_answering.py. The two files keep their answers.v1/eval.v1 shapes because they are written through the arms adapter from #1148, so the trust gate, report, the dashboard, RAGAS, grounding and baseline read them unchanged. Refs #228.

This changes numbers, so both files carry method_version: 4. answers generate and the eval score judge stay on version 3 until step 6.

  • What moves. The parity table (tests/test_answering_stack_parity.py) shows it row by row; D2 and D5 are gone, D4's prompts and D9's pairs are shared:
    • The with_docs prompt is ArmRunner's. The context comes first, then the question, then "using the provided context above where relevant". It used to be the question first, then "using ONLY the provided documentation". The without_docs prompt is arms run's plain one.
    • A question with no document found gets a real with_docs answer, the plain prompt, and it is judged. It used to get the unjudged [FALLBACK: No relevant documentation found] placeholder, so it now enters the averages, with a delta near 0. It still records retrieval_hit: false.
    • The judge sees each arm's whole material, not 200-character Doc i: snippets. The baseline gets "(No documentation retrieved)".
  • The trust gate and the diagnosis, re-checked (Answering stack: one implementation for evaluate/benchmark/answers and arms/subjects #228 Risks). Their thresholds were set on runs where a miss was left unjudged, so a judged miss had to be handled:
    • The zero-score fraction counts every retrieval miss as unusable, scored or not. It already counted the unjudged misses this way. Without this change, a run where 30% of questions miss would pass the check on the plain-prompt scores of the misses.
    • A judged miss is diagnosed empty_retrieval whatever its delta, not docs_helped. The diagnosis now reads a miss the way the gate does (retrieval_hit).
    • The thresholds are unchanged. The other checks now include the misses. min_questions counts them as questions. min_with_docs_avg, min_delta and score_cv take baseline-like scores for them, which pulls the delta toward 0. A run that passes the zero-score check has at most 20% misses, which bounds that pull: a hit delta of -6.25 reads -5.0 at 20% misses.
  • Kept.
    • A run-wide stop (a usage limit, a login) saves what was answered, with its terminated block, judges nothing and fails, as before.
    • The questions answered so far are kept in answers/<product>.partial.json (arms run's file, fix(arms): a crashed arms run keeps its answers in <out stem>.partial.json #1004) until the answers file is saved. If the run fails before that, the message names the file. If that file cannot be written, that run fails: benchmark batch goes on with the next library.
    • The library id is resolved through the registry and --context7-id, as before (D8).
    • The retrieval budget is --retrieval-tokens.
    • --debug-retrieval writes the docs arm's retrieval counts as retrieval_metadata.
    • question_model, question_provider and question_set_hash go in the eval's run_metadata, and question_set_hash goes in the answers file.
  • --judge-placeholder on evaluate and benchmark run has no effect now and logs a warning saying so. eval score keeps it for older answers files. If you would rather have a tombstone (exit 2), say so.
  • eval score on a version 4 answers file keeps the file's stamp and warns that its judge is the version 3 one, so its scores are not comparable with the run's own eval.
  • Part of #94 (F1b, model + judge) #1197 (merged). The pipeline builds the answerer and the judge from the model, provider, judge_model and judge_provider values that Part of #94 (F1b, model + judge) #1197's --model P/M and --judge P/M parse into, so evaluate --model openai/M --judge anthropic/J reaches ArmRunner and its judge as parsed; no parser line changes here.

Changed output

  • answers/<product>.json and eval/<product>.json: method_version 3 → 4.

    • A retrieval miss has a with_docs answer and score; it used to have the placeholder and null.
    • The answer cells carry ArmRunner's fields (metadata, harness, judge_context_sha256, ...).
    • token_usage.context_chars, token_usage_summary and judge_placeholder are absent, because arms.v1 does not record them (refactor(eval): an adapter from arms.v1 runs to answers.v1/eval.v1 #1148).
  • The console output is ArmRunner's while answering. The judge step prints a line per judged answer, where Judge.evaluate_answers printed one per question:

    Running 2 arms over 2 questions (arms: baseline, docs)
    [1/2] q1 OK
    [2/2] q2 OK
    Evaluating 4 answers with judge: anthropic/claude-sonnet-5-5 (concurrency=5)
    [1/4] q1 ✓ 50.0
    [2/4] q1 ✓ 70.0
    [3/4] q2 ✓ 50.0
    [4/4] q2 ✗ judge down
    
  • The trust gate's zero_score_fraction on a file with judged misses (eval score --judge-placeholder, or a run from this PR). The gate test's three-row example, with one miss scored 60, reads 2/3 ... (66.7%) here; before, it read 1/3 ... (33.3%).

Evidence

  • Parity table, before → after (tests/test_answering_stack_parity.py, the pins of main run on the branch). P now matches A on:

    • the prompts (docs_prompt.first_line, .order, .guidance, plain_prompt.first_line)
    • the no-docs case (empty.answer_kinds ("plain",) → ("plain", "plain"), empty.with_docs_answer placeholder → model_reply)
    • judge.calls 11 → 12
    • the judge contexts (Doc 1: snippets → whole passages)
    • stats.delta_mean 20.0 → 16.67, stats.pairs 5 → 6
    • delta.per_question q-empty None → 0.0
    • context_chars True → False
    • method_version 3 → 4

    The rows left are documented as intended: P sends no answer max_tokens, temperature or seed (the pipeline commands have no flag for them, step 5); report eval's significance test is uncorrected; and record.shape, cost_summary and method_version differ on purpose.

  • tests/test_pipeline_arm_runner.py (new) checks:

    • the pipeline's files equal to_binary of an arms run on the same fixture, apart from the pipeline's own fields;
    • an interrupted run keeps question 1 in the partial file, and a complete run drops it;
    • a failed answers save names the partial file;
    • a batch goes on past a library whose partial file cannot be written;
    • an unnameable partial file is refused before any answer;
    • --debug-retrieval, the question-set hash, and the judge step's output, which names each question by its id when two questions share their text (ArmRunner.judge reports each score through its new on_score callback).
  • Updated: the run-wide stop test, which now goes through ArmRunner and no longer reaches the claude CLI on the machine; the judge temperature and placeholder entry points; the independence flag; the method version; the adapter's golden test, where q-empty now reads alike; and the trust gate and diagnoser tests.

  • Mutations, each failing a test and then reverted (22), in five groups:

    • the checkpoint: its drop, its note and its naming;
    • the version stamp, of the files and of the partial;
    • --debug-retrieval always on; fallback_triggered constant;
    • the answers file's hash; the stop not raised; the judge temperature dropped; question_model wrong; the placeholder warning dropped;
    • the retrieval budget; top_k; the partial truncated; each command without its checkpoint; the gate's and the diagnosis's miss rules; the batch checkpoint exiting.

    The one survivor was a redundant docs.library_id assignment (ArmRunner.run passes the same id), and it is removed.

  • make ci-local --offline:

    • The first commits up to a93a0b06: 0 failed, 27 passed, 21 skipped (network, docker, matrix), with the changed-test repeats, the changed-line coverage and mutation-diff passing.
    • The review fix commits, with main merged after Part of #94 (F1b, model + judge) #1197: --jobs static,typecheck plus the whole suite, 33623 passed, 132 skipped.
  • scripts/check_growth.py: clean. pipeline.py is 783 lines, down from 800.

  • Not run: a live model or doc source.

Open questions

  • --judge-placeholder on evaluate/benchmark run: a warned no-op here. A tombstone is the alternative.
  • The trust gate thresholds are kept. The analysis above says what moves; recalibrating them needs live runs.

Not in this PR

  • answers generate on the shared stack (step 6a). It still answers through the Answerer (method version 3).
  • eval score's judge, Judge.evaluate_answers, is still Stack P's (200-character snippets). It warns on version 4 files (Consolidate duplicated subsystems (stats, LLM routing, judge loop, containers, digests, writers) #229 P1-4, step 6).
  • --max-tokens/--retrieval-tokens → --retrieval-max-tokens (step 5).
  • The arms run's cost_summary and judge_materials have no place in answers.v1/eval.v1, so the pipeline drops them; no arms file is written beside them.
  • min_questions counts a judged miss as a question; not changed here (see the analysis above).

Revert

A plain revert brings Stack P back. Files written with method_version: 4 stay readable: every reader takes them, as the adapter's golden test shows.

Checklist

A question whose context arm got no document is unusable in the trust
gate's zero-score fraction and an empty retrieval in the diagnosis only
while it is left unjudged. Judged (`eval score --judge-placeholder`, an
arms run read through the arms adapter, and `evaluate`/`benchmark` once
they answer through ArmRunner, intel#228 step 4c), its context score is the
plain prompt's: a 60 passed the zero check, and a delta of 0 or more was
diagnosed `docs_helped`.

Count every miss (`retrieval_hit: false`) as unusable in the zero-score
fraction, scored or not, and diagnose a judged miss `empty_retrieval`
whatever its delta. The thresholds are unchanged.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
intel#228 step 4c. `evaluate` and `benchmark run|batch` answered with the
Answerer and judged with `Judge.evaluate_answers` (Stack P), and gave
other numbers than `arms run` on the same questions. The pipeline now
answers each question in a baseline arm and a docs arm through
ArmRunner, judges them with the same runner, and writes `answers.v1`
and `eval.v1` through the arms adapter (intel#1148), so their readers stay as
they are (`orchestrator/arm_answering.py`).

This changes numbers (parity rows D2, D4 prompts, D5 and D9's pairs now
shared): ArmRunner's prompts; a question with no document gets a judged
plain-prompt answer instead of the unjudged placeholder; the judge sees
each arm's whole material. Both files carry method version 4;
`answers generate` and `eval score` stay on version 3 until step 6.

- The questions answered so far are kept in `<answers stem>.partial.json`
  (intel#1004) until the answers file is saved; a crash names the file.
- A run-wide stop saves the answers with their `terminated` block and
  judges nothing, as before.
- `--judge-placeholder` on `evaluate`/`benchmark run` has no effect and
  warns; `--debug-retrieval` copies the docs arm's retrieval counts into
  `retrieval_metadata`.

Test-narrowed: the pipeline no longer reads an answers file back to judge it (the runner that answered judges), so the tests of the stamp it read from one (wrapped, unstamped, malformed, a stale file) have no code left; the pipeline's own stamp is tested in test_the_pipeline_stamps_its_answers_and_eval_with_the_current_version, eval score keeps its stamp tests.
Test-narrowed: evaluate writes no placeholder any more, so the tests that it judges one with --judge-placeholder and leaves it unjudged without are replaced by test_evaluate_judges_a_retrieval_miss_with_or_without_the_flag and test_judge_placeholder_flag_has_no_effect_on_the_pipeline_and_says_so.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
The pipeline's checkpoint was `arms run`'s `_Partial`, whose failed save
exits 2. ArmRunner re-raises it, and `benchmark batch` records a failed
library only on an Exception: one library whose partial file could not
be written ended the whole batch, without its summary.

`pipeline_checkpoint` makes the same file with a save that raises an
OSError naming it, so `evaluate` fails as it did on an unwritable answers
file (exit 1), and `benchmark batch` fails that library and goes on.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
The note that names `<answers stem>.partial.json` was printed only when
answering failed. A failure after every answer was paid for, in the
adapter or in writing the answers file, left the partial file unnamed,
where `arms run` names it on the same failure.

The note now covers everything up to the saved answers file.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
`eval score pointwise` stamps the eval with the answers file's method
version. On a file `evaluate`/`benchmark` wrote (version 4, judged there
through ArmRunner with each arm's whole material), its judge is still
`Judge.evaluate_answers` (200-character doc snippets, intel#228 D5), so two
evals of the same answers say 4 with different judge inputs.

The stamp stays the answers' own, which is what it records; the command
now warns that its scores are not comparable with the run's own eval.
Step 6 moves this judge onto the shared stack.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
The diagnosis had its own test for a retrieval miss, twice: a doc source
of `fallback_none`, `none` or none at all, or no docs. The trust gate
reads `retrieval_hit` (`records._retrieval_hit`): a `fallback_none` or
`none` doc source, or no `retrieved_docs`. A docs answer with no
`doc_source` key was a hit for the gate and a miss for the diagnosis,
so a delta of +10 was `empty_retrieval` and a delta of -3 too.

One `_missed`, the gate's test, now decides both branches: that answer
is `docs_helped` or classified by its relevance.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
`Judge.evaluate_answers` printed the judge, a line per question and the
averages. Through ArmRunner the step printed "Judging answers..." and
then nothing: a long judge step was silent, and a judge failure showed
only in the log.

The pipeline hands ArmRunner the judge behind a wrapper that prints
`[i/n] <question id> ✓ <score>` per judged answer, or ✗ and the reason,
after the `Evaluating N answers with judge: P/M` line; the averages over
the pairs close the step, as before. ArmRunner (arms run) is unchanged.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
@vlad-perevezentsev
vlad-perevezentsev requested a review from a team as a code owner December 2, 2026 17:08
@vlad-perevezentsev vlad-perevezentsev self-assigned this Dec 2, 2026
@exai-bot

exai-bot commented Dec 2, 2026 •

Copy link
Copy Markdown

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

CI at 8113a69: 21 passing, 4 skipped.

Test notes (2)
  • dokimi/dokimi/orchestrator/arm_answering.py:159: With meta["fallback_triggered"] = meta["raw_count"] > 0 and meta.get("after_rerank") == 0 changed to meta["fallback_triggered"] = meta["raw_count"] >= 0 and meta.get("after_rerank") == 0, the tests still pass: dokimi/tests/test_answering_stack_p_step2.py, dokimi/tests/test_answering_stack_parity.py, dokimi/tests/test_arms_adapter.py, dokimi/tests/test_ask_readers.py, dokimi/tests/test_diagnoser.py, dokimi/tests/test_eval_score_method_version.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.py:698: With if self.exit_on_error: changed to if not (self.exit_on_error):, the tests still pass: dokimi/tests/test_answering_stack_p_step2.py, dokimi/tests/test_answering_stack_parity.py, dokimi/tests/test_arms_adapter.py, dokimi/tests/test_ask_readers.py, dokimi/tests/test_diagnoser.py, dokimi/tests/test_eval_score_method_version.py. If this condition matters, a test should pin it.
Review details
  • Commit reviewed: 8113a69 against merge base 1bf62d3
  • Coverage: 32 files in 6 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 1.44M tokens (1.04M from cache), 1m20s
  • Tool calls: 115 (78 file_read, 21 code_search, 7 file_read_diff, 5 local_check_results, 4 ci_status)
  • Pipeline migration to the arm runner: 9 files
  • Arm answering adapters and answering-stack parity: 8 files
  • Judge behavior, evaluation schema, and scoring methodology: 6 files
  • Diagnoser behavior and tests: 2 files
  • Trust gate handling of evaluation results: 3 files
  • Evaluation command wiring and defaults: 4 files

Comment thread dokimi/dokimi/commands/evaluate.py Resolved
Comment thread dokimi/dokimi/gate/trust_gate.py Resolved
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
ArmRunner judges the two arms apart, so a retrieval miss can keep its
context score while its baseline judge call fails. Such a row was in
neither the both-arms rows nor the unjudged misses, and the zero-score
check left it out: 10 scored hits and 3 such misses read 0/10, not
3/13.

Count a recorded miss outside the both-arms rows when either arm has a
score or the row has an error.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
evaluate and benchmark now judge through ArmRunner, which stamps the
arms run with judge_context, but the arms adapter dropped it from the
eval.v1 file. An eval score re-judgement of the same answers (the v3
judge, 200-char snippets) then carried the same method_version 4 and
no protocol either, and model_compare pooled the two.

Carry judge_context into the adapted eval and declare it in eval.v1:
the pipeline's eval says treatment_material.v1, the re-judgement
stays unstamped, and model_compare's judge-protocol check refuses the
pair.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
A miss whose baseline answer failed keeps its context score and has
no error in the eval row (the answers file records it), so only the
context-score clause of _unpaired_miss counts it. The test now covers
that shape beside the failed baseline judge call.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
@codecov-commenter

codecov-commenter commented Dec 2, 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 96.42857% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.47%. Comparing base (1bf62d3) to head (8113a69).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
dokimi/dokimi/orchestrator/arm_answering.py 93.10% 3 Missing and 3 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1542      +/-   ##
==========================================
- Coverage   96.47%   96.47%   -0.01%     
==========================================
  Files         564      565       +1     
  Lines       74672    74798     +126     
  Branches    12890    12903      +13     
==========================================
+ Hits        72042    72163     +121     
+ Misses       1610     1608       -2     
- Partials     1020     1027       +7     
Files with missing lines Coverage Δ
dokimi/dokimi/commands/arms.py 98.36% <100.00%> (+0.52%) ⬆️
dokimi/dokimi/commands/benchmark.py 96.80% <100.00%> (+2.14%) ⬆️
dokimi/dokimi/commands/evaluate.py 96.71% <100.00%> (+0.01%) ⬆️
dokimi/dokimi/commands/orchestrate.py 100.00% <100.00%> (ø)
dokimi/dokimi/defaults.py 100.00% <100.00%> (ø)
dokimi/dokimi/eval/answerer.py 98.90% <ø> (ø)
dokimi/dokimi/eval/arm_runner.py 96.97% <100.00%> (+0.01%) ⬆️
dokimi/dokimi/eval/arms_adapter.py 100.00% <100.00%> (ø)
dokimi/dokimi/eval/diagnoser.py 100.00% <100.00%> (ø)
dokimi/dokimi/eval/judge.py 98.46% <100.00%> (ø)
... and 3 more

... and 6 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 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 e85982e)

  • Contract: changed. errors dokimi/dokimi/commands/arms.py:608; defaults dokimi/dokimi/commands/arms.py:624
  • Responsibility: candidate. delegate EvaluationPipeline._evaluate_answers in dokimi/dokimi/orchestrator/pipeline.py; policy dokimi/docs/architecture.md
  • Dependency: candidate (count signal only, no file:line)
  • Review depth: check the changed surface: callers, docs, tests pin new behaviour
  • Coverage gaps: none

1 new must-fix finding. The focused pipeline and adapter tests pass. A repeated question text exposes incorrect judge progress IDs.

# Finding Severity Provenance Evidence
1 Judge progress attributes repeated question text to the last ID must-fix introduced Reproduced on the head. Compared with the merge base.

Checked the diff, input edges, and focused offline Linux tests (merged: 215 passed in 7.00s). Checked the answer and judge paths with stubbed providers.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Mutation of changed lines

⚠️ Tests miss 12 of 80 small breaks of the lines this PR changes, and the check was not complete

At 8113a69: 66 caught · 12 missed · 2 inconclusive

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 # mutation-ok[<operator>]: <reason> at the end of the line or alone on the line above.

Where Operator Change no test notices Tests reaching the line
dokimi/dokimi/orchestrator/arm_answering.py:55 delete-statement check_caller_provider(provider) → pass 26
dokimi/dokimi/orchestrator/arm_answering.py:79 flip-bool False → True 23
dokimi/dokimi/orchestrator/arm_answering.py:91 flip-bool True → False 17
dokimi/dokimi/orchestrator/arm_answering.py:124 drop-clause isinstance(cell, dict) and not is_empty_reply(cell.get("answer")) → (isinstance(cell, dict)) 17
dokimi/dokimi/orchestrator/arm_answering.py:130 take-branch score if isinstance(score, dict) else {} → (score) 17
dokimi/dokimi/orchestrator/arm_answering.py:135 flip-bool True → False 17
dokimi/dokimi/orchestrator/arm_answering.py:142 flip-bool True → False 1
dokimi/dokimi/orchestrator/arm_answering.py:146 flip-bool True → False 17
dokimi/dokimi/orchestrator/arm_answering.py:147 flip-bool True → False 17
dokimi/dokimi/orchestrator/arm_answering.py:148 flip-bool True → False 17
dokimi/dokimi/orchestrator/arm_answering.py:149 flip-bool True → False 17
dokimi/dokimi/orchestrator/arm_answering.py:156 drop-clause answer.get("metadata") or {} → (answer.get("metadata")) 2

Not the whole picture:

  • 115 more breaks of covered changed lines were over the limit and not tried
  • 7 candidate test files were not run
  • 27 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.

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

The merge waits for one open point from @napetrov. The rest of the change holds up: the trust-gate and diagnoser miss rules, the checkpoint handling and the adapter round trip all behave as the description says.

I agree with @napetrov's point on the judge progress IDs. New evidence: two questions q1 and q2 with the same text print [1/4] q2, [2/4] q2, [3/4] q2, [4/4] q2 through PipelineArms.eval_file. The map at arm_answering.py:124 is keyed by question text.

What I ran, on a Linux review host at e85982e:

  • make ci-local: 37 passed, 1 failed, 16 skipped; 33966 tests, coverage 97%. The one failure is test_a_bad_path_is_refused_as_the_quickstart_says[agent run], which needs a filler for --agent in tests/cli_faults.py. The PR touches neither that test nor agent run. The [repo run] case of the same test timed out under load and passes on its own.
  • A reproduction of the progress labels, with the LLM transport mocked.

Checked, no issues

  • Commits: all 10 non-merge commits carry Signed-off-by.
  • Placeholder flag: --judge-placeholder warns and does nothing on evaluate and benchmark run, as the help text and changelog say.
  • Evaluator independence: the pipeline's eval keeps evaluator_independence_warning through the adapter (arms_adapter.py:88).

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
The progress lines of the judge step looked the question id up by its
text, so two questions with the same text both printed the last one's
id. ArmRunner.judge now takes an on_score callback that gets the
record's question id, the arm and the score after each judge call, and
the pipeline prints its progress from there instead of wrapping the
judge.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Main's intel#1541 added dokimi_commit to the run envelope that save_artifact
writes, so the saved answers file had a key the in-memory adapter
output has not. The test now strips artifacts.ENVELOPE_KEYS instead of
naming run_id and dokimi_version.

Refs intel#228

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
@vlad-perevezentsev

Copy link
Copy Markdown
Contributor Author

The merge waits for one open point from @napetrov. The rest of the change holds up: the trust-gate and diagnoser miss rules, the checkpoint handling and the adapter round trip all behave as the descri…

@antonwolfy Thanks for the reproduction: the progress IDs are fixed in 429bf14 (see the thread on arm_answering.py). The agent run case of test_a_bad_path_is_refused_as_the_quickstart_says comes from main's tests/cli_faults.py, which this PR does not touch; the adapter parity test also needed main's new dokimi_commit envelope key stripped (117489c).

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
The arms adapter left ask questions out of the answers and eval
payloads, which intel#1406 meant for a run whose arms file keeps them. The
pipeline saves no arms file, and it drops its checkpoint once the
answers file is saved, so an ask question's replies and ask-rubric
grades were paid for and lost. Before intel#228 step 4c the answerer and
the judge kept these rows, stamped expected_outcome: ask, and the
readers leave them out of the headline.

The adapter keeps them so, and the judge step prints how many it left
out of its averages, as Judge.evaluate_answers did.

Refs intel#228
Test-narrowed: to_binary keeps ask rows now, so test_to_binary_leaves_ask_questions_out_of_both_payloads is replaced by test_to_binary_keeps_ask_questions_stamped_in_both_payloads and the pipeline test test_an_ask_question_keeps_its_rows_and_stays_out_of_the_averages.

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>

@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 progress-ID point from @napetrov is fixed at 429bf14: ArmRunner.judge now reports the record's own question_id through on_score, so two questions with the same text print their own IDs. No new findings in the changes since my last review.

What I ran, on a Linux review host at 117489c:

  • make ci-local: 37 passed, 1 failed, 16 skipped; 34542 tests, changed-line coverage 98%. The one failed row is the pytest step: test_a_bad_path_is_refused_as_the_quickstart_says[eval tasks generate], test_1089_many_adjacent_url_links_are_read_in_linear_time and two test_unclosed_openers.py linear-time tests hit the 60 s timeout or a 10 s timing assertion under load. The PR touches none of those files. Run alone, the timing tests and the quickstart case pass (127 passed). The agent run case from my last review is main's tests/cli_faults.py, as the author says.

Checked, no issues

  • Judge progress: on_score is called after the runner has turned a failed judge call into {"error": ...}, so ✗ <reason> still prints for a failed call, and the lock keeps the [i/n] counter in order from worker threads. The new test pins two questions with one text.
  • Commits: all 12 non-merge commits carry Signed-off-by.
  • Parity test: the adapter test now strips ENVELOPE_KEYS, which covers the new dokimi_commit key.

Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
@napetrov
napetrov merged commit 31885e4 into intel:main Dec 4, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants