We found it in the monthly reconciliation. One customer had received two partial refunds for the same order. Our records showed one. By the time we finished looking, we had found the same thing for about three customers.
The system was an AI digital worker I built with a client in Hong Kong. It handled refund and chargeback requests: it read the request, checked the order, prepared the refund and sent it to a person to approve. Money never moved without a human saying yes. That approval step was the part everyone pointed to when they asked whether it was safe.
Both refunds had been approved by a person.
What went wrong
The mechanics were simple. The first partial refund went to the payment gateway, and our system marked it successful. The gateway had accepted it, but it hadn't paid it, because the merchant's balance was too low. The customer saw no money arrive and asked again a few days later. The worker prepared a second refund. A person approved it. When the balance cleared, both went out.
I've written about the API side of this, why "accepted" must never quietly mean "done", in APIs as a Product, Part 10, and about what it says about shared code paths in The Shared Platform, Part 3. This essay is about the person who approved it.
The approver wasn't the problem
It's tempting to say the reviewer should have caught it. I don't think that's fair, and I don't think it's useful.
The reviewer saw what the system showed them. If the system says the first refund was paid, a careful person will approve the second one too. They aren't checking the gateway. They are checking the decision the agent prepared, against the facts the agent was given.
That is the uncomfortable part of human approval in AI systems. We add it because we don't fully trust the model. But the human usually sees the world through the same data the model does. If that data is wrong, the approval step doesn't catch the error. It signs it.
Nothing failed in the usual sense. The model did its job. The approver did their job. The gateway did its job. The bug was one word in our data: "successful". To us it meant the gateway had accepted the request. To the customer it meant money in their account. Those are not the same event.
What we changed
We made two changes, and neither touched the model.
First, a refund is no longer marked successful until the balance clears and the money has moved. Until then, it stays pending.
Second, before preparing any refund, the worker checks the database for earlier requests on the same order and their real status, so it knows when a refund is already on its way.
Most of the talk about AI safety in payments is about the model: will it make things up, will it go off script. Those risks are real. Here the model was fine. It made a correct decision on wrong information, and so did the person who approved it.
Human approval is only as good as the facts in front of the human. Before you add a reviewer to an AI workflow, check that "done" in your data means done in the real world. Otherwise you haven't added a safeguard. You've added a signature.