Why AI keeps cooking the wrong orders
In the first article in this series, I described the Rework Tax: the share of delivered work that has to be changed again within weeks of being shipped. AI tools have made the kitchen far busier. Too many of the dishes still come back, and most teams are not counting them.
This article is about why they come back.
Picture the same brilliant chef. It cooks exactly what is on the ticket, at full speed. Where the ticket is silent, it does not stop to ask. It fills the gaps with its own best guess: the seasoning, the sides, how the meat is cooked. Sometimes the guess is excellent. Sometimes it is a perfectly reasonable dish that nobody ordered. And because the chef never slows down, a wrong guess is not one plate sent back. It is a whole service of them.
The chef is rarely the problem. What reaches the chef is: the order, the ingredients, the house rules and the inspections nobody mentioned. That is where the Rework Tax is made.
The vague order
AI coding tools rarely stop to ask questions. When context is missing, they infer, at full speed: expected behaviour, architecture, libraries, error handling, security controls, data handling, non-functional requirements, testing strategy. Sometimes those assumptions are right. Sometimes they are not, and the Rework Tax arrives when the wrong ones are discovered later. A vague requirement that used to cost a developer a day of thinking now costs a day of generated code that gets redone.
Marc Brooker, VP and distinguished engineer at AWS, argues that the hard part of building software is specification: describing what you want in enough detail that it is a complete description. AI has not changed that. It has made a bad specification immediately expensive.
I have seen this repeatedly in my own teams. Give an agent a requirement that is too high-level and it fills in the missing decisions itself: behaviour, architecture, libraries. Sometimes the result works, but it isn’t what we meant. Correcting it triggers another cycle: change the code, regenerate the tests, break something else, prompt again, review another large batch. AI doesn’t make ambiguity cheaper. It makes the consequences of ambiguity arrive faster and in greater volume.
The chef who invents ingredients
AI coding tools do not know what they do not know. They generate code with the same confidence whether they are on solid ground or making things up. In a kitchen, this is the chef who writes a beautiful dish description featuring an ingredient that does not exist. The plating is immaculate. The description reads beautifully. The ingredient is fictional.
In engineering, AI models can hallucinate: they could call APIs that do not exist, reference library methods with the wrong names, cite documentation that was never written. The code compiles. The tests pass, because the tests were also written by the same chef. The bug surfaces in production, three weeks later, when a customer orders the dish.
The chef never says ‘I don’t know.’ It just cooks.
In my experience this is real but a medium problem today, and improving. I have seen agents write Python against very old LangChain APIs that had since changed, and reference library versions that didn’t exist. The bigger danger is quieter: an agent can write perfectly valid code for the wrong thing. And several agents agreeing with each other is not proof. If the same assumptions shaped the code and the tests, the tests will pass.
The fix is the same as in a kitchen: a reviewer who actually reads the ingredients list, not just admires the presentation.
Cooking with unlabelled boxes
Garbage in, gourmet presentation out. Still garbage.
AI models produce output that reflects the quality of what they were given. If your requirements are ambiguous, your data is stale, your context is incomplete, or your test fixtures are wrong, the AI will not always flag it. Often it fills the gaps with its best guess and cooks with whatever arrives at the back door.
In a kitchen, this is the chef who accepts a delivery of unlabelled boxes, uses them immediately without checking, and produces dishes that look fine until the customers start calling. The problem was never the cooking. It was the ingredients. And nobody checked the ingredients.
The context the chef never sees
The AI chef focuses entirely on the front of the kitchen. Dishes are plated, passed, delivered. The dashboard is green. Nobody is watching the back door, and nobody has warned the kitchen that the health inspector is coming.
Modern agents have become significantly better at general security practice. Ask for a login form today, and you will often get input validation, hashed passwords and sensible session handling without asking. Frontier models also know a great deal about GDPR (the General Data Protection Regulation) and other regulations. General knowledge is not the gap. The gap is the context that belongs to your organisation.
Take security. Your organisation’s security context includes: the approved authentication mechanism, your identity provider’s requirements, approved libraries, the threat model, data classifications, your secrets-management standard, session policies, audit requirements, architecture constraints. None of that needs copying into every ticket. But it has to reach the agent somehow: through the specification, repository context, organisational policies, specialist agents, tools or automated controls. Where it doesn’t, the agent infers. Sometimes the inference is excellent. Sometimes it picks a perfectly reasonable pattern that your organisation doesn’t allow.
The chef knows how to lock a door. It doesn’t know which keys your building uses unless someone tells it.
Faster code production means more surface area, created faster. Every wrong inference that reaches review, or slips past it, joins the returns queue.
Compliance works the same way. Your kitchen has been running at record volume for six months. The dashboard is green. Output is up. The team is busy. Then the health inspector walks in.
Knowing GDPR exists is different from knowing which obligations apply to this change, in this system, processing this data, under this organisation’s policies, and being able to show that those obligations were addressed: data residency, audit logging, retention, access control.
A mature agentic development environment can bring the relevant governance requirements into the task automatically. But somebody has to design that, configure it, keep it current and check that it works. Where nobody has, the model is left to infer which obligations apply. A kitchen that cannot pass a health inspection is not a productive kitchen. It is a liability with a green dashboard.
A mature AI engineering team will object here
They will say that not everything needs to be written into every ticket. They’re right. The ticket is only one source of context. A well-designed agentic development environment can automatically bring repository instructions, architecture and coding standards, security policies, compliance and non-functional requirements, testing rules and existing system context into the task, through skills, specialist agents, MCP (Model Context Protocol) tools, validators and CI/CD controls. Specification-driven development makes this far more systematic, and it is part of the answer.
It helps to see the maturity steps. At one end, a requirement goes straight to a coding agent and becomes code. In the middle, the requirement becomes a specification, combined with repository context, standards, specialist agents and tests. At the mature end, intent is joined by the relevant enterprise context, policies, specialist agents and deterministic controls, and production evidence feeds back into what the team learns. Each step leaves less of what matters to inference.
But that capability does not appear when a coding agent is installed. Someone has to design the lifecycle, encode the standards, maintain the context, decide which controls apply and verify that the whole system is working. If an important requirement is absent from everything available to the agent, the system is relying on the model to infer it. Sometimes that inference will be excellent. Sometimes it will be wrong. At AI speed, wrong assumptions get expensive very quickly.
Two kitchens, same chef, very different results
The teams with the lowest Rework Tax are not using fewer AI tools. They have adapted how the kitchen runs.
Mise en place. In a professional kitchen, mise en place is the discipline of preparing everything before service begins: ingredients chopped, sauces reduced, stations set. Nothing improvised mid-service. In engineering, the equivalent is clear intent with testable acceptance criteria, plus the standards, security policies, compliance requirements and data checks the agent needs, available to it before it starts cooking. Not copied into every ticket, but present in the specification, the repository context and the controls around it. If the intent is ambiguous, it gets clarified. If a constraint matters, it is somewhere the agent can find it and somewhere a control can check it. The less the chef has to guess, the less comes back. In my own teams, borrowing from BDD (behaviour-driven development) and TDD (test-driven development) and working from tighter specifications improved things significantly.
Smaller portions. A dish that takes two minutes to check gets checked. A dish that takes forty-five minutes to inspect gets waved through. Smaller, more focused changes are faster to review, cheaper to send back if wrong, and easier to trace if something breaks.
Standards at the pass. Every dish needs to meet a standard before it goes out. That standard covers correctness, security, compliance and data handling, not just whether the feature works in the happy path. A reviewer who waves through AI output because ‘the AI wrote it, it must be fine’ is an expediter who stopped tasting the food. The answer isn’t to slow AI down. It is to improve the engineering system around it. The better agents get at execution, the more the quality of that system matters: the intent, context, standards, controls and evidence you give them.
What should the lifecycle become?
Measuring the Rework Tax is the first step. Disciplined specification, context and controls reduce it: clear orders, the right context in the kitchen and standards at the pass. But that raises the bigger question. How much engineering does it take to build, configure, govern and maintain that environment, and who keeps it current, checks that it works and owns it when it doesn’t?
And if we have to build this much context, specification, governance, validation and orchestration around increasingly autonomous coding agents, what should the development lifecycle itself become? That is where the next article in this series picks up.
Sources
- Marc Brooker, interviewed by Simon Maple, ‘AWS’s Marc Brooker: Specs, Not Code, Are the Hard Part’, The AI Native Dev (Tessl), episode 123, 16 September 2026. open.spotify.com/episode/5diCLoQ9IoaVqZXzgbazKp