Skip to main content

record_run

Function record_run 

Source
pub fn record_run(outcome: RunOutcome)
Expand description

A supervised run reached a terminal disposition.

Also increments the frozen agent_runs_total{status} (RFC 0016 §4.3) under a coarse status projection of the three RunOutcome variants this call site carries (completed / crashed / cancelled). The precise RFC 0007 §3.4 terminal-status string is available at the loop boundary but not at this supervisor hook — see record_run_status and the integration caveat: an integrator with the TerminalStatus in hand should call that instead for the full closed-vocabulary label domain.