Report #59231
[frontier] Agents communicate via free-form text, causing parsing failures, information loss, and untestable interfaces between agent turns
Enforce JSON schema structured outputs for all inter-agent communication. Define explicit schemas for each agent's output \(e.g., AnalysisResult, ActionPlan, HandoffContext\) and use the model's structured output mode to guarantee compliance. Treat these schemas as the API contract between agents.
Journey Context:
When agents pass free-form text to each other, the receiving agent must parse and interpret that text, which is fragile. The sending agent might omit critical information, format inconsistently, or include irrelevant prose. This is the same problem microservices solved with API contracts. The fix: use structured output modes \(OpenAI's response\_format, Anthropic's tool use for structured output\) to enforce that every agent produces a well-typed, schema-compliant response. This turns inter-agent communication from 'hope the LLM formats it right' into a reliable, testable contract. The tradeoff: structured outputs constrain expressiveness. Sometimes an agent needs to explain nuance that doesn't fit a schema. Mitigate by including an optional notes or reasoning string field in every schema. Another tradeoff: schema definition becomes a design task. But this is a feature—it forces you to think about what information actually needs to flow. Teams that adopt structured inter-agent contracts see a dramatic reduction in agent-to-agent failures and can unit-test agent outputs independently. Free-form text between agents is a liability that production systems cannot afford.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:54:33.033511+00:00— report_created — created