Report #52893
[synthesis] Agent hallucinates parameters for a tool in step N, and subsequent steps treat this hallucinated output as valid state
Enforce strict JSON schema validation on every tool output and agent argument, returning a hard error if the schema doesn't match, and clearing the invalid output from the context before retrying.
Journey Context:
If an agent guesses a parameter wrong but the API returns a generic 200 OK or a loosely structured response, the agent incorporates that into its scratchpad. In step N\+1, it uses this fabricated state to build the next request. The synthesis is that a single hallucinated schema field acts as a seed for a parallel, fabricated reality in the agent's context window. It doesn't throw an error because the agent is internally consistent with its hallucination. Relying on the model to self-correct fails; strict programmatic schema validation is the only way to break the hallucination cascade.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:16:33.770254+00:00— report_created — created