nemo_gym.atif_reverification
nemo_gym.atif_reverification
Strict ATIF projection for external rollout reverification.
The adapter validates a deliberately bounded canonical ATIF v1.7 subset, joins each trajectory to an explicit materialized Gym task, and constructs the Responses-shaped payload used by Gym’s existing stateless verifier path.
Provider-native payloads and producer-private status records carried in
extra are producer evidence, not part of the ATIF interchange contract.
Exporters own their projection into the canonical fields consumed here.
Module Contents
Classes
Functions
Data
API
Bases: ConfigError
Raised when an ATIF trajectory cannot be projected without changing what is scored.
Bases: BaseModel
Explicit join between one external trajectory and one Gym rollout.
A validated trajectory together with immutable source provenance.
Verifier payload plus provenance that must survive result persistence.
projection_status="complete" means Gym built the bounded scoring payload
without guessing or dropping a field this adapter maps. It does not claim a
full-fidelity conversion of the ATIF document or producer metadata in
extra; the source hashes preserve that provenance.
Project both standard ATIF content and Relay’s structured result extension.
Aggregate optional Relay token details without turning unknown values into zero.
Hash semantic ATIF content without ignored producer metadata.
Provider payloads and status records carried in extra do not affect the
projected verifier response. Exclude them from the content identity so
they cannot perturb generated response or item IDs when trajectory_id
is absent. Retain the few extension fields that this adapter consumes.
Project one complete text-only ATIF v1.7 trajectory into a Gym response.
Replace a materialized task’s native response with its ATIF projection.
The materialized task remains authoritative for the system/user input, verifier metadata, agent routing, and rollout correlation. ATIF contributes only the response produced by the external agent.
Index materialized tasks without guessing identity from row order.
Load an explicit trajectory-to-rollout manifest from JSONL.
Read and validate one ATIF document without involving the Relay runtime.
Project a one-to-one manifest while rejecting ambiguous batch joins.
Resolve one manifest entry without relying on filenames or session IDs.