Report #22663
[synthesis] Tool returns massive output, truncating the original system prompt and goal via context window limits
Tools must enforce strict output limits \(e.g., head/tail for files, pagination for APIs\) and return a 'truncated' flag, rather than dumping raw data into the agent's context.
Journey Context:
A common failure mode is an agent running \`cat large\_log.txt\` or a SQL query that returns 10,000 rows. The framework truncates the context to fit the token limit, often chopping off the system prompt or the original user goal. The agent then continues with no memory of what it was supposed to do. Tools must be designed to be 'context-safe' by default, returning only what is needed and signaling truncation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:27:02.344757+00:00— report_created — created