undo

What can go wrong, and what stops it.

Agents that buy things fail in specific ways. Here is each one in plain words, the exact mechanism in Undo that stops it, and where you can watch it happen.

threats
17
stages
6
shown live
13

01

Signing

  1. Someone changes the mandate after you sign it

    An agent, or a compromised server, raises the budget from $80 to $800.

    What stops it

    Your device signs the exact terms with Ed25519. Any edit changes the digest, so the signature stops verifying and the purchase is refused.

    Budget Hacker, live
  2. A different agent uses your mandate

    An agent picks up a mandate you signed for someone else's agent.

    What stops it

    The agent's name is inside the signed bytes. A mandate signed for a registered agent only works for that operator's key.

    Impersonator, live
  3. An agent pretends to be a trusted one

    An unknown agent calls itself “Claude” to look legitimate.

    What stops it

    Only agents presenting a registered operator key (compared in constant time) count as registered. Every other name is shown to you, and to the store, as unregistered.

    Agent trust
  4. An old approval is reused

    An agent comes back weeks later with the same mandate.

    What stops it

    Mandates expire after 14 days, allow one live purchase at a time, and are marked fulfilled once paid.

    Late Shopper, live

02

Shopping

  1. The agent buys the wrong thing

    Over budget, the wrong size or colour, or three instead of one.

    What stops it

    Undo's guard re-reads the product live at the exact variant and checks it against the signed limits before PayPal ever sees a cart. Refusals are logged with the reason.

    Four rogue agents, live
  2. The agent is tricked by a product page

    A listing hides an instruction telling the agent to buy a pricier item.

    What stops it

    The guard never reads the agent's reasoning: the cart still has to fit the mandate. A real AI fooled this way is blocked on price.

    Hijacked Agent, live
  3. The retailer quietly swaps the variant

    Size M is out of stock, so the store resolves the order to L.

    What stops it

    Undo compares the variant the retailer actually resolved with what was asked. Substitutions and details it can't verify are shown, and they lengthen the undo window.

    Try it
  4. An agent skips Undo's checks entirely

    A careless third-party agent buys without asking Undo first.

    What stops it

    The money is only authorized, the window is 12 hours longer, and if the agent was at fault its operator pays the shop back through PayPal Payouts.

    Refund + payout case

03

Paying

  1. An agent pays without your say-so

    An agent with access to your saved wallet buys on its own.

    What stops it

    Paying with your saved wallet has to be in the mandate you signed; the wallet is tied to the device that saved it; saving and forgetting are signed. Even then the money is only held, with two extra hours to undo.

    See the option
  2. A retry charges twice

    A timeout makes a void, capture or refund run a second time.

    What stops it

    Every money call carries a fixed PayPal-Request-Id per order, so PayPal returns the first result instead of moving money again.

  3. A forged PayPal notification

    Someone posts a fake webhook to change an order's state.

    What stops it

    Every webhook is checked with PayPal's own verify-webhook-signature API before anything trusts it.

04

Undoing

  1. Someone else presses Undo

    Anyone with the order link tries to reverse the purchase.

    What stops it

    An undo must be signed by the same device key that signed the mandate. On any other device the button is disabled, and the server refuses unsigned requests.

    Open a finished case
  2. A false complaint

    The shopper says the colour is wrong when it isn't.

    What stops it

    The complaint is recorded as a claim, not evidence. The verdict rests on the mandate check, the agent's record and the photo check; unclear cases go to a person.

    Claim case
  3. A phone-photo link is grabbed

    Someone photographs the QR code on your screen.

    What stops it

    Links work once, last 15 minutes and only their hash is stored. The phone can't undo anything; your computer's signature covers the photo's hash.

05

The record

  1. History is rewritten

    Someone edits a verdict or an amount in the database.

    What stops it

    Every step is hashed into the next. Your own browser can re-check the whole chain and every signature, and you can tamper with a copy to watch it break.

    Verify it yourself

06

The service

  1. A known-bad agent keeps shopping

    An agent with a record of mistakes comes back to buy again.

    What stops it

    Its trust score comes from its record at this store. The store's rules can block it or give its purchases a longer undo window, applied at checkout.

    Store rules
  2. Someone drains the free tiers

    Scripts hammer the AI and the catalog until the demo stops working.

    What stops it

    Per-visitor limits on every costly endpoint, plus daily and monthly budgets stored in Postgres. When a budget is spent the page says so, and the rogue demo replays its last live run.

What it doesn’t cover yet

  • Lose the browser, lose the key

    Your signing key lives in one browser's storage. Clear it, and that mandate can't be undone from another device. Key recovery isn't built.

  • Merchant actions aren't behind sign-in

    Accepting a claim or changing the store's rules is open in this sandbox demo. A real store would put them behind its own login.

  • The photo check is an AI judgement

    It can be wrong. Low confidence goes to a person, and a photo is never the only evidence behind a verdict.

  • You still rely on Undo being up

    Undo can't forge your signature or quietly rewrite history, but if the service is down, purchases wait. The money stays held, not taken.

  • Sandbox only

    PayPal sandbox accounts, no real money, and one shared operator account pays back on behalf of every agent.

Don’t take this page’s word for it.

Watch the agents try