Expand description
Session finalization and periodic idle reconciliation.
Structs§
- Finalizer
- Shared asynchronous finalization service.
- Session
Lifecycle Guard - RAII guard that (a) holds an owned mutex permit and (b) opportunistically
prunes its entry from
SessionLockTableon drop. - Session
Lock Table - Per-session lifecycle mutex table.
Enums§
- Finalize
Error - Lifecycle errors.
- Finalize
Outcome - Result of closing a session.
Functions§
- prune_
sealed_ atif_ blocking - Blocking core of the sealed-ATIF retention sweep. Removes sealed
ATIF trajectories (and their
.atif-authprovenance sidecars and digest-bound.close-completemarkers) whose mtime is older thanmax_age. Idempotent; a missing file (already pruned) is silently skipped. Returns the number of(atif, sidecar)pairs removed so callers can log or bump a metric. - spawn_
reconciler - Start the periodic reconciler tick: spool recovery, promotion retry, pending-close completion, idle-session finalization, and finalized-session eviction.