Report #36578
[frontier] Agents communicating via freeform text produce unparseable outputs that break downstream agents in multi-step workflows
Define inter-agent communication contracts as JSON schemas attached to tool definitions or structured output configurations. Every agent-to-agent handoff uses a typed schema—never raw text. The receiving agent's input schema IS the sending agent's output schema. Enforce strict mode on structured outputs so the model cannot deviate from the contract.
Journey Context:
The common pattern is agents returning natural language that another agent must parse in its next turn. This is fragile: the receiving agent interprets the same text differently each time, and small formatting variations cascade into parse failures downstream. By enforcing structured outputs at the boundary \(using OpenAI structured outputs with strict schema or Anthropic tool\_use with json\_schema\), you get deterministic interfaces between agents. The LLM still reasons in natural language internally, but the boundary is typed. This is to agent communication what API contracts are to microservices. The tradeoff: structured outputs are slightly slower and more expensive per token, and overly rigid schemas can force the model into unnatural outputs. The fix is to make schemas permissive in shape but strict in required fields—give the model room to express uncertainty in optional fields while guaranteeing the fields the next agent needs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:52:24.937594+00:00— report_created — created