Skip to main content
Version: v0.12.11

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-observed
  • gateway-response-observed
  • gateway-policy-evaluated
  • gateway-auth-observed
  • gateway-payment-initiated
  • gateway-payment-settled
  • gateway-error-observed
  • gateway-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.