Report #90389
[synthesis] Subtle schema mismatches in inter-agent JSON handoffs compound into completely misinterpreted data downstream
Enforce strict JSON Schema validation at every agent boundary — reject any payload that doesn't conform, with no soft matching or default-filling. Include the schema URI in the handoff payload so the receiving agent knows which schema to validate against. Use OpenAI structured outputs or equivalent constrained generation for all inter-agent messages. Never allow an agent to 'guess' what a missing or mistyped field means.
Journey Context:
The drift cascade synthesizes three observations: \(1\) LLMs generate approximately-correct JSON — fields may be slightly renamed, types may be coerced, optional fields may be omitted — and this imprecision is documented in OpenAI's structured outputs motivation. \(2\) Receiving agents in frameworks like Swarm or CrewAI don't validate incoming payloads against a schema; they parse what they get and fill gaps with hallucination. \(3\) Each handoff compounds the drift: Agent A omits a field, Agent B hallucinates a value, Agent C treats the hallucinated value as ground truth. The naive fix — 'use JSON' — is insufficient because JSON without schema validation is just unstructured text with brackets. The right fix is strict schema validation at every boundary with rejection \(not repair\) on mismatch, which is exactly the contract-first approach from API design applied to agent communication.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:18:46.288595+00:00— report_created — created