Tutorials, comparisons and design patterns for building autonomous agents that self-fund, call 345+ models and orchestrate MCP Tools.
Between 16 and 23 October, x402-foundation/x402 merged 60 pull requests while npm, PyPI and Go tags still point at the 29 September builds. We read the ones that matter for a payments gateway: a settlement-override ceiling that TypeScript enforced and Go and Python ported a day later, a reflected XSS in the HTML paywalls, an OPTIONS preflight that was answered with a 402, EIP-3009 signatures with v of 0 or 1, and an RFC 8785 canonicalizer that disagreed with the RFC. The Linux Foundation also named Michael Hursta executive director of the x402 Foundation.
PR #3801 (open, draft) proposes three Design Principles and an XP process for x402, modeled on MCP's SEPs. We read it at head db2f397, diffed it against MCP's SEP guidelines and design principles, and classified all 343 open PRs by path: 129 touch the spec tree, 56 are XP-shaped, and 43 of those carry no runnable artifact in the diff. We show where the carve-out for new network bindings is drawn on paths while the risk sits in behavior (Nano, Sui), how an outside author already asked the sponsor question, and six steps for LLM4Agents.
PR #3432 (open) proposes an exact scheme for Nano: the buyer signs a send block, the facilitator broadcasts it. We read the spec at head 2c5607a, recomputed the hash of a real mainnet block from its fields, confirmed the work is computed over the previous hash and not the block hash, and measured proof-of-work cost for send and receive thresholds. Because the frontier check requires the confirmed frontier, one account can have one payment in flight. A signed block never expires, and a sibling block can invalidate it. Plus what it means for our gateway and six steps.
PR #3848 (spec v0.4, open, no maintainer review) proposes a recovery extension: replay a paid answer on retry, gated on confirmed settlement. We ran the official 2.28.0 Express middleware against a mock facilitator. A handler-side replay cache served a free answer after a failed settle with zero successful settlements. Promoting by response hash gave an unpaid operation a free replay when an identical-output operation settled; promoting by operation id did not. A retry that re-signs costs two settlements for one answer. The shipped payment-identifier extension has no store, and replaying through it leaves a spendable 300-second authorization with the seller. Plus what it means for our gateway and six steps.
PR #3221 (open since 2026-08-21) adds extra.splits to the x402 exact scheme on Solana: absolute carve-outs, the merchant keeps the remainder, one TransferChecked per leg, up to eight splits. It also lets the fee payer fund recipient ATAs, the exception that drew the most review. We modeled the versioned transaction byte by byte: eight splits fit in 888 bytes, but with an ATA creation for every leg the ceiling drops to six (four with a 256-byte memo). The shipped @x402/svm 2.28.0 client ignores extra.splits and sends the full amount to payTo, so a split-blind facilitator would silently pay the merchant everything. A mainnet probe put the rent of a 165-byte token account at 1,488,440 lamports, a quarter below the PR's figure, and recipients can reclaim it, which is why payTo rotation matters. Plus what it means for our gateway and five steps.
Address Balances went live on Sui mainnet on 2026-05-21, and a proposed rewrite of the x402 binding (#3081/#3082, still open) builds on them: the facilitator simulates the buyer's signed transaction and checks only that payTo nets exactly the amount. We ran the reference facilitator on devnet and simulated against mainnet. Resubmitting or re-simulating an executed payment still returns success, so dedup lives in the facilitator: two instances with the default in-memory guard reported 20 successes for 10 payments, with a race window of about 1.5 seconds. A signed payment stays valid for 24 to 48 hours, and maxTimeoutSeconds is advisory. Gasless USDC has a $0.01 floor and a dust rule on mainnet, but not on testnet. Effects-only checks let a buyer push a sponsor's gas 9.8x. Plus a send_funds census, what it means for our gateway, and six steps.
x402 v2 puts the whole protocol in headers, and its HTTP spec never mentions browsers. In a local harness on the 2.28.0 SDK with headless Chrome, no server middleware set a CORS header, cors() defaults hid the price, and even a correct minimal CORS setup failed because @x402/fetch adds the response-only Access-Control-Expose-Headers to its own paid retry (fix #3478, open since September 15). An unpaid HEAD ran a paid GET handler; the fix #3796 is merged but no SDK has released since September 29. Node fetch fails above 16 KiB of headers and aiohttp above 8,190 bytes per header. A census of 2,233 Bazaar sellers: 875 allow the origin, 635 expose the price, 568 can be paid by a correct browser client, 120 by the shipped one; 126 answer the preflight with 402, 242 serve HEAD without payment, 188 exceed aiohttp's limit. Our own gateway hides its price too. Six steps for LLM4Agents.
Besides its version, the merged x402 offer-receipt extension signs five receipt fields: network, resource URL, payer, issue time and an optional transaction hash. No amount, payee, request or response. In a local harness on the 2.28.0 SDK, the includeTxHash flag never reached the receipt (issue #3824, an aliasing bug with a one-line fix still open in #3826), and two separate payments made in the same second came back with byte-identical receipts, signature included. One hour of Base USDC shows why that matters: 22.4% of 4,176 EIP-3009 settlements had a twin in the same block with the same payer, payee and amount. In the Bazaar, 32 of 2,452 hosts sign offers; all 796 EIP-712 signatures verify, but 21 of 22 EIP-712 signers publish neither a did:web entry nor a _controllers DNS record for their key. We read the five open proposals that try to fix this: receipt v2's salted nonce commitment (recomputed, and linked live on Base Sepolia), svm-memo, delivery-receipt with Ed25519 plus ML-DSA-65 and SSE stream digests (vectors verified, plus the one live key directory), the Buyer Delivery Claim and the Settlement-Receipt Binding. Six steps for LLM4Agents.