Repository navigation
Description
Priority
Wave 2 — producer migration, with an independent diagnostic-only slice. Inventory, tests, and missing failure metadata on existing result types can proceed from main now. Changes to canonical result types or recovery behavior remain gated on the relevant #2135 caller/collector support.
Problem
Several judge and agent paths still represent infrastructure failure as a successful-looking Responses object or BaseVerifyResponse(reward=0.0). Direct callers can mistake a no-result infrastructure failure for a valid wrong answer.
Work breakdown
- fix: complete failure metadata on existing masked results #4882 — complete failure metadata on existing masked results (immediate priority). Address missing
failure_kind/failure_reasonwhile preserving reward, mask, result type, and recovery behavior. Can start from main and land independently of feat(eval): persist failures and resume unfinished evaluations #3302 or the broader audit. - tracking: audit reward-zero and fake-success failure producers #4883 — audit reward-zero and fake-success failure producers (separate follow-up). Audit the original refactor(core): replace reward-zero failure sentinels with typed outcomes #3180 problem across all relevant environments and result paths, including those without existing issues. Record coverage and create/link focused migration tickets for uncovered behavioral gaps. The audit itself can start from main, but it does not block fix: complete failure metadata on existing masked results #4882.
- fix(terminal-bench): distinguish verifier infrastructure failures from zero scores #4571 — Terminal-Bench verifier infrastructure failures. Existing issue attached as a sub-issue. Select and test the benchmark's result semantics, including replay and score coverage; identify any required caller support before changing the result type.
Related existing implementation issues:
- [NVBug 6900615] Mask indian_banking episodes ended by a failed user simulator #4533 — Indian Banking simulator failures: failure propagation through the Gymnasium path and treatment of partial scores.
- [NVBug 6899706] Handle malformed tool-call JSON in /v1/messages and flag failed Claude Code runs #4529 — Claude Code failed-run reporting: the failed-run reporting part overlaps this migration; its malformed-tool-call conversion work remains in that issue.
#4533 and #4529 retain their existing parent, #4482, and are cross-linked here rather than duplicated or reparented. Additional producer-specific issues should be opened only for uncovered behavior changes found by the inventory.
Training's include/exclude policy is coordinated separately in NVIDIA-NeMo/RL#4061. A failure name describes what happened; it is not a universal rule for participation in advantage statistics.
Migration rule
- No usable result exists → emit feat(core): define typed rollout outcomes and recovery #2135's rewardless failure outcome.
- A complete result exists but its reward is not policy evidence → return feat(core): define completed verifier-result failure semantics #2608's completed result with
mask_sample=True. - A valid wrong answer exists → return the ordinary completed result and real reward, including zero.
Essential scope
- Inventory every synthetic reward-zero failure and minimal fake Responses producer.
- Complete the repository-wide reward-zero/fake-success inventory in tracking: audit reward-zero and fake-success failure producers #4883; distinguish valid wrong-answer zeros from absent or unusable scores.
- Complete missing diagnostics on existing masked results in fix: complete failure metadata on existing masked results #4882 as a separate focused fix.
- Migrate
judge_failsafe, remote-agent paths, Stirrup, PinchBench, and other identified producers according to the rule above. - Preserve a private explicit compatibility conversion only at caller boundaries that still require the legacy row shape.
- Centralize any legacy constants still needed during migration.
- Decide judge received-but-unparseable semantics explicitly per producer.
- Document the condition for deleting compatibility output.
Deferred or excluded scope
- Defining the canonical failure record, owned by feat(core): define typed rollout outcomes and recovery #2135.
- Defining completed-result fields, owned by feat(core): define completed verifier-result failure semantics #2608.
- A permanent public legacy adapter layer; closed refactor(core): isolate legacy failure-row compatibility adapters #2249 was folded into this migration and feat(core): define typed rollout outcomes and recovery #2135.
- Duplicate cross-process serialization matrices already covered by the shared contracts.
Dependencies
- Landed: feat(core): define a shared failure-kind registry #3179 / feat(core): define the shared failure-kind vocabulary #3213 provide the shared failure vocabulary; feat(core): define completed verifier-result failure semantics #2608 / feat(core): report infrastructure failure from verify, not just a reward #2611 provide completed-result fields.
- Landed: feat(core): align episode and rollout failure contracts #3877 extracted the shared
EpisodeFailure/RolloutFailurecontract from feat(eval): persist failures and resume unfinished evaluations #3302 for feat(core): define typed rollout outcomes and recovery #2135. - Remaining integration: feat(eval): persist failures and resume unfinished evaluations #3302 implements persistence, bounded attempts, evaluation resume, and coverage under feat(core): define typed rollout outcomes and recovery #2135. Canonical producer migrations must identify the specific caller/collector support they require and merge that support first. The presence of the shared type alone does not prove that every consumer is ready.
- Independent work: fix: complete failure metadata on existing masked results #4882 preserves existing result and recovery behavior, so it does not require the entire feat(eval): persist failures and resume unfinished evaluations #3302 stack. Inventory and focused tests can also proceed before a behavior-changing migration is ready.
- Per-producer decisions: preserve valid zero scores; distinguish an unavailable score, intentional scoring disablement, and a valid score with unusable training tokens. Do not infer training participation solely from a nonempty or missing
failure_kind.
Acceptance criteria
- Repository-wide reward-zero/fake-success audit coverage is recorded in tracking: audit reward-zero and fake-success failure producers #4883, including environments with no previous issue; all uncovered gaps have a disposition and linked follow-up.
- Audited known-failure paths report shared diagnostics; intentional or ambiguous masking cases have an explicit disposition or linked follow-up.
- No canonical no-result failure is represented as reward-zero success.
- Valid wrong answers remain completed results with their real rewards.
- Completed unusable results use feat(core): define completed verifier-result failure semantics #2608 masking semantics.
- Judge transport, judge parsing, and agent infrastructure failures have explicit tested semantics.
- Compatibility conversion is explicit, private to supported boundaries, and has a removal condition.
- Every known legacy producer is migrated or documented with a bounded compatibility period.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDev Todo
- StatusShow more project fieldsDev Todo
Activity