wake-alarm/wake_alarm
Krzysztof kuhy Rudnicki d953d67ae3 Open the PC from 05:00 until the alarm has been dismissed; the session is the check
The first carrot only opened at 08:30: someone up at 07:00 (the goal) got
the LeetCode gate at the 05:00 login-arm, and the workout lock was held off
by an unrelated clock. A day with no session yet is now exempt until the
phone's alarm plus 15 min -- clamped to the 08:00 baseline like the trigger
-- so the login-arm defers by itself; the alarm rings regardless, and a
dismiss that has produced no session by then means "not up". The refresher
runs from 05:00 (every 10 min until 07:00) so the file is today's when the
locks decide. The rule moved to _session_policy (250-line cap).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTdfXjbGYYrY7Quxcfz6mg
2026-09-20 08:39:24 +02:00
..
tests 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
__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
_constants.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
_energy.py Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +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
_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 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
_state.py Retire the PC's waking role; keep the trigger 2026-08-30 15:24:02 +02:00
_sync_transport.py Read the phone's newest weigh-in on the PC 2026-09-16 22:49:08 +02:00
_sync.py Stop trusting an alarm the phone published months ago 2026-08-30 16:37:13 +02:00
_trigger.py Do not ring at all on a shared free day 2026-09-07 15:28:54 +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