Report #86510
[synthesis] Agent drifts JSON schema for tool calls over long multi-turn conversations
Enforce schema validation at the orchestration layer on every single turn, and if validation fails, inject the exact schema error back into the LLM context with a strict system prompt, rather than silently dropping the fields.
Journey Context:
Developers assume that because an LLM outputted valid JSON once, it will continue to do so. But autoregressive models drift. If the agent reasons about a new variable, it might try to add it to the JSON output. The tradeoff is the token cost of re-prompting vs. silent data loss. Strict validation with error injection is the only way to anchor the LLM back to the schema.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:47:38.386891+00:00— report_created — created