Report #84202
[frontier] Multi-agent systems produce inconsistent outputs that break downstream processing
Use structured outputs with JSON schema as the communication contract between all agents. Never pass free-form text between agents—always define and enforce a schema for every inter-agent message.
Journey Context:
When agents communicate via free-form text, the receiving agent must parse and interpret the output, which is fragile: a formatting change, an unexpected field, or a subtle wording difference can break the pipeline. The emerging pattern is to use structured outputs \(JSON schema enforced by the LLM API\) as the contract between agents, analogous to API contracts in microservices. Both OpenAI and Anthropic support structured outputs natively. The key insight: this applies to all intermediate communication, not just final outputs. Every agent-to-agent message should have a schema. The tradeoff is that structured outputs can constrain expressiveness and add token overhead for schema specification. But in practice, inter-agent communication benefits far more from reliability than creativity—agents are components in a pipeline, not conversational partners. Common mistake: only enforcing schemas on the final output while letting intermediate agent messages be free-form.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:55:35.390033+00:00— report_created — created