↓ Skip to main content

Agentic Payments Lab

AI (artificial intelligence) agents are starting to make payments for people, and money itself is becoming programmable. In this hands-on series I build small, entirely fictional payment systems with AI, then try to break them, asking one question throughout: what could go wrong, and how would you know?

No technical or banking background needed. New to payments? Start with the primer, then read the parts in order.

Read the series

About the series

This is a personal learning project. Everything in it is fictional: no real banks, money, data or people. Nothing here is legal advice. The views are my own.

AI is moving from answering questions to taking actions, and one of the most consequential actions is paying for things. Banks, card networks and payment companies are racing to let AI agents make payments on people’s behalf. At the same time, money itself is becoming programmable, through stablecoins (digital tokens designed to hold a steady value, usually one US dollar) and tokenised bank deposits (ordinary bank money recorded on a blockchain, a shared digital ledger that many parties can check).

This series is my hands-on way of understanding where those two trends meet. Each part builds a small, working, entirely fictional system, then tries to break it. My background is in payments risk, so every part asks the same question alongside “how does it work?”: what could go wrong, and how would you know?

You don’t need a technical background to follow along. Each part explains its terms from scratch.

New to payments? Start with the ten-minute payments primer. It explains how money moves between bank accounts, why payments are hard to reverse, and where cards and digital money fit.

Wondering how realistic it is? How the lab copies the real world explains what each pretend bank, shop and card issuer copies from real systems, including the payment messages and codes, and what it leaves out.

The six parts
#

PartQuestion it asksWhat gets builtStatus and reading
1Can an AI pay your bills safely?An AI that suggests invoice payments, with fixed checks and a human approverComplete: article · build notes
2How do you give an AI permission to spend, within limits?Digital “mandates” and spending consents with caps, expiry and cancellationComplete: article · build notes
3How does an AI shop with a card?A pretend online checkout where an AI pays with a restricted card token, plus disputesComplete: article · build notes
4How does a bank spot a misbehaving AI?A monitoring system that scores AI-initiated payments for fraudNext
5How do machines pay machines?An AI paying per use with digital dollars on a test blockchainPlanned
6Can one set of controls cover every way of paying?An AI treasury choosing between bank transfer, card and digital money, under one rulebookPlanned

Each finished part has a main article, which explains the ideas and the results, and a set of build notes with the session-by-session detail.

What the first three parts found
#

  • Limiting what an AI can do protected money better than instructions did. In Part 1 the AI had no “pay” button, so even a fully fooled AI couldn’t send money to a fraudster’s account.
  • Checks in code were more reliable than the AI’s judgement. The AI spotted most tricks, but not every time, and it gave slightly different answers on different runs.
  • Taking the person out also took away checks nobody had written down. In Part 2 the AI paid regular bills on its own, within a signed permission. The permission held, but nobody was left asking whether each bill was real.
  • An AI can make an authorised purchase that nobody wanted. In Part 3 the AI shopped with a restricted card token, and signatures stopped bots, edited baskets and look-alike shops. The same signatures that protect the shop also prove the company agreed, so the company pays for a purchase its AI was allowed to make even if nobody needed it.

Open gaps across the series
#

Each part ends with the weaknesses it found. Some were fixed in a later part, some are still open, and some come back in a new form. This table keeps the running picture. Each part’s article has the full risk table.

GapFound inStatus
The AI could pick an approved supplier that wasn’t the one on the invoicePart 1Fixed in Part 2: code checks the payee matches the invoice
Text the AI writes could hide warnings on the approver’s screenPart 1Fixed in Part 2: such text is refused and escaped
Bank details written with dots or slashes don’t raise a warningPart 1Open. Money still can’t go to them, but the warning is lost
A resent invoice with look-alike letters in its number isn’t caught as a duplicatePart 1Open. Since Part 2 it could be paid automatically, within the limits
A name in look-alike letters gets round “you can’t approve your own payments”Part 1Open
Any approval reason is accepted, even “ok”Part 1Open
Someone who can edit both the audit log and its checkpoint can rewrite historyPart 1Open in every part
A model name that moves to newer versions counts as “pinned”Part 1Open
A convincing fake bill from a covered supplier is paid automaticallyPart 2Partly fixed in Part 3: newer mandates send a bill outside the supplier’s usual pattern to a person
A thief with the AI’s key and access to its files can authorise payments within the limitsPart 2Narrowed in Part 3: the shop also checks the permission slip against a second key. Keys still sit on disk
A well-formed fake staff request gets boughtPart 3Open. The same problem as the fake bill, in a new form
Code checks quantity and budget, not that it’s the right productPart 3Open. Left to the AI’s judgement
A shop is trusted from the moment a person onboards itPart 3Open
Who pays when an AI makes an allowed but unwanted purchasePart 3Open question. In the lab the company pays, and Visa’s rules point the same way

Ground rules
#

  • Everything is fictional or on test networks. No real money, banks, companies or personal data.
  • Built with AI. The code is written with an AI coding assistant, with a human reviewing every change. The code itself is private for now. Each part’s build notes describe how it was built and tested.
  • Honest results. Each part reports which safeguards worked and which didn’t.