Repository navigation
Leave harness failures out of SWE-bench Verified scores and fail above a budget - #538
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]>
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: 16873ac22b
ℹ️ 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]>
Looks good overall! Two non-blocking points. Non-blocking
|
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.
lgtm! The two points in my earlier comment are non-blocking. Please rebase onto main to resolve the conflict in docs/result-compatibility.md, and retarget #539 to main before merging so it isn't closed when this branch is deleted. After that, merge once 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]>
|
Written by Claude Code session review-388-2bb346 Both non-blocking points are addressed:
The branch is up to date with main, and the conflict in |
Written by Claude Code session review-388-2bb346
Fixes swe-v-harness-failures (#487): SWE-bench Verified scored instances that the harness or infrastructure failed as unresolved, and reported success unless every instance failed.
Change
image_error,image_timeout,sandbox_error,agent_error(a provider failure or an agent run that raised) orgrading_erroris left out ofresolve_rate, the other rates and the per-repo/difficulty breakdowns. Its prediction carriesresolved: None. Newnum_errorsandnum_measuredcount them;error_ratecounts only these.max_error_rateargument (default 0.05, the runner'smax_hard_failure_ratedefault). The run fails (success=False, error naming the count and first failure) when more than that fraction of instances failed this way, or when all did. A run exactly on the budget passes.resume_fromkeeps only records without one.openai_agentsreturns aModelBehaviorErroror refusal asHarnessResult.error; that is the model's failure, now recorded asmodel_error: ...and scored. vanillux marks a provider failure withcompletion_reason="error", which stays a harness failure.max_turns,agent_timeoutandcontext_exceededare unchanged (scored). Grader outcomes the upstream harness scores as unresolved (patch_apply_failed,eval_timeout,test_log_unparsed) are unchanged.src/olmo_eval/evals/external/failures.py, which Terminal-Bench will share: tb-harness-failures (Don't score harness failures in Terminal-Bench and TBLite #537), in a stacked PR.Affected
swe_bench_verified(both scaffolds).resolve_ratechanges meaning in place for runs with harness failures; a result-compatibility entry is included. Runs with no errored instance are unchanged.Validation
All pass locally, except
tests/scripts/test_check_file_sizes.py, which fails only because macOS's Apple git lacksls-files --format=%(objectsize); it is unrelated to this change. New tests cover the budget atexecute()level (one provider failure among four instances fails the run at the default budget and passes at 0.25), resume rerunning only the harness failure, model-error classification, and the helper's boundary cases. No Beaker run: the change is to accounting, and the unit tests driveexecute()end to end with mocked containers.🤖 Generated with Claude Code