Repository navigation
How to prove what your AI agent did, without sharing your database #262
thegdsks
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sign a checkpoint of a tamper evident audit log, mint a receipt for one decision that reveals only chosen fields, and let the counterparty verify it offline with a public key. The example runs in memory with no model and no API key.
The example records three refund decisions, signs a checkpoint, and mints a 2152 byte receipt that hides the order ID and amount. The receipt verifies, and after a fourth row is added a consistency proof shows the newer checkpoint extends the older one.
Limits: a receipt does not prove the log is complete, does not prove you showed everyone the same log, and proves the record, not that the decision was right.
Audit checkpoints are available at the package root in @glinr/theauth 1.2.0.
Full step by step tutorial: https://docs.theauth.dev/tutorials/verifiable-agent-receipts
Runnable example: https://github.com/glincker/theauth/tree/main/examples/audit-receipts
Questions or edge cases you want covered? Reply here.
All reactions