mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-05 15:48:31 +01:00
The reconciler I shipped this morning has never once run on schedule. Neither has the audit. Measured today: deploy-freshness.yml hourly at :37 since that morning 10:37 missed, 11:37 missed deploy-reconciler.yml twice-hourly 11:53 missed Every run either workflow has ever had was a manual dispatch of mine. That is the same failure that broke the twenty-five per-repo sweeps — loki 19m, evig 151m, reparaturbonus-zh 244m, vitareba 276m since their last run, against a stated ten-minute cadence. I diagnosed that correctly and then fixed it by moving from twenty-five GitHub crons to one GitHub cron, which moved the problem without fixing it. A reconciler that never fires is not a reconciler; it is a decoration that makes the fleet look supervised. The box's timers DO fire, on time, and have for months: security-check every 5m, host-check every 5m, watchdog every 5m, all with no drift. So the clock moves there and GitHub only does the work. `fleet-reconciler.timer` ticks every 15 minutes and dispatches this workflow. The tick script deliberately holds no policy — every guard (green tip, nothing in flight, the caps, the double read, the CI-re-run rule) stays in the workflow where it is version-controlled and tested. A clock that also made decisions would be a second, untested copy of the reconciler living on a box nobody reads. It also never exits 0 on a failed dispatch, because a tick that reports success while dispatching nothing is precisely the invisible failure this whole mechanism exists to end: `systemctl list-timers` would show it firing happily forever. Installed and verified on bitbaum. First box-triggered run — and the first --go run of any kind — proved its guards (24 + 25 assertions), surveyed 21 repos and dispatched nothing, correctly. Next tick 12:39 UTC. The workflow keeps its `schedule:` as a free second chance, since the run is idempotent, but nothing depends on it and the header now says so. Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>