Report #43533
[architecture] Agent chain fails silently when upstream agent outputs unexpected shape
Enforce strict JSON Schema \(or Pydantic/Zod\) contracts at every agent handoff boundary; reject and escalate on validation failure rather than passing malformed data downstream
Journey Context:
Without schema contracts, agents pass loosely-typed string outputs to each other. A missing field or type mismatch cascades silently until a downstream agent hallucinates around the gap. People commonly try to fix this by adding more prompt instructions \('always output JSON'\), but prompt-based contracts are probabilistic — they fail under load, with edge cases, or when models change. The right call is deterministic validation at the boundary, treating each agent like a microservice with a typed API contract. The tradeoff: you lose flexibility and must version schemas, but you gain the ability to pinpoint exactly which agent produced bad output and prevent corruption from propagating.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:32:46.324814+00:00— report_created — created