---
status: investigating
trigger: "Doyle's latest echo-commune fired but produced empty [COMMUNE][/COMMUNE] despite real uncommuned work — challenge todlando-echo-commune-empty conclusion"
created: 2026-04-20T01:30:00-07:00
updated: 2026-04-20T01:30:00-07:00
---

## Current Focus

hypothesis: CONFIRMED — echo-commune subprocess at 01:26:59 hit a session-contention race with the foreground user-interactive claude.exe (pid 22820). The `claude -p --resume` sdk-cli subprocess wrote its prompt user turn to the jsonl (line 409 at 08:27:00.158) but its chain DEAD-ENDS after 3 attachment turns — no assistant response. During the 1.957s window between sdk-cli prompt submission and expected API response, the foreground session (pid 22820, cli entrypoint, model opus-4-7) wrote its own turn at 08:27:02.196 (line 413). sdk-cli subprocess exited with empty stdout, which echo_commune.rs:121 silently drops (no delivery to Psyche).
test: (a) Re-ran `_echo-commune c1a4dc0c doyle doyle-psyche` directly in clean shell → haiku responded with real content. (b) Ran `claude -p --resume c1a4dc0c... --model haiku` directly 3 times — all 3 succeeded. (c) Cannot reliably reproduce the race from manual testing — it depends on precise timing of foreground turn writing.
expecting: Fix = route echo-commune through a different mechanism that doesn't share the active session, OR add retry-on-empty logic, OR capture stderr so next failure is diagnosable.
next_action: Apply fix that eliminates session contention (spawn on psyche_dir-scoped session or a dedicated session) AND add observability.

## Symptoms

expected: echo-commune gate fires, haiku reads {self_id}.md + live session, summarizes real delta inside [COMMUNE]...[/COMMUNE], delta delivered to Psyche.
actual: echo-commune fired, stdout empty (or empty [COMMUNE][/COMMUNE]), nothing delivered to Psyche — despite doyle having done real work since last commune.
errors: none logged
reproduction: observable in `C:\Users\decid\AppData\Local\spt\logs_latest\doyle.log` for doyle's most-recent echo-commune firing
started: today 2026-04-20, post-v1.8.9 deploy / CWD-fix in commit 2769efb.
prior_context: Prior resolved todlando-echo-commune-empty concluded empty output = intentional "nothing significant". User's new claim: doyle DID have significant uncommuned work → that resolution may be wrong OR doyle hits a different path.

## Eliminated

<!-- populate during investigation -->

## Evidence

<!-- populate during investigation -->

## Resolution

root_cause:
fix:
verification:
files_changed: []
