Who Says No to the Manager's Code? In Vibe Coding the Harm Is Not in the Code but in the Authority
Producing a working application with AI in one afternoon is now possible, and I meet managers who do it more and more often. I am not against it. But one difference needs to be seen: a developer's code goes through review, and nobody can say no to the manager's code. The harm does not come from the manager writing code; it comes from their authority getting ahead of the review.
Let me be plain first: I think a manager prototyping with AI is valuable. A manager who cannot explain what they want in a three-page request can explain it in an hour with a working example. This article does not tell managers "do not write code". It is about where what they wrote should stay.
What is vibe coding, and why does it appeal to a manager?
Vibe coding means describing what you want and moving forward by trying what the model produces, instead of writing code line by line. You do not look at the code; you look at whether it works.
The appeal for a manager is obvious. Someone who has spent years asking IT for a report or a small screen and waiting in the queue sees, for the first time, something in their own hands without waiting. That feeling is real, and it is justified.
The problem begins with what that first working screen actually is. I described it in the article on developers' work: that screen is a demo. A demo shows the one path where everything goes right.
The harm is not in the code but in the authority
A developer could have written the same code, and it could have contained the same mistakes. The difference is not in the code; it is in the gates that stand in front of it. What a developer writes is read by someone else, tried in a test environment, and accepted or not by a user. When a manager writes it, the person standing at each of those gates reports to the manager.
One of the oldest principles of internal control is segregation of duties: the person who does a job, the person who approves it and the person who checks it are not the same. The principle exists not because anyone's honesty is doubted, but because it is known that everyone is the last to see the mistake in their own work. A manager who writes code takes on three roles at once without noticing: the one who asks, the one who builds and the one who approves.
Harm to the system: five places
In twenty years of ERP projects I have seen where code that reaches production without review leaves its mark. It leaves it in five places.
Touching live data directly. A manager's permissions are wide and their patience for a test environment is short. An update query written by AI runs straight in production. A stock, account or voucher record written to a table by going around the ERP's business rules breaks the system's own consistency. Mostly it is noticed not that day but at the first reconciliation.
Mistaking the demo for the product. Wrongly entered data, a user without permission, a transaction cut off halfway, two people changing the same record at once: none of it has been thought about. As I wrote in the UAT article: what is not tested gets tested in production.
Security and data. A password embedded in the code, an address with no permission check, a service left open to the outside. AI writes code that works; someone has to ask separately for it to be secure, and check that it is. Then there is the customer list or cost table pasted into the model while debugging. The glossary definition of shadow AI describes the employee; when a manager does the same thing it has no name. If it is not written down which data may go where, the person who crosses the rule most easily is the one with the most authority. The principle of least privilege covers the manager too.
Ownerless code. The code keeps running, but it has no documentation, no tests and no owner. At the first version upgrade or the first fault, the IT team inherits something without knowing why it was written the way it was.
A broken audit trail. In an ERP, who changed what and when is on record. A script run from outside goes around that trail. When the auditor asks, the answer will be "we ran a script".
The day they say "use this"
The harm so far is technical harm, and it can be repaired. The real issue begins the day the manager wants the application they built to be used. That day it stops being a script; it becomes a product that cannot be refused.
Faults are not reported. With an ordinary application the user says "this does not do my job" and the application gets better. With an application the manager wrote, saying that sentence means criticising the manager's own work. Amy Edmondson's work on psychological safety describes this: where people think they will pay a price for what they say, they do not mention the fault they see. Not because the manager means harm; because the other person does not find the risk worth taking.
A second reality appears. The application starts to hold its own data: an approval, a price, a due date. There is one record in the ERP and another in the application, and the employee enters the same information in two places. Because the manager looks at the application, the application takes priority and the ERP record falls behind. It is the authorised version of the shadow file I described in the article on the official story; the difference is that nobody can question it.
People pretend to use it. They fill in the application to show the manager and carry on doing the real work the old way. The manager looks at a full screen, thinks the work is running, and decides on the basis of that data. This is the most expensive result: the harm leaves the system and moves into the quality of decisions.
Responsibility sits in one place, authority in another. When the application stops, it is IT that gets the call. But IT has the authority neither to refuse that application nor to rewrite it.
The exit closes. A bad purchase can be cancelled. Saying that the manager's own creation does not work, however, falls to the manager. Barry Staw suggested this fifty years ago: when the decision was our own, we tend to commit to it more, not less, as we see it going badly. The application is not shut down; it is kept alive for years.
Underneath all of this there is also a quiet message to the team. If the manager skips the review process, the process becomes optional for everyone. And the sentence "I built it in a day" diminishes the work of a team that knows why jobs that take weeks take weeks.
In the cheap hires article I wrote that management hires the people it can manage. The same tendency has a counterpart in software: management may put into use the software it cannot be criticised for. What is missing is the same in both: someone who can say no.
Drawing a line without banning it
The remedy is not to take the tool out of the manager's hands. The remedy is to decide in advance which gate their work will pass through. I suggest five rules.
- Prototypes are free, live data is closed. Let the manager experiment as much as they like; with read-only permission and on a copy of production.
- One gate. Everything that goes to production passes the same review and testing, whoever wrote it. The acceptance decision is taken by someone who does not report to the manager; in a small company that can be an outside pair of eyes.
- The owner changes. If the application is going to be used, the manager remains the person who describes the need; the owner of the product becomes IT or the relevant department.
- One record. A piece of information is either kept in the ERP or read from the ERP by the application. The two do not hold the same information separately.
- The end criterion is written at the start. If it is not used to this extent by this date, it is closed. The decision is made not by the manager but by the criterion.
With these rules the manager's prototype finds its most valuable form: it becomes a description of a need. The manager has shown what they want with a working example; the team turns it into a product. This is the most useful way for a manager to use vibe coding, and it is nothing to look down on.
In your company, who can say no to code the manager wrote?
Sources
- Committee of Sponsoring Organizations of the Treadway Commission (COSO), Internal Control — Integrated Framework, 2013 — the principle of segregation of duties.
- Amy C. Edmondson, The Fearless Organization, Wiley, 2018 — psychological safety and speaking up about errors.
- Barry M. Staw, "Knee-Deep in the Big Muddy: A Study of Escalating Commitment to a Chosen Course of Action", Organizational Behavior and Human Performance, 1976 — escalating commitment to a decision already made.
- ERPware, It Is Not That Simple: Writing Code Was Never the Job, AI Is Not Lying, Cheap Hires Are Expensive and UAT and Go-Live in ERP Projects.
This is an opinion piece based on twenty years of field experience; it contains no usage data or industry statistics. The sources are cited for the general theses of the works. The examples are illustrative; they do not describe any particular company or manager.