Report #8813
[architecture] Using free-form natural language for inter-agent communication and state passing
Enforce strict structured-schema \(JSON/Pydantic\) messaging for all inter-agent handoffs and state updates. Define explicit input/output contracts for every agent.
Journey Context:
LLMs are unreliable at extracting structured state from unstructured text when the receiving agent needs to make programmatic decisions. Free-form text is fine for human interaction, but agent-to-agent communication needs machine-readable contracts to prevent hallucinated variables and parsing failures. The tradeoff is slightly higher token usage for JSON schemas, but it eliminates an entire class of deserialization errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T06:36:14.387239+00:00— report_created — created