Report #63937
[architecture] Silent tampering of intermediate data in long agent chains without end-to-end integrity checks
Construct a Merkle tree of agent outputs where each leaf is the SHA-256 hash of an agent's output plus the previous root \(chaining\); propagate the new Merkle root forward in a signed header. Each subsequent agent verifies the root against a signed expected value and the chain of hashes before processing.
Journey Context:
In chained agents, intermediaries \(message queues, logging systems, compromised workers\) could corrupt data undetectably. Simple checksums per message don't detect reordering, omission, or insertion of fake messages. Digital signatures per message are expensive \(asymmetric crypto latency\) and don't bind the sequence. Merkle trees allow efficient verification of entire chain integrity: agents verify a single root signature, but can pinpoint which step failed if hashes don't match. The 'chaining' \(including previous root in next leaf\) prevents replay and reordering attacks. The alternative is TLS between each hop \(protects in-transit, not at-rest tampering\) or blockchain \(overkill, high latency\). The tradeoff is memory/compute for tree construction and the need to persist intermediate hashes until the chain completes. Use canonical serialization \(e.g., Protocol Buffers with deterministic encoding\) for hashing to avoid false mismatches from whitespace or key ordering.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:48:30.681475+00:00— report_created — created