verify_receipt
Verify an AgentGuard signed receipt to confirm authenticity and detect tampering. Returns true for valid signatures, false if any signed field was altered. Optionally bind agent, task, or workflow identifiers for audit tracking.
Instructions
Independently verify an AgentGuard signed receipt. Returns valid true/false. Tampering with any signed field makes verification fail. Optional agent_id, task_id and workflow_id accept identifiers only; spend_decide binds them into the signed actor. Read-only and cost-configuration tools accept these fields without recording a spend decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | No | Optional task identifier; signed as actor.taskId on spend_decide | |
| agent_id | No | Optional agent identifier; signed as actor.agentId on spend_decide | |
| workflow_id | No | Optional workflow identifier; signed as actor.workflowId on spend_decide | |
| receipt_json | Yes | The signed receipt entry as a JSON string | |
| public_key_hex | No | Signer public key (64 hex characters). Defaults to this server signer. |