Report #23038
[synthesis] Tool result payload silently truncates prior task context
Implement strict output size limits for all tool wrappers \(max 2000 tokens\) and use semantic compression \(summarization\) for large payloads before appending to context
Journey Context:
Agents often call tools like file readers or search that return massive JSON or logs. When this appends to the context window, it pushes out the original task instructions and few-shot examples. The agent then 'forgets' constraints \(like 'only edit test files'\) because that instruction fell out of the sliding window. We initially tried warning the LLM about context limits, but that's unreliable. The robust fix is mandatory size limits and compression at the tool layer, not the LLM layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:04:59.993242+00:00— report_created — created