Repository navigation
fix(tb4): grade sandbox resource exhaustion as zero - #4733
Merged
Merged
Conversation
Record completed zero grades for confirmed agent sandbox memory and storage limit deaths after execution starts, retaining provider diagnostics and cleanup. Keep setup, verifier, node-pressure and ambiguous failures as infrastructure outcomes. Signed-off-by: Frederic Lafrance <[email protected]>
Contributor
Author
|
/ok to test 0431194 |
Prevent fresh mini-SWE host environments from resolving LiteLLM releases that import MCP 2-only response types while Gym requires MCP 1. Signed-off-by: Frederic Lafrance <[email protected]>
Contributor
Author
|
/ok to test bb1e900 |
vegaluisjose
approved these changes
Oct 19, 2026
cmunley1
approved these changes
Oct 19, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39287806283 |
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39289015033 |
This was referenced Oct 20, 2026
This branch was previously deployed
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.
What does this PR do?
TB4 currently reports an infrastructure outcome when an executing agent's sandbox dies after exceeding its allocation, so the rollout is omitted from scoring. Record a completed zero grade for provider-confirmed memory or ephemeral-storage limit deaths, preserving diagnostics, cleanup and verification replay. Keep setup, verifier, node-pressure and ambiguous failures as infrastructure outcomes.
The rollout and trial result expose
sandbox_resource_limit;verifier_result.sourceidentifies the limit-based grade. A dead agent sandbox skips the separate verifier, with null test counts.Pin the mini-SWE host dependency to LiteLLM 1.102.1 for Gym's MCP 1 runtime. Newer LiteLLM releases import MCP 2 response types before dispatching model calls, breaking fresh installs.
Follow-up to #3573; no separate issue is needed for this scoped grading correction.
Validation
pre-commit run --all-filespasses without modifying files.evaluation_completedremains false.Rollouts
Bounded real-model smoke with
gpt-5.4-mini-2026-03-17:Compatibility and benchmark impact
Applies automatically to new TB4 evaluations. Confirmed agent resource-limit deaths now contribute zero to the pass-rate denominator. Existing completed session records replay their saved results unchanged; provider details and the original agent termination remain available.
Checklist
pre-commit run --all-files).