loop recovery: check every minute, not every five

The live timer's phase sat one second before each watchdog loop probe,
so every confirmation waited almost a whole extra period. A run is a
JSON read unless a step is due, and the ladder already ignores a probe
it has seen, so a one-minute cadence costs nothing.
This commit is contained in:
acamilo 2026-09-28 22:19:53 +00:00
parent eecd5744e0
commit 64148848e5
2 changed files with 7 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# Automated loop recovery
`fly-watchdog` remains report-only. The separate `fly-loop-recover.timer` reads its
`/run/fly/wd/loop.json` every five minutes and unsticks a confirmed trap on its own, climbing
`/run/fly/wd/loop.json` every minute and unsticks a confirmed trap on its own, climbing
a ladder one step per trap that outlives the previous step:
| level | step | cost |

View file

@ -2,9 +2,12 @@
Description=Check for repeated macro loops after watchdog probes
[Timer]
OnBootSec=7min
OnUnitActiveSec=5min
AccuracySec=10s
# Every minute: a run only reads /run/fly/wd/loop.json unless a step is due, and the ladder's
# state ignores a probe it has already seen. On a 5-minute cadence the timer's phase can sit just
# before each loop probe (live, 2026-09-28: one second), costing ~5 minutes per confirmation.
OnBootSec=2min
OnUnitActiveSec=1min
AccuracySec=5s
Unit=fly-loop-recover.service
[Install]