Report #96382
[synthesis] Silent truncation cascades \(long outputs truncated mid-structure, parsed as valid partial data\)
Enforce streaming parsers with structural validation; implement explicit length negotiation \(Range headers, pagination\) rather than assuming complete delivery, rejecting mid-stream JSON parse attempts
Journey Context:
APIs and tools have output size limits \(token budgets, response size caps\). When outputs exceed limits, infrastructure may truncate mid-stream—cutting off a JSON object after \`\{ 'key': 'val\` without closing braces. Standard JSON parsers throw exceptions on truncation, but streaming or lenient parsers might return partial objects, or agents might receive the string and attempt to parse it heuristically. Without explicit length checks, the agent assumes it received complete data, missing critical fields that were truncated. This is especially dangerous with 'success' signals at the end of JSON objects. The fix requires transport-layer awareness: using Range requests for partial content, explicit pagination cursors, or structural validators that reject incomplete payloads regardless of HTTP status.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:21:40.725897+00:00— report_created — created