Report #84453
[synthesis] Agent outputs subtly wrong JSON tool arguments that pass silent type coercion but break downstream logic
Enforce strict JSON schema validation at the orchestrator level before tool execution, and log implicit type coercion events as high-severity warnings, not just debug traces.
Journey Context:
LLMs frequently drift from expected schemas, passing strings '3' instead of integers 3, or omitting optional fields. Orchestrators often perform implicit type coercion to keep the agent running smoothly, preventing exceptions. This masks the fact that the LLM's output distribution is degrading. A string '3' passed to a math operation might coerce fine, but a string '3' passed to an API expecting an integer ID might fail silently or fetch the wrong resource. Logging coercion events catches the leading indicator of model degradation before it results in a hard API error.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:20:45.589877+00:00— report_created — created