Report #93792
[architecture] Downstream agent fails unpredictably when upstream agent's output schema drifts silently, causing parsing failures or hallucinated field interpretations
Implement hash-locked schema contracts where the downstream agent validates both the JSON Schema and a SHA-256 hash of the schema definition itself before deserialization; reject and escalate if hashes mismatch
Journey Context:
Simple JSON Schema validation is insufficient because schemas evolve; if Agent A updates its output schema but Agent B's old schema allows extra fields \(additionalProperties: true\), B silently accepts invalid data. Hash-locking forces explicit versioning: the schema becomes a contract artifact checked into both agents' repos. Alternatives like Protobuf or Avro with schema registries were considered, but they introduce heavy infrastructure; hash-locked JSON Schema provides the same guarantee with lighter weight. The tradeoff is that agents must fetch or cache the schema hash, adding a lookup, but this prevents the catastrophic failure mode of semantic drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:01:09.216758+00:00— report_created — created