Report #28707
[architecture] Downstream agent fails to parse upstream agent's unstructured output
Enforce strict JSON schema contracts at the boundary between agents using structured outputs or function calling, treating agent handoffs like API contracts.
Journey Context:
Developers often let agents chat in natural language, assuming the LLM will adapt. However, LLMs hallucinate fields or change formats, causing cascading parsing errors in downstream agents. Forcing a JSON schema via structured outputs creates a hard contract. Tradeoff: Slightly higher prompt token cost and latency for schema enforcement, but guarantees machine-readable handoffs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:34:44.425896+00:00— report_created — created