Rescue or rebuild an AI-built app? Decide part by part

Harden it when the data model fits the business and the problems are in access rules, secrets, payments and monitoring. Rebuild when the data model is wrong, the tool’s limits block what you need, or every change breaks something else. Most apps are neither: keep most parts, fix some and rebuild one or two.

Harden or rebuild, side by side

The two ends of the decision. Most apps land between them, which is why our Production-Readiness Review decides part by part.

  • When it fits

    Harden what you have
    The screens and flows match how the business works, and real users are in it.
    Rebuild it
    The data model fights the business, or the app needs things the tool cannot give it.
  • What changes

    Harden what you have
    Data access rules, sign-in, secrets, payment webhooks, error tracking, backups and checks on every push.
    Rebuild it
    The data model and the backend, rebuilt around what the first version taught you.
  • Users and data

    Harden what you have
    They stay where they are; the changes go in underneath them.
    Rebuild it
    They move across on a plan built around live users and data.
  • How long

    Harden what you have
    Our Harden Sprint typically takes two weeks, depending on complexity.
    Rebuild it
    Longer: a first version back in use typically takes six to ten weeks.
  • What you keep

    Harden what you have
    The product, the code and the momentum.
    Rebuild it
    What the first version proved: the flows, the copy and your users’ habits.
  • The risk

    Harden what you have
    A deep flaw found late, after money has gone on hardening.
    Rebuild it
    Rebuilding parts that worked, and a long gap before the next release.
  • Where it runs

    Harden what you have
    Where it runs now, or moved to your own database, hosting and repo.
    Rebuild it
    Your own database, hosting and repo from the start.

What are the signs an AI-built app can be hardened?

The data model fits: the tables match the things your business deals in, and the relationships make sense. The screens do what users need. The problems are the common ones, such as loose data access rules, keys in the browser, payment webhooks that trust anything, and no error tracking or backups. Those are fixed in place.

They are common for a reason. Veracode’s 2025 GenAI Code Security Report found that AI-generated code introduced risky security flaws in 45% of its tests, across more than 100 models, and that larger, newer models did no better.

Access rules bite first in apps on a hosted database. A 2025 entry in the National Vulnerability Database describes apps generated by Lovable whose row-level security let unauthenticated visitors read or write tables. Lovable disputes it, saying each customer is responsible for protecting their own app’s data. Either way the rules are the owner’s job, and they can be fixed without a rebuild.

Signs it fits

  • Users sign up and use it every week.
  • The problems are about who can see what, not about what the app is.
  • You can describe each table in one sentence.

When should you rebuild an AI-built app instead?

When the data model is wrong for the business, when the app needs background jobs, integrations or roles the tool cannot carry, or when changes have stopped being predictable: each prompt fixes one thing and breaks two. A rebuild keeps what the first version proved and replaces the foundations under it.

A rebuild is also the honest answer when nobody can say what the code does. If the same files have been regenerated dozens of times and there are no tests, reading a part can cost more than writing it again.

Signs it fits

  • One record type is doing the work of three.
  • The next feature needs a server the app does not have.
  • Every fix starts with “it worked yesterday”.

Most apps are neither: keep, fix or rebuild, part by part

Our Production-Readiness Review reads the repo and tests the live app, then puts every part into keep, fix or rebuild, with a fixed quote for the work. This is a page from a sample report for a typical ordering app built with Lovable: three parts to keep, four to fix and two to rebuild.

The rebuild items are the database access rules and the payment webhook, not the app. See the review, the sprint and their prices.

Illustration: the same report sorted. Three parts of the app to keep, four to fix and two to rebuild.

Do you lose the code if you leave the tool you built it with?

Not with Lovable. Its GitHub integration syncs both ways: changes made in Lovable go to GitHub, and changes pushed to the active branch come back. Its documentation says you can work locally in your own editor and deploy outside Lovable.

Cursor and Claude Code already work on code in your own repo. For Bolt, Replit and v0, the review starts from wherever your code lives today, and moving it to your own database, hosting and repo is what our Graduate step plans.

What does it cost to wait?

Usually more than finding out. Every week on a weak foundation adds users and data that a fix has to work around, and a rebuild started later has more to move. A short review now tells you which kind of problem you have, before you spend on either, and the fee is credited if you go on to the sprint.

Sources

Every vendor fact above comes from these pages. If one has changed since, it wins.

Read on 14 October 2026.

Common questions

Usually not all of it. If the data model fits your business and users are in it, most parts can be kept and the weak ones fixed. Rebuild only the parts whose foundations are wrong. A part-by-part review tells you which is which before you spend on either.

Data access rules with tests, sign-in hardening and rotated secrets, payment webhooks that cannot be faked or replayed, error tracking, uptime checks and backups, checks on every push and caps on AI spend. Our Harden Sprint typically takes two weeks, depending on complexity.

Not by using it. The gaps that matter, such as tables any visitor can read or keys shipped to the browser, are invisible in normal use. A review that reads the code and tests the live app finds them. Our free Exposure Check looks from outside only and sends a five-minute video.

Yes, that is the point. House rules for building with AI go into the repo, and checks run on every push, so a change that loosens an access rule shows up as a failed check rather than in production.

A first version of a rebuilt platform is typically in use in six to ten weeks. Moving live users and data is planned first, with a fixed quote and a move plan with dates before anything changes.

Answer their engineer first. The due-diligence edition of our review decides keep, fix or rebuild the same way, and adds written answers to the investor’s question list and a summary for the data room.

Find out which kind of problem you have.

The Quick Check reads the repo and the live app, names your five biggest risks in writing and comes with a fixed quote for the right next step.