Red Cup Engineering: x402 sellers, agent-facing web infrastructure and content-addressed evidence
Red Cup Engineering is the engineering company of the 561 Group. It builds web infrastructure whose customers are software agents: a seller that charges per call over HTTP 402, a status page that reads answers in Belnap's four truth values, names for data that do not depend on how it was spelled, and a publisher that speaks ActivityPub. The articles below explain each design with live endpoints, real headers and status codes, and code from the source, and they say what is not yet established.
How do I build an x402 seller that agents can trust?
x402 revives HTTP status 402 so software can pay per request in USDC. Our reference seller at market.561.group offers 130 paid operations on Base (eip155:8453). These articles are the engineering behind it, in the order we suggest reading:
- How an x402 payment works, step by step, from a real 402 response: decode a live
PAYMENT-REQUIREDheader field by field. - What an x402 seller should do that the spec doesn't require: the eight behaviors that separate a demo from a seller.
- Refuse before you charge: validate first, answer 400, 415 or 422 with no challenge, and cancel settlement when the handler fails.
- Per-byte x402 pricing: $0.0012 up to 4 KiB of canonical JSON, then 100 atomic units per band, with live quotes tabulated.
- Repeat purchases with X-Payment-Recovery: repeat the same signed request and receive the same purchased bytes.
- Never trust the payee in a 402 challenge: the buyer takes the payee from its own authority.
- Sign-in-with-X on an x402 402: stateless wallet login that rides on the payment challenge.
- One catalog, five machine faces: MCP, A2A, ActivityPub,
llms.txtand x402 discovery compiled from one source.
What does it mean to read HTTP in four values?
A status page that says only "up" or "down" hides the interesting answers. A 402 or 403 means a server answered and refused, which is neither up nor down. These two articles treat answers and evidence as Belnap's four values: true, false, both and neither.
- Reading HTTP in four values: the seven-line rule behind the live estate reading at 561.group/estate.json, with the current counts.
- Belnap four-valued logic as an API: knowledge and truth joins, negation and conflation, with full tables and the per-call endpoints.
How do I name data so that its spelling does not matter?
- Content-addressed names: RFC 6920 ni: URIs over canonical CBOR: the semiotic content address, with hashes you can reproduce in a terminal, and the list of our own addresses that do not yet conform.
How is this publication built, and how does it reach answer engines?
- How this site is built: TUFTE, llms.txt, JSON-LD and a build that refuses broken pages: the publication engine behind these pages, its machine surfaces and its refusals.
- Math on the web without JavaScript: LaTeX to MathML at build time, with TeX kept as an annotation and prices left alone.
How does an organization publish into the fediverse?
- ActivityPub for a publication: a Fedify provider with WebFinger, NodeInfo 2.1, signed inboxes and no unsigned mode, and what is and is not live.
- Paraconsistent federation: an inbox that records a
Createand aDeleteas a contradiction instead of letting arrival order decide.
Which reusable resources can I select?
Begin with the capability you need and its actual input, output, version and receiving condition. The dependency order is Data → Code → Networking → Systems: code uses admitted data, networking composes code and data into communication, and systems combine those capabilities for an actual receiver. A published package, a deployed process and a successfully used service establish different facts.
| Need | Resource |
|---|---|
| Charge per request over x402 | The x402 services section, reference boundary public at 561-group/x402-boundary-reference |
| Buy from an x402 seller with a pinned payee | x402-exact-purchase-service |
| Present structured material on the web | TUFTE, the web-page-tiling engine |
| Build or host a web application | computer-web-platform |
| Use an admitted inference provider | computer-inference-engine |
| Qualify and fabricate source from an admitted work order | computer-systems-fabrication-engineering-services-section |
Resource JSON records the exact package names, selected versions and canonical source references. Several of these repositories are not public. Registry downloads and repository references require the owner's authorization, and public navigation grants no additional access to source repositories, private knowledge or paid services.
Where do I go next in the Group?
Science · Engineering · Operations · Services · Market · Bazaar · Shop
What is here for software agents and readers following updates?
This site publishes `/llms.txt`, `/llms-full.txt` with every article as Markdown, and a Markdown twin at index.md under each article. Resource JSON lists resource identities, access requirements and media types, and Discovery JSON identifies navigation, search and feeds. Search with Search, or follow RSS, Atom or JSON Feed. To buy per-call operations, start from the market's x402 discovery document or catalog. This publication exposes readable documents and JSON; it does not advertise a tool-execution endpoint.