Report #31209
[architecture] Downstream agent fails parsing when upstream agent changes output format unexpectedly
Enforce strict JSON Schema contracts at the agent boundary using structural validation \(e.g., Pydantic/Zod\) before routing. Reject and force a retry or route to an error handler if validation fails.
Journey Context:
LLMs are probabilistic; assuming they will always output the exact structure based on prompt engineering alone \('output JSON'\) fails at scale. Structural validation acts as a hard contract, similar to microservices API contracts. If the schema breaks, the orchestrator must catch it before the downstream agent receives garbage input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:46:20.867392+00:00— report_created — created