Rollout Health Checks
Rollout health checks verify the integrity and observability of completed evaluation artifacts. They detect unreadable records, missing agent activity, failed or incomplete policy-model calls, inconsistent token counts, and failures repeated across every attempt at a task.
Health checks do not evaluate whether an answer is correct. The verifier and reward determine task success; rollout quality determines whether the saved evidence is complete and internally consistent enough to trust and investigate the result.
Run health vs rollout quality
Two different things are called health, and they answer different questions.
Run health is the accounting of the rollouts the run owed. It is run.artifacts.healthy in quality_summary.json, with its causes in unhealthy_reasons. A run is unhealthy when no rollout was expected, when none completed, when rollouts are missing or not started, when records share a rollout identity, or when failed rollouts reach a configured limit. A failed rollout is an expected rollout whose selected record is a failure row. The count does not look at the cause, so a failure the model caused counts like an infrastructure fault: a model policy timeout settled as a counted zero is both a scored zero and a failure row, and so is an agent deadline that kept its answer. A failure is final when it cannot be retried (a terminal failure, a settled zero or a saved answer) or when its attempts reached the retry cap; every other failure is not final. The only run-level check, run_excessive_failures, compares the final and the not-final failures, each as a share of the expected rollouts, against max_final_failure_fraction and max_not_final_failure_fraction, and fails a group whose share reaches its limit. Both limits are unset by default, so without a limit failures alone do not make a run unhealthy. Wrong answers and incomplete responses saved as completed results are not failure rows. Run health does not decide acceptance: that is the recovery gate’s status and the evaluation-health status in --recover --inspect, which also need traceable grading evidence, and a healthy run with every rollout measured can still be UNVERIFIED.
Rollout quality is the per-rollout verdict (healthy, unhealthy, unobserved) in run.verdicts and rollout_verdicts.jsonl, with the findings behind it and the task-level flags such as task_consistently_unhealthy and task_no_successful_model_calls. These are signals about how trustworthy each measurement is. They do not depend on the reward, do not depend on run health and do not fail the run. Read them to decide whether a score means what it appears to mean.
For example, suppose a benchmark saves each context-length rejection before the model’s first answer as a completed zero, with no missing or duplicate rollouts. Run health can be true while complete captured-call evidence produces rollout_ended_on_failed_model_call. task_no_successful_model_calls appears only when every repeat has complete turn-to-call bindings and no successful bound call; otherwise that task check is unobserved. An overflow after an earlier successful answer in the same conversation is not an ended-on-failed-call finding. Read the flags and the served context window when interpreting the score.
This page follows Gym’s definitions of task, rollout or trajectory, agent harness, and policy model. Health-specific terms such as finding, verdict, and bound policy-model call are defined below where they are used.
Health verification is read-only with respect to collection outputs. It does not modify rollout records, rewards, aggregate metrics, model servers, or agent behavior. It writes two additional report files next to the evaluation artifacts.
When Health Checks Run
For runs with a recovery manifest, health checks inspect only the selected completed attempts. Older successes superseded by another attempt do not count as additional samples, even if the newer attempt failed or has no saved outcome. Checks read the selected records from their original files without requiring an exported projection. Run-level failure and timeout accounting still includes the source history. This applies to standalone checks, automatic checks, multi-shard aggregation and file symlinks. Loose files and explicitly supplied failure sidecars remain available for line-by-line diagnostics.
gym eval run runs health checks after rollout collection and aggregate-metrics computation. gym eval aggregate runs health checks
after aggregating the selected shards. Both commands print a short report:
If gym eval run uses --disable-aggregation, it also defers health verification. Run gym eval aggregate over the completed
shards to produce the combined health report.
To check an existing run directly, use:
The standalone command reads results/my-run/rollouts.jsonl by default. Select a
different file explicitly when the rollout filename is nonstandard:
A relative --rollouts-file path resolves under the run directory. An absolute path is used as written. Reports from the
standalone command are always written in the run directory.
When gym eval aggregate merges shards into rollouts.jsonl, it lists them in rollouts_sources.json, and the check
reads those shards with the failure sidecars and materialized inputs beside them, as the aggregation did: the merged
file has none of its own. A single run merged onto itself needs no list, and drops one an earlier aggregation into it left. A run that writes to the merged file, such as a resumed gym eval run, drops the list with the first row it writes; one that writes none, such as a resume with nothing left to run, keeps it. The check fails if a shard is gone, or if a
shard or the merged file changed since the aggregation; rerun gym eval aggregate then. A --rollouts-file path is
checked alone, without the list, so a merged file with another name is checked without its shards’ failures and
inventories: recheck its shards one by one instead.
Refer to the gym eval CLI reference for all flags.
Required Evidence
Health checks read each rollout record and its standard ng_trajectory attachment. ng_trajectory combines the agent turns,
model-call evidence, explicit model-call references, and observation gaps produced during collection. Refer to the
rollout-evidence guide for the complete source and projection model, the
harness conformance results for measured harness conformance and
model-call capture for collection configuration.
The integrity checks do not reopen raw model-call capture files, inspect ng_model_call_capture, or reconstruct turns from an
agent-specific response. The timeout statistics are separate: their time split reads each row’s ng_model_call_capture, and
the capture file of a rollout that failed without a row when collection supplies its capture dir or a recheck passes
--model-call-capture-dir. A custom rollout driver receives the same behavior as a built-in driver: checks run when it writes a
valid ng_trajectory, and checks that need missing evidence are unobserved.
This single-source rule makes the integrity verdicts reproducible after capture files move and prevents two observability
representations from disagreeing. Moving or omitting the capture files can change only run.stats.timeouts.time_split. Rollouts collected before ng_trajectory was introduced can still be parsed, but trajectory-dependent checks
are unobserved instead of being evaluated from inferred historical formats.
Findings and Verdicts
A finding is evidence emitted by one check. Checks do not emit verdicts. After all enabled rollout-level checks run, the runner derives one verdict for each rollout using this priority:
healthy is therefore a strong claim about all enabled checks, not merely the checks that happened to be computable. A rollout
can be correct according to its reward and still be unhealthy, or incorrect according to its reward and healthy.
Task-level checks add flags to the task summary after rollout verdicts are derived. Tasks do not receive a separate verdict.
The run-level check run_excessive_failures reads the run accounting in run.artifacts; its findings make run.artifacts.healthy false and add an unhealthy_reasons entry. Ignoring it keeps the counts and leaves the verdict to the other run accounting.
Check Catalog
Check IDs identify both the evidence being evaluated and the condition detected. Rollout-level checks create findings in
rollout_verdicts.jsonl; task-level checks create flags in quality_summary.json.
What Counts as Agent Activity
The turn checks read ng_trajectory.turns. Non-empty answer text, reasoning content, or a tool call counts as agent activity.
Reasoning-only turns are not hollow. A model-call reference also establishes activity for rollout_missing_agent_turns, although
agent_turn_hollow still requires content or a tool call in the turn itself.
Agent logic that advances a rollout without calling the policy model has no bound model call and is outside model-call checks. The runner does not infer a special dispatch marker from sampling parameters or request metadata.
Binding Policy-Model Calls
An evaluation can contain calls to the policy model and to auxiliary models such as a judge or user simulator. Model-call checks must therefore establish which calls belong to the policy model before evaluating them.
The per-call checks bind both TrajectoryTurn.model_calls and AgentInvocation.model_calls to
TrajectoryRecord.model_calls using only one of these explicit identities:
model_call_id- the exact pair of
model_refandresponse_id
It does not match calls by list position, timestamp, model name, or payload similarity. A reference that resolves exactly once becomes a bound policy-model call. When the same call is referenced by both a turn and its containing invocation, the call is evaluated once. Unreferenced model calls are not assigned to the policy model because they can belong to an auxiliary model.
rollout_ended_on_failed_model_call is the exception: it reads the captured calls directly, so it still applies to a rollout whose producer published no trajectory at all.
The per-call checks are model_call_missing_token_counts, model_call_runaway_generation,
model_call_zero_completion_tokens, and trajectory_capture_mismatch. Invocation ownership is sufficient for these checks
because each evaluates one call or one explicit reference independently.
rollout_token_count_mismatch compares top-level response usage against all explicitly invocation- or turn-owned policy calls,
including compaction summaries that have no policy turn. A call referenced by both scopes contributes once; unowned calls are
excluded. Missing or ambiguous references, or missing usage, make the comparison unobserved rather than treating unknown tokens
as zero. Response usage must cover the same invocation tree, including child sessions.
Response usage counts the tokens reported by model responses that finished. A failed call that returned no finished response contributes nothing to either side of the comparison, so a rollout whose every call was rejected reports usage of zero, not missing usage. Missing usage means a finished response’s usage was lost, and only that makes the comparison unobserved.
task_no_successful_model_calls remains turn-bound: an invocation-only support or compaction call must not establish a
successful task turn. Structural turn checks are unchanged.
The producer gap turn_model_call_scope_incomplete continues to conservatively gate both aggregate checks for compatibility
with existing producers. A producer that only lacks policy-turn placement for an otherwise exactly owned compaction call need
not mark the invocation’s usage scope incomplete. Checks on recorded turn content and individually owned model calls still
evaluate; the gap does not suppress evidence of failed calls or hollow turns.
The conservative binding rule avoids attributing a judge or user-simulator failure to the evaluated model. Its trade-off is coverage: when a trajectory producer does not write explicit turn or invocation references, binding-dependent checks are unobserved even if the trajectory contains an unowned list of model calls.
Length-Limited and Repetition-Stopped Responses
model_call_runaway_generation needs one provider-independent definition of a response the agent can act on. The check
looks for output text, a message with text or a refusal, or a tool call, in OpenAI Responses, Chat Completions and
Messages-style responses. Reasoning alone, encrypted or summarized, is not something to act on: a call that reasoned until its
output limit without an answer or a tool call is a runaway generation, even when a later call recovers.
A provider’s explicit repetition_detected stop or repetition finish reason is also a runaway generation and a faulted model response, even when
partial answer text or a tool call was saved. The response keeps that output and usage for inspection. Chat Completions
stop reasons are preserved as native_stop_reason on the converted Responses reply. The provider’s repetition finish
reason is represented by the SDK-compatible stop value while retaining native_finish_reason: repetition through
streaming, capture and conversion. This does not enable a repetition detector or change its settings. The provider’s
completion status and agent-visible output stay unchanged.
Consumers that require a complete judge verdict must also check these native repetition signals. The SDK-compatible
stop category alone does not establish that a repetition-stopped answer or verdict is finished.
How Health Checks Interpret Existing Observation Gaps
During rollout collection, Gym’s observability layer writes an ObservationGap to ng_trajectory.gaps when it cannot collect,
normalize, or correlate evidence exactly. The health runner does not create these gaps. It maps each persisted gap code to health
behavior according to the evidence required by a check. A recorded gap is not automatically a health finding.
For runaway detection, a missing response on a length-limited call keeps that call unobserved without hiding conclusive findings on other bound calls. A length limit alone does not establish that unseen output lacked an answer or tool call.
Other gap codes affect health only when a check defines an explicit rule for them. The original gap details remain in
ng_trajectory.gaps; rollout_verdicts.jsonl records only the IDs of checks that were unobserved.
This distinction keeps absent evidence separate from contradictory evidence: missing input reduces coverage, while an explicit conflict produces a finding.
Task-Level Reduction
task_consistently_unhealthy considers a repeat computable when its rollout verdict is healthy or unhealthy. It requires at
least two computable repeats and flags the task when all of them are unhealthy. An additional unobserved repeat does not erase
the repeated observed failures.
task_no_successful_model_calls requires complete turn-to-model-call bindings for every repeat. If any repeat lacks complete
turn bindings, the task check is unobserved. Invocation-only support calls do not satisfy this task-level check. This prevents the
runner from claiming that a task had no successful trajectory call when an unobserved repeat might contain one.
Duplicate persisted records are kept in the per-rollout report and counted at run level, but records with the same task and rollout indices count as one repeat during task-level reduction. This prevents copied records from appearing to be independent attempts.
Report Files
Health verification writes two files without changing the selected rollout JSONL or aggregate-metrics file.
quality_summary.json
The summary contains run-level verdict counts, findings, check coverage, raw artifact statistics, and per-task counts and flags. This abridged example omits the other check-coverage entries and zero-valued issue entries:
run.issues counts individual findings, not distinct affected rollouts or tasks. It contains every registered check ID, including
IDs whose count is zero. run.artifacts.coverage reports how often each check was evaluated, unobserved, or explicitly ignored.
run.rollouts names the rollout file(s) the report was computed from, relative to the report’s own folder (the shards, for a
file gym eval aggregate merged). The two reports keep one name per folder whatever the rollout file is called, so this says
whose they are when several runs write to one folder; the Harbor run summary links a report only when it names that run’s file.
run.artifacts.captures counts rollout trajectories that contain model-call evidence; the integrity checks do not count or
reopen raw capture files. Raw statistics under run.stats describe all model calls stored in ng_trajectory, including
unreferenced auxiliary calls, except run.stats.timeouts, whose time split reads the captured calls themselves. Checks with a policy-model subject evaluate only exactly bound calls.
model_call_errors.ended_on_error counts rollouts that rollout_ended_on_failed_model_call would flag. It leaves out a
rollout whose model-call capture gaps leave that check unobserved, and one that ended on a context-length overflow after
the model answered in the same conversation.
model_call_errors.usage_unknown counts failed calls that returned no finished response and carry no token counts. The
token checks skip these calls, so any tokens the server spent on them before a cancellation or timeout are counted only here,
as a number of calls.
run.artifacts also counts the run against its <output stem>_materialized_inputs.jsonl inventory:
state: whether the health check observed the run.observedmeans it read the rollouts and the inventory.unavailablemeans an input it needs is missing: there is no inventory, or the run stopped before its rollouts were read.disabledmeans--no-health-check(disable_health_check) is set.state_reasonsays why when the state is notobserved.expected: rollouts in the inventory.completed: expected rollouts with a saved result. Without an inventory, every rollout with a saved result.scored: completed rollouts with a numeric reward that are not masked, asmeasuredin the run’s coverage report. A failure that a policy settles as a scored zero counts infailed, not here. Null when the rollouts were not read and the run has no manifest.failed: selected failures from the run manifest and saved history, astotal,final,not_finalandby_class. Intentional omissions are excluded; exhausted retry budgets count as final. For legacy runs without a manifest, this uses the last sidecar failure for each rollout that did not later land.finalfailures are ones a resume does not retry;not_finalones are still retryable. The split is by retry eligibility only and does not say whether the model or the infrastructure caused a failure. Null when there is no sidecar.missing: for a run with a manifest, reserved executions with no outcome. Legacy runs use owed rollouts with neither a record nor a failure row.not_started: tasks with no reserved execution in a managed run.omitted: intentional omissions in a managed run; these do not count toward failure limits.healthy: true only whenstateisobservedand the run has no reason to be unhealthy. It is false when no expected rollout completed, a rollout is missing or not started, two records share a rollout identity, or the final or non-final failures reach a configured limit as a share ofexpected. The failure limits are unset by default, so failures are counted but do not make the run unhealthy until a limit is set; a run with 8 expected rollouts and 8 failures is still unhealthy, because none of them completed.unhealthy_reasonsnames each cause.limits: the limits the run was judged by (max_not_final_failure_fraction,max_final_failure_fraction, null for no limit) and, insource, where each limit came from:configfor the run’s own settings,persistedwhengym eval health-checkreused it,overridewhen its own limit flag replaced it. A flag value ofnoneremoves the limit, recorded as null withoverride.
expected, missing and healthy are null without an inventory, and state is unavailable. After collection starts, the summary is also written when collection fails or Slurm stops the job with SIGTERM. When the check is disabled, the summary still exists: it has the state and state_reason, null counts and a null healthy, and no rollout_verdicts.jsonl. A check that cannot run (for example, a history with superseded outcomes and no merged projection, or a check that raises) writes no summary; read a missing summary as unavailable. The built-in collector retains its run lock through reporting. A refused resume does not remove or replace reports from the saved run.
Timeouts
run.stats.timeouts counts the rollouts that ran out of time. It reads each rollout’s final record: its row in the
rollout file, or the last failure row of a rollout that never landed. For a run with a manifest, that failure is
the attempt the run history selects. gym eval health-check recomputes it from the
same files, and from the run’s model-call captures when given --model-call-capture-dir (see time_split). A
recheck of a directory gym eval aggregate merged shards into reads the shards listed in rollouts_sources.json,
with their failure rows, so it counts the same timeouts as the aggregation; a --rollouts-file path is counted alone.
It is a report only and changes no score or verdict.
Scope of this section:
- Coverage is partial. Only the components listed below record timeout evidence. A rollout stopped by any other
limit, or by a component that records none of these fields, is counted in
failed_without_signalif it failed, and not at all if it landed. - It counts final outcomes. A rollout that timed out and then landed on a retry counts by its landed row, so the earlier timed-out attempt is not counted.
- Saved observability that keeps every failure event of a rollout, including attempts followed by a successful retry, is follow-up work. These counts report final outcomes only and do not need to match it.
A rollout counts as timed out on one of two kinds of evidence:
-
typed: a timeout record in the row’stimeoutslist. The component that enforces a limit attaches it to the row; the operation records inng_trajectoryhave no field for it. Each record hasevent_id,limit,enforcer,evidence(internalorexternal),configured_s,elapsed_sandfired_at. A record listed twice counts once by itsevent_id. An entry that is not a valid record is not evidence and is counted ininvalid_events. A typed record wins over a legacy signal. -
legacy: a field that a Gym component sets today when its own deadline fires.by_limitnames it:
How long a rollout took never makes it count as timed out. A failed rollout with no evidence is counted in
failed_without_signal: it is not known to be a timeout, and not known not to be.
elapsed_s is the /run wall clock that gym eval run stamps on each row as _ng_elapsed_s. time_split shows
where the time of the timed-out rollouts went. It covers the timed-out rollouts that have both that stamp and a whole
capture of their model calls. A rollout that failed without a row has no capture on it, so the check reads its capture
file from the run’s capture dir: collection passes its model_call_capture_dir, a recheck needs
--model-call-capture-dir and without it warns when the run has failed rollouts and timed-out rollouts left out of the
split, and gym eval aggregate does not read capture files yet. A capture with a write still pending, a failed write
or an unreadable record leaves its rollout out. Each share is the time spent in one kind of call over their summed
elapsed time: policy-model calls, other models’ calls (a judge or a user simulator) and tool calls. untracked is the time in which none of these calls ran, such as setup or verification.
Overlapping calls count once, also across kinds for untracked, so the shares can add up to more than the rest when,
for example, a tool calls the policy model. A rollout’s busy time is capped at its elapsed time. A share is null when
one of those rollouts does not measure that kind of time: a call without timing or one that ends before it starts,
calls of which one reports only its duration and so cannot be placed against the others, or a trajectory without
tool timing. Collection marks a row whose agent sent no valid trajectory or observations with a
tool_timing_unavailable gap, so its tool time is unknown rather than zero; so does an agent_artifact_unavailable
gap, which an agent reports when it could not read its own transcript. policy_output_tokens_per_s is end to end, so
it includes queue and prefill time, and a call that produced no output counts at zero.
When an exporter is configured, gym eval run and gym eval aggregate also send this section’s numbers as flat keys,
such as health/timeouts/timed_out and health/timeouts/by_evidence/typed. A null value is not sent. A limit or
enforcer that only an earlier failed attempt named is sent as 0, so a resumed tracking run does not keep its old
count. A failed export is logged and does not stop the run.
A run stopped by SIGTERM gets a provisional summary: the run accounting in run.artifacts, with partial: true, state: unavailable, and no run.verdicts or rollout_verdicts.jsonl. It evaluates only run_excessive_failures, which needs no rollouts, and lists every other check in run.artifacts.not_evaluated. Its healthy is false when the accounting already has a reason and null otherwise. Run gym eval health-check on the run directory for the full summary; it judges the run by the limits the provisional summary recorded. A SIGTERM-stopped run exits with status 143. An interactive interruption with require_complete enabled reports EVAL FAILED.
rollout_verdicts.jsonl
The per-rollout report contains one row for every non-empty input line and is sorted by _ng_task_index and
_ng_rollout_index:
Each finding contains a stable check ID, an optional locator for the affected turn or model call, and check-specific detail. The
file stores each displayed object on one JSONL line. unobserved lists enabled rollout-level checks that lacked required
evidence. Ignored checks are recorded only in quality_summary.json, so consumers must read the summary before interpreting
verdicts produced with a reduced check set.
If a rollout line is unreadable, its real identity is unavailable. The report assigns a synthetic _ng_task_index such as
__unreadable_record__:input-0:line-42, uses _ng_rollout_index: 0, and records the source file and physical line in the finding
locator. Other checks are unobserved for that line.
Selecting or Disabling Checks
All registered checks are enabled by default. To skip health verification entirely after a run or aggregation:
gym eval run --no-health-check then writes a quality_summary.json with run.artifacts.state: disabled and a
null healthy, so a reader can tell a disabled check from a run that the check found healthy. gym eval aggregate --no-health-check writes no summary.
To exclude specific checks from one automatic run:
For the standalone command, use --ignore-checks or its --ignore alias:
An ignored check does not execute and does not affect findings, unobserved states, rollout verdicts, or task flags. Unknown check
IDs are rejected; model_call_failed is accepted as an alias for rollout_ended_on_failed_model_call. The summary records ignored IDs and coverage so a reduced check set is explicit.
Ignoring a check weakens the meaning of a rollout’s healthy verdict. Use it for a deliberate compatibility or observability investigation, and
compare reports only when they use the same enabled check set.
Execution and Failure Handling
The runner indexes non-empty JSONL lines by byte offset, then processes each line independently in a process pool. It uses at most
eight workers by default, bounded by the available CPU count. --workers and --health-check-workers set an explicit limit.
No Ray runtime is required.
If the platform cannot create or execute the process pool, the runner warns and evaluates the same records serially. If one check
raises unexpectedly, check_execution_error records the defect, the affected check becomes unobserved, and other checks continue.
An unreadable record also receives a report row instead of aborting the run.
These choices favor completing verification and preserving evidence over failing after rollout collection and aggregate metrics have already completed. The report makes degraded execution and missing evidence visible rather than silently treating them as healthy.
Implementation Reference
TrajectoryRecord,TrajectoryTurn,AgentInvocation,ObservationGap, andModelCallRefdefine the standard evidence consumed by health checks.CheckSpec,Finding, andRolloutDigestdefine the health data contracts.- The check registry defines the stable check IDs and per-rollout rules.
- The rollout-health runner derives verdicts and writes reports.