Agent Payments
The Agent Payments pack is six controls for agents that buy things. You send ClawGRC what happened (an Agent Commerce Check decision, a signed receipt, a kill-switch test) through the same event sink as Gateway Evidence. ClawGRC chains it, tags it with the controls it supports, and answers one question per control: pass, fail or no evidence.
The six controls
| Control | Passes when |
|---|---|
PAY-01 Mandate or approval present | Every purchase names an owner mandate that covers it or an owner approval of that cart |
PAY-02 Owner approval above the step-up threshold | A cart the checker answered step_up settles only with an approval; an approval covers one cart; a denied cart never settles |
PAY-03 No card number stored | Ingestion refuses any commerce event holding a Luhn-valid card number and keeps only the field name |
PAY-04 Signed receipts kept | Every receipt's merchant signature verified at ingestion; refunds and chargebacks fit their purchase |
PAY-05 Kill switch tested | The newest test in the last 90 days shows a purchase refused after the owner paused the agent or revoked its mandates |
PAY-06 Organisation quorum | Every purchase by an organisation's agent that settled by approval is backed by a check whose approvals ClawGRC verified: at least the organisation's quorum of distinct approver devices, for that cart and request |
The pack is a framework in your workspace (Agent Payments Control Pack). Its controls map to SOC 2 (CC6.1, CC6.3, C1.1, CC7.2, CC7.4), ISO/IEC 42001 (A.6.1, A.8.3, A.10.4, A.10.8), the EU AI Act (Articles 10, 12, 14), AIUC-1 (A006, A008, B006, B007, C007, C009, E001, E015) and PCI DSS v4.0.1 (3.3.1, 3.4.1, 3.5.1, 7.2.1, 7.2.2, 10.2.1, 10.3.4, 12.10.1). PCI DSS is seeded with those eight requirements only. Load the new framework data with make seed.
Send evidence
POST /v1/gateway/events with an agent API key, as for gateway events. The agent is named by DID and must be registered in your organization with that DID.
{ "events": [
{ "version": "entity-gateway-hook/1", "event": "commerce_check",
"metadata": { "did": "did:key:z6Mk...agent", "request_id": "chk_1" },
"commerce": { "evidence_id": "ev_9", "decision": "step_up", "reasons": ["over step_up_over"],
"merchant_did": "did:web:shop.example", "cart_digest": "<64 hex>", "total": 2500,
"currency": "USD", "rail": "credits", "verifier_version": "commerce-check/1", "checked_at": 1794700000 } },
{ "version": "entity-gateway-hook/1", "event": "commerce_receipt",
"metadata": { "request_id": "rc_1" },
"commerce": { "receipt": { "version": "receipt/1", "…": "…", "proofs": [ { "by": "merchant", "…": "…" } ] },
"share_for_reliability": false } },
{ "version": "entity-gateway-hook/1", "event": "commerce_kill_switch", "metadata": { "request_id": "ks_1" },
"commerce": { "agent_did": "did:key:z6Mk...agent", "action": "pause", "mandates_revoked": 1,
"latency_ms": 700, "purchase_blocked": true, "observed_at": 1794700000 } }
] }
A receipt is checked with the Open Entity SDK before it is stored. A receipt the merchant did not sign, or whose proof does not verify, is rejected and not stored, so a dispute pack never holds a forged one. A receipt is filed under the agent named in the receipt itself, never under the calling key's agent. Unknown fields are rejected: send summaries, not bodies.
Status
GET /api/v1/agent-interactions/commerce-status (MCP tool grc_commerce_pack_status) returns each control's status and the counts behind it, for the last 90 days.
Dispute evidence pack
POST /api/v1/reports/dispute-pack with {"receipt_id": "rc_...", "name": "..."}, or the MCP tool grc_generate_report with type: "dispute_pack" and receipt_id. The pack is JSON, saved as a report, and holds:
- the purchase receipt and its refunds and chargebacks, with who signed each and a check that refunds stay inside the purchase;
- the Agent Commerce Check decisions on that cart, and the mandate hash and approval request id the receipt names;
- the agent's kill-switch tests and its gateway activity within an hour of the purchase;
- for an organisation purchase, the organisation, cost centre and the verified approvals that released it;
- the six control statuses at that moment;
- for every row above, whether it still hashes into your organization's chain, and a
pack_sha256over the whole pack.
ClawGRC stores hashes and digests of mandates and carts, not the signed objects; the owner and the merchant hold those. Receipt proofs can be re-checked with openentity.verify_receipt on receipts[].receipt. The compliance engine cannot create a dispute_pack report itself.
Organisations: cost centres and quorum approvals
If an OpenEntity organisation owns your agents, tag what you send. commerce_receipt and commerce_check take optional org_did, cost_centre and team (read them from the agent's record in the account service; a signed receipt cannot carry them, so ClawGRC treats them as your report). A commerce_check for a cart the organisation's approvers released takes quorum:
"quorum": { "m": 2, "of": ["<approver kid>", "<approver kid>"], "request_id": "req_m1",
"approvals": [ { "version": "approval/2.0", "…": "…" }, { "version": "approval/2.0", "…": "…" } ] }
ClawGRC verifies every approval against the organisation's key log and the quorum policy its account service publishes before it stores the check, and refuses a quorum smaller than that policy. A check with one bad, duplicate, expired or wrong-cart approval is rejected. Report it within an hour of checked_at.
GET /api/v1/agent-interactions/spend-evidence?from=2026-11-01&to=2026-12-01&format=csv returns what the receipts say each cost centre spent in the period (from included, to excluded, at most 400 days): purchases, spent, refunded, charged back, net in minor units, and how many purchases a verified quorum covered. Refunds count against the cost centre of the purchase they refer to; untagged spend is (none). Leave format out for JSON.
Merchant reliability
If you set share_for_reliability: true on a receipt that both the merchant and the agent signed , it counts toward the public claim custom:clawgrc:merchant_reliability about the merchant's DID: orders, distinct reporters, fulfilled rate and refund rate over 30 days. The fulfilled rate comes from the merchant's own signatures (a purchase receipt is fulfilled unless the merchant signed a chargeback against it); a fulfilled field you send is ignored. Nothing else leaves your workspace: no amounts, carts or mandates. ClawGRC issues the claim only for a merchant the Open Entity registry knows, with at least 5 orders from at least 3 different buyer owners (the account service must attest who operates each buyer agent; the merchant's DID needs an attested owner too, and that owner's own purchases do not count), and revokes it when the merchant falls below that. The claim reports what merchants and agents co-signed and said; ClawGRC does not see the payment, so read it as reported behaviour, not settlement proof.
The pack statuses are likewise computed from what your own keys sent. PAY-05 passes on a kill-switch test you report; run the test, then send the result.