aps_construct_attribution_primitive
Construct and sign a four-axis AttributionPrimitive linking data sources, protocol modules, delegation chain, and compute providers to an action. Returns the signed object.
Instructions
Build and sign a four-axis AttributionPrimitive for an action. Axes: D (data sources), P (protocol modules), G (delegation chain), C (compute providers). Returns the complete signed object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action identity tuple; the action_ref is derived as sha256(canonical(this)) | |
| axes | Yes | Four-axis content. See spec §1.2 for entry shapes per axis. | |
| issuer | Yes | Issuer DID (gateway or agent producing the receipt) | |
| issuer_private_key | Yes | Ed25519 private key hex that signs the envelope | |
| timestamp | No | ISO-8601 UTC with ms precision + Z (§2.5). Defaults to now(). |