Repository navigation
fix: name the failure kind of masked samples (conversational_tool_use_simulation, opencode_search) - #5688
Conversation
…ked samples Masked results now carry failure_kind and failure_reason, separating simulator call failures, judge call failures and judge verdicts that blamed the simulated user or tool result. Rewards and mask decisions are unchanged. Refs #4882 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Onur Yilmaz <[email protected]>
…nsient agent failures The agent's transient failure response masked the sample without a failure_kind. Seed and verify failures are reported as environment_server_failed and rollout failures as agent_route_failed, with a bounded failure_reason. Reward and mask are unchanged. Refs #4882 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Onur Yilmaz <[email protected]>
Rows masked for a budget-exhausted ending now report failure_kind and failure_reason: max_iteration as agent_limit, context_window as model_context_limit and agent_timed_out as agent_timeout. Reward, mask and scoring (masked rows are still scored) are unchanged. Refs #4882 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Onur Yilmaz <[email protected]>
…rry no failure kind Agent failure, step limit, transfer mismatch and judged-zero outcomes keep their reward and are not labelled with a failure_kind or failure_reason. Refs #4882 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Onur Yilmaz <[email protected]>
|
/review |
|
/claude review |
|
@oyilmaz-nvidia Add |
|
/review model=claude |
…y actual cause Address review on #5688: a local check failure (invalid user message, tool schema failure) is no longer reported as a judge verdict, and a trajectory that reached verification incomplete is no longer reported as a simulator call failure. Refs #4882 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Onur Yilmaz <[email protected]>
|
/ok to test 994eab6 |
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Verified both fixes: local-check failures and incomplete trajectories now report the correct causes. The affected test suites pass.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42242871914 |
|
/ok to merge 54cb9dc |
|
/ok to test 3740441 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42269554810 |
What
Masked results from three producers now carry a stable
failure_kindand a boundedfailure_reason(capped at 2000 characters). Diagnostics only: rewards, mask decisions, retries, result types and compatibility fields are unchanged.failure_kindconversational_tool_use:simulator_call_failedjudge_failedconversational_tool_use:user_message_failed_verificationconversational_tool_use:tool_result_failed_verificationseed_sessionorverifyenvironment_server_failedrolloutagent_route_failedmax_iterationagent_limitcontext_windowmodel_context_limitagent_timed_outagent_timeoutShared names come from
nemo_gym/core/failure_kinds.py. Theconversational_tool_use:names are environment-prefixed, as the issue suggests, because they describe conditions the shared vocabulary has no name for. Theopencode_searchmapping matches the oneswe_agentsuses (#5342).Why
Part of #4882: these producers already returned
mask_sample=Truewithout naming the cause, so consumers could not tell a failed simulator or judge call from a judge verdict, or a budget-exhausted agent from a wrong answer. A missing kind means "unclassified". It does not mean the reward is valid.Behavior preserved
mask_sampleare untouched. The new_masked_failure()only reads existing state, after the mask is decided.opencode_searchstill scores masked rows on purpose, to match the comparator's denominator.error_class,error_stage,_ng_failure_class,judge_generation_error,trajectory_invalid_reasons, and so on) are unchanged.environment_server_failedandagent_route_failed, because the error alone does not say which component behind the call broke.Tests
Regressions sit at the final response boundary:
opencode_searchendings).failure_kindandfailure_reasonareNonewith the reward unchanged.opencode_searchalso asserts a masked row keeps its scored reward.Validation
pyteston the three touched test folders: 140 passed (resources_servers/conversational_tool_use_simulation/tests,responses_api_agents/conversational_tool_use_simulation/tests,resources_servers/opencode_search/tests).pre-commit run --files <touched files>: passed. The guardwords hook skipped locally (private catalog unavailable), so CI is its first real run.pre-commit run --all-files,gym env test(thegymCLI was unavailable locally, so I ran pytest directly).Rollout evidence
N/A. Diagnostic-only: no reward, mask, agent or verifier logic changes, so no model rollout is needed.
Compatibility and migration
No user-facing change beyond two new optional response fields. Nothing is renamed or removed.
Not in this PR
anyswe_agent, anyterminal_agent and osworld_agent (blocked by open PRs touching the same files) and token capture (needs a separate decision, since an unusable token sequence does not show the reward is invalid) are tracked in #4882.
Refs #4882