Module log

Module log 

Source

Modules§

schema 🔒

Structs§

LauncherSagaLog
SQLite-backed launcher saga log. Owned by SagaCoordinator as Arc<LauncherSagaLog> once PR LSD-2 wires it; PR LSD-1 only constructs and tests it in isolation.
SagaSummary
Operator-facing snapshot of a recent saga, for --diag sagas. Returned by snapshot_recent. Sorted most-recent-first by COALESCE(ended_at, started_at).
UnresolvedLauncherSaga
A saga in running, compensating, or failed state at startup. Returned by unresolved_sagas; consumed by PR LSD-3’s recovery walker to mark each as failed_compensation (LSD spec §3.5).
UnresolvedLauncherStep
A step row attached to an UnresolvedLauncherSaga. Steps are returned in step_index ascending order.

Enums§

LogError
Errors from the launcher saga log. Wraps the three error sources the API can encounter: SQLite, JSON serialization, and (for the public open(path) constructor) underlying file IO. Distinct from srv’s StoreError because srv’s WaveStore wraps additional migration-specific variants the launcher log doesn’t need.
SagaOutcome
Outcome of a launcher saga, written by terminate_saga.

Functions§

now_rfc3339 🔒
RFC3339 timestamp for started_at / ended_at columns. Single helper so test+production paths agree on format precisely.
pipe_target_str 🔒
Serialize a PipeTarget to the schema’s target column. Mirrors srv’s command_discriminant_name style (snake_case strings rather than Debug formatting) so --diag sagas output is greppable.