wake-alarm/phone_app
Krzysztof kuhy Rudnicki c3c129b068 Make the morning session the carrot: earn 11:00 by finishing it in time
On 2026-09-19 the phone was powered off after the bathroom tag and nothing
on the PC noticed: every finished session was published and nothing read
it. Now wake-alarm distils the phone's morning into an HMAC-signed
~/.local/state/wake_alarm/morning_session.json (wake-alarm-session.timer,
07:00-11:00 every 2 min) that screen-locker and leetcode-guard read to
defer their locks -- provisionally until min(start + 90 min, 09:30) while
the session is live, until 11:00 once it completed inside that cutoff,
and not at all for a session finished later (the phone switched on at
noon completes the legs then; that must un-lock nothing).

The phone publishes the session at start as well as at finish
(current_session, cleared with the finish stamp), so the PC can tell
"started, not finished" from "never started". A required 1-5 energy tap
joins the weigh-in and ships as latest_energy with a PC reader mirroring
_weight (the shared half is _field_reader).

Also fixes the vmbox harness, red since the 2026-09-11 home-tidy: the
guest tree lives at ~/wake-alarm, and the INSTALL-OK grep matched vm's
echo of the command line. Takes Flutter 3.47.5.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tp54ewdXRLaimUuT8LgYyn
2026-09-19 16:40:51 +02:00
..
android Keep the morning session reachable after leaving the app; drop the still-phone watch 2026-09-17 09:01:22 +02:00
assets/icon Bump gatelock pin to released v0.1.1, regenerate launcher icon 2026-07-21 21:18:02 +02:00
lib Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
scripts Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
test Make the morning session the carrot: earn 11:00 by finishing it in time 2026-09-19 16:40:51 +02:00
.gitignore Add wake_alarm_sync phone-side Flutter companion app 2026-07-10 23:16:11 +02:00
.metadata Add wake_alarm_sync phone-side Flutter companion app 2026-07-10 23:16:11 +02:00
analysis_options.yaml phone_app: use the shared github_device_auth package 2026-08-15 16:16:17 +02:00
pubspec.lock Take gatelock 0.8.2, flutter_secure_storage 11.2.0, coverage 7.16.1 and ruff 0.16.8 2026-09-16 22:36:33 +02:00
pubspec.yaml Take gatelock 0.8.2, flutter_secure_storage 11.2.0, coverage 7.16.1 and ruff 0.16.8 2026-09-16 22:36:33 +02:00
README.md Add wake_alarm_sync phone-side Flutter companion app 2026-07-10 23:16:11 +02:00

wake_alarm_sync

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.