Provable fault for AI shopping agents: a fixed rule, a Kleros court, and a deposit that pays shops.
Recourse: provable fault for AI shopping agents.
THE PROBLEM AI agents can now pay shops by themselves, over protocols like x402. But when an agent buys the wrong thing (the wrong size, colour or quantity), nobody can prove who got it wrong: the buyer, the agent or the shop. Today the shop usually takes the loss. That makes agent orders risky, so shops have little reason to accept orders from agents they have never met.
THE IDEA If every step of an order leaves a record nobody can change later, fault stops being a matter of opinion. Recourse makes the agent write down what it was told and what it did before any money moves. A fixed, published rule is applied to those records, and the side at fault pays from a deposit. A court is only the backstop. No AI model decides who pays: money moves only by the contracts' rules.
HOW IT WORKS
DESIGNED, NOT BUILT YET Random sampling: at scale, only alaims (for example 25%, drawn with Hedera's PRNG) would go to court, and the docket would weight each sampled ruling by its draw chance, so sampling cannot make a Billing: the agent company would then be billed for the undrawn claims at its sampled fault rate. Today every contested claim goes to court, and nothing is bil
HONEST LIMITS Testnets only. Payouts use a mock USDC because Circle's testnet faucet did not deliver. For the demo, the agent was set to order he contracts' configuration is notlocked yet, so the deployer could still change settings that decide claims; the README lists these owner powers. All shop and ional.
Payments and records (Hedera testnet): the agent pays the shop over x402 (the exact scheme on hedera:testnet, in HBAR for the demo). Each order writes six records to one Hedera Consensus Service topic. Each message holds a document's IPFS CID and SHA-256, and a record counts only if the expected writer paid for the message.
Contracts (Solidity, Foundry): Re on Hedera hold claims, the
court-fee escrow, agent-company deposits and payouts. RecourseCase on Arbitrum Sepolia opens Kleros v2 dispute in court 8 witht company at fault, shop at fault,
neither). The contracts are verified on Sourcify.
Chainlink CCIP, both ways: a contested claim crosses from Hedera to Arbitrum, and the ruling crosses back. Every receive path reverts, so one bad message
cannot block the lane. Anyone can resend a message, but resends are capped in number and spacing.
The fault rule is a pure, determin ordered list of checks over six
attributes (brand, size, colour, quantity, price, merchant), with no clock, randomness or network. A pre-check service runsd the web app can re-run it in the
browser on the same records.
ERC-8004: shops and agent companies register in the identity registry, and the agent finds a shop's x402 endpoint from its regnew shop registers, and an agent
company registers and posts its deposit, each from its own wallet.
Arkiv: the docket service writes each ruled case as a de-identified entity on Arkiv testnet, plus monthly counts per party. Thhe browser and computes faultrates with Wilson 95% intervals. The rate maths already accepts sampling weights, ready for random sampling. Services are TypeScript on Node (he x402 packages): shop, agent,pre-check, keeper (opens court cases, posts evidence, settles claims), status API and docket.The web app is React with Vite. Workarounds: Circle's testnet USDdeposits and payouts use a mock6-decimal USDC (mUSDC). Hedera's JSON-RPC relay was flaky, so operations fall back to direct Foundry cast calls with retries. filed once.
Most of the code was written by Cteam; docs/ai-use.md in the reposays what was generated and what people decided and reviewed.

