wake-alarm/wake_alarm/tests
Krzysztof kuhy Rudnicki dec4ecc0cb Flag a phone that stopped pushing in the audit
The phone uploaded nothing from 11-13 to 11-16, and only the morning
fallback ring revealed it. New check_phone_push flags a phone whose
newest HLC is more than 24 h old. An unreachable Firebase counts as
"could not check", so the audit fails toward reporting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWWfb63jncj9Lca2jeX
2026-11-16 08:30:34 +01:00
..
fixtures Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
__init__.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
conftest.py E2E-encrypt the published alarm record 2026-11-12 10:30:27 +01:00
test_alarm_payload.py Stop trusting an alarm the phone published months ago 2026-08-30 16:37:13 +02:00
test_audit_checks.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
test_audit_push.py Flag a phone that stopped pushing in the audit 2026-11-16 08:30:34 +01:00
test_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
test_audit.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
test_energy.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
test_enforcement_payload.py Flag a phone that stopped pushing in the audit 2026-11-16 08:30:34 +01:00
test_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
test_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
test_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
test_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
test_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
test_fallback_policy.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
test_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
test_fallback.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
test_log_dedupe.py Phase 1: structured JSONL logging with cross-process dedupe 2026-08-26 23:00:08 +02:00
test_log_sink.py Phase 1: structured JSONL logging with cross-process dedupe 2026-08-26 23:00:08 +02:00
test_logging_setup.py Phase 1: structured JSONL logging with cross-process dedupe 2026-08-26 23:00:08 +02:00
test_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
test_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
test_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
test_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
test_rtc.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
test_session_legs.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
test_session_payload.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
test_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
test_session_retry.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
test_session_strip_run.py Make wake-alarm text-free (textgate-rework) 2026-11-11 12:45:10 +01:00
test_session_strip.py Make wake-alarm text-free (textgate-rework) 2026-11-11 12:45:10 +01:00
test_session.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
test_sick_days_penalty.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
test_sick_days.py PC: sick days stand the alarm down only when it is not kept 2026-10-16 15:13:23 +02:00
test_stakes_mirrors.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
test_state_queries.py Retire the PC's waking role; keep the trigger 2026-08-30 15:24:02 +02:00
test_state.py Retire the PC's waking role; keep the trigger 2026-08-30 15:24:02 +02:00
test_strip_support.py Add morning-session corner strip 2026-11-07 08:19:42 +01:00
test_sync_backends.py E2E-encrypt the published alarm record 2026-11-12 10:30:27 +01:00
test_sync_cli.py Split _sync.py along the transport/resolution seam item 8 needs 2026-08-27 23:44:24 +02:00
test_sync_dispatch.py Stop trusting an alarm the phone published months ago 2026-08-30 16:37:13 +02:00
test_sync_e2e.py E2E-encrypt the published alarm record 2026-11-12 10:30:27 +01:00
test_sync_lapsed.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
test_sync_token.py Split _sync.py along the transport/resolution seam item 8 needs 2026-08-27 23:44:24 +02:00
test_sync.py E2E-encrypt the published alarm record 2026-11-12 10:30:27 +01:00
test_trigger_clamp.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
test_trigger_main.py Retire the PC's waking role; keep the trigger 2026-08-30 15:24:02 +02:00
test_trigger.py Do not ring at all on a shared free day 2026-09-07 15:28:54 +02:00
test_weight.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
test_workday_mirrors.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
test_workday_penalty.py Add the Tue/Wed/Thu workday stick: signal focus-owner and write tomorrow's penalty 2026-09-23 21:20:58 +02:00