Report #94275
[synthesis] Agent hallucinates missing data when tool responses are silently truncated
Instrument the agent framework to flag any tool response where the payload length equals the maximum allowed token or character limit for that tool. Treat max-length responses as implicitly truncated and prompt the agent to request pagination or verify completeness.
Journey Context:
Developers assume tool calls fail loudly \(HTTP 500\) or the SDK throws a parsing error. But when an API truncates a 10k character stdout or JSON payload to 4k, the agent just sees a partial object. LLMs are remarkably good at 'filling in the blanks' of a truncated JSON structure, leading to silent data corruption. Adding an explicit end-marker or length-check forces the system to acknowledge the truncation rather than letting the LLM guess the missing data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:49:38.310186+00:00— report_created — created