Repository navigation
Description
Parent: #3180. Failure-handling program: #2750.
Priority
Address the missing-label problem on already-masked results first. The broader audit of reward-zero and fake-success failures is tracked separately in #4883 and is not a prerequisite for this issue.
Problem
Several agents and verifiers already return mask_sample=True but omit the shared failure_kind and sometimes failure_reason. The cause may exist only in private fields such as agent_error_kind, error_kind, scoring_error, or status. Consumers cannot consistently explain these results or distinguish the causes without environment-specific parsing.
A missing kind means unclassified; it does not establish that the reward is valid. A kind describes what happened and does not, by itself, decide whether the reward participates in training statistics.
Scope
- Inspect existing masked-result producers and their final serialized outputs for missing failure metadata. Include other already-masked environments beyond the examples below. Record the triggering condition, existing diagnostic evidence, and whether the mask concerns scoring, agent termination, or training-data usability.
- Populate a stable
failure_kindand a bounded, usefulfailure_reasonfor known failure paths. Reuse the shared vocabulary; use an environment-prefixed name when a genuinely distinct condition is needed. - Preserve existing reward values, masking decisions, result types, retry behavior, and compatibility fields. Cases requiring changes to those behaviors belong in a separate migration under refactor(core): replace reward-zero failure sentinels with typed outcomes #3180.
- Preserve diagnostic evidence already present in component-specific fields. Do not guess a more specific cause than the available evidence supports.
- Add focused regressions at the final response/serialization boundary. Cover representative failures, valid zero scores, and successful results so the change cannot accidentally relabel normal outcomes.
Starting inventory
These are starting points from the October 21 investigation, not a claim that the inventory is complete. Recheck current main before implementing each item.
| Component | Existing evidence or condition | Follow-up |
|---|---|---|
| swe_agents | Iteration/context limits, agent/evaluation timeouts, evaluator launch failure, agent/evaluator OOM | Translate known causes into shared diagnostics; preserve the existing mask and reward decisions. |
| anyswe_agent | Sandbox exceptions and private error/timeout fields | Preserve the observed cause through the final verification response. A generic sandbox exception alone does not prove a specific provider failure. |
| OSWorld verifier | Exception during evaluation returns a masked zero | Retain a bounded explanation and an appropriate verifier failure category. |
| ChemCoTBench | Scoring timeout, worker failure, invalid scorer output; molecular-optimization scoring may also be disabled | Add missing kinds to real failures; distinguish disabled scoring from an execution error. Existing explanations should be preserved. |
| ChemReasonBench | bad_task_type, bad_ground_truth, no_lm_protocol |
Report invalid task/setup diagnostics without attributing the failure to model quality. |
Also audit the current conversational-tool-use simulation path; paths in earlier inventories may have moved.
Two boundary cases need an explicit disposition in the inventory:
- GDPVal masks when judging is deliberately disabled. Record that condition accurately; do not describe it as a crashed judge.
- Token capture can mask because usable training tokens could not be reconstructed. Its internal builder result is not a verifier response, and an unusable token sequence does not establish that the reward is invalid. Any shared output change needs to respect that boundary.
Dependencies and exclusions
This diagnostic-only work can start from main without waiting for #3302: the verifier fields (#2608 / #2611), failure vocabulary (#3179 / #3213), and shared failure contract (#3877) have landed.
Excluded:
- Repository-wide discovery of unmasked reward-zero failures or fabricated successful results. That is the separate audit in tracking: audit reward-zero and fake-success failure producers #4883. Findings encountered incidentally here should be linked there, without expanding this issue's completion criteria.
- Switching an existing result to a rewardless failure outcome, changing masking/reward semantics, or changing retry/persistence behavior. Those migrations must identify the actual caller support they consume from feat(core): define typed rollout outcomes and recovery #2135 / feat(eval): persist failures and resume unfinished evaluations #3302.
- A universal
failure_kind -> include/excludetraining policy. Coordinate that work with fix(grpo): keep masked Gym failures out of prompt-group statistics RL#4061 and the RL maintainers. - Requiring every masked internal dictionary to become a verifier failure, or globally rejecting unlabeled legacy responses before migration is complete.
Existing behavioral bugs remain tracked separately: #4571 (Terminal-Bench), #4533 (Indian Banking), and the failed-run reporting part of #4529 (Claude Code).
Acceptance criteria
- Inventory records all audited producers, including explicit dispositions for disabled judging and token-capture masks.
- Each migrated known-failure path emits stable, nonblank diagnostics in its final output.
- Existing reward, mask, retry, and compatibility behavior is preserved and covered by focused regressions.
- Valid zero scores and successful results retain their intended semantics.
- Ambiguous or behavior-changing cases have a linked follow-up and are not silently assigned a guessed cause or training policy.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDev Todo
- StatusShow more project fieldsDev Todo
Activity
[-]fix: complete failure metadata on existing masked results[/-][+]fix: audit failure reporting and complete masked-result metadata[/+][-]fix: audit failure reporting and complete masked-result metadata[/-][+]fix: complete failure metadata on existing masked results[/+]yuhezhang-ai commentedon Oct 30, 2026
Status, Oct 30
12 components mask some failures without a
failure_kind(inventory in #4883). Seven are in PRs. None of them changes a reward or a mask.failure_kindaddedverifier_error,session_lostverifier_error; disabled MolOpt scoring ischemcotbench:scoring_disabled, not an errorchemreason_bench:invalid_taskfor malformed rowssession_lost,judge_failed,verifier_errorusersim:simulation_failedwhen the simulator reports nofailure_classgdpval:judging_disabled: judging is turned off on purpose, so it isn't reported as a judge failureagent_limit,model_context_limit,agent_timeout,provider_unavailable,provider_oom_killed,swe_agents:eval_timeoutStill open:
nemo_gym/token_id_capture): it masks when training tokens can't be rebuilt. As this issue notes, that says nothing about whether the reward is valid, and its result isn't a verifier response, so it needs its own decision. Several open PRs touch it.fix(swe_agents): name the failure_kind of masked samples
fix(resources): name the failure kind on masked swe_atlas_qa, nemo_us…
fix(swe_agents): name the failure_kind of masked samples
fix(resources): name the failure kind on masked osworld and chemistry…
fix(swe_agents): name the failure_kind of masked samples (NVIDIA-NeMo…
fix(resources): name the failure kind on masked swe_atlas_qa, nemo_us…
fix(conversational_tool_use_simulation): name the failure kind of tra…
fix(opencode_search): name the failure kind of masked samples
test(conversational_tool_use_simulation): assert valid zero scores ca…
fix(conversational_tool_use_simulation): split masked failure kinds b…
test(rna_design,deepswe_external1): address review on masked failure …
fix: name the failure kind of masked samples (conversational_tool_use…
fix(rna_design,deepswe_external1): name the accurate failure kind of … (