pub async fn housekeep(
cfg: &Config,
home: &Path,
worktrees_root: &Path,
repo: &Path,
now: Timestamp,
) -> HousekeepingExpand description
Run the janitor: fold due runs, reclaim orphaned worktrees, prune stale worktree registrations, then prune the cache if it is over its cap.
Every part is best-effort; a jammed cache lock or a run whose worktree
another borrower holds must not stop the rest. Errors are reported through
tracing::warn - this is housekeeping, and the daemon keeps serving
either way.