5 min read The Five Storms

The Script That Almost Ran

AI wrote the fix for my broken data. It looked flawless. Run as written, it would have made things worse.

Scene: Surgical instruments arranged on a sterile operating tray
Photo: Jonathan Borba on Unsplash

The script on my screen looked like the work of someone who knew exactly what they were doing. Neat. Organized. Every step laid out in order.

AI had written it. And it was pointed at real customer records on a live system.

What needed fixing

A system I built sent customers updates on a schedule. Behind it sat a database of who should get what.

Something had gone wrong in that database. A data-merging job had scrambled the field that held who each update should go to — where an email address belonged, there was a jumble instead. It had also left duplicate copies of some customers’ settings.

The fix had to happen in place, on the live records, without making anything worse. That meant a careful sequence: make a backup copy, compare the old against the new, then change only the records that needed it.

I asked AI to write the repair scripts.

Scene: Technical blueprint drawings on a drafting table
Photo: Sven Mieke on Unsplash

What came back

The first script failed the moment it ran — tripped by a one-character quirk in how this particular database expects instructions to be written. Easy to fix. Almost reassuring. If that was the worst of it, the AI had done fine.

It wasn’t the worst of it.

Polished output, incomplete logic.

The second script

The second script had three mistakes in it. Each one was subtle enough to pass a read-through. Each one looked like ordinary, correct work.

That last line is the one that matters. A repair that stops halfway can be worse than no repair at all. You start with one known problem and end with an unknown mess, on records your customers depend on.

Nothing committed. The mistakes surfaced before any change was made final.

Scene: Railway track switch junction disappearing into fog
Photo: Ben Garratt on Unsplash

What I took from it

The script looked exactly like a script that works. It just wasn’t one.

Here’s the part that stuck with me. The more confident and finished the AI’s work looked, the fewer of the tricky cases it had actually handled. Polished output, incomplete logic. The polish wasn’t evidence of anything. It was just polish.

So I changed how I run these. Every change an AI writes for live data now gets a dress rehearsal first. The database makes the changes in a way that can be fully undone. I read back exactly what changed. Only when the result is right do I make it permanent.

If the rehearsal shows a problem, nothing has happened yet. I undo it and fix the script.

Your version of this

You probably aren’t writing database scripts. But you are almost certainly running things an AI wrote: a spreadsheet formula, a bulk update to your customer list, an automation that changes records in your CRM, an import that overwrites what was there.

The more confident and finished the AI’s work looked, the fewer of the tricky cases it had actually handled.

What has an AI handed you that you nodded at and ran?

The AI Playbook is a free, self-paced course for anyone running a business on AI and automation tools. It teaches you to treat AI like a junior engineer: give it a precise work order, then inspect what comes back against it.

The wave comes in. And the wave keeps coming.