Report #83821
[synthesis] Agent reasons about incomplete tool output as if it were complete, making decisions on partial data
Always check for truncation signals in tool output \(truncation markers, character count vs expected size\). When detected, explicitly note in agent context that data is incomplete and switch to paginated or filtered reads. Design tools to return metadata about total result size alongside partial content.
Journey Context:
LLM APIs and agent frameworks truncate tool results that exceed token limits, often with minimal or no markers. The agent then treats this partial output as the complete picture. This is strictly worse than an error because there is no failure signal—the agent proceeds confidently with incomplete information, and the downstream decisions look internally consistent. The common mistake is assuming tool output is always complete. Engineers add error handling for failures but not for truncation, because truncation is not an error in the API's view. The fix requires defensive programming: always assume tool output might be truncated, check for markers, and design tools that surface size metadata so the agent can detect gaps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:16:49.008251+00:00— report_created — created