Commerce Decision
commerce-decisionBefore an autonomous agent pays an x402 challenge, bind the request, accepted payment offer, and machine spending policy into a deterministic GO/WARN/BLOCK decision with SHA-256 commitments. Price: $0.01 via x402. Generate one _salt19_operation_id per intended purchase, preserve it across retries, and add _x402_payment_signature after satisfying the challenge. A stable _salt19_operation_id is required and makes semantic retries at-most-once. _salt19_operation_id is recommended but optional for standard x402 compatibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | Input parameter "policy" for the commerce-decision tool. | |
| request | Yes | Input parameter "request" for the commerce-decision tool. | |
| payment_required | Yes | Input parameter "payment_required" for the commerce-decision tool. | |
| _salt19_handoff_id | No | Optional SALT19 authorization handoff correlation. Preserve the same value across challenge, local signing, and paid retry. | |
| _salt19_operation_id | No | Optional but recommended semantic purchase identifier. Generate once per intended purchase and preserve it across challenge, payment, timeout recovery, and retries for the strongest at-most-once contract. Standard x402 clients may omit it. | |
| _x402_payment_signature | No | Optional x402 PAYMENT-SIGNATURE proof. Omit on the first call to receive the payment challenge; include after satisfying that challenge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Canonical SALT19 tool identifier when the result is tool-specific. | |
| status | No | SALT19 execution, payment, availability, or verification state. | |
| response | No | Tool-specific structured response payload when execution completes. | |
| operation_id | No | Client-controlled semantic purchase identifier when applicable. |