Skip to content

Don't score harness failures in Terminal-Bench and TBLite #537

Closed

Description

@abhishekraok

Written by Claude Code session review-388-2bb346

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:

  1. 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.
  2. 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.
  3. Model protocol errors stay scored trials, with completion reason model_error.
  4. A result-compatibility entry, since pass_rate changes meaning in place.

Activity

  1. abhishekraok commented on Nov 10, 2026

    @abhishekraok
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions