compute_action_ref
Compute a SHA-256 based request identifier from agent ID, action type, scope, and timestamp. Use it to deduplicate or verify that two receipts describe the same request.
Instructions
Compute content-addressed request identity (SHA-256 of agentId + actionType + scope + normalized timestamp). Two receipts with the same action_ref describe the same request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| timestamp | No | ISO 8601 timestamp; defaults to now | |
| action_type | Yes | ||
| scope_required | Yes |