You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't score harness failures in Terminal-Bench and TBLite #537
Terminal-Bench (terminal_bench_2) and OpenThoughts-TBLite (openthoughts_tblite) score harness and infrastructure failures as model failures, which breaks the "Failures aren't scores" invariant in AGENTS.md. This is the Terminal-Bench half of swe-v-harness-failures (#487), which flagged the same pattern.
Where
All in src/olmo_eval/evals/external/benchmarks/terminal_bench/eval.py (TBLite subclasses it):
Errored trials count as 0 in pass_rate.compute_metrics averages reward over every trial; a trial whose image build, container, verifier (verifier_timeout, reward_file_missing, reward_parse_error) or model server failed has reward 0. The same holds for pass@k, pass_rate_std/sem and the per-difficulty and per-category rates.
The run always reports success=True.execute() hard-codes it, so a run where the vLLM server died halfway reports a low pass_rate and exits 0.
No hard-failure threshold. Nothing fails the run when many trials error. Only error_rate and pass_rate_adjusted (which leaves errored trials out) show it.
Model protocol errors are mixed in. With openai_agents, a ModelBehaviorError or refusal comes back as HarnessResult.error and is recorded as a trial error, although it is the agent's own failure.
Proposed fix
Same design as the #487 fix, through one shared helper:
Headline metrics (pass_rate, pass@k, breakdowns) leave out trials with a harness or infrastructure failure; num_errors and error_rate report them. pass_rate_adjusted would then equal pass_rate and is dropped.
A max_error_rate argument (default 0.05, the runner's failure-budget default): the run fails when more than that fraction of trials hit such a failure, or when none was measured.
Model protocol errors stay scored trials, with completion reason model_error.
A result-compatibility entry, since pass_rate changes meaning in place.
Written by Claude Code session eval-metrics-handoff
Fixed by tb-harness-failures-fix (#539), merged 11-09: harness failures are left out of Terminal-Bench and TBLite scores, pass@k averages only over tasks with at least k measured trials, and a run fails above max_error_rate.
Activity
abhishekraok commentedon Nov 10, 2026
Written by Claude Code session eval-metrics-handoff
Fixed by tb-harness-failures-fix (#539), merged 11-09: harness failures are left out of Terminal-Bench and TBLite scores,
pass@kaverages only over tasks with at least k measured trials, and a run fails abovemax_error_rate.