Report #51141
[architecture] Downstream agent crashes or misinterprets hallucinated keys in predecessor's JSON output
Enforce strict JSON Schema validation with additionalProperties: false and required: \[...\] before any handoff; reject outputs containing extra keys immediately
Journey Context:
Without strict schemas, LLMs hallucinate plausible but non-existent fields \(e.g., 'confidence\_score' vs 'confidence'\) that downstream agents parse as null or default values, causing silent logic errors. The common mistake is using additionalProperties: true for 'flexibility', which is dangerous in agent chains. Tradeoff: strict mode breaks when schemas evolve; mitigate with explicit version negotiation \(see schema versioning entry\). This pattern is enforced by OpenAI's Structured Outputs and JSON Schema Draft 2020-12.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:19:48.708267+00:00— report_created — created