Skip to content

feat(core): define completed verifier-result failure semantics #2608

Closed

Description

@waple0820

Priority

Wave 1 — additive completed-result schema. RL can fix existing mask handling in parallel.

Problem

BaseVerifyResponse has a reward and human-readable failure_reason, but no common way to report whether a completed result is policy evidence or to name a degradation consistently. Private mask fields force callers to understand agent-specific schemas.

Essential contract

class BaseVerifyResponse(BaseVerifyRequest):
    reward: float
    mask_sample: bool = False
    failure_kind: str | None = None
    failure_reason: str | None = None

The fields are orthogonal:

  • Valid wrong answer: real reward, including zero; mask_sample=False and no failure required.
  • Degraded but valid score: mask_sample=False with failure metadata.
  • Completed result that is not policy evidence: mask_sample=True with failure metadata.
  • No usable result: not a BaseVerifyResponse; use feat(core): define typed rollout outcomes and recovery #2135's no-result outcome.

Essential scope

  • Add the top-level fields with inert defaults.
  • Preserve valid-zero behavior explicitly.
  • Migrate a focused set of existing private producers or retain a bounded compatibility alias.
  • Report raw result coverage and clearly identified unmasked score coverage without hiding denominator changes.
  • Keep failure_kind extensible and warn on unknown names through feat(core): define a shared failure-kind registry #3179.

Deferred or excluded scope

Dependencies

#3179 supplies stable final names but does not block additive field development. #3180 depends on this completed-result distinction before producer migration.

Implementation candidate

#2611 should retain the additive schema, valid-zero tests, and generic coverage. Move run-level reconciliation to #2135 and avoid silently changing custom benchmark metric semantics.

Acceptance criteria

  • BaseVerifyResponse exposes the three orthogonal fields with inert defaults.
  • A valid reward-zero result remains unmasked policy evidence.
  • A degraded valid score can carry failure metadata without masking.
  • A no-result failure cannot be represented canonically as BaseVerifyResponse(reward=0.0).
  • Generic reporting distinguishes measured, masked, and unmasked coverage without hiding denominator changes.
  • Existing private fields have a documented compatibility and removal path.

Activity

  1. added
    community-request
    on Aug 19, 2026
  2. added
    waiting-on-maintainers
    on Aug 21, 2026
  3. added 3 commits that reference this issue on Aug 25, 2026
    d626da4
    e366377
    a2ff420
  4. removed
    waiting-on-maintainers
    on Aug 30, 2026
  5. added 2 commits that reference this issue on Aug 31, 2026
    7d18c98
    daddb88
  6. added
    waiting-on-maintainers
    on Sep 6, 2026
  7. added a commit that references this issue on Sep 6, 2026
    2206a82
  8. changed the title [-]feat(core): move mask_sample onto BaseVerifyResponse so any environment can report an infrastructure failure[/-] [+]feat(core): define completed verifier-result failure semantics[/+] on Sep 9, 2026
  9. added 2 commits that reference this issue on Sep 12, 2026
    71ec80f
    e5bfa60
  10. added 2 commits that reference this issue on Sep 15, 2026
    c087791
    d6d3120
  11. removed
    waiting-on-maintainers
    on Sep 17, 2026
  12. added a commit that references this issue on Sep 18, 2026
    cba9a98
  13. moved this from QA WIP to Done in NeMo Gym 0.7.0 - Oct 7on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

community-request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions