pub async fn compensate_unresolved(state: &AppState) -> Result<usize, String>Expand description
Resume any unresolved sagas left over from a prior srv-process run.
Returns the number of sagas the recovery layer touched (compensated
or marked failed_compensation).
Logged at INFO; non-fatal if the saga log read fails (caller logs and continues — the alternative is refusing to start the server, which leaves users locked out for a transient SQLite hiccup).