Repository navigation
fix(persona): perception pump attaches Durable-only at the router (#445 cut 2) - #2324
Merged
Merged
Conversation
… cut 2) Measured 2026-08-16 after the daemon heal restored full delivery: EphemeralLatest projection re-publishes fanned to every persona subscription (router fan-out counters: matched=68 per publish) and 100% were discarded client-side as non_chat_schema — 1,196 decode-and-drop events in minutes, re-creating the decode-everything flood at the persona seam. The pump's contract is perceptual room turns + work events (#146/#177/#450), both Durable-class by construction, so attach as a Durable-only consumer via subscribe_subscribed_delivery — the router never fans ephemeral classes to this subscription at all. The change lives in subscribe_every_room, the ONE place the subscribe shape is decided, with extension notes for the next driver: new ephemeral needs get their own narrow consumer, never a widening of this list; new durable floods get a class header at their publisher plus a HeaderFilter::Not arm here (heartbeat exclusion is the template). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
With delivery healed (#434 daemon restart), ephemeral projection re-publishes fan to every persona subscription (matched=68 per publish, router counters) and are 100% discarded post-decode (1,196 non_chat_schema drops in minutes). The perception pump consumes perceptual room turns + work events — both Durable — so it now attaches router-side as a Durable-only consumer (
subscribe_subscribed_delivery), the exact consumer-shaped subscription that API documents with this persona measurement. Includes extension notes at the one decision site so the next driver narrows new consumers instead of widening this one.Live validation plan: deploy, confirm (a) a room message still drives a turn, (b) a work-card state change still reaches the grade bridge, (c) persona.inbound.raw_event rate collapses.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo