Repository navigation
fix(airc): inbound attach re-attaches on daemon drop — persona no longer goes permanently deaf (audit #5) - #1860
Merged
Conversation
…ger goes permanently deaf (audit #5) `spawn_daemon_attach` ran the raw realtime-transcript attach stream EXACTLY ONCE: on any airc daemon restart or stream drop the task ended (Err → warn, clean EOF → SILENT) and the persona went permanently DEAF to inbound airc events (chat, wall, kanban, peer turns) until continuum-core rebooted (reliability audit #5). Read the airc-lib layer first ([[persona-airc-resilience]] warns to): this is a RAW `DaemonClient::attach` stream, NOT airc-lib's reconnecting `subscribe()` — so airc-lib's transport recovery does NOT cover it, and there is no deliberately-loud terminal signal to mask (malformed events are already skipped in handle_attach_response; a raw attach drop is a transport event, not a wire-schema fault). So a continuum-side re-attach here is correct and does not conflict with #64. Fix: wrap the attach in a capped-backoff re-attach loop (1s→30s), resetting backoff after any session that streamed ≥30s (a healthy attach that dropped) so a brief blip doesn't ratchet the delay. A daemon restart now self-heals. Normal path is unaffected — the loop blocks in the long-lived healthy attach and only cycles on a drop. Verified: 8 inbound_attach projection tests green; clean rebuild-boot, core healthy. Credit: parallel reliability-audit agent. Reliability spine: personas stay connected. Co-Authored-By: Claude Opus 4.8 <[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.
spawn_daemon_attachran the raw realtime-transcript attach stream EXACTLY ONCE: on any airc daemon restartor stream drop the task ended (Err → warn, clean EOF → SILENT) and the persona went permanently DEAF to
inbound airc events (chat, wall, kanban, peer turns) until continuum-core rebooted (reliability audit #5).
Read the airc-lib layer first ([[persona-airc-resilience]] warns to): this is a RAW
DaemonClient::attachstream, NOT airc-lib's reconnecting
subscribe()— so airc-lib's transport recovery does NOT cover it, andthere is no deliberately-loud terminal signal to mask (malformed events are already skipped in
handle_attach_response; a raw attach drop is a transport event, not a wire-schema fault). So a continuum-side
re-attach here is correct and does not conflict with #64.
Fix: wrap the attach in a capped-backoff re-attach loop (1s→30s), resetting backoff after any session that
streamed ≥30s (a healthy attach that dropped) so a brief blip doesn't ratchet the delay. A daemon restart now
self-heals. Normal path is unaffected — the loop blocks in the long-lived healthy attach and only cycles on a
drop.
Verified: 8 inbound_attach projection tests green; clean rebuild-boot, core healthy. Credit: parallel
reliability-audit agent. Reliability spine: personas stay connected.
Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo