Four members got an apology they were not owed
A member went through their invoices and told us they had been charged twice for the same week. They were right. On August 1 the gym charged them $87.33, and on August 3 it charged them $87.33 again, and both charges covered the first week of the same membership.
That is the good part of this story and it is over in one paragraph. The rest is what happened when I went looking for other people it had happened to, found five, told all five their gym had taken money it should not have taken, and wrote to four of them ten minutes later to say that was wrong too.
The charge that really was wrong
Persistence Athletics is my gym in Seattle. It runs on a platform I built to replace Wodify, in which Stripe is only a card vault and the local invoice row is the source of truth for what anybody owes.
The two charges are sitting in the invoice table and they are not ambiguous. Invoice 774, created August 1, $87.33, described as "Silver (3x/week) - weekly membership". Invoice 799, created August 3, $87.33, described as "Auto-renewal: Silver (3x/week)". Same member, same membership row, the same $79.00 plus $8.33 of sales tax on each. The first was the charge that ran when they rejoined. The second was the renewal firing on a billing anchor placed at the start of the training week rather than seven days after the join. Two days apart, one week of gym.
The remedy was an $87.33 credit, and I know it worked because I can point at the row where it landed rather than at the script that issued it. Invoice 917, "Silver (3x/week) - first week", $87.33, paid at 08:00:07 on August 30 with the credit drawn down to zero. Their card was not charged for that week.
The email said they were right, that it was our bug, and that going through their own invoices was genuinely helpful.
Then I went looking for more of it
My standing instruction to myself on billing is to credit everywhere we have over-collected. So the same session that fixed the double charge went back through the billing history looking for the same shape of error.
It found five. In each case a member's first weekly charge had covered a partial week at the full weekly price. They had joined mid-week, and the audit divided the missed days by seven and called the difference over-collection. $21.79 for two days. $10.90 for one. $10.90 for one. $10.90 for one. $28.11 for two. Eighty-two dollars and sixty cents in total.
At 06:22:39 UTC on August 30, five members received a credit on their account and an email with the subject line "A billing correction in your favor". It told them their first charge had covered a partial week at full price, that this was a bug on our side, and, in a line I would like to have back, that nobody had caught this one for us and we had found it ourselves.
The policy the audit did not have
Ten minutes and twenty seven seconds later I read the list properly.
A membership week at my gym is charged in full regardless of which day you join. That is not a defect. That is the price. It is the same rule a monthly gym applies to somebody who signs up on the 20th.
The audit had no way to know that, because it had never been written down anywhere. So it did what any careful reader of a billing table would do. It saw a full week's price against a partial week of service and inferred proration, because proration is what most subscription software does. The arithmetic was correct. The premise was invented.
At 06:33:06 UTC, four of those five members received a second email telling them the earlier credit notice had been a system error, that the credit had been removed, that it had gone to several members and not only them, and that their charges had been right all along.
The fifth was left alone. His credit had already applied. The weekly renewal had run, $28.11 had come off a $98.39 charge, and he had been billed $70.28. Clawing that back would have meant taking money from somebody who had already seen the lower number, over $28.11, to correct my error rather than his.
The reversed total was $54.49. For scale, the gym holds 55 active memberships and collected $11,740.26 across 156 paid invoices in August. The five first charges span May to August, so treat that as a comparison of size and not a rate.
$54.49 is not what this cost. What it cost is that four people were told by their gym that it had taken money it should not have taken, and then told ten minutes later that this was not true. I cannot put a number on that, and I am not going to let the dollar figure stand in for it.
old: an audit finds a pattern in the billing data and issues the credits it implies
new: an audit presents the list, and a person decides which lines are actually owedWhat I changed
The obvious response is to make the auditor smarter. It is the wrong one. The auditor was not confused about the data. It was confident about a policy question, and policy questions do not have answers in the database.
So the policy got written down, at the top of the file that every future billing change has to read first: a membership week or month is charged in full regardless of which day the member joins, mid-week joins are not over-collection, never prorate, never frame missed days as money owed. The same note records the one real defect in that area, the late-week stub that started all of this: a Friday or Saturday join whose full week ends a day or two later and gets rebilled almost immediately. That is an anchor in the wrong place, and it is being fixed as one.
Then a gate. No credit, refund, comp or charge waiver goes out without my explicit approval of the specific list: member, amount, reason. Audit findings are inputs. What counts as owed is a determination I make.
I should be precise about what exists today. The policy and the approval rule are in the repository and in force. The mechanism I want underneath them, in which an agent can read the money and stage a billing action into a table that charges nothing until I approve it in the coach dashboard, is a design document I wrote the following day and have not built. What did ship that week is the refund engine and its coach interface, and every button on it is pressed by a human.
What this does not prove
It does not prove the gate works. It has caught nothing, because it was written after the incident it exists to prevent. The only evidence for it is one case in which it was absent.
It does not prove the audit was worthless. The same sweep found a real path where a monthly signup from the marketing site was never billed at all, latent since May 15, which had affected nobody but would eventually have meant somebody training for free indefinitely. Reading the books was valuable. Acting on the reading is the part that went wrong.
It does not prove I would have caught this at all. I did not review the list before the emails went out. I reviewed it afterwards, and the only reason four people got a correction that night rather than a week later is that I happened to still be at my desk.
And I would treat the $54.49 carefully. It is exact, it is small, and the smallness is not reassuring. The same automation with the same premise, against a larger member base or on an evening when I was not sitting there, is the identical mistake with a different total.
The argument against me
The strongest case against this post is that I have relabelled a bug as a policy because the policy is cheaper.
Somebody joins on a Friday, pays for seven days, gets two, and I have now written a rule declaring that fine. From that member's side it is indistinguishable from over-collection, and my having a document that calls it pricing does not give them back the five days.
I think that is right about the experience and wrong about the category. Charging a full period regardless of start date is a pricing decision, and a business is entitled to make it. What a business is not entitled to do is decline to say so up front. The real failure was never in the billing engine. It was on the signup screen, which said nothing about any of this.
That is the part of the week's work I would actually defend. If you now open the membership page on a Friday, Saturday or Sunday, the primary button reads "Start next week" with the first charge date printed on it. Starting today is still available and is now the demoted option, under a line that says only 2 days remain in this training week at the full weekly rate, and billing renews Sunday for next week. Nobody gets refunded by that sentence. Nobody needs to be.
What generalises
If you run a business on software, your software cannot enforce a policy you have never written down, and it will not decline to guess.
Every business has rules that live only in the owner's head. What the refund window really is. Whether a partial period is charged. Those rules are invisible for as long as a human is applying them, and they become load bearing the moment an automated system reads your data and proposes an action. It will infer something, and what it infers is the industry default, which is not your business.
The narrower lesson, for anybody pointing agents at a live business, is that findings and actions are different products. An agent that reads your books and tells you what it sees is enormously useful and carries almost no risk. The same agent acting on what it sees fails differently, and it does not fail by making things up. It fails by being entirely correct about the arithmetic and wrong about the premise, in a tone of complete confidence, at a speed where five emails leave before anybody has read the list.
Put a person between the finding and the money. It costs you one tap.
I build these systems for small businesses at Autosterea, and that gate is now in the first version of every one of them.
First published on ravikantdewangan.com.

