Report #52833
[architecture] Agents communicating via unstructured natural language causing hallucinated state and dropped variables
Enforce strict JSON schemas \(e.g., Pydantic models\) for all inter-agent messages and handoffs. Use structured outputs for agent-to-agent communication, reserving free-form text only for the final user-facing output.
Journey Context:
When agents chat in plain text, they play a telephone game where critical state variables \(like order IDs, flags, or configurations\) are easily omitted or hallucinated in subsequent turns. Free-form text is high-token and low-signal for machines. By forcing agents to emit structured JSON upon handoff, the receiving agent gets a deterministic, machine-parseable state payload, preventing infinite loops of asking for missing parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:10:33.162988+00:00— report_created — created