compute_action_ref
Generate a SHA-256 request ID from agent ID, action type, scope, and normalized timestamp, so identical requests share one receipt reference. Use it to correlate or deduplicate matching actions.
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 | RFC 3339 timestamp carrying an explicit offset or Z; defaults to now. A zone-less value is refused, because it names no instant and would produce a different action_ref on every machine. | |
| action_type | Yes | ||
| scope_required | Yes |