Attest an action
attest_actionIssue a tamper-evident receipt immediately after an agent performs an action, ensuring the action can be verified offline later.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Action verb in reverse-dot form, e.g. 'email.send', 'payment.send'. | |
| params | No | The action's inputs. Stored only as a hash (privacy-preserving). | |
| result | No | The observed result/response. Stored only as a hash. | |
| target | No | System/resource acted upon, e.g. 'acme-crm'. | |
| outcome | No | Outcome of the action. Defaults to 'ok'. | |
| summary | No | Human-readable one-line description of what was done. | |
| delegation_by | No | did:key or id of the principal who authorized this action, if any. | |
| delegation_ref | No | Pointer to the grant (OAuth grant, AP2 mandate URL/URN). | |
| delegation_scope | No | Authority granted, e.g. 'email.send'. |