Report #39745
[architecture] Downstream agent fails when upstream agent changes output format due to prompt drift or model update
Implement JSON Schema validation with strict mode and backward compatibility gates; reject outputs that add undocumented fields or change types, and enforce schema evolution through versioned CI checks
Journey Context:
People often use loose typing or Pydantic without strict mode, assuming 'extra fields are harmless', but this creates brittle pipelines that break silently when an agent starts emitting new keys or changes a string to a list. The alternative is manual integration testing, but that catches errors too late. The right call is strict JSON Schema validation \(draft 2020-12\) with 'additionalProperties: false' and a CI gate that compares the current schema against the previous version to detect breaking changes before deployment. Tradeoff: Strictness requires versioning overhead and migration discipline, but prevents runtime deserialization failures and cascading failures in agent chains.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:11:13.387179+00:00— report_created — created