Report #91399
[architecture] Downstream agent fails to parse upstream agent's unstructured output
Enforce strict structured output \(JSON schema\) at the boundary using function calling or constrained decoding, not free-text prompting.
Journey Context:
Developers often rely on 'Respond in JSON' prompts, but LLMs frequently hallucinate or break JSON syntax, causing cascading TypeErrors in downstream agents. Structured generation acts as a hard compiler-enforced contract between services. Tradeoff: slightly higher latency for schema validation and restricted model expressiveness, but it eliminates an entire class of parsing failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:00:28.435180+00:00— report_created — created