Every PR that lands on Freebo’s main has to pass two gates. If only one of them is green, I don’t merge. Both or nothing.
Gate A I’ve written about before — 32 parallel Playwright lanes, a fresh agent that didn’t write the code reads the output, and the verdict has to be live-ui-verified or nothing happens. It proves the feature works in a real browser against a real Supabase stack.
Gate B is the one I haven’t written about, and it’s the one that’s saved me more times than Gate A has. Gate B is read-only. It doesn’t touch the code. It touches production.
What Gate B actually does
A feature usually has three moving parts: a code change, a schema change, and the data the code expects to find when it runs. Gate A can verify the first two work together — the migration applied, the code reads the new column, the browser does the right thing. What Gate A can’t verify is whether the data already sitting in prod will behave the way the code assumes when you point the new code at it.
That’s Gate B. A read-only script that runs against the live database and asks: “Given what’s in here right now, does the new code have a clean path?”
For a feature I shipped last night, Gate B was three queries:

The answers determine whether the PR deploys as-is, deploys with a one-line backfill, or deploys behind a feature flag with the real cutover scheduled for later.
The pair catches what neither catches alone
Gate A on its own will happily let you merge code that works beautifully against a seeded test database and behaves completely differently the first time it runs against twelve months of legacy rows. The lanes are green because the lanes exercise a known shape of data. The lanes do not know what the production dataset actually looks like.
Gate B on its own will happily let you deploy code that doesn’t actually work in a browser, because Gate B never opens one. It only looks at data.
The pair is what makes it safe:
Gate A says: “the behavior is what we want.” Gate B says: “production is in a shape where that behavior is safe.” Neither statement is the other. You need both.
The overnight proof
Last night I merged a pair of features that had been through Gate A twice and Gate B once each. I pushed around 10:40 PM and went to sleep.
When I opened my inbox at breakfast there were seventeen emails from noreply@freebo.ai. Every one of them was from an automated staging run that had kicked off overnight — the kind of email a real booking would send a real customer, but addressed to a test address I alias to a filtered inbox. Confirmations, reminders, hold-release notifications, tip-payable notifications. The whole post-merge monitoring suite had cycled through every path a paying operator’s customer could take, as that operator’s customer, and written itself into my inbox as proof.
That’s the signal I care about now. Not “the build is green.” Builds are green all the time — green builds tell you code compiles. An inbox full of system-generated emails from a stack running without me tells you code lives. Something out there is handling imaginary bookings, sending imaginary receipts, releasing imaginary holds — all end-to-end, against the real stack, in the dark, while I sleep.
A green build is a compile receipt. An inbox full of system emails from a stack you aren’t touching is a liveness receipt.
— the rule I'm keeping
If the overnight suite breaks, the emails stop. The absence is the alert. I don’t need a monitoring service to tell me “the staging agent crashed” — I just need to notice that Tuesday morning had fifteen staging emails and Wednesday morning had zero.
Why I bother writing about this
The templated answer to “how do you ship safely as one person” is “write more tests.” That’s fine, but it doesn’t scale to the bugs I actually hit, which are almost never “my code is wrong.” They’re “my code is right and production looks different than I thought it did.”
Gate A is tests. Gate B is a question the tests can’t ask. The question is: What’s in prod right now, and will my new code be nice to it?
You can build Gate B in an afternoon. It’s a shell script that runs psql, a handful of SQL queries specific to your feature, and a rule that reads the output and returns a verdict. No framework, no library, no new vendor. The smallest version of this I’ve ever shipped was four queries and a bash if statement.
If you’re doing anything with real production data and a schema that keeps moving, I’d argue Gate B is the higher-leverage of the two. Code that works in staging is table stakes. Code that works in staging and survives contact with the specific data your real users have been accumulating for months — that’s the actual thing you’re shipping.