Repository navigation
Leave harness failures out of Terminal-Bench and TBLite scores and fail above a budget - #539
Conversation
…run above a budget Instances the harness or infrastructure failed are no longer scored as unresolved: resolve_rate and the other rates leave them out, num_errors and error_rate count them, and the run fails when more than max_error_rate (default 0.05) of instances failed that way. resume_from reruns those instances. A scaffold-reported model protocol error (openai_agents' ModelBehaviorError or a refusal) is the model's own and stays scored, recorded as model_error. The accounting lives in evals/external/failures.py so Terminal-Bench can share it. Fixes #487 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…il the run above a budget Trials the harness or infrastructure failed (image build, container, verifier timeout or unreadable reward, model server) no longer count as 0: pass_rate, pass@k, the per-attempt spread and the per-difficulty and per-category rates leave them out, and num_errors and error_rate count them. pass_rate_adjusted, now identical to pass_rate, is dropped. The run fails when more than max_error_rate (default 0.05) of trials failed that way, instead of always reporting success. An openai_agents model protocol error stays a scored trial, recorded as model_error. Uses the accounting shared with SWE-bench Verified. Fixes #537 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e1c915a7e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A model_error recorded by the scaffold kept an instance scored even when patch extraction or grading then failed, since the sandbox and grading handlers only set an error when none was recorded. They now record the harness failure and keep the model error's message after it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nto claude/tb-harness-failures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d1c7fa063
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
gregorybchris
left a comment
There was a problem hiding this comment.
This review was generated by an agent following
REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.
Looks good overall! Reusing failures.py from #538 keeps the two evals consistent, and the tests cover the failure budget, the all-failed run, and the model-error override. I ran ruff check, ruff format --check, ty check src/ and pytest tests/evals/external locally on 8d1c7fa, and all pass.
Approving, with one condition: please resolve the inline pass@k comment (src/olmo_eval/evals/external/benchmarks/terminal_bench/eval.py:232) before merging. Once #538 merges and this PR is retargeted to main, you may merge after that fix when CI is green.
…failures # Conflicts: # docs/result-compatibility.md
…rness-failed results in the saved instances file Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nto claude/tb-harness-failures
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # docs/result-compatibility.md
Written by Claude Code session review-388-2bb346
Fixes tb-harness-failures (#537): Terminal-Bench and OpenThoughts-TBLite scored harness and infrastructure failures as 0 and always reported success. Stacked on swe-v-harness-failures-fix (#538), whose
evals/external/failures.pyit reuses; retarget tomainonce that merges.Change
Same design as #538:
verifier_timeout,reward_file_missing,reward_parse_error) or model server failed is left out ofpass_rate,pass@k,pass_rate_std/semand the per-difficulty and per-category rates. Its prediction carriesreward: None.num_errors,error_rateand newnum_measuredcount them.pass_rate_adjustedis dropped: it would now always equalpass_rate.max_error_rateargument (default 0.05). The run fails when more than that fraction of trials failed this way, or when all did; it used to hard-codesuccess=True.openai_agentsModelBehaviorErroror refusal is recorded asmodel_error: ...and scored; a vanillux provider failure is recorded asagent_error: ...(it was the bare message before) and is a harness failure. Agent timeouts and max turns are unchanged.Affected
terminal_bench_2andopenthoughts_tblite, for runs with errored trials; runs without one are unchanged. A result-compatibility entry is included.Validation
All pass. New tests: errored trials left out of
pass_rateandpass@k, the budget atexecute()level (one verifier timeout in four trials fails at the default and passes at 0.25), a run where every trial raised fails, and model-error versus provider-error classification. No Beaker run: accounting only.🤖 Generated with Claude Code