Report #57543
[architecture] Silent schema drift when upstream agent changes output format breaks downstream parser
Implement semantic versioning \(major.minor.patch\) in inter-agent message headers; downstream agents pin to major version and validate against JSON Schema with \`additionalProperties: false\`; reject messages with unknown fields at deserialization time
Journey Context:
Teams often use 'duck typing' between agents initially, but this fails when Agent A adds a new field that Agent B misinterprets \(e.g., 'confidence' vs 'score'\). Alternative is protobuf/gRPC, but that's too heavy for LLM outputs. Version pinning with strict schema validation \(Pydantic v2 or Zod\) catches drift at deserialization time. The tradeoff is rigidity vs reliability—choose reliability when agents are maintained by different teams.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:04:37.370016+00:00— report_created — created