Skip to content

fix(airc): inbound attach re-attaches on daemon drop — persona no longer goes permanently deaf (audit #5) - #1860

Merged
joelteply merged 1 commit into
canaryfrom
fix/airc-inbound-attach-reconnect
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/airc-inbound-attach-reconnect

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

…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
@joelteply
joelteply merged commit c41eacd into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/airc-inbound-attach-reconnect branch July 6, 2026 05:21
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