Files
CatoandClaude Opus 5.5 b5b0a52f75 fix(alerts): the failed-unit sweep clears a failed unit whose file is gone instead of paging it
signin-wake.service failed on 2026-10-31. Its unit files were deleted when
signin went live and was later retired, but nothing ran reset-failed, so
systemd kept it as LOAD=not-found / failed. host-check's sweep paged it and
dispatched a fix agent every day from 2026-11-05 to 2026-11-08, each time
with an empty journal. #1603 stops the live switch from leaving new ghosts
behind. This clears the existing one, and any later one, with no hand on
the box.

The sweep now runs reset-failed on failed services whose LOAD column is
not-found, writes one journal line for each, and leaves them out of the
paged set. Nothing can start such a unit again, so there is nothing to fix.
A deleted unit file that a live site needs is still caught: the watchdog
probes the site itself.

install-box-alerts.yml installs this on merge (it watches this file).
test-host-alerts.sh: four new checks (a ghost is cleared and never paged
or tracked, and a real failure beside it still pages and is not cleared);
110 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 06:03:40 +00:00
..
…
…
…
…
…
…