Report #38271
[synthesis] Agent proceeds with truncated tool output believing it is complete
Implement a 'completeness check' that validates output length against expected bounds or requires an explicit 'END' marker in streaming responses.
Journey Context:
When an agent calls a tool that returns a large payload \(e.g., file read, database query\), the underlying HTTP client or API may truncate the response due to timeout or max-size limits. The agent receives a 200 OK status with partial data and assumes it is complete. Common mistake: checking status code but not content-length or truncation markers. Alternative of just 'reading until EOF' fails because the connection may close cleanly after timeout, sending EOF. The agent then makes decisions on partial data without realizing context is missing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:43:01.466738+00:00— report_created — created