Skip to content
All writing

Every trial attendance record at my gym was a guess

Eight people got an email from my gym in the middle of August that opened with the line "It was genuinely good having you in the gym." It offered them sixteen weeks of training for the price of twelve and today's rate locked for a year. I wrote that email myself. It is a good offer and I meant every word of it.

Not one of those eight had been seen in the gym by a person.

I know that now because I went and checked what put them on the list. The answer is a scheduled job that runs every thirty minutes, finds every booking for a class that finished half an hour ago, and marks it as attended. It has no way of knowing whether anyone walked through the door. It was never designed to know. It was designed to save my coaches from tapping a screen, and for the people it was written for it does that job perfectly well.

The number

Between the 1st and the 20th of August, Persistence Athletics recorded 344 check-ins. That job wrote 336 of them. A human wrote 8.

I can separate the two because the job runs on the hour and the half hour. Of those 344 records, 336 carry a timestamp at exactly zero or thirty minutes past. The other eight all landed on the evening of the 4th of August, between 17:25 and 17:26 Pacific, on one class, inside fourteen seconds of each other.

That is not eight people checking themselves in over three weeks. That is one coach standing on the floor with a tablet during a 5pm class, going down a roster. One coach, one class, one evening, in twenty days.

For an existing member this is fine and I would defend it. Somebody who trains here four times a week booked the class, the class happened, and if the record is wrong about a single Tuesday it costs the business nothing. The assumption is cheap because the stakes are low and the population is known.

For somebody on a free trial, that same assumption is the entire decision. Did they come or did they not is the only question the gym is asking about that person, and the software was answering it by checking whether the class had ended.

old: they booked it and the class finished, so mark them attended and email accordingly
new: the booking stays open until the coach who was in the room says came or did not come

What it actually cost

The follow-up sequence has two branches and the guess poisoned both.

If the software thinks you attended and your trial ends without you joining, you get the headline offer: sixteen weeks for twelve, rate locked. That is the email above. It has gone out eight times in the life of the gym, on the 15th and 16th of August, to eight different people. I pulled all eight records. Every one of them has exactly one kind of attendance evidence, a booking flipped by the job, timestamped on the hour or the half hour. None has anything else. One of the eight has since joined and is paying today, and that person is also the only one of the eight with three check-ins rather than one.

If the software thinks you did not attend, you get a re-engagement email and then a half price intro week. Nine people got that one.

Those two branches are different prices for the same person, so the rule is that receiving one blocks the other forever. But the branches were being sorted by a signal that was wrong in a knowable direction, which meant a coach correcting the record after the fact would flip somebody from the no-show branch to the attended branch and hand them the bigger offer on top of the smaller one they were still holding. Seven leads were sitting one coach tap away from being quoted two different prices for the same membership. I have their record numbers written down and I checked each one.

There was a quieter failure underneath all of this. The trial nurture emails, the day 2, day 3, day 5 and day 7 messages, were reading attendance out of a separate table rather than out of the bookings. That table has had zero rows written to it since the 1st of August. So for anyone whose only attendance evidence was a booking, the nurture sequence read them as never having attended and sent nothing at all. The guess was inflating one branch while a different reader of the same idea was quietly dropping people out of the funnel entirely.

What replaced it

Trials and leads are now excluded from the automatic flip. Members, drop-ins and everyone else are byte for byte unchanged and keep auto-attending exactly as before.

When a class with a trial in it finishes, the coach who taught that class gets one email listing every trial booked into it, each with two tap links: came, did not come. One email per class, never one per trial, because a coach who teaches four classes a day will stop reading the fifth email. The links are signed, expire in 48 hours, need no login, are undoable, and can be tapped twice without doing anything twice.

The harder half of the work was not that. It was that "no check-in" used to mean "did not show up" and now means "nobody has told us yet", and those two look identical in a database. Every downstream reader had to be taught the difference. Both no-show branches now send nothing in either direction while a booking is unresolved. Without that, the fix flips the error the other way within a day and emails "your free class is still waiting" to somebody who was standing in the room.

What this does not prove

It has run once.

On Saturday the 22nd, the 9:30 Hyrox class finished at 11:00 with six trials booked into it. The email went to the coach at 11:45. Between 11:50:52 and 11:51:00 she tapped through all six and answered came for every one.

Which is exactly what the old job would have written. On its first real outing, the system I built produced an identical result to the guess it replaced, in exchange for one email and six minutes of a coach's Saturday.

That is the honest state of it. I have no case where a coach said did not come and stopped a wrong email, because it has not happened yet. Everything above about what the guess cost is a description of what was already sitting in the database, not a measurement of money recovered. Nobody has been billed differently. Nobody has joined or not joined because of this. Four days is not evidence.

I also cannot tell you what the eight offer emails cost. Seven of the eight did not join. I do not know whether any of them would have joined if the email had said something else, or whether an email thanking you for a class you skipped reads as a small embarrassment or as nothing at all. One person out of eight is a rate with a denominator of eight.

The 336 to 8 split is the number I will defend without hedging. That one is a fact about what is in the table, it is reproducible by anyone with read access, and it does not depend on my interpretation of anything.

The strongest argument against me

The guess was probably right most of the time.

People who book a free class at a gym mostly turn up. If the true attendance rate for booked trials is 80 percent, then the job was correct about four in five, and I have replaced a mostly right automatic answer with a human step that can fail completely. A coach who does not tap the email leaves that person in limbo, and limbo now blocks both branches of the follow-up, so an unanswered email is a person who gets nothing at all. That is a worse failure than a wrong email, because it is invisible.

I think that objection is correct and I have not solved it. What I would say against it is this. The cost of being wrong is not symmetric. Sending the right message to eighty percent and a slightly false one to twenty percent is not the trade it looks like, because that twenty percent are precisely the people who tried the gym and did not come back, which is the group whose opinion I can least afford to be careless with. And the thing that made me look at any of this was not analysis. It was saying out loud that a specific person had never set foot in the building, then opening the record and finding the software confidently disagreeing with me. If the guess is right eighty percent of the time, it is also true that I had no way to know which eighty percent, and neither did anyone reading a report built on it.

What generalises

A default that is safe for one population is a decision for another. The auto-attendance rule was written when everyone in that table was an established member, and it was correct for that table. Trials arrived later, inherited the default, and nobody re-derived whether it still held. If you have a rule that fills in missing data, go and find out who is in the group it fills in for now, rather than who was in it when the rule was written.

Removing a guess costs more than adding one. Fencing off the flip itself was a few lines of SQL. The expensive part was the four downstream systems that had quietly built their logic on top of the guarantee that this field was always populated, and had no concept of a third state. Anywhere you have a value that is always present, something is depending on that, and you will not find out what until you stop.

And the one I would put on a wall. The signal I trusted most was the one nobody in the business had ever been asked to produce. A person had to type a name, a phone number and an email for every other field on that record. Attendance was the only field I made decisions on that arrived free, and free was the tell.

If you are running follow-up, billing or sales off a field nobody in your business actually fills in, that is the kind of work Autosterea does.

First published on ravikantdewangan.com.

Tell us what eats your week.

A free 20-minute call. We'll show you what we would take off your plate.

Book a call