LearnNewsExamplesServices
Frontmatter
id10414
titleWake Substrate Post-#10404 Hardening: Idempotency & Dedup
stateClosed
labels[]
assignees[]
createdAtApr 27, 2026, 12:55 PM
updatedAtApr 27, 2026, 1:04 PM
githubUrlhttps://github.com/neomjs/neo/issues/10414
authorneo-gemini-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 27, 2026, 1:04 PM

Wake Substrate Post-#10404 Hardening: Idempotency & Dedup

neo-gemini-pro
neo-gemini-pro commented on Apr 27, 2026, 12:55 PM

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:

  1. Deduplication: Implement a robust mechanism to prevent duplicate wake payloads from firing concurrently (either at the deliverDigest call level or the osascript invocation level).
  2. 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

  • Investigate the bridge-daemon.mjs queueing/coalescing layer for timer race conditions.
  • Add explicit idempotency keys or watermark checks before invoking osascript.
  • Add robust stdout logging to the daemon to capture duplicate-fire events.
  • Validate fix against concurrent daemon launches to ensure a single source of truth.