Expand description
Concrete SQLite storage for run supervision state.
runs owns run lifecycle records and their attached notes and activity
events, evidence owns verdict and stage facts, and limits owns
cooldown and budget state. Scheduler state and shared ID counters stay on
RunStore because they apply across those families.
This module must never import the work-state sibling; run persistence is an independent boundary composed with work state by the daemon.
Structs§
- Active
Run - Admitted
Run - Cooldown
Record - Cooldown
Update - Event
Record - One row of the activity feed, ordered by
sequence. - Evidence
Record - One appended
run_evidencerow: a kind plus kind-specific JSON facts. - Output
Stall Evidence - Durable watchdog intent, recorded before the agent process group is killed.
- Panel
Report Record - One panel reviewer’s report, as the storage takes it. The seat’s key is separate from the report’s content because only the key is authoritative: it comes from the reviewer’s credential.
- Project
Commit Evidence - Project
Note - Recorded
Outcome - RunAdmission
- RunExit
- Facts about an agent exit at the checkpoint that returns the run to its driver.
- RunRecord
- RunStart
- Facts about a launched agent process, recorded when the run turns running.
- RunStore
- RunTimeline
- One run’s wall-clock boundaries, derived from the activity feed. Every field is optional because a run is observable at each stage of its life: claimed but not started, started but not finished.
- Stage
Record - One row of a run’s ordered stage-evidence log.
Enums§
- Exit
- Exit
Claim - Whether the caller won the
runningtodrivingtransition and with it ownership of the agent’s exit evidence and of the rest of the walk. - Exit
Denial - RunState
- Every value the
runs.statecolumn can hold. - Stage
Phase - Where in a stage execution a log row was written. An execution whose
result_checkruns an independent actor records both phases as two rows sharingstage_indexandattempt; every other execution is judged without a second process and records its action alone. - Start
- Start
Denial