ZeroToUser / Building in Public / Engineering
Every instrument lied to me at least once
Debugging ZeroToUser taught me how healthy metrics can hide a broken product, why diagnostic scripts need to exercise real paths, and how better AI writing can make fabricated stories more convincing.
My lead-generation tool, ZeroToUser, had been returning HTTP 500 to every single user for weeks. Not for one source, not for one account — the whole feed endpoint, for everyone.
Nothing in the logs said so.
The application never failed. It built a SQL query, handed it to Postgres,
Postgres refused it, and FastAPI turned that into a 500 and moved on. No stack
trace reached error.log. The health checks were green. The AI classifier
reported a 0% fallback rate. The discovery cron was collecting four hundred rows
a day, happily.
Every layer was reporting healthy. The product showed an empty list.
This is a post about that week. Not the bugs — the bugs were ordinary. It is about how long it took to see them, and about the instruments I built to find them, most of which were wrong at least once.
The thing that was broken was never the thing being measured
The enum is the clearest example. The model declared nine data sources. The Postgres type had three, because it was created by a tool that predated the project's migrations and nothing had ever touched it since. The feed's freshness filter built one clause per source:
leads."dataSource" = 'RSS' AND ...
Postgres rejected 'RSS' as an invalid enum value and the whole query died. One
value the database had never heard of, and the endpoint was gone.
What makes this worth writing down is not the bug. It is that I had a diagnostic script reporting "the sidepanel's primary list will show 3 leads" while the endpoint was returning 500 to every request. I wrote that script. It walked each lead through the same gates the feed applies — in Python. It was an accurate model of the feed's intent and had no relationship to what the feed did.
I trusted it for three rounds of debugging.
The fix was to write a second script that calls the endpoint function directly and lets the exception surface instead of becoming a status code. That took about twenty lines and found the bug in one run.
Four theories, each killed by running the thing
The feed stayed thin after that, and I worked through explanations in order.
Publish timestamps were being lost. Measured: 96.7% recovered. No.
A date filter was dropping rows. Measured: createdAtIsNull was zero, and
the filter discarded at most 26 rows per profile. No.
The candidate queue was starving — the same high-engagement posts selected every run, all cached, so the classifier never saw anything new. Measured: for one account, 368 of 379 candidates were unseen. No.
Then I measured the same thing on a different account and found 34 fresh rows
available with 3 selected. The theory was right; I had tested it on the account
where it did not apply. combinedScore is engagement plus a recency term that
decays to nothing within a hundred minutes, so for anything the hourly cron
collected the ordering was pure engagement — and engagement accumulates over
time, so the top of that list is also the oldest. A narrow profile matching 1,254
rows has most of them inside the top 300 and loses little. A broad one matching
15,828 has 1.9% inside it, and the head is entirely old.
The damage scaled with keyword breadth, which is backwards from what you would want.
Four theories. Three wrong. Every one of them was plausible from reading the code, and every one of them died within minutes of running the real path against production data. I have never had a clearer demonstration that reading code produces hypotheses, not answers.
"We have zero users" was also wrong
Partway through, I went to delete test accounts and found fifteen real signups. A company email address. A Twitter OAuth account. Several that had received leads.
Looking at individual accounts was more useful than the total. Among them:
4 never saved a keyword assign returns "no keywords configured"
3 configured, received nothing
6 got one batch and never returned
1 actually using it (mine)
Four people signed up and never finished setup. No amount of supply work would have reached them — and supply was what I had spent the week on.
Six received their first handful of leads and left. One of them was a company address, the most promising signup of the lot. He got three leads in July and never came back.
I had been optimising the part of the funnel that almost nobody reached.
Nobody had read the product's own output
Two things the product generates, neither of which anyone had looked at.
The keywords. Seven accounts had been handed the identical triple
#Bootstrap / #ARR / #B2B. A founder building gym-membership software got
#Jetti / #Gyms / #Helps. Someone building body-measurement software got
#Measurements / #Height / #Enter / #Body / #Free.
The generator took the most frequent nouns from the project description and
wrapped each in a hash. It described the product. The only healthy account was
mine, with keywords I had typed myself: first users, no users.
Here is the part I did not expect. Match count cannot tell these apart. #Enter
matched 294 rows. #B2B matched 406. first users matched 274 — fewer than
both. The bad keywords match more, because they find people marketing about a
category rather than people asking for help, and the classifier correctly throws
those away. Filtering generated keywords by how much they match would have kept
every single bad one.
The difference is not volume. It is whose words they are.
The replies. The prompt told the model it was writing to "grow the user's
account" with "high-engagement replies", to use the Rule of 3, and to open with
"Unpopular opinion:" or "The hard truth is..." — currently among the most
recognisable AI tells on X. It also prepended a shared system prompt describing a
completely different task, so the model received two contradictory job
descriptions at once.
Account growth is the wrong objective. The person on the other end asked for help.
When I fixed the writing, it started lying
I rewrote the prompt: one thought, no announced-insight openers, plain words, specific over clever, no pitch. The next generation produced this:
I burned about $400 on Meta ads for a desktop tool and got zero sales too. What finally moved it was posting in the two forums where my users already hung out. Slow, but the first ten customers came from that.
It is the best-written of the three and it is the one that cannot ship. None of it happened. The prompt writes in the sender's voice, so this makes someone claim a specific, checkable falsehood under their own name, on platforms where fabricated personal stories are both easy to catch and expensive to be caught at.
The instruction caused it. I had written: "say you have been in the same spot and what you did about it" — which asks a model to invent a personal history it does not have. Better prose made the fabrication more convincing, not less likely.
The fix removed the invented specifics, and the option immediately went vague: "what tends to work is...", advice-column filler that repeated the other reply and said nothing only this sender could say. The specificity was never the problem. Its source was. It now leaves one blank for the sender to fill with something true.
Getting that blank right took three more attempts, two of which shipped. I told the model to address it in second person so it would clearly belong to the sender — but the reply is written to the person who posted, so "your app" meant theirs, and the blank became a question they had already answered with "no sales". First person was the only phrasing that could not slip.
What I would do differently
Write the script that exercises the real path before forming the second hypothesis. Not after the fourth.
Every diagnostic I wrote this week was useful and every one of them misled me at
some point. The eligibility report modelled the feed instead of calling it. The
rotation audit hardcoded a cron schedule that production had not run in five
months. The cleanup tool proposed deleting all six subreddits that supply the
best source in the system, because it compared them against user keywords they
could never match by design. A tsc check I used for days read tail's exit
code instead of the compiler's.
The pattern is the same every time: the instrument measured something adjacent to the thing that mattered, and adjacent is indistinguishable from correct until it isn't.
The one that never lied was the script that called the real function and printed what happened.
I write notes like this while building ZeroToUser, SpotAQ, MyDailyJobs, and Clipmerce in public.