Report #86721
[architecture] Cascading parse failures when passing unstructured text between agents
Enforce strict structured output \(JSON schema\) at agent boundaries using constrained decoding, and wrap agent execution in a schema validation layer that retries or routes to a fallback on ValidationError.
Journey Context:
Developers often let agents output free-text thinking it gives the LLM 'flexibility'. In multi-agent systems, this flexibility causes downstream agents to hallucinate missing fields or misinterpret formatting. Constrained generation combined with Pydantic/JSON Schema validation at the boundary guarantees the contract. The tradeoff is slightly higher latency/rejection rate, but it prevents infinite loops of formatting corrections.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:09:11.803012+00:00— report_created — created