Repository navigation
Refuse a code-execution task under a harness without sandboxes - #491
Merged
Merged
Conversation
gregorybchris
force-pushed
the
chrisg/sandbox-scoring-checks
branch
from
October 22, 2026 01:16
b2d5f6c to
243494b
Compare
Without sandboxes the runner starts no executor, so every execution scorer raised SandboxRequiredError after generation, and the runner recorded each instance as 0. Check while tasks are prepared, before the data loads. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
codex_python has only a Python image, so MultiPL-E's compilers and BigCodeBench's packages are missing under it. Fold the message test into the refusal test and test a run where only one task runs code. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
gregorybchris
force-pushed
the
chrisg/sandbox-scoring-checks
branch
from
October 22, 2026 23:10
243494b to
c85a8a4
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
gregorybchris
enabled auto-merge (squash)
October 26, 2026 19:11
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 task that scores by running code, such as
humaneval:olmo3baseorlivecodebench(76 specs in all), now fails during task preparation when the harness has no sandboxes, before any response is generated:The message suggests
codex_universalbecause it serves every code task: its sandbox-fusion image has the MultiPL-E compilers, and it carries BigCodeBench's image.codex_pythonhas only a Python image.Why
The runner starts a sandbox manager only when
harness_config.sandboxesis set. Without one, every execution scorer raisesSandboxRequiredErrorat scoring time. Since #492, each instance is then left unscored, and the task fails its failure budget with "No instance was scored out of N … First failure: SandboxRequiredError …". So the run already fails, but only after generating every response, which with a real model can take hours, and the message says to "Configure sandboxes in HarnessConfig" without naming a harness that has them.This check stops the run before the model loads and says which harness to use.
Change
AsyncEvalRunner._check_sandboxruns next to the scaffold check from #489, beforeprepare_task_itemsloads the data. It refuses a task that has at least oneExecutionScorerwhen the harness has no sandboxes.metrics, is taken into account. The scaffold check previously built the task without overrides.Task._apply_scorers_asyncstays as the backstop:SandboxRequiredErrorwhen no sandbox is configured,SandboxInfrastructureErrorwhen sandboxes are configured but none with the capability is running.--dry-runstops before task preparation, so it is unaffected. No task's requests, scores or hash change.Not in this PR
sandboxes. Two narrow cases pass it and then fail per output at scoring time: a sandbox image without the task's toolchain, such as a compiled MultiPL-E language undercodex_python, and a harness whose first sandbox lacks the defaultbashcapability. No preset is configured the second way. Checking images and capabilities is a follow-up.olmo-eval beaker launchcould refuse the same combination before submitting, which would save a queue slot. The job now fails within seconds of starting, before the model loads.ContentTypeError, which the executor's transport classification doesn't cover, so it is recorded as an ordinary scoring error. It affected 7 outputs across three bigcodebench runs. Whether a 5xx is safe to retry belongs with the transport work in Isolate sandbox commands from the SWE-ReX server #470 and Recover quarantined sandbox slots with bounded retries #471.Addresses the up-front check asked for in #423.
Testing
TestRequiredSandboxintests/test_runner.py:humaneval:olmo3basewithout sandboxes, before the data loads; the message names the harness and suggestscodex_universalhumaneval:olmo3basewith a sandbox configuredThe two refusal tests fail with the check disabled, and the override test fails when the check builds the task without overrides. The others are positive controls.
On
d60f81f2(main with Count scoring failures against the failure budget instead of as zeros #492):uv run ruff check src/ tests/,uv run ruff format --check src/ tests/,uv run ty check src/, anduv run pytest tests/ --ignore=tests/integration(4,116 passed, 36 skipped) all pass.With the check disabled on the same base, the mock command above generates both responses, leaves both unscored with
SandboxRequiredError, and fails withFailureBudgetExceeded, exit code 1.Beaker check
Commit
b2d5f6c9, from before the rebases ontomain. The check's code is unchanged since; later commits only add a test. Onai2/holmes, inai2/oe-olmo3p5-eval:humaneval:olmo3baseunder the default harness (mock model)humaneval:olmo3baseandmultipl_e_humaneval_cpp:pass_at_1under--harness codex_universal,Qwen/Qwen3-4B-Instruct-2507,limit=20eachscoring_errors. pass@1 0.738 and 0.798The second run confirms that the suggested harness serves a compiled MultiPL-E language as well as Python.
🤖 Generated with Claude Code