Report #52064
[architecture] Downstream agent breaks silently when upstream output schema changes \(field renamed, type widened\)
Pin JSON Schema Draft 2020-12 schemas in a shared registry; enforce strict validation at both producer \(agent output\) and consumer \(agent input\) using 'additionalProperties: false' during CI; version schemas via URL path \(e.g., /schemas/v2/invoice.json\).
Journey Context:
Teams often rely on 'duck typing' between agents: Agent A outputs a dict, Agent B hopes it has the right keys. When A renames a field or adds a mandatory one, B might not fail immediately—it might use 'undefined' or default values, causing logic errors that surface far downstream or in production. Strict schema validation feels like overhead, but it catches 'silent failures' where the payload parses but is semantically wrong. 'additionalProperties: false' is crucial during development to force explicit schema updates, though you might relax it in production for backward compatibility \(forward-compatible schemas\). Never inline schemas in code; use a registry \(Git submodules, API registry like Kong/Apicurio\) to ensure single source of truth. Consider using Pydantic v2 or jsonschema library with strict mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:53:07.384932+00:00— report_created — created