[claude] Poka-yoke cron heartbeats: write, check, and report (#1096) #1107

Merged
claude merged 1 commits from claude/issue-1096 into main 2026-04-07 14:44:06 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
f509b35950 feat: poka-yoke cron heartbeats — write, check, and report
Some checks failed
CI / test (pull_request) Failing after 1m27s
CI / validate (pull_request) Failing after 3s
Every cron job can now call cron-heartbeat-write.sh <job> <interval>
to write /var/run/bezalel/heartbeats/<job>.last atomically.

bezalel_heartbeat_check.py (meta-heartbeat) scans all .last files
every 15 minutes and alerts P1 if any job is stale > 2× its interval.

morning_report.py now includes a heartbeat panel showing the last-seen
status of every registered cron job in the nightly Night Watch report.

Systemd units (bezalel-meta-heartbeat.timer/.service) run the checker
on a 15-minute schedule via the poka-yoke infrastructure.

Fixes #1096

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 10:39:11 -04:00