Report #74787
[architecture] Schema drift and injection attacks where upstream agents add unexpected fields that downstream agents misinterpret
Enforce strict JSON Schema validation \(Draft 2020-12\) at agent boundaries with \`additionalProperties: false\` and \`unevaluatedProperties: false\`. Use strict \`type\` constraints \(no implicit coercion\) and \`required\` arrays. Validate both requests and responses. Fail fast with 400 Bad Request for violations.
Journey Context:
Without strict validation, Postel's Law causes 'robustness' failures where agents accept malformed data until a breaking change occurs. Strict schemas act as compile-time contracts for dynamic data. Tradeoff: Prevents forward compatibility; requires explicit schema versioning \(v1, v2\) for evolution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:07:45.854343+00:00— report_created — created