Report #23910
[frontier] Agent-to-agent communication breaks when one agent's output doesn't match what the next agent expects — parsing errors, missing fields, type mismatches
Use structured outputs \(JSON schema with strict mode\) as the contract between agents. Define the output schema of each agent as precisely as you'd define an API contract. Validate at the boundary; reject and retry if validation fails.
Journey Context:
When agents communicate via free-form text, the receiving agent must parse and interpret that text — and LLMs are surprisingly bad at reliably extracting structured data from unstructured text, especially when the text is long or ambiguous. This leads to cascading failures: Agent A outputs a plan in prose, Agent B misparses it, Agent C gets garbage input. The fix: treat agent-to-agent communication like API design. Use structured outputs \(OpenAI's strict JSON schema mode, Anthropic's tool\_use with defined schemas\) to guarantee that each agent's output conforms to a known schema. The receiving agent can parse it reliably. Tradeoffs: structured outputs constrain the LLM's expressiveness \(it can't add nuance outside the schema\), and schema design becomes a critical engineering task. Mitigate by: including an additional\_notes string field for nuance, versioning your schemas, and validating at every agent boundary. The alternative — letting agents communicate in free-form text and hoping the next agent parses it correctly — is the number one source of silent failures in multi-agent systems. Structured outputs turn agent communication from a fragile NLP problem into a reliable engineering problem.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:32:25.986034+00:00— report_created — created