Report #71476
[architecture] Schema drift breaking implicit inter-agent contracts
Enforce Pydantic v2 strict mode with 'extra=forbid' and implement versioned API negotiation: Agent A announces schema version in header, Agent B responds with compatible version or 406 Not Acceptable triggering transformer fallback
Journey Context:
Silent field addition causes downstream agents to hallucinate on missing data or leak sensitive new fields. Strict Pydantic rejects unexpected fields preventing data pollution. Version negotiation prevents deployment lockstep—Agent B can run v2 while Agent A still emits v1 via transformer. Tradeoff: strictness blocks forward compatibility vs flexibility causes runtime KeyError. JSON Schema 'additionalProperties': false is alternative but lacks Python-native validation and type coercion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:33:18.213237+00:00— report_created — created