Skip to content

S6 — Inbound delivery loop (onWakeup → pull → decrypt → deliver) #9

Description

@tada5hi

Part of the node-message-broker build-out (Track B, Hub Plan 013 Phase 4). See .agents/plans/001-message-broker.md (local working doc).

Goal: wire the inbound loop in ComponentsModule.

Steps

  • On hubClient.onWakeup(...) (and long-poll fallback via pull({ wait })): pull pending → for each, resolve the sender's node public key (S2) → crypto.open (S1) → demux by metadata.analysisIddelivery.deliver(analysisId, decrypted)hubClient.ack processed ids (delete-on-ack; ids are the dedup key for at-least-once redelivery).

Depends on: S1 (decrypt), S2 (sender key). Builds on the shipped HubClient/IDeliveryService.

Acceptance: a fake Hub emitting a sealed message yields a decrypted webhook delivery + ack; a decrypt failure is isolated (logged, not fatal) — decide poison-message handling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions