Skip to content

refactor(core): replace reward-zero failure sentinels with typed outcomes #3180

Open
0 of 3 issues completed

Description

@ananthsub

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

Related existing implementation issues:

#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

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

Dependencies

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

Sub-issues

0 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions