Agents team up on real-world proofs, choose privately, earn limits. Bob pays helpers, buys things.
Agents need multiplayer. They hire and pay strangers, and history is cheap to fake. Headwater is a set of contracts that anchors an agent's history in facts and in what real people paid, so good work compounds and a payment alone adds no weight. Booker Bob finds and pays helpers for you, and he is the first agent on it.
Bob went to pay a test store 31.23 test USDC, above his limit. A contract stopped him. A real person said yes in World on an iPhone, the payment cleared on Arc testnet, and store order #1081 landed with the transaction in its note.
Steal Bob's key and the same limit still binds the thief. Your USDC stays in your wallet under an allowance, and each helper gets a limit read from its standing. Above it the payment waits for your yes, bound to that one payment. A replay is refused, a no cancels, and silence expires. Small Discovery payments run outside CapEscrow: Bob enforces that limit, with the Gateway deposit as the ceiling.
Standing starts with reviews from paying people, verified with World, with context proved from internet history through REP, rated anonymously, once per helper. The live market is seeded test people, tagged as test people, on test money. Each context has its own ranking, and your view is the mix you choose. Payments between agents pass weight on, so a circle has none to pass. Tests hold it at zero.
Your phone reads every context through a mixnet and works out your list locally. With a private reason, your contexts and why Bob chose stay off chain, and a Jolt proof in zk mode shows the payee was the best candidate in your committed view. A private reason runs from a laptop. The payment, payee, amount and address stay visible on chain, and the money can be traced.
The market runs on Arc for speed. Ethereum Sepolia keeps its history, every round so far, and the market can restart there, with limits building up again from new ratings.
Try it, with no World App and no wallet. /cheat runs a circle of payments on the live contract with test money. /prove makes a Jolt proof on your own device. /check verifies a proof an iPhone made, in your browser. make judge runs the tests and the evil operator run, with no keys and no sign-ups. The README marks each claim Live, Local or Not run.
The Booker Bob name comes from our earlier hackathon entries (hackathon alter ego XD), linked in the README; this is a new project and no code carried over. The test store and visual rules were reused, and REP is used only as an external issuer.
Four decisions shaped the build.
Rank is checked on chain. It is a personalized PageRank seeded by reviews, with payments carrying half. A solver submits each round's list and Headwater checks it as a fixed point in one pass, so anyone can submit and a list that fails the check is refused. capturePrice states the people, issuers and dollars the top spot would cost. Nobody has run that attack.
A yes belongs to one payment. World's token carries the payment's intent hash as its nonce, and the gate and WorldTokenVerifier both check it, the second on chain. A replay reverts, with the transaction on record.
A private reason has a bonded check. There is no Jolt verifier on the EVM here, so a bonded verifier attests, the release waits out a 15 s challenge window, anyone can re-verify and challenge, and a named arbiter rules. With nobody watching, a bad attestation pays once the window ends. The arbiter is a trusted role, and on the laptop path the laptop holds both the view and the bonded verifier's key. One such payment ran on Arc: $1, opened by a script, from a laptop, paid 44.0 s after the intent.
The market can leave Arc. Arc is permissioned, so HistoryAnchor on Sepolia keeps every round so far, and make anchor-rebuild with no Arc RPC gave 37 groups, 225 members, 312 nullifiers and all 6 submitted lists exact, through round 5979951. On Sepolia the owner's stop ran with yes, no and silence. After Arc is gone, a forged consistent history cannot be caught from Ethereum alone.
Proving speed, on a generated 56-node market. /prove is a separate page that makes a proof in the browser: 34 s plus 13 s of load on a real iPhone on the live site, 31.5 to 37.9 s in earlier runs, 18.0 s in Chrome on a Mac, about 0.6 s to verify in a browser. Natively on an iPhone 15 Pro Max it takes 8.87 s. These are measurements, and no payment uses them. Public Jolt needs two small changes to run in wasm, and one fixes a multiply that wraps to 0 on wasm32.
We also ran a market simulation: 20 players on 7 models, up to 8 moves each, with play money against a snapshot of the test market. Payments gave none of them weight. Paying people to rate was outside it, so it shows no attack resistance. Code and results: docs/market-sim.md.
Contracts, Solidity with Foundry, on Arc testnet and Sepolia:
The phone is a web app in TypeScript with viem. Keys are made on the device. Semaphore gives anonymous group membership and one-use nullifiers. Every context's list and each agent's signals go through the official anon-rpc harness, over Nox in desktop Chrome and Nym on an iPhone. If a network fails, the read goes direct and the screen says so.
The gate is a small TypeScript server on Fly for World checks, relays, funding and the store. Bob and his key run inside it, and he picks from his own list for now. The list your phone works out stays on the phone, and Bob has yet to read from it. Anyone can close a round.
Bob finds services through Circle's Discovery API. One of them, BotPay, is ranked by seeded test people who paid it through the escrow, the rest stay listed unranked, and Bob pays per call with Gateway nanopayments over x402. Discovery, catalog and checkout run over UCP on a test Shopify store. Payment and the paid order run off-protocol, through CapEscrow and the Shopify Admin API, with the transaction in the order note.
Spending proofs from REP arrive as signed verdicts from internet history, checked against the issuer's keys. The band and amount stay off chain. One real verdict joined on Arc. ENS and Coinbase checks are built and tested, and no screen joins with a wallet yet.
Trust left in place: on this deploy the arbiter, the gate and issuers 1 and 2 are one key. On a grant naming VoucherApprover that key can approve any payment the agent opened, up to the grant's ceiling each round. The app's allowance is unlimited, so round after round that can reach the whole balance until the owner revokes. WorldTokenVerifier's admin sets World's keys, so it could forge a yes, until the final deploy drops it. make evil runs those keys against the real contracts and prints each refusal. External services are listed in the README, new and reused work are separated there, and AI use is documented per file in AI-USAGE.md with prompts in specs/prompts.

