Report #27304
[architecture] Unstructured JSON passed between agents causes cascading validation failures downstream
Enforce strict JSON Schema contracts at the boundary of every agent, validating inputs before execution and outputs before returning control to the orchestrator.
Journey Context:
Agents often output loosely structured text that gets parsed into JSON. If Agent B expects \{"summary": str, "tickets": list\} and Agent A hallucinates \{"summary": str, "tickets": "none"\}, Agent B crashes or hallucinates further. Using JSON Schema provides a programmable, language-agnostic contract that can be injected into the LLM prompt and validated deterministically in code. The tradeoff is rigidity and prompt token overhead vs. reliability. Alternatives like Pydantic classes in code work for single-process but fail across distributed agents or cross-language boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:13:25.295663+00:00— report_created — created