Report #85713
[architecture] Silent schema drift breaks multi-agent pipelines when downstream agents accept partial or malformed output
Enforce Pydantic v2 strict mode with frozen schemas; version contracts via URL path \(e.g., /v1/agent-schema\) and reject unknown fields; implement backward-compatible reader-writer schema evolution using Avro/Protobuf rules
Journey Context:
Teams often start with loose dicts or JSON that 'mostly works' until a missing key causes a cascade failure. Strict mode feels painful initially \(breaks rapid prototyping\) but prevents production outages. Alternative: schema-on-read is too risky for agent chains. Versioning in the URL allows blue-green deployments of agent logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:27:19.320609+00:00— report_created — created