I have been involved in AI agent development for 74 days. Not reading papers or watching demos: building a platform that operates with real clients today. Plus, the most expensive lesson of the project fits on an invoice.
A customer applied a fixed-amount discount coupon. The receipt came out a few pesos higher. Nobody noticed for weeks: the difference was minimal, the system threw no errors, and the cash register balanced every day. The code calculating that discount was perfectly written. Except it deducted from the net instead of the gross.
That is the complete thesis of this article, and it is worth stating it bluntly: AI already writes correct code; what it doesn't know is how your business works. The risk shifted from «does it compile?» to «who owns the rules?» And that shift changes where you have to put your best people.
Development with AI Agents: 74 days with my own skin in the game
First the context, because this is not a laboratory experiment. The platform is called zitoria, it's my startup, and it's an appointment management system for 34 industries: calendar, online booking, cash register, client profiles, and an AI assistant. Multi-tenant, with real business data. In other words: my money and my name.
All development was supported by end-to-end AI agents: 631 integrated changes and about 290,000 custom lines in 74 days. I recently wrote about shadow AI and the surgeonless surgery: the prototypes your users build behind your back. This time I was on the other side of the scalpel. I operated with a full operating room, protocol, and an anesthesiologist. And it still bled. That's why I'm starting this series: to show where it bleeds, with measured figures and not with smoke.

The errors that no compiler catches
These are the most expensive actual project failures. Notice something: none of them are programming bugs.
The voucher at the beginning, which applied a discount to the net amount instead of the gross; the same «with or without VAT?» confusion lived in several parts of the system at once. Later, 37 services from a royal salon whose prices didn't result in whole pesos: in Chile, the display price includes VAT and the total has to be a whole number, even if the VAT absorbs the difference. And an external API that returned local time while declaring itself UTC, with a three- to four-hour offset on payment dates. No system failed. All the reports turned out wrong.
A language model cannot know any of that. It's not in its training because it isn't written down anywhere: it lives in the operation, in the head of the shop owner. It's the classic «actual process versus documented process» that had already sunk projects of mine with humans, as I mentioned in The Phantom Company. The trap of AI agent development is precisely that: the error no longer lives in the code.
«Your job is NOT to approve»
I didn't solve this by writing better instructions. I solved it by changing where I put the control.
Before each integration, a second agent reviews the change with a deliberately hostile prompt: «your job is NOT to approve». The difference is night and day. A reviewer you ask to review approves. A reviewer whose stated function is to find the problem finds it. In the first five changes where I applied it, he found high-severity flaws in all five. Not three out of five: five out of five.
But an accuser only creates noise. That’s why he’s paired with a skeptic, whose sole task is to rule out false findings. In an audit of 3,620 tests, he ruled out the 30% as false positives. Without him, the team—that is, me—gets bogged down chasing ghosts and stops trusting the tool. That pair—accuser and skeptic—is the most transferable insight from this entire development with AI agents. It’s either both together, or neither.

Control lives where the agent cannot bypass it
The platform hosts many different businesses in the same database. An isolation error there is not a bug: it is a named and shamed data protection incident under the Law 21,719.
That is why isolation uses a double belt: a global filter at the data access layer and, underneath, row-level security in the database itself, which does not depend on the application behaving correctly. Today, there are 52 tables protected this way. Furthermore, the role the application runs with cannot modify the database structure: migrations are applied by a separate process that opens access, migrates, and closes it again. The application never holds the key it does not need.
The core decision is not technical, it is one of governance: the control must live in the layer that the agent cannot bypass by mistake. If your only defense is that the code is always correct, your defense is a promise.
Test the business, not the code
Unit tests verify that a function does what it says. They don't verify that a month of operations balances out. So I built a test bench that sets up a complete business through the real interface —customers, schedule, sales, cash register, reconciliation— and runs 55 checks in about 7 seconds, across four different business sectors. It doesn't ask «is this function correct?» It asks «does the cash register balance at the end of the month?».
There appeared the bugs that no unit test was going to find. Because the coupon at the beginning passed all its unit tests. All of them.
What skeptics are right about
Now for the awkward part, because anyone who distrusts AI agent development has good reasons, and I got to experience them firsthand.
The most serious: one prompt injection From the public portal, he managed to get the assistant to actually schedule real appointments, obeying instructions hidden in a visitor's text. If you connect an assistant to a system that executes real actions, assume from today on that all external text is a potential instruction. The same assistant, furthermore, went so far as to claim in the past tense things it never did: «I already notified you,» «I already moved it.» It wasn't lying by design; it was completing the most probable phrase. You don't pay the cost: the customer who believed you does.
And my own environment errors: a new table without permissions for the application role —perfect in development, 500 error in production— and the site's public photos exhausting database connections until they brought down the service. None of them were code bugs. They were mistakes of understanding where the code lives, which is precisely what an agent doesn't see.
One more warning: the repository has over a million lines, but 865,944 are automatically generated templates. The honest figure is 290,000. When someone shows you productivity measured in AI-generated lines, ask how many a person actually wrote. The answer tends to change the entire slide.

What this means for your next committee
Two directory readings, and both make you uncomfortable.
The first: the ratio inverted. There is one test line for every two lines of production code. When writing is cheap, verification is where the value lies. If your team adopts AI and their test ratio doesn't go up, they aren't going faster: they're accumulating debt faster.
The second: the constraint is no longer the ability to build. It has become the ability to decide what is correct. That cannot be bought in licenses; it is business knowledge and usually lives outside your technology department. Therefore, if your company is evaluating development with AI agents, go to the committee with this:
- Name the owner of the business rules by domain —taxes, roundings, schedules, permissions— and get them written down. If they live only in someone's head, AI won't guess them, and your next employee won't either.
- Move your best people to the edge. Don't check syntax: check calculations, rules, and assumptions. That's where it fails.
- It requires the accuser-skeptic pair in every AI review workflow, and the proportion of tests as an adoption indicator.
- Treat the external text as code. Everything a customer writes can be an instruction. With the same distrust as a query to your database.
And a previous question that I already raised in The Empty ChairWhen the agent decides, who signs? I'm signing here. At your company, that chair is still waiting for a name.
The rule nobody wrote
I end with my own inconsistency, because it is the one that best sums it all up. When measuring the project to write this article, I discovered that my commit history has two distinct author identities for the same person: 1,141 changes signed one way and 631 another. I wrote 290,000 lines about strict identity isolation with my own split in two. And I didn't notice for 74 days.
The machines didn't make that error. I made it. Besides, no automated test was going to find it, because no one ever wrote that rule.
Back to the coupon ledger. The code was fine; what was wrong was everything no one had written. AI-agent development gave me speed, it didn't give me the truth of the business. So the question for your board of directors isn't whether AI replaces programmers; that's the question of 2024. The one for 2026 is different: if tomorrow building stopped being your constraint, would your organization know how to say with precision what the right thing is? Or would you discover, like I did, that that rule was never written down?

