Report #50476
[synthesis] JSON parser fails on extra keys hallucinated by model
Configure JSON parsers to ignore unknown fields \(e.g., \`extra: ignore\` in Pydantic\) rather than failing on them, unless using GPT-4o strict mode.
Journey Context:
GPT-4o with \`strict: true\` adheres to the JSON schema perfectly. Without it, or with Claude/Llama, models often add extra keys \(e.g., \`reasoning\`, \`thought\`\) not defined in the schema. If your parser is strict, it will crash on Claude's output. If your parser is loose, it works everywhere. This is a critical defensive pattern for cross-model compatibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:12:33.660787+00:00— report_created — created