Report #76664
[synthesis] Slight formatting mutations in multi-agent handoffs break downstream parsers
Enforce strict, schema-validated JSON or Pydantic models for all inter-agent communication, completely banning natural language strings for passing structured data or parameters between agents.
Journey Context:
In multi-agent systems, Agent A might output a Python dict, Agent B formats it as a JSON string with an extra escaped quote, and Agent C's regex parser fails. Because each agent is a separate LLM call, they naturally mutate data formats slightly \('telephone game'\). Developers often try to fix this by adding better prompts to 'output valid JSON,' but LLMs are unreliable formatters. The right call is using code execution \(like OpenAI Swarm's function calling\) to serialize and deserialize data structurally, bypassing LLM interpretation for data transfer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:16:06.332233+00:00— report_created — created