pub async fn compact_session_log(
storage: &dyn StorageBackend,
session_id: &str,
session: &Session,
) -> Result<(), Error>Expand description
Compact a session’s log into a single checkpoint entry.
This replaces all existing log entries with a single Checkpoint entry
containing the serialized session state. Should only be called on sessions
in terminal state (Resolved/Expired/Cancelled).