Skip to content
holistisPublic

About

Lets AI agents record, in a way anyone can check, whether they actually got what they paid another agent for over x402. Cites and reads the agent-economy stack it plugs into (ERC-8004, AP2, x402), never re-implements it. No trust score, no token, no lending.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

tokenizen

Nederlandse versie / Dutch version: README.nl.md

Open-source infrastructure for the seller side of agent commerce: signed, content-addressed records of what an agent actually delivered, what it controls, and under which conditions, verifiable by another agent without a human in the loop.

What this gives you

An AI agent pays another agent or service, the money settles, and then the trail stops. There is no record of whether 28,800 GPU-seconds were promised and 25,230 arrived. The buying agent saw it firsthand and that knowledge dies with the session, so the next agent starts blind.

Three concrete things close that gap:

  • A signed delivery claim the buyer leaves behind after settlement, including the gap between what was promised and what arrived, hashed to its own content so it cannot be edited after the fact.
  • A time-bounded attestation about a network endpoint, issued only after the operator has proved it controls that endpoint.
  • Verifiers and signed test vectors, so anyone can check a claim against an independent implementation rather than trusting ours.

No reputation score, no judgment, no financial instrument. A delivery slip, not a verdict.

Call it

There is a live endpoint. It answers 402 with signed offers in the Payment-Required header, and issues an EIP-712 receipt after settlement, under the x402 offer-and-receipt extension.

curl -i -X POST https://api.tokenizen.nl/api/paid/verify-ownership \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"https://api.tokenizen.nl/sse","ownerAddress":"0x1111111111111111111111111111111111111111","method":"dns-txt"}'

The offers are in the header, not the body. Base64-decode it, recover the signature against the domain {name: "x402 offer", version: "1", chainId: 1}, then check that the recovered key is allowed to speak for the host, which the specification treats as a separate question:

dig +short TXT _controllers.tokenizen.nl
"v=1;controller=did:pkh:eip155:1:0x4E1174b774643B6AD9EE966A81ea1e3665D1159a"

Same key. Two commands, no trust in us required.

It runs on Base Sepolia, so the money is test money and the cryptography is not. If you are implementing the client side of that extension, this gives you a live signed artifact instead of a fixture you wrote yourself and therefore cannot be surprised by.

Two honest limits. The transaction field in those receipts is empty, so a receipt cannot name its own settlement; that is an upstream bug we traced and filed, with the fix open as x402#3826. And every payment through it so far has been ours on both sides, which proves the chain runs and proves nothing about adoption.

Independently verified

Code is copyable, independent verification is not. Everything below is someone else checking our work rather than reading about it, with the link so it can be checked again.

What someone else verified Where
The measured block cited as the source of truth for metered delivery in a draft ERC-8004 grounded-feedback convention, pinned to a specific commit of this repo. That party built its own conformance set of five signed vectors around it, plus two verifiers that share no code (Node and Python), both green erc-8004/erc-8004-contracts#99, vectors and verifiers in predgeAI/erc8004-outcome-validator
An independently rebuilt, stdlib-only Python verifier with its own secp256k1, EIP-191 and canonical-JSON implementation, no shared code, 7/7 match including both negative controls, now a permanent regression test in a separate published project x402#2887 (comment), author goun7, shipped in Tamga
A second implementer ran the metered test vector from a fresh clone at HEAD: 12/12 green across canonical preimage, claimId recomputation, EIP-191 digest, signature recovery, buyer address match, tamper detection on deliveredAmount and both period checks, with no network call x402#2833 (comment), author StelarDigital
The same implementer then composed our claimIds into his own RFC-6962 Merkle batch alongside his delivery receipts, using our public test vector unmodified and his own unchanged merkle.js, to check the two formats meet at the leaf. His own receipts in that batch are synthetic fixtures, which he labels as such x402#2833 (comment), author StelarDigital
A BSV rail adapter built on the same content-addressed claim format by a separate author, merged into a third party's spec repo asm-spec#19, author EmbryoSpace
Live delivery claims readable on-chain by anyone, on three separate deployments Base · Optimism · Ethereum
A real giveFeedback() call against the ERC-8004 Reputation Registry on Base mainnet tx 0x2217...efc0

Full list, including the entries still in review: packages/capacity-attest/README.md.

