Report #79294
[synthesis] Observation truncation hiding critical failure signals when long tool output error messages are at the end
Enforce structured logging with error-first formatting; validate tool outputs for completeness before passing to LLM and check exit codes before content
Journey Context:
Default truncation behavior for long stdout often clips the end of output, but error messages in shell tools \(stderr\) and exceptions typically appear at the bottom. The agent sees a partial success \(the beginning of output\) and continues, missing the critical error at the end. Simple truncation limits are insufficient; the fix requires checking the process exit code first, and if non-zero, ensuring the error stream is prepended to the observation or using head/tail reversal to ensure error visibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:41:29.281537+00:00— report_created — created