P1-3: Add missing assert on warning log in test_start_without_ddp_logs_warning
- assert len(warning_calls) >= 1
- assert 'PulseController.start() called without DDP' in str(warning_calls[0])
P2-1: Make gateway_state_path configurable via PresenceEngine param and
ROCKETCHAT_GATEWAY_STATE_PATH env var (was hardcoded ~/.hermes/gateway_state.json)
P2-2: Add separate 'detection unavailable' log message when pgrep fails,
instead of falling through to generic 'no background activity detected'
P2-3: Document telemetry coupling in _increment_telemetry docstrings
(both PulseController and DetectionTimer)
P0-1: PresenceEngine.__init__ instanziiert PulseController + DetectionTimer
mit on_change-Callback. DetectionTimer startet automatisch bei enabled=True.
P0-2: PulseController.cancel_pending() implementiert — setzt _cancel_pending
Flag, _pulse_tick prüft und skipped den nächsten Tick.
P0-3: ::setstatus on/off steuert PulseController — bind_rest/bind_ddp bei on,
stop() bei off. Adapter.__init__ verdrahtet REST+DDP sofort.
P0-4: Alter Heartbeat-Code (10s, _start_heartbeat/_stop_heartbeat/_heartbeat_loop)
entfernt. Nur PulseController (1.5s) als einziger Puls-Mechanismus.
pulse_interval Default von 10s auf 1.5s, Clamping von 5-30 auf 0.5-30.
P0-5: 5 neue Live-Tests (TestP0LiveVerdrahtung) verifizieren PulseController
+ DetectionTimer nach __init__. 50/50 Tests grün.