nemo_gym.rollout_reverification
nemo_gym.rollout_reverification
Module Contents
Classes
Functions
Data
API
Bases: BaseNeMoGymCLIConfig
Bases: BaseModel
Call /aggregate_metrics on each resource server after rollouts complete.
Writes a single _aggregate_metrics.json with one entry per agent (same shape as the old _agent_metrics.json). Returns the file path.
Query GET /reverify_mode on each unique resource server referenced by agent_to_rs.
Returns a sorted list of RS names that reported ReverifyMode.UNSUPPORTED or ReverifyMode.UNKNOWN.
Check reverify_mode for every RS in the config before reverification starts.
Returns a warning string when the user runs full re-verification (not judge-failed-only) and force=True and at least one RS is UNSUPPORTED or UNKNOWN (caller must print it and apply the unsafe_ output prefix). Raises ConfigError when force=False and at least one RS is UNSUPPORTED or UNKNOWN. Returns None when all RS are STATELESS.
Whether a failures-sidecar row is a judge failure (the only recoverable class).
Load the full main jsonl (cached + newly re-verified successes), sorted by (task, rollout).
Returns (results, rows): results are the parsed rows — the source of truth used for both
the W&B rollouts export and the aggregate-metrics payload; rows is a minimal {AGENT_REF}
projection used only to route each result to its resources server. Read once and reused for both
so the file is never read twice.
Build the row filter for --judge-failed-only recovery.
Keeps only judge-class failures, skips any whose (task, rollout) key is in skip_keys (the keys
already present in the output: seeded successes + rows a prior recovery already appended) so a
key-in-both is never re-verified/duplicated and re-runs are idempotent — this dedup is done here,
independent of the resume/cache machinery — and dedups on the key so a sidecar with multiple failure
attempts for one key re-verifies it exactly once.
Copy the already-successful rollout rows into the output file so the final aggregate covers successes + recovered rows, and return the set of (task, rollout) keys ALREADY PRESENT in the output afterward