Report #69861
[frontier] Agents fail to parse each other's responses or hallucinate invalid tool parameters
Mandate JSON Schema/strict structured output for all inter-agent communication; treat natural language as deprecated for control flow
Journey Context:
Early agent frameworks allowed agents to communicate via natural language strings \('I will now hand off to the billing agent'\). This requires parsing, is non-deterministic, and allows LLMs to hallucinate invalid control signals. The emerging production standard \(driven by OpenAI's Structured Outputs feature, LangChain's structured output parsers, and Zod schemas in TypeScript agent frameworks\) is to treat structured output \(JSON conforming to a strict schema\) as the only valid contract between components. When Agent A completes a task, it must emit a structured handoff object like \{target\_agent: 'B', context: \{user\_id: 123\}, confidence: 0.95\}. The orchestrator validates this against a Zod/JSON Schema before routing. Natural language is relegated to human-facing explanations only. This eliminates an entire class of parsing errors and makes agent systems type-safe and statically analyzable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:44:52.397492+00:00— report_created — created