//! Point-in-time `slug -> TTL` snapshot of the routine store, used to drive a cleanup sweep.
use HashMap;
use slugify;
use RoutineStore;
use MAX_TTL_SECS;
/// Snapshot each routine's `slug -> effective TTL` from the store.
///
/// Taken up front so the store lock is released before the sweep touches the filesystem and tmux —
/// reaping a directory tree must not block routine reads/writes.
/// Resolve a workbench slug's TTL against a [`snapshot_ttls`] map, falling back to
/// [`MAX_TTL_SECS`] for orphaned workbenches whose routine was since deleted.