wake-alarm/wake_alarm
Krzysztof kuhy Rudnicki 899a2c5581
Some checks failed
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,free-days-interop) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / free-days-interop (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
release-apk / release (APK) (push) Has been cancelled
Fix RTC +1 s mismatch and busy-ring fixture
rtcwake -t shifts the alarm by the RTC/system clock offset (vmbox: +1 s),
so the exact epoch compare in arm()/disarm_ours() forgot our record and
left the alarm armed. Match within 60 s instead (a local-time RTC is off
by hours and still never matches).

_ring_main now emits ring_backend FAILED when pw-play dies mid-ring, not
only when it never starts.

vmbox: the busy-card holder ran as the ssh user (no ACL on a fresh card)
and was aplay, which handles TERM; it now holds the node as root from a
TERM-ignoring sleep and fails the case as a fixture when nothing holds.
Guest repo path derived from the basename, so worktree runs work.
Records the S5 vmbox result; host S5 check dropped by kuhy.

vmbox harness: 16/16 PASS, ring-alsa-busy-fallback 10/10.

Todo: 364208fc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:07:41 +01:00
..
tests Fix RTC +1 s mismatch and busy-ring fixture 2026-11-16 09:07:41 +01: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 Flag a phone that stopped pushing in the audit 2026-11-16 08:30:34 +01:00
_audit_evidence.py Flag a phone that stopped pushing in the audit 2026-11-16 08:30:34 +01: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 Ring via PipeWire when ALSA card is busy 2026-11-16 09:07:40 +01: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 Flag a phone that stopped pushing in the audit 2026-11-16 08:30:34 +01: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 Flag a phone that stopped pushing in the audit 2026-11-16 08:30:34 +01: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 PC: sick days stand the alarm down only when it is not kept 2026-10-16 15:13:23 +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 PC: sick days stand the alarm down only when it is not kept 2026-10-16 15:13:23 +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_main.py Fix RTC +1 s mismatch and busy-ring fixture 2026-11-16 09:07:41 +01: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 Fix RTC +1 s mismatch and busy-ring fixture 2026-11-16 09:07:41 +01:00
_rtc.py Fix RTC +1 s mismatch and busy-ring fixture 2026-11-16 09:07:41 +01:00
_session_legs.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
_session_payload.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
_session_policy.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
_session_strip.py Make wake-alarm text-free (textgate-rework) 2026-11-11 12:45:10 +01:00
_session.py Retry session refresh; sign next_step 2026-11-07 08:12:01 +01:00
_sick.py PC: sick days stand the alarm down only when it is not kept 2026-10-16 15:13:23 +02:00
_state.py Retire the PC's waking role; keep the trigger 2026-08-30 15:24:02 +02:00
_strip_pips.py Make wake-alarm text-free (textgate-rework) 2026-11-11 12:45:10 +01:00
_sync_token.py Split GitHub token lookup out of transport 2026-11-16 08:55:39 +01:00
_sync_transport.py Split GitHub token lookup out of transport 2026-11-16 08:55:39 +01:00
_sync.py Split GitHub token lookup out of transport 2026-11-16 08:55:39 +01:00
_trigger.py PC: sick days stand the alarm down only when it is not kept 2026-10-16 15:13:23 +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 PC: sick days stand the alarm down only when it is not kept 2026-10-16 15:13:23 +02:00