The Never-Do Checklist: 5 disasters + the guardrail for each
I did all five of these building Settl, a voice-first expense-splitting app, solo with Claude agents. Each one cost me real time, real money, or an App Store rejection. Here's each disaster and the guardrail that would have prevented it.
1. Never run a keepalive cron against a serverless DB
A 4-line cron pinged my Neon Postgres every 4 minutes to keep it "warm." It kept the database awake 24/7, burned the entire compute quota, and took the API down. The fix was deleting code.
- Guardrail: serverless pricing bills for compute-hours awake. Anything that defeats
auto-suspend (crons, health checks that touch the DB, aggressive polling) is a money bug. Let
it sleep; fix cold starts at the connection layer instead (see #guardrail in
settl.fyi/social/sleepy-database).
2. Never trust green local tests
Vercel's strict production build failed 3 separate times after local tests passed. The gap:
strict tsc flags that CI ran and my local scripts didn't.
- Guardrail: run the exact prod build command in a pre-push hook:
# .husky/pre-push: same command Vercel runs, not "npm test"
npm run build:prod && npm run typecheck:strict
3. Never hide your AI vendors from users
Apple rejected Settl twice under Guideline 5.1.1. Telling Apple the vendor names privately
wasn't enough. Users have to see them. I had to name Groq + Gemini publicly, build a
/privacy/ai-providers page, and re-consent every user.
- Guardrail: name your AI vendors in-app, day one. A disclosure page costs an hour; a rejection cycle costs a week.
4. Never hand-roll offline sync
My hand-written queue + cache + merge produced weeks of unreproducible "ghost bugs": rows appearing, vanishing, disagreeing across devices. I ripped it all out for an offline-first library (Brick, SQLite + REST) in one brutal rewrite.
- Guardrail: treat sync like crypto, a solved-by-libraries problem. Don't roll your own.
5. Never let two agents share one database
Two Claude agents running in parallel corrupted each other's test runs. I burned hours "certain I'd broken something real."
- Guardrail: one agent = one isolated environment. Sequential test execution (single fork), separate DBs or schemas per agent, and every multi-agent feature behind its own flag.
Steal this for your app
- Print these five on your wall as classes of bug: cost bugs (1), environment-parity bugs (2), compliance bugs (3), not-invented-here bugs (4), isolation bugs (5). Every stack has all five.
- The cheapest fix in three of the five was deleting or not writing code. Bias toward less.
- Wire the guardrail before the experiment. Every one of these was survivable because observability and rollback already existed.
Run this on your codebase
Paste this into a Claude session in your repo and let it hunt for all five:
Audit this repo for five disaster classes. Report first, fix nothing yet:
1. Any cron/scheduled job or health check that touches the database on a timer.
2. Differences between local test/build commands and the CI/deploy build (exact flags).
3. Every AI vendor with a live API key, and whether it's disclosed to users in-app.
4. Hand-rolled sync logic (write queues, cache merges, reconcile code) a library should own.
5. Any two agents, workers, or test runners sharing one database.
For each finding: file:line, severity, and the one-line guardrail you'd add.