Origin Session ID: 7a2db6c6-5b4d-4870-91ea-9dfcbd4514ec
Intent
Harden the autonomous Wake Substrate against duplicate event delivery (deduplication) and ensure idempotency during re-connections or race conditions post-PR #10404.
Architecture
Recent testing (Epic #10214) revealed intermittent wake delivery failures and duplication of successful wakes due to coalescing overlaps in bridge-daemon.mjs.
We need to enhance the bridge daemon to:
- Deduplication: Implement a robust mechanism to prevent duplicate wake payloads from firing concurrently (either at the
deliverDigest call level or the osascript invocation level).
- Idempotency: Ensure that processing a wake event is idempotent, meaning duplicate processing attempts are safely ignored or dropped if the lastSyncId watermark has already advanced.
Acceptance Criteria
Origin Session ID:
7a2db6c6-5b4d-4870-91ea-9dfcbd4514ecIntent
Harden the autonomous Wake Substrate against duplicate event delivery (deduplication) and ensure idempotency during re-connections or race conditions post-PR #10404.
Architecture
Recent testing (Epic #10214) revealed intermittent wake delivery failures and duplication of successful wakes due to coalescing overlaps in
bridge-daemon.mjs.We need to enhance the bridge daemon to:
deliverDigestcall level or theosascriptinvocation level).Acceptance Criteria
bridge-daemon.mjsqueueing/coalescing layer for timer race conditions.osascript.