Expand description
AI Run snapshot.
Run stores one immutable execution attempt for a Task.
§How to use this object
- Create a
Runwhen Libra starts a new execution attempt. - Set the selected
Plan, optionalContextSnapshot, and runtimeEnvironmentbefore persistence. - Create a fresh
Runfor retries instead of mutating a prior run.
§How it works with other objects
Provenancerecords model/provider configuration for the run.ToolInvocation,RunEvent,PlanStepEvent,Evidence,PatchSet,Decision, andRunUsageall attach toRun.Decisionis the terminal verdict for a run.
§How Libra should call it
Libra should treat Run as the execution envelope and keep “active
run”, retries, and scheduling state in Libra. Execution progress,
metrics, and failures must be appended as event objects rather than
written back onto the run snapshot.
Structs§
- Environment
- Best-effort runtime environment capture for one
Run. - Run
- Immutable execution-attempt envelope.