Report #56438
[architecture] Agents fail to parse instructions or hallucinate parameters when communicating via free-form natural language
Use structured-schema messaging \(e.g., JSON Schema, Pydantic models\) for all inter-agent communication, reserving natural language only for the outer narrative wrapper or human-facing outputs.
Journey Context:
It is tempting to let agents 'just talk' since LLMs excel at language. However, free-form chat between agents leads to fragile chains where a slight phrasing change drops a critical variable. People try to fix this with increasingly desperate prompt engineering \('YOU MUST OUTPUT JSON'\). The right tradeoff is to enforce programmatic contracts between agents. The LLM generates the payload, but the runtime validates it against a schema before the receiving agent processes it. If validation fails, it retries or routes to a fallback, treating the LLM as an untrusted I/O boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:13:27.504395+00:00— report_created — created