Build note
Build note: the agent stopped at my limit
On Saturday an AI agent paid from a test wallet under a mandate I had signed that morning: one payee, up to 1 cent a payment without asking me, 50 cents in total, for 24 hours.
It's step 5 of my personal stablecoin payout prototype, built with Claude Code on Base Sepolia, Base's test network. The agent is Claude Haiku with one tool that fetches a URL. It never sees a key or the mandate, and code checks each payment against the mandate before signing.
The 1-cent quote went through with no prompt. The 5-cent report stopped and waited for me, and after I typed yes it was paid. Once I revoked the mandate, the agent's next request was refused. Six agent runs cost $0.0014 in model fees.
What broke was my approval. Every agent run starts a new request, and my yes covered only the old one, so the approved payment went out through a separate command. The fix I'm building runs the payment under the request I approved, and only once.
I also planted text in the API's reply telling the agent to pay someone 9 USDC. The model ignored it, so my checks never met a model that agrees to pay. Only a scripted unit test shows that so far.
Sources
- Google's Agent Payments Protocol (AP2): https://ap2-protocol.org/