My software cancelled nine trial bookings to protect a waitlist with three entries
On the evening of 6 August a man walked into my gym for a free trial class. He had booked it the day before. The coach did not have him on the roster, and the spot he thought he had was gone.
He had done nothing wrong. He booked, he turned up on time, and my own software had cancelled him two hours earlier because he never tapped a link in an email.
Persistence Athletics is my gym in Seattle and I wrote the software it runs on, so there is nobody to escalate this to.
What the job was doing, and why it sounded reasonable
Every ten minutes a scheduled job looked for free trial bookings where the class started in under an hour and the person had not clicked a confirmation link. It flipped the reservation to cancelled, then sent them a text and an email that read, roughly: we did not hear back, so we released your spot for the 6:30 class, text us to rebook anytime.
The logic behind that is the ordinary logic of every booking system in the world. Classes have a cap. A no-show burns a place somebody else wanted. Make people confirm, and you protect the room.
Every clause of that is defensible in the abstract. Here is what it looked like against the gym's actual numbers.
Nobody was waiting
Between 11 July and 6 August, 172 classes ran at the gym. Two of them were full.
The waitlist table has three rows in it. Not three this month. Three in the entire history of the platform. All three point at the same class instance, all three were created on 2 June, and all three were created within three minutes of each other, which is what a developer testing a feature looks like in a database.
So the mechanism was taking a booked place away from somebody who wanted it and releasing it into a queue that has never held a real person, at classes that had space 99 percent of the time.
I did not design it that way on purpose. I copied a pattern that makes sense at a busy studio and shipped it into a gym that is not one.
What it actually cost
Between 11 July and 6 August the job cancelled nine bookings. Those nine belong to eight member records and seven real people, because one man is in my database twice under two separate contact records. That duplication is a different problem and I still have it.
In the same window, eighteen people booked their first ever class at the gym. Eight of those eighteen records were cancelled by the job at least once.
I am not going to turn that into a conversion-rate claim, and I want to say why rather than just leaving it out. The clean way to size this would be "we cancelled X percent of our trials", but my members table stores a current status, not a historical one. Anyone who booked a trial and then joined now reads as an active member, so any denominator I build from status silently drops every person the funnel worked for. Eighteen is the count of people whose first ever class booking fell in that window, which is the closest honest thing I have, and it includes drop-ins who were never at risk from this job at all. Eight out of eighteen is therefore a floor, not a rate.
The sharpest single case is the last one. A man booked a class at 6:20pm for a class starting at 6:30pm. The next pass of the job ran at 6:30pm, saw a booking for a class starting inside the hour with no confirmation click against it, and cancelled him. He was cancelled ten minutes after booking, for failing to confirm a booking he had made ten minutes earlier.
Two of the nine never even received the message telling them. The gateway rejected one send with "missing phone number" and another with "has unsubscribed". So at least two people were quietly removed from a class they still believed they were attending.
Three of the nine walked in anyway and the coach put them back on the roster by hand at the door. The database now shows them as checked in, which is exactly why I could not reconstruct this from the reservations table and had to read the service logs instead.
The link that could not work
Earlier the same day, a different man called the gym to say the waiver link in his booking text was broken.
He was right, and the reason is arithmetic. The waiver link carried a signed token, so the URL looked like app.persistenceathletics.com/waiver/sign?token= followed by a JWT. I rebuilt one with a normal Gmail address to measure it: 260 characters. A single SMS holds 160 characters, and 153 per part once a message has to be split across several. A 260-character link cannot survive that intact on every handset and carrier, and on his it did not.
That is now fixed. Every SMS path sends the short standalone address instead, which is 43 characters and matches the member by the email they booked with. The email keeps the one-click tokened button, because a button in an email does not get chopped in half.
The two failures are not the same link. The waiver link and the confirmation link are different things, and the confirmation link that triggered the cancellations arrived by email, not text. But it is the same person on the same day, and the same assumption underneath both: that tapping a link is how a customer tells us they are coming.
That man is also on the list of nine. He called in the morning to report that our link did not work, and at 4pm the system cancelled his class.
What changed on 6 August
The job no longer cancels anything. It keeps the reservation, posts the unconfirmed names to the team channel and to the office inbox an hour before class, and the coach decides at the door. Every sentence threatening to release somebody's spot came out of the confirmation email and both waiver reminders.
Two days later the logs read "kept 4 unconfirmed trials on roster" instead of "auto-cancelled 4". Nothing else changed. There was no capacity crisis waiting on the other side of it, because there was never a capacity problem to begin with.
What none of this proves
The count of nine is only complete back to 11 July. That is the day the job started writing the names it cancelled into the service log. The feature itself shipped on 26 April, and for those first eleven weeks it sent a summary email to the team instead of logging. I have not gone back through the mailbox to reconstruct them. So the honest statement is: it cancelled at least nine, over the 27 days I can see, and I do not know the number for the 76 days before that.
I also cannot tell you that any of those seven people would have joined. Nobody here is a lost customer with a number attached. The recurring plans a trial converts onto are 69, 79 and 89 dollars a week, so the arithmetic is easy to do and I am deliberately not doing it, because multiplying seven by a plan price would be inventing a loss I cannot evidence. Some of them may genuinely have decided not to come. Silence is not proof of intent in either direction, which is rather the point.
And one of the five classes involved now shows 16 bookings against a cap of 16. I cannot reconstruct what it looked like at the moment the job fired, so I will not claim that one had space. The other four had between 7 and 12 people in a room that holds 16.
The best argument against me
No-shows are real and they are expensive, and a gym that never enforces anything trains people to book casually and skip. A confirmation step is not a stupid idea. If the gym were full every evening, releasing an unconfirmed spot an hour out would be straightforwardly correct, and the version I just deleted would be the version I should keep.
The answer is that this was never a judgment call about policy. It was a policy applied without ever checking the condition it depended on. The mechanism assumed contention. One query against my own database says contention happens in two classes out of 172. I did not need a better cancellation policy. I needed to look at the fill rate once before writing one.
What generalises
An automation that says no to a customer needs to justify itself with data every single time. Automations that say yes fail loudly, because someone gets something they should not have and it turns up in the money. Automations that say no fail silently. The person just does not come back, and there is nothing in any dashboard that says why.
Check that the mechanism your rule protects actually exists. The waitlist was a real feature, correctly implemented, with an empty table behind it. Nothing was broken and nothing threw an error. Three rows from June was the only evidence available, and it took reading the table to see it.
Count characters in anything you send by SMS. A signed token in a link is good security practice and a 260-character URL is not a link, it is a hope. The one that reaches the customer should be the short one.
Read the logs, not the records. Three of the nine cancellations are invisible in my reservations table because a coach fixed them by hand at the door. If I had audited this from the database alone, I would have found five and concluded it was a smaller problem than it was.
If you have automations quietly telling your customers no, and no measurement of how often they are right, that is the kind of work Autosterea does.
First published on ravikantdewangan.com.

