Unit tests
One right answer? Check it immediately. Parsers, formatters, clamps, money calculations, and other deterministic logic get fast Jest coverage.
Quiet regressions in the code's smallest moving parts.
We've shipped mistakes that unit tests, type checks, and successful HTTP responses couldn't see. They looked fine in the code. They failed in the thing people actually received.
So we changed what “tested” means. This is the system those misses taught us to build—and where it still needs work.
Our rule: test the output your users receive, not just the story your code tells about itself.
01—04 / THE SYSTEMWe start with fast, inexpensive checks and widen the lens until we're testing the finished page and the experience of someone seeing it for the first time.
One right answer? Check it immediately. Parsers, formatters, clamps, money calculations, and other deterministic logic get fast Jest coverage.
Quiet regressions in the code's smallest moving parts.
Lint, type checks and tests have to pass before anything merges. Row-level security and migration audits and a production-style prerender build run alongside them.
Build-only errors, unprotected tables, and changes that don't survive a real build.
Fetch the HTML that was served. Open the real render. Check content, metadata, reading order, contrast, and even the bytes inside generated files. A green build is not proof of a correct page.
Pages and files that appear correct in development but ship wrong.
Cost-capped AI Personas browse with goals and unfamiliar eyes. They report the dead ends and confusing language nobody thought to assert. A human decides what is real.
The assumptions a scripted test inherits from its author.
These layers complement one another. The third—often the most revealing—is also the one we have not fully automated. We explain that gap below
A writer page included Schema.org data—the structured information that helps search engines understand who an author is. In a browser, it appeared. In a rendered-HTML validator, it passed.
But that data arrived only after JavaScript ran. The first HTML response—the thing a crawler might actually read—didn't contain it.
A single fetch of the served HTML revealed the mismatch. We checked every public page and found five surfaces shipping near-empty shells before client-side loading. We fixed them.
More failures that changed our rules<body>
<div id="app"></div>
<!-- no author data -->
</body>Open the actual response. Don't assume the browser tells the entire story.
Each rule below came from a specific failure or a claim we refused to publish without checking.
A generated image looked fine but was actually a 2 MB PNG saved with a .webp extension. The browser didn't complain. The bytes told the truth.
Before another product repeated that promise, we inspected the data path end to end. Only usage metadata was persisted, not the material people pasted.
Our agent instruction file grew to 452 lines. Secret-file protections and a check-before-finish hook were missing. None of that would break a build.
Scripted tests follow the path we thought of. Our AI Personas arrive with a goal and a different set of assumptions. They look for a way through—and report where they get lost.
It's 7 p.m. He needs dinner tonight. He won't tolerate a sign-up wall between him and a menu.
Someone sent her a page about her own restaurant. Who made it? Is it real? What does it cost?
She's job hunting after nine years away. New terminology shouldn't make her feel excluded.
AI browsing is useful because it's unfamiliar with our assumptions. It's also fallible. So every observation starts as an unconfirmed claim, and only human review can turn it into a task.
Dish search returns no results, but the page still claims “201 dishes.”
The hero is selling a claim-your-page offer to a visitor who's trying to order food.
The agent couldn't locate a cuisine filter. This is weaker evidence—it may not have looked thoroughly.
The rendered-artifact inspection requires something deployed to examine. Today it happens by discipline and on demand—not automatically in every CI run.
We're comfortable saying that out loud. A testing page should describe the system that exists, not the one we wish we had.
Make served-HTML checks and visual verification a repeatable, reliable gate after deployment.
The instruction file is down from 452 lines to 172. A deny rule for secret files and a hook that checks the work before the agent stops are not in yet: both govern every later session, so they are the owner's call.
These practices aren't a manifesto. They're what we wrote down after something escaped—and the least expensive check that would have caught it sooner.