Move watch_folders automation off per-shell execution onto a systemd timer #4

Open
opened 2026-09-23 12:14:51 +00:00 by mercen.ai · 0 comments
Collaborator

_shk_run_watch_folders (inbox health-check + retention cleanup, 10_files.sh) currently runs on every interactive shell start via a bare call at the bottom of the file. That's not great: it runs far more often than needed, adds latency/work to every new terminal, and ties infrastructure automation to whether a human happens to have a shell open.

Should move to a systemd --user timer (same pattern as aperture-dots-sync.timer/claude-transcripts-sync.timer on the sandbox machine - oneshot service + timer unit, hourly or similar cadence) instead, decoupled from shell startup entirely.

Filed 2026-09-23 while restoring this function from an orphaned pre-registry.yml copy of dits-and-dots that had been silently shadowing newer files (see session notes) - restored as-is (shell-startup) for now per explicit decision to keep scope small, this issue tracks the follow-up.

`_shk_run_watch_folders` (inbox health-check + retention cleanup, `10_files.sh`) currently runs on every interactive shell start via a bare call at the bottom of the file. That's not great: it runs far more often than needed, adds latency/work to every new terminal, and ties infrastructure automation to whether a human happens to have a shell open. Should move to a `systemd --user` timer (same pattern as `aperture-dots-sync.timer`/`claude-transcripts-sync.timer` on the sandbox machine - oneshot service + timer unit, hourly or similar cadence) instead, decoupled from shell startup entirely. Filed 2026-09-23 while restoring this function from an orphaned pre-registry.yml copy of `dits-and-dots` that had been silently shadowing newer files (see session notes) - restored as-is (shell-startup) for now per explicit decision to keep scope small, this issue tracks the follow-up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
shukutils/dits-and-dots#4
No description provided.