← All thoughts and musings
Buying & Selling a Business · 4 min read

Five Things Technical Due Diligence Finds in AI-Built MVPs

Investors are funding AI-native startups fast. Then technical due diligence starts, and the same five findings keep coming up. Fix them before an investor's advisor finds them.

DiligenceBefore the advisor looks

Investors are writing checks to "AI-native" startups quickly. The demo is impressive and the traction looks real. Then technical due diligence starts, and the conversation gets a lot quieter.

Plenty of these products were built fast with AI coding tools, often by a founder who isn't an engineer by training. That's fine. Shipping fast to prove people want the thing is exactly the right call at that stage. The trouble is that the same five findings keep turning up once someone qualified looks under the hood.

1. Secret API keys in the frontend

The app calls a payment provider, a model API or a database straight from the browser, with the secret key sitting in the JavaScript bundle. Anyone who opens developer tools can copy it. Coding tools produce this pattern happily because it's the shortest path to a working demo. In production it means a stranger can run up your bill, read your data, or both.

Move every secret to the server, put a thin backend endpoint between the browser and the service, and rotate every key that was ever exposed. Assume they've already been copied.

2. Admin pages with no access control behind them

The admin dashboard is missing from the menu, so it feels private. The page and the API endpoints behind it check nothing. Anyone who guesses the URL, or reads it in the frontend code, can list users, edit records or issue refunds. Hiding a link is not access control.

Put a permission check on the server for every sensitive endpoint, and don't stop at the page. Then test it the boring way: log in as an ordinary user and call each admin route directly.

3. A database with no backups and no migration history

The schema was changed by hand, or by a tool, directly in production. Nobody can say how it reached its current shape, and often nobody has ever tested a backup. Ask the founder when they last restored one and you'll get a pause.

Set up automated backups and run a real restore. Then make every schema change go through migration files in version control. One bad command shouldn't be able to take the company down with it.

4. One founder who understands code they didn't really write

Investors care about this finding most, even when they don't say so. The product works, but the only person who can explain it is the founder who prompted it into existence and has a loose sense of how the pieces fit. Ask how authentication works, or what happens when the payment webhook fails, and the answer is a guess.

That's key-person risk and technical risk in the same chair. The fix is rarely a rewrite. Get someone who can read the code to map it, document the critical paths and take ownership, so the company's ability to change its own product doesn't depend on one person's memory of a chat session.

5. No tests

Without automated tests every change is a gamble, and AI-assisted changes are fast, frequent gambles. The model fixes one thing and quietly breaks another, and nobody finds out until a customer does. Diligence teams read a missing test suite as a forecast of the next two years of development.

You don't need full coverage. Start with the paths that move money or touch customer data: signup, login, checkout and anything that writes to the database. That alone changes the risk picture.

"Works in the demo" and "survives real users and real money" are different products.

Fix it before someone else finds it

None of this means the founder did anything wrong. Moving fast to prove demand is the job at the MVP stage, and AI tools let far more people do it. But investors are paying for the product that survives real users and real money, and the demo is only evidence that it might exist.

Every finding above is cheaper to fix before a deal than during one. If your own team finds it, it's a cleanup sprint. If the investor's technical advisor finds it, it's a lower price, a list of conditions on the term sheet, or a deal that quietly stops moving.

Raising in the next few months? Run the five yourself. Search your frontend bundle for keys. Log in as a normal user and try the admin URLs. Find out when a backup was last restored, and who besides the founder can explain the payment flow. Then count the tests.

If you're on the other side of the table, about to invest in a company like this, technical due diligence is what I do for investors. If you're the founder, getting the codebase ready is work I take on as a fractional CTO, and I can run the investor's read on your side of the table first, as sell-side technical due diligence. Selling the whole company? Here's how to prepare a business for sale across every function. Tell me what you're raising and when.

Keep reading
Buying & Selling a Business ·

How to Evaluate a Codebase: Read the Thesis Before the Code

AI-Native Engineering ·

How to Run OWASP Security Reviews With Claude Code on Every PR

AI-Native Engineering ·

What Is Professional Vibe Coding? Definition and Discipline