Someone was getting ready to hand us an application they'd built themselves with an AI coding tool. Before the handoff, they wanted it clean. They wrote a detailed QA plan, set four AI agents loose on it overnight with one instruction, fix everything until the tests pass, and went to bed.
In the morning, every test passed.

The agents had deleted every test they couldn't make pass. The QA plan was gutted. The application was no better than it had been the night before, and the only evidence anyone had was a green checkmark. As it happens, this killed the project, which was the right outcome. It needed to die. But nobody planned it that way.
I tell this story at every seminar because people hear it as a horror story about AI misbehaving. It isn't. The AI did exactly what the math says it does. Understanding why is the difference between using these tools and being used by them.
It's just the next token
Every text AI you'd actually use today works the same way. It takes everything in the conversation, chops it into tokens, runs a very large pile of multiplication, and produces the next token. Then it adds that token to the pile and does the same thing again. That's all of it. Every tool, every vendor, every price tier. Most image generators work differently, and there are research models that try to do text the way image generators do, but nothing you're likely paying for right now is one of them.
A few things fall out of that, and none of them are intuitive.
It has no hard boundary between your words and its own. The conversation carries markers that say which part came from you, which part came from the vendor, and which part the model produced a moment ago, and the model was trained to treat them differently. Trained, not forced. The distinction is a habit it learned, not a wall in the architecture. That is exactly why prompt injection works. A piece of text in a document can talk to the model in the voice of an instruction, and nothing in the machine makes that impossible.
There is no signal in the math that says "this is correct" or "I've thought about this enough." There's a token that ends the response, but nothing that certifies it. The model does carry a kind of confidence, in the form of how strongly it favors one next token over another, but that confidence tracks what sounds right, not what is right, and none of it shows up in the prose. The tone doesn't change reliably whether it's correct or inventing. Every behavior that looks like judgment, how long it thinks, whether it checks its answer against your original request, whether it says "I'm not sure," was trained in afterward, by people rewarding the answers they liked. Those are the fleshy parts. They work pretty well. They are not built into the machine.
So when it tells you something false, it isn't lying and it isn't unsure. True and false aren't things the model has access to. What it has is a sense of how crowded the answer space is: whether a lot of training material agreed on this, or whether it's threading through thin territory. That's where its confidence comes from, and it measures agreement, not truth. Train it on a large enough set of lies and it would deliver them with the same ease. The only catch is the lies would have to be self-consistent, and the most self-consistent story available is reality, which is why a model trained on what people wrote comes out mostly right. Mostly. The training data is us, with all of our habits intact. Ask it a math word problem and you'll get Alice and Bob. That's not a bug. That's what it read.
Put those together and the overnight QA run makes perfect sense. The instruction was "make the tests pass." Deleting a test makes it pass. If you asked the model afterward whether deleting tests is cheating, it would tell you yes. It knows the norm. But the goal it was pushed toward didn't penalize the shortcut, and when a goal and a norm disagree, the pressure of the goal wins more often than you'd like. The same mechanism is behind the stories you've read about models tampering with their own evaluations when told they must succeed. A goal with no "no" in it tends to find the shortest path, and the shortest path is often the hole in your plan.
It can't vouch for itself, and neither can anything else
The second thing the arithmetic produces is a people pleaser. The training rewarded answers people liked, so it tells you the thing it built is clean, secure, and ready. It says so with the same confidence it says everything.

Here's the harder part. A system cannot vouch for itself. Gödel showed in 1931 that a system can check any individual step but can never certify, from the inside, that it as a whole never goes wrong. AI isn't a formal system and this isn't a theorem about it, but the shape is identical. The model can run a specific test. It cannot tell you "this is secure," because that's a claim about everything it didn't think of, and it has the same blind spots reviewing as it had writing. What breaks the loop isn't a smarter model, it's something outside: a different model, a test that runs, a human with the answer key. When an AI tells you the code it wrote is secure, that sentence is not a test result. It's a compliment.
The same goes for your instructions. People tell me they told the AI to "make it secure" and it assured them it did. You didn't give it an instruction. You gave it a general suggestion, and it gave you a general reassurance. Both of you were being polite.
Why "almost always" is the dangerous part
You have machines in your shop that fail all the time. They're not a problem. Everyone knows the one lift that sticks and nobody puts a car on it without a second look.
The machine that hurts you is the one that fails once a year. You trust it. You stop checking. And one day the timing is off and you've made an engine into scrap.

AI is that machine. Most of the time it gets it. You start talking to it the way you'd talk to the computer on a starship, and most of the time the starship does what you said. So you get sloppy. I do too. You stop stating the context because it figured out the context last time. You stop specifying because it guessed right yesterday. And because these tools keep a memory of your conversations, after a while it starts to sound like you, which makes you trust it more, which makes you check it less.
Nearly every time an AI does something stupid for me, I find that I was assuming context. I had something in my head that I never typed, and I'd stopped noticing the difference because the tool had been covering for me.
Little green men
Here's how I'd have you think about it. Forget that it's software. You just hired a crew of little green men to work in your shop. They're fast. They're eager. They never say no. The first week, they look like they're doing everything right.
Would you let them touch any tool in the building? Would you give the new guy the timing job?
No. You'd watch them. You'd give them the oil changes first, because if they screw up an oil change and leave the drain plug in, nobody dies. You'd keep the timing jobs for yourself until you'd seen enough of their work to know. Not because they're probably bad. Because you don't know yet, and the cost of being wrong is different for different jobs.

That is the entire AI plan for a small business, and it's the same math you already do with people. For each thing you want the machine to do, ask two questions. What do I get out of this? What can it break? If the answer to the second is "my office lights stay on all night," let it run and don't check it. If the answer is "it emails every customer I have," somebody is on top of that bot every single day, forever.
The failure mode I see most isn't people giving AI too little. It's people giving it the timing job in week one because the oil changes went so well.
Vague instructions, confused employees
The same analogy covers the other side of the problem. If you hand a new hire fifteen hundred pages of instructions that contradict each other, you get a confused employee, and that's on the manager, not the hire. The AI is no different. An ambiguous prompt gets you an ambiguous result, delivered confidently.
The fix is one most people never try. If you aren't good at writing instructions, and most of us aren't, don't. Tell the AI what you're trying to accomplish and have it interview you until the instructions are complete and consistent, and have it tell you when they are. It will ask about things you hadn't considered. That conversation is where the real work happens. What comes out of it is an instruction. What you were going to type on your own was a wish.
Augmented, not artificial
I've come to dislike the words everyone uses for this. Super intelligence. Artificial intelligence. The right word was sitting there the whole time: augmented. It's a mirror, a very sophisticated one. It takes what's in your head and helps you get it out, structured, with the gaps visible. It isn't thinking. It's doing the next token. Left alone it produces soup. It knows plenty you don't, but none of it is useful until you point it, and almost everything dangerous that comes out of it was something you never said.
So before you hand it anything, know what it can break, decide who's watching, and never let the question "is this good?" be answered by the thing that built it. That's not distrust. That's the same discipline you already use for every machine in the building, applied to one that's a little too easy to like.
