feat(remote): notification layer — event classes and subscriber routing (ADR 0006) - #24
Merged
Merged
Conversation
Documents the bus-push -> Action -> wake-channel-PR-comment pattern that wakes webhook-subscribed cloud sessions, with the workflow as a copyable example. Verified end-to-end on this repo's bus. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017XnLYnoNRCbGCGUFSvhDD2
…ng (ADR 0006) Replaces the broadcast wake spike with a routed design: every event type declares a class (deliverable wakes its recipient; state gossip wakes no one), a subscribers/ registry on the bus says who to wake and how, and the router Action delivers only matching deliverables, never to the writer itself. remote.sh gains subscribe/unsubscribe. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017XnLYnoNRCbGCGUFSvhDD2
orangewk
marked this pull request as ready for review
July 14, 2026 13:35
This was referenced Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the notification layer from ADR 0006 (included), replacing the earlier broadcast wake spike with a routed design where each layer is statable in one sentence:
message_sent, legacy no-type lines — wakes its recipient) or state gossip (message_read— wakes no one; it converges on the next sync). Declared inscripts/lib/sync.shand the docs.subscribers/<team>/<agent>.jsonon the bus is the routing table; the router Action (docs/examples/agmsg-router.yml, deployed on the bus branch) reads only the metadata of newly appended event lines and delivers only matching deliverables — never to the writer itself, never for gossip.wake.kind(pr-commenttoday) is the replaceable delivery part.New commands:
This design removes the broadcast spike's observed symptoms (self-echo, receipt-triggered wake storms, no recipient targeting) from the architecture instead of patching them; the rejected patches are recorded in the ADR.
Tests
--prvalidation); full remote suite 35/35 green locally.mathdesk-desktop/claude-cloudvia one comment on PR agmsg wake channel (perpetual — do not merge) #23 (webhook received by the subscribed session); the reader's receipt push logged "Only state gossip in this push; waking no one"; workflow-only and subscribe-only pushes no-op.🤖 Generated with Claude Code
https://claude.ai/code/session_017XnLYnoNRCbGCGUFSvhDD2