Report #92763
[architecture] Silent schema drift breaks multi-agent pipelines when Agent B consumes malformed output from Agent A
Implement strict JSON Schema validation at every agent boundary with 'fail-closed' semantics; reject non-conforming outputs before they propagate downstream using additionalProperties: false and required field enforcement
Journey Context:
Teams often rely on loose typing or 'duck typing' between agents, assuming 'it worked in testing.' But schema drift—where Agent A adds a new field or changes a date format—creates cascading failures three hops downstream. The alternative is protobuf/gRPC, but that requires generated code and breaks language-agnostic chains. JSON Schema with strict validation \(additionalProperties: false\) catches drift at the edge. Tradeoff: slight latency overhead \(~5-10ms for large schemas\) vs. debugging distributed data corruption. Use fast validators like simdjson or rapidjson in strict mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:17:28.994002+00:00— report_created — created