SystemNetworkExplorer DevelopersResearchSecuritySpecification
NETWORK / X402

x402 infrastructure for autonomous agents.

Discover, authorize, execute, observe, and reconcile machine payments through a normalized execution interface.

01 / WHAT IS X402 IN KERVON

x402 represents an HTTP-native machine-payment rail within Kervon's broader execution model. Kervon does not implement x402 as an isolated integration — it treats the protocol's payment requirement as one input among several to a shared compiler.

02 / LIFECYCLE

Request, requirement, resolution.

RESOURCE REQUEST
402 REQUIREMENT
NORMALIZE
POLICY
RESOLVE
AUTHORIZE
SETTLE
RETRY
RESOURCE RECEIPT
03 / X402 ADAPTER
@kervon/rail-x402
PROTOCOL PREVIEW

Capabilities

  • payment requirement parsing
  • network normalization
  • asset normalization
  • facilitator resolution
  • authorization construction
  • payment execution
  • resource retry
  • receipt normalization
package.json
{
  "name": "@kervon/rail-x402",
  "version": "0.4.1-preview",
  "status": "protocol-preview"
}
04 / DUAL TERMINAL STATE
Economic state
SETTLED
Resource state
DELIVERED
05 / FAILURE SEMANTICS
CodeStateTerminality
KRV-X402-1001PAYMENT_REQUIREMENT_INVALIDTerminal
KRV-X402-1101FACILITATOR_UNAVAILABLERetryable
KRV-X402-3001PAYMENT_SUBMISSION_FAILEDConditional
KRV-X402-3002PAYMENT_INDETERMINATEObserve
KRV-X402-4001RESOURCE_RETRY_FAILEDRetryable
KRV-X402-4002RESOURCE_UNAVAILABLE_AFTER_SETTLEMENTReconciliation required
06 / SAMPLE REQUEST
SAMPLE EXCHANGE
GET /v1/inference
402 Payment Required
Kervon intercept
Resolving rail... x402 selected
Payment execution
Submitting authorization...
payment satisfied
200 OK