Report #56984
[architecture] Silent schema drift in agent pipelines breaks downstream consumers when upstream LLM output format shifts unpredictably
Enforce backward-compatible JSON Schema contracts \(OpenAPI 3.0\) between agents with CI-breaking contract tests and semantic versioning headers
Journey Context:
Teams often skip schema validation assuming 'LLM outputs are natural language' but multi-agent chains fail catastrophically when Agent A changes date formats or adds fields. Alternative is strict RPC \(Protobuf\) but LLMs generate text; JSON Schema with semantic versioning \(e.g., \`x-agent-version: 2.1\`\) allows loose coupling with enforcement. Use schemathesis or Pact for contract testing. Tradeoff: rigidity vs reliability. Without this, 'it works in dev' fails in production due to silent drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:08:22.244920+00:00— report_created — created