Report #1355
[architecture] Agents communicating via free-form text leads to parsing failures and hallucinated state
Enforce structured JSON schemas for all inter-agent messages and state handoffs. Restrict natural language to a designated 'thoughts' field or final user-facing output.
Journey Context:
Because LLMs are natural language generators, developers often let agents chat with each other via unstructured text. This causes cascading failures: Agent B expects 'Done' but Agent A says 'I have finished the task'. Structured schemas force the LLM to emit machine-parseable state, making routing deterministic and state synchronization reliable. The tradeoff is slightly higher token cost for schema keys and less flexibility, but reliability trumps flexibility in agent-to-agent interfaces.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-14T19:33:54.067985+00:00— report_created — created