← Back to writing

Michał Pasierbski

Trust and Verify: Every AI Generation Needs a Validation Layer

LLMs are confidently wrong. Trust takes years to build and seconds to break — here's why every AI generation at Delta Labs goes through a validation layer.

Confidently wrong

LLMs are great at being confidently wrong. That’s the part people still underestimate. A human who isn’t sure hedges, goes quiet, or asks a question. A model just keeps going in the same self-assured tone it uses when it’s right.

There’s no shame in there. No hesitation, no tell. This exchange with GPT is worth 30 seconds of your time — it’s funny right up until you realize your product does the same thing, just with better formatting.

Trust takes years to build, seconds to break, and forever to repair

Now imagine that output going in front of clients paying thousands of dollars for your app. They open a report and see something like:

Q1: Do you own a house or apartment? A1: No, I rent.

Q15: Do you have a mortgage? A15: Yes, I have a mortgage for my apartment.

That came out of a state-of-the-art model. Why? Maybe the context window was too crowded — we know performance degrades past a certain threshold. Maybe we messed something up in the prompt or in the plumbing around it. Maybe it was a random fluke.

Here’s the thing: the cause doesn’t matter to the customer. They don’t see your context budget or your retry logic. They see a contradiction a bored intern would have caught, and they think exactly what you’d think: if they can’t get something this obvious right, how do I know they didn’t botch the subtle stuff too?

And they’re not wrong to think it. That’s the real damage. One visible mistake doesn’t cost you one mistake’s worth of credibility — it retroactively puts a question mark on every output you’ve ever shipped them.

Trust and verify

When I joined Delta Labs, one of the first things I pushed on the team was a rule: every AI generation MUST go through a validation layer. Not the important ones. Not the customer-facing ones. Every one.

It sounds heavy-handed. It isn’t. Most of the checks are cheap, and the ones that aren’t are still cheaper than the conversation where you explain to a client why your product invented a number.

Cheap checks catch stupid mistakes

When we generate names for our AI personas, we run a check on whether the name and gender are plausible together. Costs a couple of tokens. Avoids producing a 45-year-old male called Sabrina.

That happened, by the way. That’s why the check exists.

The lesson generalizes: if a mistake can be caught by a deterministic check, catch it with a deterministic check. Ranges, enums, cross-field consistency, “does this value exist in our database” — none of that needs a model. You already know what valid looks like, so encode it. Save the expensive tooling for the problems that actually need judgment.

Expensive checks catch subtle ones

The rest do need judgment. When our AI agents produce reports, a separate agent proofreads the output. It checks whether cited numbers are grounded in the source data, whether quotes are real or fabricated, whether the narrative actually holds together. If something’s off, that feedback goes back to the author agent to correct itself.

Which is to say: it’s code review. Same idea, same reason it works. An author is a bad reviewer of their own work — they read what they meant to write. A fresh reader with one job and no ego about the draft catches things the author structurally can’t.

Just like in real life. If you want to be sure sure, you ask for a review.

The part nobody puts in the demo

Validation feels like a tax on the fun part. You built the thing that generates, and now you’re building the thing that second-guesses it. It’s slower, it costs tokens, and it doesn’t show up in the demo.

But the demo isn’t the product. A demo is one happy path in front of a friendly audience — you can sell that on the model alone. Production is thousands of generations in front of people who’ve paid you and will notice the one that’s wrong. You sell that on the guardrails.

Trust and verify. Ship the check with the generation, every time.