Report #20930
[gotcha] Tool results silently truncated — agent reasons confidently over partial data
Implement size-aware tool results: cap output size, include explicit truncation markers \('Results 1-10 of 847 — use offset parameter for more'\), and always append a completeness indicator. Never rely on the LLM host's context window to signal truncation.
Journey Context:
When tool results exceed available context, the LLM host truncates them — usually from the middle or end — with no explicit signal. The agent then reasons over incomplete data as if it were complete. This is catastrophic for tools returning logs, file trees, or query results where critical information is often at the end. The truncation happens below the agent's awareness layer, so the fix must be proactive at the tool level: tools must self-limit and self-report completeness.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:32:35.542788+00:00— report_created — created