nemo_gym.rollouts.rollout_outcomes
nemo_gym.rollouts.rollout_outcomes
Shared failure record for evaluation collectors and other run owners.
Module Contents
Classes
Data
API
Bases: ValueError
An agent returned a body that cannot represent a completed result.
Bases: BaseModel
Associate one observed failure with a run and an episode attempt.
source identifies who reported the failure, not where it happened: collector is rollout collection
recording what it observed, and the failure’s own events carry the causal FailureBoundary (a collector
record can name a model, agent or collection boundary). delivery describes the
collector’s evidence about delivery to the Environment Server: not_sent
requires evidence that the request was not sent, possibly_delivered covers
an uncertain outcome, and delivered means delivery was established. It
does not promise exactly-once execution or authorize transport replay. A
failure reported by the Environment Server requires delivery="delivered".
The nested failure uses the wire contract, not a second set of reason/stage fields. Protocol-specific diagnostics, partial responses, and training data belong outside this record. No reward is inferred from a failure. Persistence, conversion from legacy markers, and retry budgets belong to the caller.
schema_version identifies the entire saved record, including nested
contracts. Missing versions are treated as version 1 for pre-version records.
Changes that older readers cannot parse (including added fields) require a
version bump. Readers reject unsupported versions and unknown fields; callers
must report an incompatible record or explicitly migrate it, never silently
drop fields or reinterpret it as a completed rollout.
Route unclassified failures without inventing a canonical failure kind.
Require established delivery for failures reported by the environment.
Bases: InvalidRolloutResult
A response from another attempt may be transient after a transport retry.