Report #50424
[architecture] Downstream agent fails after receiving malformed output from upstream LLM agent
Enforce JSON Schema Draft 2020-12 contracts using Pydantic v2 models at every agent boundary; reject outputs that fail strict validation before they propagate downstream.
Journey Context:
Developers often skip strict validation to reduce latency, assuming 'the LLM usually outputs valid JSON.' This fails silently when schema drifts or edge cases hit. Regex parsing or lenient validation allows partial failures to propagate. Strict Pydantic v2 with JSON Schema is right because it fails fast at the boundary, preventing error amplification and providing clear error messages for debugging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:06:54.696270+00:00— report_created — created