AI-Built Apps Fail in a Predictable Pattern — and Fixing Them Is Engineering
A team ships an application built with AI tooling. It compiles. It deploys. Users log in, data flows, features work exactly as intended. Everything feels solid.
Failures stay invisible until someone with reason to look examines the code systematically — an investor's technical team during a funding round, an acquirer's engineers during diligence, an enterprise customer's security review, a SOC 2 auditor. And increasingly, no human looks first at all: autonomous agents scan for exactly these flaws at scale, and frontier models surface them faster than any review team can work through them. Whoever finds them first sets the terms. When it's the other side, the finding is expensive and public.
A stranger could delete the admin's data right now, or walk off with every user's PII. The application wouldn't crash. No error would appear. The logs would show nothing unusual. The team would never know it happened. This is the hidden reality of AI-built software today: functional on the surface, vulnerable underneath — and the person who built it has no way to see the difference.
AI-built applications collapse across the same six pillars — Security, Code Quality, Architecture, Performance, Platform Dependency, and Compliance — in a repeatable pattern that stays invisible to their builders but becomes diagnosable and fixable through disciplined engineering assessment.
Finding is no longer the hard part — that's the shift. When an AI can list every broken authorization check in an afternoon, the bottleneck moves to the fix, and fixes don't scale the way discovery now does. That's the gap I built for.
The failure pattern is systematic
When I assessed five anonymized production applications — a property-management system, a private-fund investor portal, a cash-flow forecasting tool, a fractional-CFO client portal, and a fifth operational application — I expected scattered problems. Different apps, different purposes, different weaknesses. I found the same pattern of failure repeated five times.
All five collapsed across the four core pillars simultaneously. Security ranged from 1.0 to 2.0 on a 0–5 scale. Code Quality ranged from 1.4 to 2.1. Architecture ranged from 1.2 to 3.2. Performance ranged from 1.5 to 2.3. Platform Dependency held flat at 3.0 across all five. Compliance ranged from 1.0 to 3.5 — the one dimension where a single application nearly passed.
The scores that look higher aren't proof of safety — they're the least-bad corner of a chart that's collapsed everywhere else. They cluster near the bottom of the scale, and they cluster together: when Security fails, Code Quality fails alongside it, Architecture fails alongside that, Performance fails alongside everything else.
- Property management systemSecurity1.0
- Private-fund investor portalSecurity1.0
- Services SaaSArchitecture1.3
- Fractional-CFO client portalCode1.9
- Cash-flow forecasterSecurity2.0
None of the five is production-ready. Every one has at least one failing pillar. Yet all five had shipped, all five were in active use, and all five had teams who believed they'd built something solid. That consistency is the proof the failure is systematic: random bugs would scatter across different pillars in different applications. A pattern this uniform points to something structural in how the code gets generated — not the individual prompts or features requested.
Security fails because authorization lives in the wrong place
The Security pillar illustrates exactly why these failures are dangerous: they're invisible to the person who shipped the application. In the private-fund investor portal — a data room where investors access sensitive documents — the entire admin authorization boundary was enforced only in the browser. A hard-coded email allowlist and a client-side role check gated destructive API calls. Any authenticated user who called the API directly bypassed it entirely.
Anyone logged in could delete the admin's data
The entire admin boundary lived in the browser. A hard-coded email allowlist decided who was an admin — then made destructive API calls directly from the client. Skip the redirect, call the API, and you're in. The person who shipped it couldn't see the hole, because on screen everything worked.
// authorization decided entirely in client-side JavaScript if (ADMIN_EMAILS.includes(currentUser.email)) { // AI-generated code fires destructive calls from the browser entities.ModelConfig.update(…) entities.ModelConfig.delete(…) }
This is broken access control — OWASP A01, the number one web application security risk. The admin panel appears protected: click the restricted buttons as a regular user and nothing happens. But open a terminal, send the same request directly to the API, and the server does whatever you ask. The same pillar captured data-exposure failures across multiple applications — user emails and, in one case, a medical-license string sitting in the frontend bundle, visible to anyone who opens developer tools.
Code Quality fails because generated code optimizes for function, not maintainability
Across all five applications the same patterns repeated. Duplicated logic scattered across files instead of abstracted into reusable functions — the same validation routine in three components, the same API call copy-pasted with minor variations. Fix a bug in one copy and the others stay broken. Inconsistent error handling that swallows failures silently in some places and crashes loudly in others. Naming conventions that shift mid-codebase — userData in one file, user_info in another, currentUserObject in a third — as if multiple generation sessions were stitched together without review.
The AI solved each prompt in isolation. It answered the immediate question — "make this feature work" — without the contextual judgment to recognize that the same logic already existed, that error handling should be consistent, or that a future maintainer would need to follow the flow. This matters for security: when logic is duplicated, a fix in one place doesn't reach the copies; when error handling is inconsistent, edge cases become attack surfaces. Code Quality failures become Security failures.
Architecture fails because there is no separation of concerns
Architecture showed the widest range but the same underlying problem: AI-generated applications flatten everything into a single layer. Business logic lived inside UI components — a React component that rendered a button also contained the database query that decided what the button did. In several cases that query concatenated user input directly into SQL, an injection hole. Data validation happened in the frontend, the backend, or nowhere, depending on which prompt generated which feature.
The authorization failure in the investor portal was an architectural failure before it was a security failure. There was no server-side authorization layer because the architecture never defined where authorization should live. The AI generated code that worked; it didn't generate code that belonged anywhere in particular. Architecture is where security boundaries are enforced — without it, every other pillar weakens.
Performance fails because resource management is an afterthought
Performance revealed applications that work until they don't. In the cash-flow forecasting tool, a single dashboard load triggered sequential API calls that could have run in parallel — five calls at 200ms each meant a full second for data that could have arrived in 200ms. That's with one user; add ten hitting the dashboard at once and latency compounds. In the property-management application, list views fetched complete entity records — fifty fields per row when three were displayed. Frontend bundles shipped megabytes of unused code with tree-shaking never configured.
AI code generation optimizes for correctness on the expected case. It returns the right answer for the test case. It doesn't ask whether that code will still be right in acceptable time when the table has a million rows, when a hundred users hit the endpoint at once, or when the network is slow. Performance failures become security failures under load: an endpoint that takes ten seconds to respond is a denial-of-service vulnerability.
Compliance fails because sensitive data has no boundary
Compliance measures where regulated data ends up — whether personal information is stored in cleartext, leaks through the frontend or the URL bar, or the dependency tree carries license and supply-chain risk. The property-management system and the investor portal scored 1.0, with twenty-six and fifteen findings respectively. Only the cash-flow forecaster came close to passing.
The failures here are the Security exposures seen through a second lens. The user emails in the frontend bundle and the medical-license string shipped to the browser aren't only security defects — they are reportable data exposures. A SOC 2, GDPR, or HIPAA reviewer doesn't ask whether the leak was exploited; they ask whether regulated data left the boundary it was supposed to stay inside. In these applications it did, in plain view, and nothing in the code marked it as data that should have been protected. This is the pillar that turns a security finding into a contractual one — the difference between a bug and a breach notification.
Platform Dependency fails because of tight coupling to one platform or model
Platform Dependency is the one place the applications look almost respectable, and the score is identical everywhere for a reason: all five were built on the same AI platform and inherit the same constraint. In some cases the application doesn't even talk to a database or an auth service the team controls, and the model call is wired straight into the code rather than routed through a layer that can swap it. Architected correctly, the platform supports purpose-specific models per task; architected the way these tools generate by default, the app is married to whatever model it was built against. The lock is in the code, not the platform — and the tool that made it fast to build is the thing standing between it and optimization.
The danger is invisibility, not complexity
The common factor isn't that these applications are badly built in ways their builders could see. It's that they're badly built in ways their builders cannot see. The authorization bypass was invisible because the admin panel appeared to work. The Code Quality failures were invisible because the duplicated logic produced correct outputs — until a fix in one location left the copies vulnerable. The architecture collapse was invisible because features functioned despite living in the wrong layers. The performance problems were invisible because the demo dataset was small enough to mask them.
Broken access control is the number one web application security risk precisely because it's so often invisible. The application doesn't crash when authorization fails — it simply does what it was asked to do, by someone who shouldn't have been able to ask. The problems don't surface until an attacker probes the boundary, a maintainer tries to change the code, or load exceeds what the expected case assumed. Seeing these failures requires knowing where to look, and that knowledge is the gap a disciplined engineering assessment fills.
Finding these failures first is the work
The failure is predictable. The diagnosis is repeatable. The remediation is engineering. These failures stay invisible until someone with reason to look examines the code — an investor's team, an acquirer's engineers, an enterprise security review, a SOC 2 auditor — and increasingly, autonomous agents scanning at scale get there first. Whoever finds them first sets the terms.
Finding is no longer the hard part. When an AI can list every broken authorization check in an afternoon, the bottleneck moves to the fix, and fixes don't scale the way discovery now does. That's the gap I built for. My platform assesses AI-built applications the way those systems do — it calls API endpoints directly as a non-admin user, inspects what reaches the browser, traces where authorization is actually enforced, and runs the code under production conditions — then reports the specific findings, file and line, with the exploit path for each. Because it pinpoints the exact line the exploit reaches, it doesn't stop there: it generates the fix and verifies the fix holds. Discovery is already automatic. Remediation has to be too.