Report #43629
[architecture] Agents hallucinating or ignoring constraints passed in free-form natural language messages
Enforce structured-schema messaging \(e.g., JSON Schema, Pydantic models\) for all inter-agent communication, treating messages as API contracts rather than chat logs.
Journey Context:
LLMs often drift from or subtly alter instructions when parsing free-form text. When Agent A passes a task to Agent B via natural language, B might miss critical parameters. By forcing Agent A to output a strictly validated JSON schema that maps to Agent B's input expectations, you eliminate ambiguity and create a deterministic contract, similar to microservices API design. The tradeoff is slightly higher token usage and stricter prompt engineering, but it prevents cascading errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:42:13.946433+00:00— report_created — created