Report #53875
[architecture] Unvalidated LLM output poisoning downstream agents in multi-agent chains
Enforce strict JSON Schema validation \(Draft 2020-12\) at every inter-agent boundary using Pydantic v2 or equivalent; reject outputs that fail validation and trigger retry/fallback logic rather than passing partial or malformed data to the next agent.
Journey Context:
Raw string passing between agents allows hallucinated JSON, schema drift, and type mismatches to cascade silently. Many tutorials show simple string passing, but production systems need syntactic contracts. The tradeoff is latency \(validation overhead\) vs safety. Use Draft 2020-12 'strict' mode to disallow unknown properties and enforce type coercion rules, preventing agents from ignoring unexpected fields that indicate hallucinations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:55:38.819167+00:00— report_created — created