Repository navigation
|
An auditor asked for evidence of what our agent did last month. A database dump is not convincing, and I do not want to hand over raw logs with personal data. What can I give them to verify on their own? |
Replies: 1 comment
|
Turn on the tamper evident audit chain, then sign checkpoints and issue receipts. Each agent's audit rows are hash chained, and const keys = await generateCheckpointKeyPair("audit-2026-10");
const store = createMemoryCheckpointStore();
const result = await createCheckpoint(db, { signer: keys.signer, store });
if (!result.success) throw new Error(result.error.message);
const made = await createReceipt(db, rowId, result.data, {
reveal: ["action", "resource", "result", "timestamp"],
});
const verdict = await verifyReceipt(JSON.parse(JSON.stringify(made.data)), keys.publicKey);A consistency proof shows a newer checkpoint extends an older one without changing earlier rows. Limits:
Docs: docs/audit-checkpoints.mdx and docs/audit-trail.mdx. |
Turn on the tamper evident audit chain, then sign checkpoints and issue receipts. Each agent's audit rows are hash chained, and
verifyAuditChainfinds edited, deleted or reordered rows. For someone outside your database,createCheckpointbuilds a Merkle tree over the chained rows and signs the tree head with Ed25519.createReceiptbundles one decision with an inclusion proof, revealing the fields you pick and hiding the rest. The counterparty verifies offline with just your public key.