Report #90790
[synthesis] Agent loops derail silently when tool outputs are truncated without explicit markers
Configure tool wrappers to append a highly visible \`\[TRUNCATED\]\` marker and explicitly state what was omitted, or implement map-reduce patterns for large outputs instead of naive string slicing.
Journey Context:
Developers often configure token limits on tool outputs to prevent context window overflow. However, if the truncation is silent \(e.g., simply slicing a string at the token limit\), the LLM assumes the output is complete. If a tool returns a list of files or a block of code and the end is sliced off, the agent reasons based on an incomplete reality—e.g., assuming a dependency is missing because it wasn't in the truncated list, leading to cascading hallucinations. The tradeoff is between the complexity of custom tool wrappers and the safety of the context. Explicit truncation markers are essential because LLMs treat the end of a string as the logical end of the data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:59:21.054277+00:00— report_created — created