ActionProof

v0.0.3
io.github.Burakfenerci5/actionproof Checked 1 day ago Published 5 months ago

Tamper-proof audit trail for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

attest_action Attest an action

Create a signed, tamper-evident receipt that THIS agent performed an action (e.g. sent an email, filed a form, made a payment). Call it right after you perform the action. Returns a SignedReceipt you can store or share; anyone can later verify it offline.

ParameterTypeDescription
type *stringAction verb in reverse-dot form, e.g. 'email.send', 'payment.send'.
delegation_bystringdid:key or id of the principal who authorized this action, if any.
delegation_refstringPointer to the grant (OAuth grant, AP2 mandate URL/URN).
delegation_scopestringAuthority granted, e.g. 'email.send'.
outcomestringOutcome of the action. Defaults to 'ok'.
paramsThe action's inputs. Stored only as a hash (privacy-preserving).
resultThe observed result/response. Stored only as a hash.
summarystringHuman-readable one-line description of what was done.
targetstringSystem/resource acted upon, e.g. 'acme-crm'.

verify_receipt Verify a receipt

Verify a signed ActionProof receipt offline. Returns whether the signature is valid and which agent did:key signed it. Optionally re-check that supplied params/result match the hashes in the receipt.

ParameterTypeDescription
signed_receipt *stringThe SignedReceipt JSON (as produced by attest_action).
expect_paramsIf provided, verify these params match the receipt's params_hash.
expect_resultIf provided, verify this result matches the receipt's result_hash.

get_identity Get this agent's identity

Return this ActionProof server's stable agent identity (a did:key). Receipts from attest_action are signed by this identity.