#[non_exhaustive]pub enum Status {
Completed,
MaxTurns,
ModelError,
Error,
Cancelled,
}Expand description
The terminal state of a run. Serializes to the exact strings in ADR-0009.
Envelope evolution policy at schema_version: 1 (ADR-0018): additions
— new status values, new optional record/report fields — are
non-breaking and do not bump schema_version; renames and removals
are breaking and would. JSON consumers should therefore treat an
unrecognized status string as “unknown terminal state”, not a parse
error; Rust consumers get the same discipline from #[non_exhaustive]
(match with a wildcard arm — locode-exec maps unknown statuses to
exit 1).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Completed
The model finished with a text answer and no further tool calls.
MaxTurns
The max-turns ceiling was hit.
ModelError
A provider/network error after bounded retry.
Error
A fatal (Tool/host) error aborted the run.
Cancelled
The run was cancelled through the session’s cancel handle (Esc, a SIGTERM-driven timeout, …) — a structured terminal state, distinct from failure (ADR-0018): partial work is preserved and the report is still emitted.