wake-alarm/wake_alarm
Krzysztof kuhy Rudnicki 8696f2d0bf wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty)
A date in the new shared sickdays pool (not a free day) now means, on the PC:
no fallback ring (a ring in progress stops, reason sick_day), no RTC
self-wake for that morning (ours is disarmed), no morning-routine trigger,
and no workday_penalty.json; a penalty issued on a day later marked sick is
retracted (penalty_cancelled, cause sick_day) by the next session refresh or
RTC tick. The audit treats the day as one where nothing is expected.

All pool access goes through wake_alarm/_sick.py: fail closed (unreadable
pool or missing package = not sick), and act modes pull the pool from
Firebase first (RTC --arm on a stick-day target, in-window fallback ticks
and ring polls, the day's first penalty write) because the sickdays timer
pauses through hibernate. Dry runs never pull.

Pins: sickdays-v0.1.0, freedays-v0.4.0, crdt-sync-v0.9.2 (needed by both);
pre-commit 4.7.0, pylint 4.1.3, ruff 0.17.1 (freshness gate).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xfj1sxKH9VBPqpcAni8Jry
2026-10-16 08:45:29 +02:00
..
tests wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
__init__.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
_alarm_payload.py Stop trusting an alarm the phone published months ago 2026-08-30 16:37:13 +02:00
_audit_checks.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_audit_evidence.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_audit_sources.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_audit_stick.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_audit.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_cli_modes.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_constants.py Sync: stop reading screen-locker's sync_token (screen-locker is Firebase-only now) 2026-10-09 19:11:50 +02:00
_energy.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
_enforcement_payload.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_enforcement_records.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_escapes.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_events.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_fallback_latch.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_fallback_observe.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_fallback_policy.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_fallback_ring.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_fallback.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_field_reader.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
_log_dedupe.py Grade against 3.14 too, not just run on it 2026-08-29 11:39:33 +02:00
_log_sink.py Phase 1: structured JSONL logging with cross-process dedupe 2026-08-26 23:00:08 +02:00
_logging_setup.py Phase 1: structured JSONL logging with cross-process dedupe 2026-08-26 23:00:08 +02:00
_pc_wake_mode.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_ring_player.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_ring_wav.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_rtc_hw.py Wake enforcement v2: PC fallback ring + RTC self-wake, stacking Tue-Thu phone lockdown, escape hatch until 2026-10-15, stakes in the app, daily incident audit 2026-10-01 12:17:06 +02:00
_rtc.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_session_payload.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
_session_policy.py Open the PC from 05:00 until the alarm has been dismissed; the session is the check 2026-09-20 08:39:24 +02:00
_session.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_sick.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_state.py Retire the PC's waking role; keep the trigger 2026-08-30 15:24:02 +02:00
_sync_transport.py Sync: stop reading screen-locker's sync_token (screen-locker is Firebase-only now) 2026-10-09 19:11:50 +02:00
_sync.py Earned ramp: a dismissed Mon/Fri/Sat/Sun morning earns the minute; workdays hold, misses and free days earn nothing; workdays from freedays 0.3.0 2026-09-27 20:13:22 +02:00
_trigger.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00
_weight.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
_workday_penalty.py wake_alarm: sick days stand the PC down (fallback ring, RTC wake, trigger, workday penalty) 2026-10-16 08:45:29 +02:00