Commit Graph
5 Commits
Author SHA1 Message Date
Bastian Mäuser aef8e2af17 Add AGENTS.md and handoff notes for agents
Distill the session findings (BlueZ RSSI dedupe, beacon pauses, MSRV
pinning, scan-only decision) so future agents and humans don't have to
rediscover them. AGENTS.md carries the rules, docs/HANDOFF.md the
history and open threads.
2026-11-05 15:01:54 +01:00
Bastian Mäuser a5b798dceb Recommend patient timeouts in the sample config
Beacon apps pause advertising while the phone sits still, so the 30s
default for missing_after_secs false-locked. Ship 120s plus comments
explaining the beacon pauses and the 10s pre-lock connect probe;
presence_timeout_secs 30 pairs with the duty escalation.
2026-11-05 14:58:45 +01:00
Bastian Mäuser c25ccde58e Probe for 10s and log its outcome before locking
The phone's beacon app pauses advertising for stretches while in range,
which is what the 3s probe could not bridge. Give the controller a 10s
window to find the phone, and log probe outcomes at INFO/WARN so the
journal explains every lock decision.
2026-11-05 14:57:48 +01:00
Bastian Mäuser 43a79d8a43 Fix false locks: escalate duty when updates stall, probe before locking
BlueZ dedupes identical RSSI values, so a stationary phone can go quiet
in the event stream while in range. At the 2% present duty cycle the
~1Hz beacon was caught less often than presence_timeout, causing
Present/Suspect flapping and locks after 60s of silence with the phone
at -60 dBm.

- Present: step up to the Suspect duty once the last sighting ages past
  half of presence_timeout, without leaving Present
- Lock path: attempt a 3s LE connect to the phone first; success cancels
  the lock and returns to Present, failure locks as before
2026-11-05 14:48:10 +01:00
Bastian Mäuser 426342eb10 Pin Version so all builds on Ubuntu 24.04 or newer 2026-11-05 14:38:49 +01:00