Vibe coding is fun until real engineering shows up: make "done" mean verified

RoutineCode Team·2026-11-22·

You know AI-generated code works when you have watched it build, watched the tests run, and read the output yourself.

Not when the model tells you it's done.

That is the whole answer. The rest of this post is about turning it into a habit instead of a hope:

  • Define the check before you prompt.
  • Run it for real.
  • Pin down existing behavior before you change it.
  • Write down what you learn so the next session doesn't relearn it.
  • Spend your deepest review on the changes where a mistake would actually hurt.

What people are running into

Three recent LinkedIn posts describe the same wall from different sides.

Rohan Goyal put it in one line: vibe coding is fun until real-world engineering problems show up. The first version flows. You describe what you want, the code appears, the demo works.

Then the app meets real data, real users and real edge cases. The fun part turns out to have been the easy part.

Dilum Sanjaya made the complementary point: understanding system design helps you build better apps, even when vibe coding. The AI can write the function. Knowing where that function sits in the system is still your job. That means what calls it, what it touches and what happens when it fails. It is also the knowledge you need to judge whether the output is right.

Anand Kumar asked the sharpest question of the three: can AI fix messy code without breaking it? His observation was that two functions that look identical may be supporting different behavior.

That is exactly the kind of difference a model will happily "clean up." The tidy version reads better and quietly breaks a caller nobody mentioned.

Put these together and you get a familiar pattern. The code looks finished. The assistant says it's finished. Whether it is finished is a separate question, and nobody has answered it yet.

Why it happens

"Done" is a sentence, not a result

A language model produces the most plausible continuation of the conversation. After writing a change, the most plausible next words are often "I've implemented the fix" or "All tests should now pass."

Those words are generated the same way the code was. They are a prediction about the code, not an observation of it.

Unless something actually executed the build and the tests, "done" is a claim with no evidence behind it. It might be true. It's often true. But "often" is not a shipping standard.

Code that looks right is the hardest kind to doubt

Broken code that looks broken gets caught. The risky case is code that reads cleanly, follows the conventions and handles the obvious path. That code earns trust it hasn't proven.

Anand Kumar's point lives here. Two functions can share a shape and still carry different contracts. One handles nulls, one rejects them. One is called by a batch job that depends on its ordering.

The difference isn't visible in the code you're looking at. It is visible in behavior, which means you only see it by running something.

The model doesn't remember last week

Every new session starts close to blank. Last week you decided the payments module never retries automatically. You found out the hard way that a certain migration has to run before deploys. You agreed the API returns empty lists, never nulls.

None of that is in the model's head unless you put it there again.

So the same mistakes come back, and you end up reviewing for problems you already solved. This is part of what Rohan Goyal's "real-world engineering problems" look like in practice. Real engineering accumulates decisions, and a tool without memory keeps stepping on them.

Review attention is spread evenly when risk isn't

When everything arrives as one long, fluent diff, it is tempting to skim all of it equally.

But a renamed variable and a changed authorization check don't deserve the same attention. Uniform skimming means the dangerous change gets the same thirty seconds as the harmless one.

What you can do today, with any tool

Nothing below depends on a specific assistant, editor or language. It is ordinary engineering discipline, applied to a collaborator that is fast, fluent and unaccountable.

1. Write down what "done" means before you prompt

Before asking for a change, decide which command will prove it works. For example:

  • npm run build && npm test
  • one specific test file
  • a curl request against a local server
  • a script that checks the output file

If you can't name the check, you don't yet know what you're asking for.

Put the check in the prompt: "This is done when npm test -- orders passes." Now the goal is an observable result instead of a feeling.

2. Require real output, not a summary

Ask for the actual command and its actual output: the exit code, the test count and the failures, if any.

A summary like "tests pass" is the claim again. The raw output is the evidence.

Better still, run the command yourself. It takes seconds and removes any doubt about whether it ran at all.

3. Make the test fail first

When fixing a bug, first get a test that reproduces it and fails. Then apply the fix and watch the same test pass.

A test that was never red proves very little. It may not exercise the code you changed.

4. Pin current behavior before refactoring

This is the direct answer to Anand Kumar's question. Before letting an assistant consolidate or clean up messy code, write characterization tests. These record what the code does today, including the odd parts.

If two "identical" functions behave differently, the tests will show it the moment someone merges them.

The point isn't to approve the current behavior. The point is to make any change to it visible and deliberate.

5. Keep a decision and failure log in the repo

Keep a plain text file in the project that lists three things:

  • the rules ("the API never returns null lists")
  • the decisions and why they were made
  • the failures and what caused them

Load it into context at the start of each session.

This is unglamorous and it works. The knowledge that makes something real engineering stops evaporating between conversations.

6. Match review depth to risk

Sort changes before you review them.

Routine changes: formatting, renames, boilerplate, test scaffolding. These need a passing build and a quick look.

Risky changes: authentication, permissions, data migrations, anything that deletes, anything touching money, concurrency or external contracts. These need a line-by-line read and a test that targets the risk itself.

Your attention is the scarcest resource in the loop. Spend it where an error is expensive.

7. Know the system well enough to judge the output

This is Dilum Sanjaya's point, and it doesn't go away. You don't need to write every line. You do need to know the boundaries:

  • what talks to what
  • where state lives
  • what failure looks like

That knowledge is what lets you look at a correct-looking diff and ask, "what else calls this?"

RoutineCode works on the same principle

We built RoutineCode, a plugin for Claude Code, around these same ideas. It is one example of putting them into a workflow, not the only way to do it.

Before it declares a task complete, it actually runs the build and the tests and checks the result as evidence. It does not accept its own summary.

It records project rules, decisions and the causes of past failures. When a session ends, that record stays, and it is brought back in the next session.

It also splits the work by risk. Repetitive tasks go to smaller models, and only risky changes get a deeper review.

It installs with npm install -g @routinecrew/routinecode --@routinecrew:registry=https://registry.npmjs.org.

If you prefer to do all of this by hand with the steps above, the principle is identical. The tool just makes it the default.

What changes when "done" means verified

We won't put numbers on this. The useful effects are the ones you can check for yourself.

Every "done" comes with a command and its output. You can rerun it. If it doesn't reproduce, you know immediately, before your users do.

Refactors stop being leaps of faith. With current behavior pinned, a cleanup either keeps the tests green or shows you exactly what it changed.

Sessions stop relearning old lessons. The rule you set last week is in the log. So is the failure you already debugged. The next session starts from them instead of rediscovering them.

Review time lands on the changes that matter. Routine diffs pass on evidence. Risky diffs get your full attention.

None of this makes vibe coding less fun. It moves the moment of truth from production back to your terminal, where it's cheap.

Intelligence is grounded in data. Code is grounded in execution. Without it, you get confident guessing.

#AIEngineering #SoftwareTesting #VibeCoding #DeveloperTools

#aiengineering#softwaretesting#vibecoding#developertools

Want posts like this weekly?

Subscribe for AI dev-workflow insights.