TRIAL_ID from GET /api/jobs/{jobId}/trials:
200 Trial. See trial fields for status, rewards, exceptions, costs, and analysis. A missing or unavailable measurement can be null; do not replace it with zero.
Result routes
Saved files are the trial’s recorded outputs. Filesystem routes below inspect sandbox paths instead. See trial methods for result types and method equivalents.
Trace events and artifacts
Withoutstream, /trace returns parsed events. Its optional query fields are:
stream:
Do not combine parsed-event filters with raw-artifact selectors.
trajectory is reserved and currently returns not found; use trace-atif for the normalized trajectory.
200 response:
format=log, an absent log returns that JSON shape. A log withheld because it belongs to a retired retry attempt also includes reason. Agent-home text omits binary files; use format=tgz for their bytes.
Saved files and downloads
GET /files defaults to 200 entries, maximum 1000. Read a returned path through /files/{filePath}; URL-encode path segments. File reads accept a single HTTP byte range such as Range: bytes=0-1023; the end is inclusive.
Retry and regrade
Stop trials and analyses
Save selected ids instop.json:
stop.json
stopped, stopped_analyses, already_terminal, and not_found. An unavailable id, including a readable run you do not own, appears in not_found. See the stop result. This route does not accept task-check ids.
Filesystem and logs
The following route suffixes apply to three resource prefixes:
Set
RUN to a resolved prefix. For this trial:
FilesystemStatus response tells you the state and work_dir. Use that work directory or a path returned by a listing.
Filesystem inputs
Set
WORK_DIR from the status response:
captured before expecting to read every entry. Explicitly requesting an unavailable source returns 409 filesystem_state; reading an unretained file returns not_captured. A capture is not a full disk image.
Logs and events
stream accepts agent, verifier, system, setup, or metrics. Log pages default to 1000 lines, maximum 1000; continue with the returned next_cursor. System logs require system_log: true at job creation. Empty log results may include a reason.
/logs?stream=agent with /logs/events and use curl -N. Retain the last event id and send Last-Event-ID on reconnection. Filesystem events also accept after. These streams do not reconnect by themselves.
The filesystem reference and returned filesystem objects describe status, capture completeness, log pages, and process fields.
Errors
Unknown or inaccessible trials return404 trial_not_found. Bad filters or ranges are refused. 409 concurrent_update means an artifact changed during the read; read it again. 413 on agent-home JSON means use its tgz format.
Filesystem reads can return filesystem_state, not_captured, feature_unsupported, or provider_unreachable; inspect the code and details before retrying. See filesystem errors.
