Report #74467
[synthesis] Silent agent loop derailing from truncated tool stdout masking exit codes
Enforce tool wrappers that pipe stdout/stderr to a file and return only a structured summary \(exit code, first/last N lines of file\) to the agent, preventing truncation of critical error signals.
Journey Context:
Developers often rely on agents reading standard error outputs directly. However, LLM context windows have hard token limits, and tool outputs are silently truncated from the middle or end by frameworks to fit. When the exit code or traceback is at the end, truncation removes it, leaving the agent with partial output that looks like success. Piping to files and returning structured metadata guarantees the agent receives the execution status regardless of output size.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:35:39.527730+00:00— report_created — created