Skip to content

fix(viewer): don't count a case without a DB verdict as a failure - #57

Merged
soheeyang merged 4 commits into
google-deepmind:mainfrom
albertlieyingadrian:fix/viewer-unscored-not-fail
Dec 1, 2026
Merged

soheeyang merged 4 commits into
google-deepmind:mainfrom
albertlieyingadrian:fix/viewer-unscored-not-fail

Conversation

@albertlieyingadrian

Copy link
Copy Markdown
Contributor

What this changes, and why

The results viewer counts a case with no DB verdict as a failure. The final-assertion verdict is written into the result file at inference (prepare_inference_inputs), before any verifier runs. So while a run is being scored, or when the DB verifier fails (for example on quota), the record has final_assertion_verdict: true and no verifier_dblevel_verdict. getSampleModelStatus returns 'fail' whenever the DB and assertion verdicts aren't both true, and getCellOutcome only reaches its "unscored" branch when no verdict at all is a boolean. These cases therefore show up as failures in:

  • the run cards ("X / Y passed" and the %);
  • the outcome counts above the list;
  • the "failed only" filter and the failure sort.

summary.py (model_statistics) and the viewer's own analytics panel count the same cases as unscored.

Repro. I wrote three result files to a temporary run folder: a scored pass, a pass whose DB verifier errored (verifier_dblevel_error), and an inputs-only record. I built the summary with build_unpublished_summary, loaded it with viewer.load_eval_data, and ran the frontend functions on the result.

main this PR
summary.py 1 pass, 2 unscored unchanged
analytics panel pass 1, fail 0, unscored 2 (rate 1.0) unchanged
getCellOutcome (rater error / inputs-only) fail / fail error / unscored
run card 1 of 3 passed, 33.3% 1 of 1 passed, 100.0%

The change

  • getSampleModelStatus: any recorded false verdict is still 'fail'. If DB or assertion is missing and nothing is false, it returns 'unscored' instead of 'fail'. This follows the analytics panel's cellOutcome order.
  • getCellOutcome: a case with a verifier error is still 'error' and one without verdicts is still 'unscored', as the function's comment describes. This now also holds when the assertion verdict is present.
  • StatsBar: unscored cases leave the denominator, as skipped and not-finished cases already do.
  • results-viewer/static/ is rebuilt with Node 20. Building main the same way reproduces the committed bundle byte for byte.

One difference with summary.py remains, the same one the analytics panel already has: if the assertion verdict is false and the DB verdict is missing, the viewer says "fail" and summary.py says "unscored".

Tests

  • New cases in utils.test.mjs cover inference-time records, both through getSampleModelStatus and through getCellOutcome. Two tests fail on main and pass here. node --test src/utils.test.mjs src/components/analytics/summary.test.mjs: 17/17 pass.
  • pytest tests/unittests/multiverse/results/ on macOS: 331 passed and 1 failed (test_run_layout.py::test_a_folder_is_decided_by_what_it_holds_not_by_its_name). That test fails on main too, on macOS. No Python files change. I'm relying on CI for the full Linux suite.

Checklist (see CONTRIBUTING.md)

  • uv run --extra apis pytest tests/ passes. (Not run in full: macOS only, see above.)
  • The pre-commit hooks pass (isort + pyink). (No Python files change.)
  • The change does not affect scores, or the description above says how it does. (Viewer display only. Result files, result_summary.csv, summary.py and submissions are unchanged.)
  • It adds no task data without its canary, and no keys or files from output/.

albertlieyingadrian and others added 4 commits November 30, 2026 12:50
The final-assertion verdict is written at inference, before any verifier
runs. getSampleModelStatus returned 'fail' whenever the DB and assertion
verdicts weren't both true, so a case still being scored, or whose DB
verifier failed, counted as a failure in the run cards, the outcome
counts and the failure filters. summary.py and the analytics panel count
these cases as unscored.

getSampleModelStatus now returns 'unscored' when a required verdict is
missing and no recorded verdict is false. getCellOutcome keeps calling a
case with a verifier error 'error', and the run card leaves unscored
cases out of its denominator, as it does for skipped ones.
Use the evaluator’s complete-case rules for task outcomes. Carry verifier status from saved results and CSVs into the task list, inspector and analytics so unfinished scoring cannot inflate failures.
Read certified aggregates and their exact case files together. Recover missing legacy verdicts using the evaluator's scalar, vote, and text precedence, and keep setup and scoring diagnostics separate from completed verdicts.
@soheeyang

Copy link
Copy Markdown
Collaborator

Thanks for catching this. Your change fixes the case where the DB verdict is missing. I added a follow-up so the run card, task list, and Analytics all use the evaluator’s definition of a fully scored task. An assertion can already be false while a verifier is still running, so that task stays out of the pass-rate denominator until scoring finishes.

I also fixed a related issue when reopening results. For a certified run, the viewer now uses the exact result files named in its final report. A newer rerun in the same directory could previously turn a certified 1/1 pass into a displayed 0/1. The score, trajectory, and DB diff now all come from the same attempt.

I checked six saved runs covering 402 scored cases. The viewer matched the evaluator on all six. All 338 results tests and 38 frontend tests passed locally.

@soheeyang
soheeyang merged commit 2dbed79 into google-deepmind:main Dec 1, 2026
19 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.

2 participants