Report #62603
[synthesis] Agent outputs valid JSON schema but hallucinates or genericizes the values
Add semantic validation checks \(e.g., embedding distance or LLM-as-a-judge\) on the values of critical fields in the structured output, not just schema validation.
Journey Context:
Production systems often rely on structured output \(JSON mode, function calling\) to ensure the agent's output can be parsed by downstream systems. When the model degrades \(due to version updates or prompt drift\), it often maintains the structural integrity \(the JSON is valid\) but fills it with plausible-sounding but incorrect data \(e.g., defaulting to empty strings, repeating the same value, or hallucinating IDs\). Schema validation passes, so the pipeline does not break, but the business logic fails downstream. You need value-level validation, not just syntax-level.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:33:55.772621+00:00— report_created — created