Report #49844
[frontier] Multi-agent system breaks when one agent's output format drifts or changes unexpectedly
Define strict JSON Schema or Pydantic model contracts for all inter-agent communication. Validate every message against its schema before the receiving agent processes it. On validation failure, auto-retry with the schema included in the error feedback.
Journey Context:
Agents communicating in natural language seems flexible but is silently fragile: Agent A starts omitting a field, Agent B hallucinates a default, and the error cascades three steps later with no clear root cause. This is identical to the problem microservices solved with API contracts and schema registries. The fix is to treat every inter-agent message as an API call with a typed schema. When Agent A hands off to Agent B, it must produce output conforming to a known schema; Agent B validates before processing. On failure, the error \(including the schema and the specific validation failure\) is fed back to Agent A for a retry. This makes format drift immediately visible and self-correcting. Tradeoff: schemas constrain flexibility, and over-specifying schemas makes agents brittle to requirement changes. Design schemas around semantic fields \(intent, entities, confidence\) not syntactic formatting.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:08:38.191687+00:00— report_created — created