nemo_gym.trajectory.trajectory_format
nemo_gym.trajectory.trajectory_format
Versioned trajectory wire formats and their deliberately lossy v1 projection.
Module Contents
Functions
Data
API
Restore v1’s native request namespace only with an explicit, collision-free mapping.
Model-call payloads and text are independent evidence and are never rewritten. All reference values are collected before any edit so chained mappings cannot cascade.
Keep canonical timing separate from the old flat compatibility projection.
Return the unversioned observation envelope accepted by existing readers.
Project only qualified intervals, keeping unknown values unknown.
Export both retained envelopes with one atomic, conservative identity decision.
Return v1, losing attempt, instance, parent, failure and detailed timing provenance.
This does not establish that v1 consumers can represent retries: consumers that need those identities must migrate to v2. No endpoints or durations are manufactured.
Do not silently discard meaningful v2 evidence mislabeled as a v1 wire record.
Validate the shared serialized failure-event map without constructing exceptions.