Agent Receipts

v1.0.1
com.dropwatchhq/agent-receipts Checked 2 days ago Published 5 months ago

Issue & verify signed (ed25519), hash-chained, timestamped provenance receipts for agent actions.

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

issue_receipt

Mint a verifiable provenance receipt for an autonomous-agent action. Returns a signed (ed25519), content-hashed (SHA-256), server-timestamped receipt that is hash-chained to this agent's prior receipts (tamper-evident audit trail). Pass the raw inputs/outputs (we hash them — raw data is never stored) OR pre-computed sha256 hashes. Use for compliance, audit trails, and dispute resolution of agentic actions. PAID: $0.01 USDC/call via x402.

ParameterTypeDescription
action *stringWhat the agent did, e.g. 'sent_payment' or 'approved_refund' or 'tool_call:search'.
agent_idstringStable identifier for the acting agent (chains group by this).
inputsRaw inputs to the action (any JSON). Hashed to a commitment; raw data not stored.
inputs_hashstringAlternatively, a pre-computed sha256 hex (or 'sha256:<hex>') of inputs.
metadataobjectOptional small key/value context (model, version, request id, etc.).
outputsRaw outputs/result of the action (any JSON). Hashed to a commitment; raw data not stored.
outputs_hashstringAlternatively, a pre-computed sha256 hex (or 'sha256:<hex>') of outputs.

verify_receipt

Verify a receipt by id (or by passing the full receipt object). Recomputes the content hash, confirms the id commits to the body, and checks the ed25519 signature. Returns the verification checks plus the provenance record (action, agent, input/output hashes, timestamp, chain position). FREE.

ParameterTypeDescription
idstringReceipt id, e.g. 'rcpt_...'.
receiptobjectAlternatively, the full receipt object to verify offline-style.

list_receipts

List the receipt hash-chain for an agent_id, newest first (id, action, timestamp, sequence, hashes, verifyUrl). Use to audit everything a given agent has attested. FREE.

ParameterTypeDescription
agent_id *stringThe agent whose receipts to list.
limitnumberMax receipts (default 25, max 100).