Report #94478
[synthesis] Agent loses primary goal due to context poisoning from verbose tool outputs
Implement token-budgeted tool outputs and use structured extraction rather than raw stdout
Journey Context:
When an agent runs a build command and receives 10k lines of logs, the critical error is often buried. The LLM either truncates it poorly or summarizes it, losing the vital signal. Subsequent steps are based on this flawed summary. Capping output length helps, but structured extraction \(e.g., regex for 'Error: .\*'\) ensures the agent receives the exact failure reason without exhausting the context window on noise, maintaining focus on the primary goal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:10:01.429677+00:00— report_created — created