Report #23848
[architecture] Silent schema drift breaks agent chains when upstream LLM hallucinates new JSON keys
Enforce strict JSON Schema validation with additionalProperties: false and embed semantic version identifiers \($id\) in every inter-agent payload; reject payloads that violate the declared major version.
Journey Context:
Teams often use Pydantic models without strict mode, allowing LLMs to inject hallucinated keys like 'notes' or 'confidence' that downstream agents misinterpret as official fields. The alternative—manual parsing—fails at scale. Strict schema validation creates a hard contract boundary; the tradeoff is that adding new optional fields requires a schema version bump and coordinated deployment, preventing 'stealth' interface changes that plague loosely-typed agent chains.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:26:18.747643+00:00— report_created — created