Commit Graph

7 Commits

Author SHA1 Message Date
96e4388297 Re-export headless entrypoints in session probe
Kotlin starts publishNowMain, ringStartedMain and poolSyncMain by name in
the root library, which in a -t build is the probe file. They failed with
"Could not resolve main entrypoint function", so the probe's bypass
publish never ran: why C6's bypass never reached a backend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:04:15 +01:00
65df7f6682 Name a bypass's session re-ring for its cause
A bypass during a live morning session restarted the ring natively, and
the session recorded that re-ring as deadline:<leg> (C7, 2026-11-22).
Bypass.record now stamps the cause (dated) when nothing was ringing; the
session takes it on its tick or on the dismiss and records bypass:<cause>.
A bypass during a deadline re-ring stamps nothing: one sound, one re-ring.

Also a debug-only sync backend: a probe build with WAKE_SYNC_EMULATOR
syncs to the PC's RTDB emulator instead of prod and the GitHub mirror,
with scripts/emu_published.py reading it back for _fallback --published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:53:26 +01:00
1df4f64393 Plant phone logs in fallback dry runs
Some checks are pending
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,dependency-freshness) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / free-days-interop (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
_fallback --dry-run --published FILE reads the phone's logs from a JSON
list of [device_id, alarm.json] pairs instead of Firebase, morning and
evening alike, so the bypass answers (live check C8) can be seen from
the CLI without a backend. Refused (exit 2) without --dry-run or for a
malformed file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:48:18 +01:00
8253836612 Resend the lockdown on an already-penalised day
The workday lockdown signal was fire-once: a day already penalised
returned ALREADY_PENALISED and sent nothing, so a signal focus-owner
missed (not running, not yet Device Owner) never landed (live check C6,
2026-11-22). StickCheck.run now re-sends the stored locked_through when
it is today or later, without touching the streak or the date;
lockdown_sent carries resend=true.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:46:43 +01:00
0d66b64fb5 Hold block broadcasts inside their ANR budget
The block-state broadcasts may be foreground (10 s budget): hold
8 s for those, 25 s otherwise (NotifRules.holdMs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:59:55 +01:00
df314d5dbe Document the 21:00 notifications check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:56:01 +01:00
cf0d243ffd Count a paused alarm as a bypass
The launcher "Wstrzymaj aplikację" paused WakeAlarm mid-ring on 11-20 and
11-22. WakeAlarm is now a device admin, and a pause, admin removal,
revoked notifications or full-screen intent, or a killed ring on a live
morning is a bypass: a miss on any weekday, the phone rings again, and
the PC rings at once until a newer dismiss or 30 min.

The PC rings also go to every connected monitor, since the speakers are
off at the knob overnight; a one-shot silent probe checks them at A-5.

DOCS-bypass.md has the layers, causes and measurements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:49:44 +01:00