Separate from that table, because it is not third-party review: we ran our own adversarial security review before the first version that writes to a blockchain. Nine findings, all fixed, report published. That was our own work, not an independent audit, and it is listed apart for that reason.

Why this exists

The chain of an agent buying or selling something has six links: agent, identity, rights, asset, payment, settlement. The buyer side of that chain is already under heavy development: wallets, payment protocols like x402, agent identity. What's missing is the seller side: how do you record what you, as an agent, claim to have delivered, what you own, and what the rights to it are, in a way another agent can verify without a human in the loop. That's a signed trail, not independent proof of the underlying reality.

Tokenizen builds that object, not the buyer side. Three independent tracks converged on the same conclusion: a formal internal review of what is and isn't permissible in agent-to-agent commerce, market research into what already exists in this space and what's missing, and an inventory of our own code that had been running into similar problems for years. All three pointed at the same gap: verification and settlement on the seller side, without financial constructs that aren't permissible.

The design boundary

This project has a permanent, deliberate boundary, the result of a formal internal review. That boundary applies to the whole project, not just one package.

Green (we build this):

  • Verification and audit trails for delivered services or assets
  • Policy and scope checks between agents
  • Real capacity trading (compute, storage, API credits, bandwidth) that is actually delivered

Yellow (with conditions):

  • Settlement is spot-only: payment against immediate delivery, no deferred settlement
  • Credits are redeemable vouchers for a service, not a tradeable financial instrument

Red (never):

  • Interest or time-discounting on payments
  • Loans or credit extension
  • A native token or coin
  • Factoring or invoice financing
  • Yield products

If in doubt whether something brushes against this line: it stays out, no matter how technically interesting.

Packages

Package What it does npm
capacity-attest The core claim format and an MCP server with record_delivery and get_delivery_history. After an x402 payment for capacity, the paying agent leaves a signed, factual claim of what was actually delivered, including promised against delivered amounts. Other agents can pull that history before paying themselves. capacity-attest (0.7.0 published, 0.8.0 not yet published)
endpoint-attest Time-bounded, owner-requested security attestations for a network endpoint. The operator proves control, a check runs, the outcome becomes a signed, content-addressed, expiring attestation. Reuses capacity-attest's canonical hashing and EIP-191 signing rather than reimplementing them. Never a security score, never a claim about a party that did not ask. not yet published
trust-attest-server MCP server for the tokenizen.nl trust layer. An agent proves it controls an endpoint, a passive check reads what that endpoint's own response says about authentication, and the outcome comes back as a signed, expiring attestation. Ownership proof is required before any check runs. trust-attest-server (0.1.0 published, 0.1.1 not yet published)
net-guard The single enforced egress choke-point for the trust layer: an IP-validating, IP-pinning fetch and DNS resolver that refuses private, loopback, link-local and cloud-metadata addresses on every hop, redirects included. not yet published, will be tokenizen-net-guard
self-check-server Small HTTP backend behind tokenizen.nl/check. A browser cannot call node:dns or node:crypto directly, so this thin layer exposes the already-tested ownership-proof functions over two routes, with SSRF guarding and per-IP rate limiting for public, unauthenticated use. not published, runs as a service
website The public site for tokenizen.nl, in the same monorepo as the packages it describes. not applicable

Running locally

This is an npm-workspaces monorepo. From the root:

npm install

That installs the dependencies for all packages under packages/* at once. To run, test, or build a specific package: follow that package's own README, or use the workspace flag from the root, e.g.:

npm test --workspace=capacity-attest
npm run build --workspace=capacity-attest

Status

Early-stage open source, with real external users. Two packages are on npm (capacity-attest, trust-attest-server), both currently one version behind this repo, with the newer versions not yet published. The claim format itself is the part other projects already depend on, and it is pinned by commit hash in at least one external specification, so it is treated as stable: breaking it would break their work, not only ours.

Contributing

See CONTRIBUTING.md for how to file an issue or pull request, how to test locally, and the hard contribution rule around the design boundary.

License

MIT

About

Lets AI agents record, in a way anyone can check, whether they actually got what they paid another agent for over x402. Cites and reads the agent-economy stack it plugs into (ERC-8004, AP2, x402), never re-implements it. No trust score, no token, no lending.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages