ADK main now saves cross-run eval summaries. Recompute run counts and pass rate from the per-run results and flag merged files, judge outages and crash rules.
A summary is a claim about the runs beside it
Running an agent eval case once tells you little, because the same case can pass on one run and fail on the next. Google's Agent Development Kit for Python added a way to run each eval case several times on 23 October 2026, and on 14 November 2026 a main-branch commit, 287c0b0e65, started saving the cross-run verdict. Before that commit, the commit message explains, the aggregation across runs happened inside adk eval just before printing and was then discarded. After it, each saved .evalset_result.json carries a multi_run_case_summaries list next to the per-run eval_case_results, and adk eval prints a compact case-by-run table with a pass rate by default.
As of 16 November this change was on the main branch, not in a tagged release; the latest release then was v2.14.1 from 12 November. That is a good moment to decide how you will trust the new field. A persisted summary is convenient, and dashboards will read it rather than the runs. But a summary is a claim about the runs stored beside it, and saved files get merged, edited, copied between directories and written by older tools. This guide recomputes the summary from the runs and flags the places where the two disagree.
What the saved file contains
The local results manager writes .adk/eval_history/<name>.evalset_result.json with Pydantic's model_dump_json(), so the keys on disk are snake_case. The models also accept camelCase aliases when loading, and older files were double-encoded, a JSON string that contains the JSON object; ADK's own parser handles that legacy form. An audit should accept all three shapes.
Each run of each case is one EvalCaseResult with a final_eval_status, overall metric results, per-invocation metric results, a session_id, and since the multi-run change a repetition_index: the zero-based index of the run among the runs of that case, or null when it was not recorded. Each MultiRunCaseSummary has num_runs, passed_runs, failed_runs, crashed_runs, not_evaluated_runs, pass_rate, the case's final_eval_status, aggregated metric results, the methods used per metric, cross-run results and max_crashed_runs. Statuses are stored as integers: 1 passed, 2 failed, 3 not evaluated, 4 informational.
The counting rules
The rules that turn runs into counts are in the aggregator module at that commit, and they are stricter than reading final_eval_status:
- A run is crashed when it is FAILED with no overall metric results and no per-invocation metric results. That is how a run whose inference raised is recorded.
- Otherwise a FAILED run is failed.
- A run with any overall metric NOT_EVALUATED is undecided, even when its
final_eval_statussays PASSED, because the missing verdict could have been a fail. - Otherwise a PASSED run is passed; anything else is undecided.
- The pass rate is passed divided by passed plus failed, and null when no run was decided.
- If more runs crashed than
max_crashed_runsallows, the case fails. A case whose runs all crashed cannot pass.
The third rule is the one an ad hoc script gets wrong. A judge metric that timed out leaves a run that looks passed at the top level but is undecided by ADK's own definition.
An audit that recomputes
The companion example re-implements these rules over plain JSON, without importing ADK, so it can audit files written by any version:
def run_status(run):
if crashed(run):
return 'crashed'
if run.get('final_eval_status') == FAILED:
return 'failed'
if any(m.get('eval_status') == NOT_EVALUATED for m in run.get('overall_eval_metric_results') or []):
return 'undecided'
if run.get('final_eval_status') == PASSED:
return 'passed'
return 'undecided'
def recompute(runs):
st = [run_status(r) for r in runs]
passed, failed, crash = st.count('passed'), st.count('failed'), st.count('crashed')
decided = passed + failed
return {'num_runs': len(runs), 'passed_runs': passed, 'failed_runs': failed,
'crashed_runs': crash, 'not_evaluated_runs': len(runs) - decided - crash,
'pass_rate': passed / decided if decided else None}Around that core the audit groups runs by eval_id and checks five more things: every run belongs to the file's eval set; repetition indices exist, are unique and run from zero without gaps; no two runs share a session id; the crash allowance was applied; and every summary has runs and every multi-run case has a summary.
The worked example
The fixture is a synthetic help-desk eval set for Belgavi's Book Store with five cases and 25 runs. One summary is correct and four cases carry problems of the kinds saved files actually accumulate.
| Case | What happened | What the audit reports |
|---|---|---|
refund_policy | 5 runs, 4 passed, 1 failed | nothing |
return_window | a rubric judge timed out on one run, leaving it NOT_EVALUATED; the summary counted it as passed | passed 4 saved, 3 recomputed; not evaluated 0 saved, 1 recomputed; pass rate 0.8 saved, 0.75 recomputed |
gift_card | results of a re-run were appended to the file, so indices 1 and 2 appear twice | duplicate indices; 7 runs, not 5; pass rate 0.857, not 1.0 |
order_status | 2 runs crashed, the configuration allowed 1, and the case is still PASSED | crash allowance exceeded |
address_change | 4 runs written by an older tool, no indices, no summary | missing indices; missing summary |
Each of these would mislead a dashboard in a different direction. The return window case overstates quality by a judge outage. The gift card case reports a perfect case that has a failing run in the same file. The order status case passes a case whose own configuration says it should fail. None of them is visible if you read only the summaries.
The example exits with status 1 when there are findings, so it can sit in CI after adk eval and before anything publishes a number.
Where the disagreement usually comes from
ADK computes the summary and the runs from the same objects in the same process, so a file written once by the new code should pass the audit. The audit earns its keep elsewhere: in files concatenated from several runs, in summaries computed by in-house scripts that counted final_eval_status, in files written before the multi-run change and summarised later, and in results copied between environments where a crash allowance or metric configuration differed. It also guards against your own code: once teams start trusting a persisted summary, they start writing summaries too.
Running it next to adk eval
The audit belongs between the eval and whatever consumes its result. A typical CI job runs the eval with several runs per case, then audits the newest file in the eval history directory, then publishes:
adk eval helpdesk_agent helpdesk_agent/helpdesk.evalset.json --num_runs 5
python example.py helpdesk_agent/.adk/eval_history/<newest>.evalset_result.jsonKeep the audit report as a build artefact even when it is empty. An empty report is evidence that the number on the dashboard was recomputable from the runs on the day it was published, which is the property you will want when someone asks why a pass rate moved.
Failure modes of the audit itself
- Version drift. These rules are from one main-branch commit. A later release can change them; pin the ADK version that wrote the file next to the audit, and rerun ADK's own aggregation where you can.
- Partial recomputation. The audit recomputes run counts and the crash rule. It does not recompute metric aggregation methods or cross-run criteria such as pass-at-k, which depend on configuration not stored in the file.
- Floating point. Compare pass rates with a tolerance, not equality.
- Missing indices are not always wrong. Single-run evals and older files have none. Flag them so a person decides, rather than failing the build.
When not to bother
If you run each case once, there is no cross-run summary to audit; check the per-run statuses directly. If an eval result never leaves the machine that produced it and nothing downstream reads the summary, ADK's own consistency is enough. The audit matters when eval results become a release gate or a trend line, because that is when a stale or merged file changes a decision.
Verification
The companion tests pin the findings above, check each status rule in isolation, confirm that snake_case, camelCase and double-encoded copies of the same file give the same report, and confirm that a file reduced to its one correct case produces no findings. Before adopting the audit, run it on your own last ten result files. Any finding on a file written by unmodified ADK is either a bug worth reporting upstream or a rule this audit has wrong, and either is worth knowing.