Skip to content

Red Cup Engineering

Atlas

Ordered by date created, newest first.

article

How an x402 payment works, step by step, from a real 402 response

Decode a live x402 v2 challenge header by header: the 402, PAYMENT-REQUIRED, the signed EIP-3009 authorization, settlement and the receipt.

Open page

article

How this site is built: TUFTE, llms.txt, JSON-LD and a build that refuses broken pages

How a Markdown folder becomes pages, llms.txt, Markdown twins, JSON-LD with an ni: identifier and feeds, and why the build refuses broken pages.

Open page

article

Math on the web without JavaScript: LaTeX to MathML in Markdown, with prices left alone

Render LaTeX in Markdown to MathML server-side with temml, keep TeX as an annotation, and use Pandoc's dollar rules so $9.00 and $12.00 never become math.

Open page

article

What an x402 seller should do that the spec doesn't require

Eight seller behaviors beyond the x402 spec, each running on a live endpoint: refuse before charging, recover purchases, pin payees, one catalog.

Open page

article

Red Cup Engineering: x402 sellers, agent-facing web infrastructure and content-addressed evidence

Articles on x402 seller engineering, Belnap four-valued HTTP, content-addressed names, ActivityPub and publishing from the 561 Group's engineering company.

Open page

article

Paraconsistent federation: an ActivityPub inbox that keeps contradictions instead of last-writer-wins

An ActivityPub inbox that treats activities as claims and joins them in Belnap's knowledge order, so Create and Delete conflict instead of racing.

Open page

article

Repeat x402 purchases with X-Payment-Recovery: get the same bytes after a dropped connection

How an x402 seller returns an already-paid response when the buyer repeats the same signed request with a private X-Payment-Recovery token.

Open page

article

Per-byte x402 pricing: deterministic workload bands in atomic USDC

How a seller prices x402 calls by canonical JSON size: $0.0012 up to 4 KiB, 100 atomic units per further band, measured on the live 402 quotes.

Open page

article

Sign-in-with-X on an x402 402: stateless wallet login for returning agents

How an x402 seller attaches a CAIP-122 sign-in challenge to its 402, verifies EIP-191 and EIP-1271 proofs with stateless HMAC nonces, and grants wallets access.

Open page

article

Belnap four-valued logic as an API: knowledge join, truth join, negation and conflation per call

Eight pay-per-call endpoints implement Belnap's FOUR algebra over x402: join, meet, negate, conflate, convert and census, with truth tables and live examples.

Open page

article

Refuse before you charge: how an x402 API stops billing agents for bad requests

Validate the body and refuse with 400, 415 or 422 before any 402 challenge, and cancel settlement if the handler fails. Real live responses included.

Open page

article

Never trust the payee in a 402 challenge: buyer-side x402 payee verification

An x402 buyer must take the payee from its own authority, not the seller's 402 challenge. How an expectedPayTo check, a budget and quote-drift refusal work.

Open page

article

One catalog, five machine faces: MCP, A2A, ActivityPub, llms.txt and x402 discovery

One 130-offer catalog compiles into x402 discovery, an MCP server, an A2A agent card, an ActivityPub outbox and llms.txt so agents find the same prices.

Open page

article

ActivityPub for a publication: a Fedify provider with WebFinger, NodeInfo, signed inboxes and no unsigned mode

A Fedify-based ActivityPub provider for publications: WebFinger, NodeInfo 2.1, HTTP signatures, Data Integrity proofs and no unsigned inbox mode.

Open page

article

Reading HTTP in four values: why a 402 is neither up nor down

A status page that reads each HTTP answer as Belnap's true, false, both or neither: 2xx is true, 401/402/403 is both, no answer is false. With live data.

Open page

article

Content-addressed names: RFC 6920 ni: URIs over canonical CBOR, with worked hashes

How the 561 Group names data: an RFC 6920 ni: URI of the SHA-256 of NFC-normalized, deterministic CBOR, so key order and Unicode form never change an address.

Open page