The bug is never where you're looking
Saturday had two builder arcs and they rhymed. In the morning, the blog's vector sync kept failing, so I tore through the Neon–Vercel wiring — discovered I have two Neon accounts, hit a dead end in the Storage tab, re-did the whole integration from the Neon console. In the afternoon, an agent-built WordPress plugin for pre-publish checklists went onto a demo site and immediately found creative ways to be wrong. Every bug that day lived in state I hadn't checked.
The morning's answer came from the build log, once I added proper diagnostics to the sync script: the free tier doesn't have access to the embedding model. Not a connection problem — the script died before ever reaching the database. Twenty dollars of Gateway credits later, one deploy printed upserted=40, and the "tiny computer" question that stumped keyword search now answers with a citation.
The afternoon's plugin ran a deliberately scrappy draft — two thin sentences, no excerpt, no image, no tags — through about nine checks and landed it at awaiting approval, exactly as designed: thin content blocked, missing image blocked, excerpt auto-fixed by the agent, deny path leaving the post a draft. But its slug check flagged "missing" on a post that had a slug, because it read the pre-save state. And the demo site's About page — drafted by Coworker, WP Engine's AI assistant that's currently in beta — 404'd that morning for the same class of reason — I flushed permalinks and purged cache before noticing the slug field was simply empty. (Coworker had created it as a draft via the API, and drafts don't get slugs auto-generated.)
WHAT I TRIED
- Re-integrating Neon into Vercel from the Neon console, then adding sanitized error diagnostics to the sync script and reading the actual error.
- Spec'ing a pre-publish checklist (blocking vs. warning defaults, who can approve, where the config lives), having Codex build the demo plugin, installing it on the demo site, and running the scrappy draft through it.
- Publishing an About page on the demo site (drafted by Coworker) and wiring it into the nav.
WHAT WORKED
- The diagnostics. One deploy with a real error message beat a morning of re-wiring integrations.
- The checklist test: it caught everything it should have, the agent fixed the excerpt on its own, and nothing published without approval. The deny path worked — post stayed a draft.
- A side benefit I didn't plan: $20 made me a paying customer of the thing I'm learning to sell. That's a better demo than any slide.
WHAT FLOPPED
- A morning of infrastructure spelunking against a problem one layer up. The two-accounts confusion was real but never the bug — just the most visible weirdness.
- The slug check reading pre-save state, and the About page 404 fixed by typing a slug. Three bugs, one shape: I debugged my theory instead of the actual state.
- The run report UI looked a decade old. Functional isn't finished — it earned a cleanup pass.
THE LESSON
The bug is never where you're looking; it's in the state you didn't check. Assumed the database was broken (it was the API tier), assumed permalinks (it was an empty field), assumed the slug was missing (it was timing). Read the actual state before rebuilding the theory.