Repository navigation
Mark unavailable sandbox scoring incomplete - #469
abhishekraok wants to merge 2 commits into
Conversation
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b6eeba483e
ℹ️ 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".
b6eeba4 to
c75589a
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c75589a9b4
ℹ️ 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".
c75589a to
a62c4f1
Compare
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! This closes the silent-zero path from #457, and I found nothing blocking. A few non-blocking items and nits follow.
What I checked. The PR fixes the scoring half of #457 (issue suggestion 2). In the reported runs, every executor was quarantined, so ScoringContext.has_execution_env went false. _apply_scorers_async then raised SandboxRequiredError for the whole response. The response-level formatter in results.py never set infrastructure, so each later sample was stored as a plain 0 and the task exited clean. With this PR, that path raises SandboxInfrastructureError, the shared formatter flags it, and compute_task_metrics sets Incomplete: N output score(s) failed due to sandbox infrastructure. The manager change also covers a pool that empties between the gate check and a later lease. Per-output paths were already covered on main: a command timeout returns error="timeout", LiveCodeBench turns the missing verdict into ScoringIncompleteError, and transport exhaustion raises SandboxTransportError.
ruff check,ruff format --check,ty check src/andpytest tests/ --ignore=tests/integrationall pass in a local worktree ofa62c4f1(3351 passed, 35 skipped). The onlytywarning is an unused ignore inexecutor.py, which this PR does not touch.- I reverted only
src/to the merge base (e169a54f) and rerantests/runners/test_infrastructure_scoring.py. The new parametrized test fails onmainwithresult.error is None. So the regression test catches the bug it targets. - The
__response__de-duplication in_record_scoring_failureis correct for HLE. When every sample fails judging, each output already has its own infrastructure error. The response-level error raised after that is no longer counted a second time.
Relation to #470 and #471. These are a stack, not competing fixes. #470's base is this branch, and #471's base is #470's branch. #470 covers issue suggestion 1a: it moves commands out of the SWE-ReX server and kills the whole process group. #471 covers suggestion 1b: it replaces quarantined slots. Neither one edits the lines this PR changes in base.py, results.py or execution.py. #471 edits manager.py near this PR's _execute_with_lease change, but it does not touch the except _NoSandboxAvailableError block, so the two changes stack cleanly. #471 also changes SandboxManager.is_running and has_executor to return true while a slot can still be recovered. That is what lets this PR's is_running gate pass during recovery. So the merge order must be #469, then #470, then #471. If this PR is squash-merged, #470 will need git rebase --onto main codex/lcb-scoring-failures before GitHub can merge it cleanly.
Non-blocking
-
src/olmo_eval/common/scorers/execution.py:39
SandboxRequiredErroris now always counted as infrastructure. When no sandbox is configured at all, a LiveCodeBench run finishes withIncomplete: 8 output score(s) failed due to sandbox infrastructure; themissingcase of the new test asserts exactly that. Marking the task incomplete is right, because a missing sandbox must never become a score. The wording sends a user looking for a broken pool when the real cause is a missingsandboxesentry. The runner already knows which tasks have anExecutionScorer(runner.py:123) and whetherharness_config.sandboxesis set. Could the runner reject that combination before inference starts? If that is out of scope here, please file a follow-up issue named something like "Fail fast when a task with an ExecutionScorer runs without a sandbox". -
tests/runners/test_infrastructure_scoring.py:84
This patchesolmo_eval.harness.sandbox.manager._MAX_SANDBOX_RESTARTSwithraising=False. That constant is added in #471, so on this branch the patch does nothing. It only creates a new module attribute. After #471 lands,raising=Falsewould also hide a rename of the constant, and thedepletedcase would quietly start testing recovery behavior instead of depletion. Should this line move to #471 and dropraising=Falsethere? -
src/olmo_eval/common/scorers/execution.py:40-45
Infrastructure classification forSandboxInfrastructureErrordepends on a guarded import fromolmo_eval.harness. If that import ever fails, sandbox failures quietly go back to being ordinary zeros. That is the exact failure this PR fixes.SandboxInfrastructureErrorhas no dependencies, so it could live next toScoringIncompleteErrorincommon/scorers/execution.py.harness/sandbox/errors.pywould re-export it. Then the classification would no longer depend on the guarded import, andcommonwould stop importing fromharnessat this point. This guarded import existed before this PR inevals/tasks/common/base.py, so the problem is in the existing code. This PR is just a good place to fix it.
Nits
- Nit:
src/olmo_eval/evals/tasks/common/base.py:724: the gate message does not name the capability. Includingsorted(sandbox_cap or Capability.DEFAULT)would make a mixed-pool failure easy to trace. That set is whatmanager.py:631already prints. - Nit:
src/olmo_eval/harness/sandbox/manager.py:633:'recovery unavailable'refers to recovery that does not exist until #471. Something like'no compatible sandbox was available'reads correctly on this branch alone. It also reads correctly for #471's "manager is stopping" case. - Nit:
src/olmo_eval/evals/tasks/common/base.py:683: theRaises:section still lists onlySandboxRequiredError. The gate now raisesSandboxInfrastructureErrorwhen a sandbox was configured but none is running. - Nit:
src/olmo_eval/runners/asynq/results.py:115: the docstring says this runs "before per-output results exist", but the new branch at lines 126-131 deals with outputs that already have results. A one-line comment on why the response-level error is not counted in that case would help the next reader. - Nit:
src/olmo_eval/evals/tasks/hle.py:115andsrc/olmo_eval/evals/tasks/frontierscience.py:92still import_format_scoring_errorfromevals.tasks.common.base. That module now only re-exports an alias of the private name. They could importformat_scoring_errorfromcommon.scorers.executiondirectly, and it could be added tocommon/scorers/__init__.py's__all__.
Before merge
Nothing here blocks the merge. Please decide on item 2 before #471 is rebased onto this branch. The author may merge once CI is green, then rebase #470 onto main as described above. If item 1 is deferred, please file and link the follow-up issue.
Mark missing or exhausted sandbox scoring as infrastructure failure at both per-output and response-level catches. Preserve already-recorded verdicts and failure counts, and cover eight-sample LiveCodeBench responses.
a62c4f1 to
16f9e73
Compare
|
Written by Claude Code for @gregorybchris. #492 (merged as d60f81f) carries this PR's classification and annotation forward, and replaces the zero-tolerance gate with a failure budget. Chris plans to close this PR. Please read the note on the stack below first. Carried over from this PR
What's different from this PR
Conflicts. This branch now conflicts with main in Note on the stack. #470 is based on this PR's branch, |
|
Codex · codex://threads/01a1326f-ed81-75e3-80e4-661392dbe4b5 Closing as superseded by count-scoring-failures (#492). Command isolation now targets main and preserves the merged failure-budget behavior; recovery remains stacked on it. |
Codex · codex://threads/01a1326f-ed81-75e3-80e4-661392dbe4b5
When a LiveCodeBench response loses its sandbox, its samples now count as infrastructure failures and the task is marked incomplete. Missing configuration and an exhausted configured pool retain distinct error types. Pool loss after scoring begins is also classified, so queued outputs cannot escape the infrastructure count. Response-level annotations preserve existing per-output failure counts.
Addresses the silent-zero path in livecodebench-stalled-execution (#457). Command isolation is in isolate-sandbox-commands (#470), followed by recover-quarantined-sandbox (#471).
Validation: an eight-sample runner regression covers missing, exhausted and unavailable task-specific pools even when an unrelated pool is healthy, plus depletion after the first scoring request; HLE failure-count regressions, Ruff/type checks and the unit suite pass. Four unrelated file-size tests require a newer Git than this Mac; Full Python 3.12/3.13 CI passes, including those tests.