Skip to content

fix(persona): perception pump attaches Durable-only at the router (#445 cut 2) - #2324

Merged
joelteply merged 1 commit into
canaryfrom
fix/persona-durable-only-attach
Aug 16, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/persona-durable-only-attach

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

… 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
@joelteply
joelteply merged commit a4a55ba into canary Aug 16, 2026
5 checks passed
@joelteply
joelteply deleted the fix/persona-durable-only-attach branch August 16, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant