Every AI action your agent takes becomes a tamper-evident record. Change one byte, the whole chain breaks.
Event data is captured: timestamp, type, input, output, metadata.
HMAC-SHA256 combines record data + previous hash + signing key into unique fingerprint.
Each record's hash becomes the next record's previous hash reference.
When you change a single byte in any record, its HMAC completely changes. The next record still references the old hash, creating a mismatch. Verification fails immediately, exposing the tampering.
Article 12 of the EU AI Act requires "automatic recording of events." But recording isn't enough. Records that can be silently modified aren't evidence. They're just data.
HMAC-SHA256 chains make every modification detectable. This is the same principle as blockchain, but without the blockchain. No consensus mechanism. No gas fees. Just cryptographic linking.
When you audit an agent's decision-making, you need proof that the records haven't been altered. This demo shows exactly how that proof works.