Repository navigation
Count scoring failures against the failure budget instead of as zeros - #492
Merged
Merged
Conversation
- One format_scoring_error in common/scorers/execution.py replaces the copies in the task base and the runner. The runner's copy never set the infrastructure flag. SandboxRequiredError is now flagged too. - SandboxInfrastructureError lives next to it; harness.sandbox.errors re-exports it. - The sandbox gate raises SandboxInfrastructureError, naming the capability, when sandboxes are configured but none serving the task is healthy, and SandboxRequiredError only when none is configured. - A scoring call that finds its pool empty raises SandboxInfrastructureError even when that call saw no failure itself. - The runner's response-level error keeps the infrastructure flag only for outputs not already counted. Co-Authored-By: Abhishek Rao <[email protected]> Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
An output whose scoring raised now carries its scoring_errors entry and no score, everywhere a placeholder 0.0 was written: the execution, context and process scorer paths, the judge tasks, FrontierScience, and the runner's fallback when score_responses raises. A response is scored from the outputs that were scored; with none, it has no score. The runner computes a task's metrics without its unscored instances, those with no scored output. Partially scored instances stay in, scored from their scored outputs, and pass@k and pass^k count only scored samples. Judge tasks no longer raise when every sample of an instance fails; the instance is unscored instead. A response with no outputs keeps a scoring failure in the new Response.scoring_error. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Instances with no output and unscored instances, those with no scored output, now share one failure budget (max_hard_failure_rate, default 5%). A task over it, or with nothing scored, fails and its metrics are withheld; within it, the metrics are published from the scored instances. This replaces the rule that any infrastructure scoring error marked a task incomplete. Each task records scoring_failures: unscored and partially scored instances, unscored outputs, how many were infrastructure failures, counts by exception type, and the first error, capped at 500 characters. They appear in the task log line, metrics.json, the summary table, and a warnings section under the table for published tasks that left instances out or scored some from part of their outputs. The gate is renamed to match: failure_budget_error, failure_budget_exceeded, FailureBudgetExceeded and check_failure_budget. finalize_task now uses compute_task_metrics. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Contract: an optional ScoringFailures object on TaskResultIn and TaskResultRow, with regenerated schemas. - API: stored in a new nullable task_results.scoring_failures column (migration 0007), left out of the upload content hash when absent so existing uploads keep their identity, and returned with each task row. - Upload client: sends scoring_failures when metrics.json has it. - UI: the tasks table shows unscored instances beside failed ones, and the "failed" filter includes them. The run health panel lists unscored and partially scored instances with their error types and first error, linking to the instances that carry scoring errors. Instances that produced no output now link to their task, since they have no instance rows. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
design.md, CONTRIBUTING.md, AGENTS.md and the README's max_hard_failure_rate entry describe the rule: an output whose scoring failed is left unscored, an instance with no scored output is left out of the metrics, and both those and instances with no output count against one failure budget. The compatibility log records which earlier results it changes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
gregorybchris
force-pushed
the
chrisg/scoring-errors-incomplete
branch
from
October 22, 2026 17:40
fb4ad27 to
558ac1c
Compare
- An error keyed by a scorer leaves an output unscored for that scorer only; an error under any other key, such as __response__, applies to all. Each metric leaves out the instances its own scorer could not score, and an instance counts against the budget if any scorer left it unscored. The module moves to olmo_eval.common.scoring_failures so tasks can use it. - Failures are counted after compute_metrics, which can record errors itself (OmniDocBench's evaluator), so such a task fails as having nothing scored. - When score_responses raises, every output of the response is left unscored: no score from the interrupted call is trusted. - Response.scoring_error is saved in the predictions record, and the upload's has_scoring_error flag sees it. - The sandbox gate counts running executors that are bound to agent sessions, so busy sandboxes are not reported as missing. - The process pool and OmniDocBench build errors with format_scoring_error. - finalize_task applies the configured budget. - first_error is capped at 500 characters in total, and the contract and the ingest model enforce it. The tasks table labels the unscored count. - Docs: correct which way lower-is-better metrics move, say sandbox failures now publish within budget, and keep "a task with no scored responses fails" among the invariants. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- When score_responses raises, the fallback also removes the response's scores and its outputs' score keys, so none reach the predictions or the dashboard's per-instance statistics. - "Nothing scored" uses the budget's definition: an instance counts as scored only if every scorer scored it. A scorer that scored nothing therefore fails the task at any budget instead of publishing 0.0. - The sandbox gate goes back to the capability environment's is_running: the runner's scoring pool is never bound, so counting bound executors had no effect. A pool with no sandbox for the capability reports that, rather than infrastructure failures that did not happen. - Tests for finalize_task's budget and for a scorer that scored nothing. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The warnings section passed Rich markup tags with markup disabled, so the summary showed "[yellow]" around each line. Apply the color as a style instead; the line quotes an error message, so markup stays off. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 22, 2026
Closed
1 of 11 tasks
6 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A failed score is no longer recorded as zero. When scoring an output fails, because a scorer raised, a judge gave no verdict after its retries, or a sandbox was lost or never configured, the output records the error and gets no score. Instances that end up with no scored output are left out of the metrics, and they count against the same failure budget as instances that produced no output. Within the budget, the task publishes its metrics with the failure counts beside them. Over the budget, or with nothing scored, the task fails and publishes nothing.
How a scoring failure is handled
Output. The error goes under the output's
scoring_errors, keyed by the scorer, with noscore:<scorer>value. The placeholders are gone from:Task._apply_scorers_asyncJudgedTaskand FrontierSciencescore_responsesraises (_record_scoring_failure). The raise interrupted scoring, so the response's scores and its outputs' score keys are dropped, and every output gets the error under__response__.Instance, per scorer (
common/scoring_failures.py). An error keyed by a scorer counts against that scorer only; an error under any other key, such as__response__, counts against all of them.Response.scoring_errorand saved asscoring_errorin its prediction record. A response with no outputs and no error still scores as an unanswered question, as before.Metrics.
Task.compute_metricsleaves each instance out of the metrics whose scorer could not score it.compute_task_metricsalso leaves out instances that no scorer could score, which covers tasks that overridecompute_metrics.Task. Failures are counted after
compute_metrics, because a task can record errors there; OmniDocBench does when its evaluator fails. An instance counts as unscored if any of the task's scorers left it unscored, so a scorer that scored nothing leaves nothing scored. Then one budget applies: if(instances with no output + unscored instances) / instances processedexceedsmax_hard_failure_rate(default 5%), the task fails. A task with nothing scored fails at any budget. A failed task's metrics are withheld frommetrics.jsonand the upload, and the run exits non-zero after writing results.JudgedTaskand FrontierScience no longer raise when every sample of an instance fails; the instance is unscored instead.Error classification
One
format_scoring_errorincommon/scorers/execution.pybuilds the error entries for the shared scorer paths, the process pool, the judge tasks, FrontierScience, OmniDocBench and the runner. It marks an entry"infrastructure": "true"for:ScoringIncompleteError, which includesJudgeParseErrorSandboxRequiredErrorSandboxInfrastructureError, which includesSandboxTransportErrorSandboxInfrastructureErrornow lives in the same module;harness.sandbox.errorsre-exports it.The flag is a diagnostic. It doesn't change how a failure counts.
The sandbox gate in
_apply_scorers_asynctells two cases apart:SandboxRequiredErrorSandboxInfrastructureError, naming the capability. The sandboxes either failed or were not configured with that capability; the message says which capability was missing.A scoring call that finds its pool empty also raises
SandboxInfrastructureError. OmniDocBench's evaluator failure keeps its infrastructure flag.Reporting
Each task with a scoring failure gets a
scoring_failuresrecord:{"instances_unscored": 1, "instances_partially_scored": 2, "outputs_unscored": 3, "infrastructure": 2, "by_type": {"JudgeParseError": 2, "KeyError": 1}, "first_error": "JudgeParseError: no parseable verdict after 3 judge attempts"}by_typecounts each unscored output once, by its first error.first_erroris capped at 500 characters in total, and the contract enforces it.The record shows up in several places:
TaskResultand the task entry inmetrics.json30/32 instances saved, 1 unscored, 1 partially scoredScoringFailuresonTaskResultInandTaskResultRow.task_results.scoring_failurescolumn, added by migration0007. The field is left out of the content hash when absent, so existing uploads keep their identity.The gate's names follow the new meaning:
failure_budget_error,TaskResult.failure_budget_exceeded,TaskResult.failure_rate,FailureBudgetExceededandcheck_failure_budget. The config knob keeps its name,max_hard_failure_rate, so existing configs and launch commands keep working; its documentation now covers both kinds of failure.Compatibility
Logged in
docs/result-compatibility.md. Task hashes don't change. Only results whose predictions carryscoring_errorsare affected:judge_parsing_errors, now cover only failures that didn't raise. The runner counts the rest.Leaving failures out can bias a score, because they cluster on unusual outputs. A model whose outputs crash a sandbox more often has more of its worst outputs left out. The budget bounds that bias, and the published counts make it visible.
Not changed
Testing
Runner and scoring:
tests/runners/test_scoring_failures.pyandtests/runners/test_infrastructure_scoring.pycover:compute_metrics, which still fail a task with nothing scoredmetrics.json, and the summary warningsscore_responses, including responses with no outputsfinalize_taskapplying the configured budgetPlaceholders: tests that asserted placeholder zeros, or a raise when all samples fail, now assert no score and an unscored instance. These span the base task, HLE, MT-Bench, MultiChallenge, Arena-Hard, FrontierScience and omniscience.
Dashboard API, run against Postgres 17 with
TEST_DATABASE_URLset:Dashboard UI: a page test for the health panel item.
Upload: a client test that the field is sent only when present and validates against the schema.
Checks run:
uv run ruff check src/ tests/,uv run ruff format --check src/ tests/,uv run ty check src/uv run pytest tests/ --ignore=tests/integration: 4,111 passed, 36 skipped; 4,156 passed with theagentsandlitellmextrasruff,ty,pytest(281 passed)lint,typecheck,test(84 passed),contract:check,buildMock runs:
olmo-eval run -m mock -t gsm8k -o limit=3 --no-uploadrecords no scoring failures.olmo-eval run -m mock --harness multi_turn_chat -t mt_bench -o limit=4 --no-upload, where the judge cannot run, fails the task with the message above.olmo-eval results upload --dry-runvalidates its payloads against the contract.Beaker, a real partial failure: MT-Bench on
allenai/Olmo-3-7B-Instruct, judged bygpt-4-0613withjudge_max_tokens=2048, at commit2afc5f0c, on one Ceres H100 inai2/olmo-eval-debug(01M5JKVS).score8.98, turn 1 9.11, turn 2 8.85, witherrors: []andscoring_failuresrecording the one unscored instance and itsBadRequestError.80/80 instances saved, 1 unscored, and the summary printed the warning. Onmain, the same failure marks the task "Incomplete" and withholds its metrics.[yellow]tags;f3104b7afixes that, with a test.Beaker, no regression:
gsm8k:chat(generation, sync scorer) andarc_challenge:mc(log-probability), 200 instances each, at commitf3104b7a, on one Ceres H100 inai2/olmo-eval-debug(01M5JMDC). Both tasks have noscoring_failuresand no scoring errors in their predictions, and each published primary metric equals the mean of its 200 per-instance values:gsm8k:chataccuracy 0.945,arc_challenge:mcaccuracy 0.735.Beaker, main against this PR: five tasks that are prone to scoring failures, run on
allenai/Olmo-3-7B-Instructat47fabfbd(this PR's base) and atf3104b7a, on one Ceres H100 each inai2/olmo-eval-debug, with the same limits on both commits.omniscience:judge, 200multichallenge, 266hle:text, 200frontierscience_olympiad, 100livecodebench:lite, 200,codex_universalharnessJudge tasks: 01M5JR7Z (main) and 01M5JR89 (PR). LiveCodeBench: 01M5JRA8 (main) and 01M5JRC7 (PR).
SandboxRequiredError. Main recorded zeros for all 64 and withheld the task. With this PR, the same run would also fail, since 64 of 200 is far over the 5% budget, and the 63 would be reported asSandboxInfrastructureError, because sandboxes were configured. The PR's own run lost no sandbox.🤖 Generated with Claude Code