Skip to content

fix: complete failure metadata on existing masked results #4882

Open

Description

@yuhezhang-ai

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_kind and a bounded, useful failure_reason for 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:

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.

Activity

  1. self-assigned this
    on Oct 21, 2026
  2. changed the title [-]fix: complete failure metadata on existing masked results[/-] [+]fix: audit failure reporting and complete masked-result metadata[/+] on Oct 21, 2026
  3. changed the title [-]fix: audit failure reporting and complete masked-result metadata[/-] [+]fix: complete failure metadata on existing masked results[/+] on Oct 21, 2026
  4. yuhezhang-ai commented on Oct 30, 2026

    @yuhezhang-ai
    ContributorAuthor

    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.

    Component PR failure_kind added
    osworld (resources server) #5223 verifier_error, session_lost
    chemcotbench #5223 verifier_error; disabled MolOpt scoring is chemcotbench:scoring_disabled, not an error
    chemreason_bench #5223 chemreason_bench:invalid_task for malformed rows
    swe_atlas_qa #5315 session_lost, judge_failed, verifier_error
    nemo_user_sim #5315 usersim:simulation_failed when the simulator reports no failure_class
    gdpval #5315 gdpval:judging_disabled: judging is turned off on purpose, so it isn't reported as a judge failure
    swe_agents #5342 agent_limit, model_context_limit, agent_timeout, provider_unavailable, provider_oom_killed, swe_agents:eval_timeout

    Still open:

    • conversational_tool_use_simulation: one mask covers both judge verdicts and failed simulator calls, so it needs splitting before it can get kinds.
    • anyswe_agent, anyterminal_agent, osworld_agent: open PRs are changing these files, so they come after those land.
    • Token capture (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions