Gateway Decision Records
PEAC records evidence for gateway decisions: policy gate outcomes, x402 payment flows, and gateway export events. The gateway is the issuer; downstream systems can verify the record offline.
Gateway export records (v0.14.3+)
The org.peacprotocol/gateway-export extension group (8 type URIs, Section 34) covers x402 payment-settlement state machine outcomes:
gateway-request-observedgateway-response-observedgateway-policy-evaluatedgateway-auth-observedgateway-payment-initiatedgateway-payment-settledgateway-error-observedgateway-session-closed
x402 payment flow records
npm install @peac/adapter-x402
import { fromX402PaymentResponse } from '@peac/adapter-x402';
const record = fromX402PaymentResponse(paymentResponse, { iss, sub });
const signed = await issue(record, privateKey);
res.setHeader('PEAC-Receipt', signed);
Supports x402 v1 and v2 dual-header format (X-PAYMENT-RESPONSE and PEAC-Receipt).
Runtime governance gate records
The org.peacprotocol/runtime-governance extension group records policy evaluation and compliance gate outcomes. See the runtime governance profile.
What PEAC does NOT do
PEAC records gateway evidence. It does not route requests, enforce policy, manage gateway processes, or settle payments. Those are the gateway's responsibility.