Repository navigation
feat(health): flag failed harness tool calls; say when a resource limit explains missing turns - #5600
Conversation
…it explains missing turns Two rollout health findings, with no scoring or retry change: - `rollout_tool_call_failed`: one finding per rollout counting the tool outputs that open with the text a harness returns when a tool could not run at all (today `ripgrep execution failed`). A tool that ran and reported its own error is not counted. - `rollout_missing_agent_turns` keeps its finding, and its detail now names the sandbox resource limit (`expected_absence`) when the record carries a `sandbox_resource_limit`, so a run that ended at a memory or storage limit is told apart from one that never produced a turn. The rollout-health page lists both. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
|
/ok to test e3c6732 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM — no concerns found. I reviewed all three changed files and traced tool-output projection, resource-limit records, and health-report consumers. The new findings preserve the existing reward, retry, and acceptance-gate behavior.
Static review only; I couldn't execute tests in this read-only environment.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
giuliolovisotto
left a comment
There was a problem hiding this comment.
Two small changes before landing:
-
Do not let output text override an explicit successful tool outcome.
_rollout_tool_call_failedcurrently ignoresstatusandtool_name. I reproduced abashcall withstatus="completed"and outputripgrep execution failed: example from a log filebeing reported asrollout_tool_call_failed, making the rollout unhealthy. A successful command reading a log can legitimately return that text. Please exclude explicitly completed calls from this failure detection and add a regression test for this case; constrain the marker to its known producer where appropriate. -
Clarify the health-gate effect. The new finding does not change rewards or retry decisions, but it marks the rollout unhealthy and therefore contributes to an explicitly configured
--max-unhealthy-fractiongate. Please state that in the docs and adjust the PR description's “no gate change” wording to distinguish unchanged gate logic from a potentially changed gate result.
The incremental coverage and the annotation-only missing-turn change are fine. All 351 focused rollout-health, evaluation-health and harness-capability health tests passed at this head. The false-positive case above was checked separately.
A command that ran and succeeded can print the harness tool-failure marker, for example when it reads a log, so `rollout_tool_call_failed` no longer counts a call the trajectory records as `completed`. The rollout-health page now says the finding marks the rollout unhealthy, so it counts toward `--max-unhealthy-fraction` when that criterion is set, while the gate logic itself is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
|
/ok to test 10efcdb |
|
Done, both in the latest commit. Calls recorded as |
giuliolovisotto
left a comment
There was a problem hiding this comment.
Both review points are addressed: explicitly completed tool calls are excluded, marker matching is restricted to the producing tools, and the docs explain the effect on an explicitly configured unhealthy-fraction gate. The regression test covers the reported false positive. Re-ran the focused health suites: 352 passed. LGTM.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41888803470 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41889292519 |
Two rollout health findings for sandboxed agents. They change no scoring, retry or gate logic. Each finding marks its rollout unhealthy, so a run with an explicitly set
--max-unhealthy-fractioncan get a different result from that criterion.rollout_tool_call_failedA harness that cannot run a tool returns a fixed text to the model in place of the tool's result (today the coding agent's
ripgrep execution failed). Such rollouts look like ordinary agent turns, so a run where search never worked was indistinguishable from one where the model chose not to search. The new check emits one finding per rollout with the number of tool outputs that open with a known harness tool-failure marker. A marker counts only from the tools known to return it (today OpenCode's built-ingrepandglob), and a call the trajectory records ascompletedis not counted: a command that succeeded can print the same text, for example when it reads a log. A tool that ran and reported an error of its own is not counted either. New markers go into_TOOL_FAILURE_MARKERSwith their producing tools once a harness is known to return one.Resource limit on
rollout_missing_agent_turnsWhen a rollout has no agent turn with model activity, the finding stays. If the record carries a
sandbox_resource_limit(Terminal-Bench 4 writes it when the provider ended the sandbox at a memory or storage limit), the detail now also saysexpected_absence: sandbox_resource_limit:<resource>, so a sandbox killed at its limit is told apart from an agent that never produced a turn.The rollout-health page lists both.
Validation
bashcall whose output quotesripgrep execution failed(no finding), next to a failedgrepcall (counted) and a failedbashcall with the marker (not counted).checks.pyat main they fail, and with this change they pass (351 tests across the rollout-health, evaluation-health and harness health tests).🤖 Generated with Claude Code