Describing what you want to an AI assistant and iterating until it works is fast and cheap. For a throwaway demo or a script only you use, it is the right call. The trouble starts when that same tool begins handling customer records, payments or work other people depend on. Nothing about the tool changed. The stakes did.
What the data says
Security is the weak point. Veracode's July 2026 report found that roughly 44% of AI code generation tasks introduced a risky vulnerability. The average security pass rate was 56%, barely changed from 55% a year earlier, even though the code almost always ran. These are fixed test tasks, not a measure of every real application, but the pattern is clear: code that works and code that is safe are different things.
The tools are improving, and it is not enough yet. Veracode's October 2026 update shows the pass rate rising from 56% to 62%, its best gain so far. Nearly four in ten tasks still fail. Better models narrow the gap. They do not remove the need for tests, review and someone accountable.
Quick code piles up. GitClear's analysis of about 623 million code changes found duplicated code blocks up 81% since 2023, while refactoring and updates to older code fell sharply. The data is correlational and does not prove AI is the only cause, but it matches what teams report: speed at the start, cleanup cost later.
Many projects never reach production. Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, citing rising costs, unclear business value and inadequate risk controls. That is a forecast, not a measured failure rate. Gartner also says most agentic projects today are early experiments that were never built to run in production.
The bill arrives as a breach. IBM's 2026 Cost of a Data Breach report, as summarized by Kiteworks, puts the global average breach at $4.99 million, the highest on record. Breaches involving shadow AI, meaning AI tools used without approval or oversight, averaged $5.39 million.
Three failures, three lessons
A rule in a chat is not a control. In July 2025 SaaStr founder Jason Lemkin was building an app with Replit's AI agent when it deleted his live database, covering more than 1,200 executives and 1,190 companies, during a declared code freeze. Fortune reported the incident. The freeze was an instruction to the agent, not a technical lock, and development and production shared one database. Replit has since added automatic separation of the two. The lesson: permissions have to be enforced by the system, not requested of the AI.
Finished-looking apps can ship with the database open. CVE-2025-48757 describes missing row-level access rules in apps generated on the Lovable platform. Third-party scans found about 170 of 1,645 apps (10%) exposing data to anyone who could reach the API, including names, emails and API keys. The vendor disputes parts of the framing and says customers are responsible for their own data rules. Either way, nobody had reviewed what the apps exposed.
You inherit the security of the tools you build on. Reporting on a 2026 Lovable flaw described free-account users being able to read other users' source code, database credentials and AI chat histories for 48 days. The vendor disputes parts of that account. The lesson is the same: monitoring and review are how you find problems before an outsider does.
Where a quick build is the right call
None of this is an argument against prototyping. Vibe coding fits when all four of these are true:
- You are testing an idea. A throwaway demo answers "would this even help?" in hours.
- One person uses it. A personal script, a spreadsheet cleaner, a report formatter.
- Nothing sensitive is touched. No customer records, no payments, no regulated data.
- Failure is cheap. If it breaks on Tuesday, someone shrugs and reruns it.
The cost curve is the thing to watch. A quick build is cheapest at the start and gets more expensive with every person who depends on it. A professional build costs more up front and is cheaper to run, change and trust as the business leans on it.
Where it breaks on day 90
A tool that works while you watch is different from one that works while you are not. The usual gaps:
- Edge cases. It handles the three examples you tried, not the 400th record with a blank field.
- Security. Keys pasted into code, no login, no access limits, data sent where you did not intend.
- Silent failure. It stops working and nobody knows until a customer says so.
- One author. Nobody else understands it, and the person who prompted it has moved on.
- No tests. Every change risks breaking something that used to work.
- Drift. The AI model or an outside service changes, and the tool changes behavior with it.
What "industry grade" means
It means the system keeps working when conditions are not ideal, and you can prove what it did and why. In practice that comes down to a handful of differences:
- Requirements are written down: who uses it, what it touches, what "done" means.
- Security is designed in: logins, roles, secrets management and data isolation from the start, not bolted on later.
- Your data stays where you control it, with clear rules on what leaves your environment.
- Automated tests run on every change, followed by a staged rollout.
- AI has guardrails: checks, approval steps and human review where a wrong answer is costly.
- Monitoring tells you first: alerts, logs and health checks, so you do not learn about problems from a complaint.
- It connects to your systems with retries and error handling, not fragile one-off links.
- Someone owns it: documented, versioned and handed over, with a rollback path and a person accountable.
Seven questions to ask any builder
Ask these of an agency, a vendor or your own team. Vague answers tell you what you need to know.
- Where do the passwords and API keys live? Not in the code, and not in a chat window.
- Who can see which data, and how is that enforced? Rules in the system, not instructions to the AI.
- What happens when it fails at 2 a.m.? Who finds out first, and how.
- Can you roll it back, and have you tried? A backup that has never been restored is a guess.
- What tests run before each change? "I click through it" is not a test.
- Where does a person approve what the AI does? Especially anything that sends, pays or deletes.
- Who owns it if the builder leaves? Documented, in your accounts, with someone accountable.
A simple way to decide
Ask three questions. Would a failure cost us a customer, money or a compliance problem? Will more than a few people rely on it? Does it touch customer, financial or employee data? One yes means treat it as production. Prototype freely on everything else, and bring in professional help when a prototype proves its value and starts to matter.
How we build the systems we run ourselves
Our own finance platform follows these practices. More than 470 automated tests run before a change ships. A database backup is taken before each upgrade, with a one-line rollback. Each client's data is separated at the database level, not only in the app. New modules get an independent review before they go live and start switched off. Receipts and audit trails cannot be edited or deleted after the fact, and anything public or outbound goes through a person before it is sent.
A professional build runs in five stages: map the real process and find where the time and errors are; design what the AI does, what code does and where a person approves; build it with tests, security and your existing systems in mind; run it beside the current process before it replaces anything; then monitor, improve and support it once it is live.
Notes on the figures. Veracode results come from a fixed set of test tasks. Gartner's figure is a forecast. GitClear's data shows trends, not a single cause. The Lovable figures come from third-party write-ups and the vendor disputes parts of them. IBM's figures are as summarized by Kiteworks. Each is linked above so you can read the original.



