Receipts
Preserve receipts after every agent action.
Receipts are the operational record for billing, governance, approvals, errors, and audit trails. Agent adapters should keep the full ActLayer response.
Receipt fields
receipt metadata
{
"success": true,
"capability": "web_search",
"cost": 0.003,
"currency": "USD",
"receipt_id": "rcpt_...",
"approval_id": null,
"decision": "allow",
"risk_score": 12,
"reasons": ["capability_active", "agent_active"],
"policy_version": "actlayer-srg-1",
"execution_time_ms": 840
}What to log
receipt_id
Stable lookup id for the action and wallet ledger relationship.
cost
The charged amount for successful paid actions. Failed actions normally return zero after refund.
decision
Governance outcome: allow, block, or needs_approval.
risk_score
SRG score used by the policy engine for the action.
approval_id
Present when a dashboard approval is required before execution.
policy_version
The SRG policy version that produced the decision.
