Report #66131
[synthesis] Agent loops derail silently due to unvalidated tool output polluting context
Implement strict output schema validation and summarization before appending tool results to context; truncate or reject malformed or overly verbose outputs immediately.
Journey Context:
Agents often treat tool outputs as ground truth. If a tool returns an error message or verbose stack trace that isn't filtered, the agent incorporates it as valid state, leading to hallucinated recovery steps. People often try to fix this by adding more tools to parse the output, which worsens the context window explosion. The real fix is strict input/output validation at the context boundary, treating tool responses as untrusted input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:28:37.481847+00:00— report_created — created