Diogo Seca
Writing

Engineering practice9 min read

Production readiness review for an AI-built app: what I check before real customers arrive

A production readiness review checks whether a small AI-built app can take paying customers: deploys, rollback, alerts, backups, keys, and spend.

A production readiness review tells you whether a small product can take real customers. I use it for six checks: a deploy that can break a sign-up or a payment, a rollback you can do in minutes, an alarm before a customer emails, a backup you can restore, a named owner for the keys, and a bill that cannot run all night. The long version is how a site reliability team agrees to carry the pager for someone else’s service. You built the app in Lovable, Replit, Bolt, v0, or Cursor. You do not have that team.

I am not scoring how the code was written.

What is a production readiness review, and why is the long version too much?

Google’s site reliability book describes a Production Readiness Review as the usual first step when an SRE team takes on a service. Reviewers learn the service, compare it with their checklist, and the team accepts production only after that. In Google’s account of that model, onboarding one service took two or three SREs and typically two or three quarters of a year.

The production readiness checklist I use has six lines:

  1. A deploy that finishes an in-flight sign-up or payment once, and that you can undo.
  2. An alert that reaches a person before a customer emails.
  3. A backup someone has restored, not only taken.
  4. A named owner, and a second person, for every account and key.
  5. A cap on AI and cloud spend that can stop a loop.
  6. A way to keep shipping if the builder’s publish is stuck.

I do not want the ceremony that comes with the long version.

Can a deploy break a sign-up or a payment already in flight?

Zero downtime deployment is the name for a release that does not drop work already in flight. At this size, that means two things: a sign-up or payment already started still finishes once, and a bad version can be replaced by the previous one before the next customer feels it.

On Lovable, the pages a visitor sees are a snapshot. The live site keeps the last version you published until you publish again. Accepting a draft is a different event. Lovable says a draft’s changes to the database structure, file storage settings, and backend functions take effect in the live app immediately. The new screens wait for publish. You can break sign-up or checkout while the page still looks the same.

Stripe accepts an idempotency key on create and update: an id you attach so a retry counts as the same attempt. On API v1, Stripe saves the first response that actually starts, including a 500, and returns it for the same key. A key can be removed after at least 24 hours, and the parameters have to match. That covers a dropped connection. An old copy of the app can still create a new charge under the old rules, because that charge has a new key.

One marketplace launch sat for more than two weeks on that question: during a deploy, can the old instances keep processing Stripe payments after the new safeguards ship. Until you can say which version may take money while both are up, and what happens to a payment that started before the safeguard, the launch is not ready. A half-finished sign-up is the same ticket: the person is in the database, and the mail never went.

Rollback has to be a step you have timed. On Vercel, Instant Rollback points production domains at a previous deployment, usually within seconds. Hobby goes back only one production deployment. Pro and Enterprise can use any deployment already aliased to production. You get that older build, not environment variables changed afterwards, and not the database. New pushes then stay off production until you promote a deployment again.

On Lovable, revert restores the code and redeploys the edge functions, the server-side functions. It does not roll the database back or undo structure changes a draft already applied. History marks the version customers currently see. Very old versions can be previewed and not restored. Unpublish takes the URL offline, current version included. If the only way back is a chat message that says “undo it”, time that message.

How do you know it is broken before a customer emails?

The homepage can look fine while checkout is dead. I want two messages, both to a person.

First, an uptime check that does not run on the app’s host. Something else requests the public URL and tells you when it fails. If the host fell over, mail from that host may never leave. There is no rota. The pager is your phone, or one named person’s.

Second, the paths that take money or create an account. A page can load and still refuse every card, or fail to send the sign-up mail. Those failures show in the payment account and in the app’s errors. I would rather get that note at 22:00.

Have you restored a backup, or only taken one?

A backup nobody has restored is a rumour about a file. This check is done when a restore has been run once, on a copy if you already have customers, and someone has signed in and recognised the data.

Lovable backs up its built-in database once a day and keeps up to roughly 14 days. A restore writes that backup into the same project and cannot be undone. Later rows and the database structure go back with it, so the app may no longer match, and the database is down for a few minutes. Storage files are not included. Scheduled jobs and email sending are not reliably restored. Anyone with edit access can press it. Export first if you need today’s data. The export is a file, not a restore point, and deleting the database deletes an export left in project storage.

On a Supabase project you connected yourself, Lovable does not run the backups. Pro, Team, and Enterprise get a daily backup for 7, 14, and up to 30 days. The project is inaccessible during a restore. Storage files are not in the backup. Free projects are told to export and keep the dump off-site. Paid projects with physical backups can restore into a new project, which keeps the test off the live database. That clone starts any scheduled jobs it copied, so a quiet test can email a customer. Leave those jobs off, or use an export you control.

Who holds the keys?

For each account I write the owner, the second person, and how you get in next month.

The domain and DNS. The host. The payment account, in the company’s name, with two people who can issue a refund. The email that sends password resets and receipts, because sign-up is unfinished if that mail never leaves. The database: Lovable’s built-in backend is billed as workspace credits, and Lovable manages backups and the instance. A Supabase project you connected is billed by Supabase, and those controls sit in the Supabase dashboard. The API keys. OpenAI shows a service-account secret once, and you cannot view it again there. The company should be able to replace a key without finding the person who saved it.

The ordinary failure is a personal login, away the week you need a refund or a DNS change. Keep those accounts in a password manager the company owns.

What stops a loop from spending the budget overnight?

A job that calls a model, or retries forever on failure, does not get tired. On one product a loop kept running and burned usage credits, with nobody watching. I want a cap that stops spend, and an alert that fires earlier. The alert leaves the loop running.

On the OpenAI API, a monthly spend limit can watch the bill without blocking requests. “Enforce a hard limit” fails requests after tracked spend hits the number. Enforcement is not instant, so spend can run a little past it. Alerts do not stop traffic. You can set this on the organisation and on a project. With the hard limit off, the number was a chart.

On Vercel, Spend Management is on Pro and on Enterprise Flexible Commitment. A budget does not stop usage on its own. Pausing production, on a team or project budget, stops those sites when spend hits the amount. Checks run every few minutes, so spend can continue briefly past the line, and the pause does not stop AI Gateway, v0, or storage charges. Visitors see an error. Set the number under the spend that would wreck the month.

On Lovable, running out of credits or hitting a credit limit can pause the project, database included. You cannot export until you resume it. A cap that saves the card can also block the backup. Send the alert to a person.

What do you do if the builder cannot publish?

A founder’s app got stuck mid-publish during a platform incident, and an urgent customer update could not go out. On Lovable, the calm case is that the live site keeps the last published snapshot until a publish finishes. That does not ship a stuck update, and it says nothing about a day the platform itself is down.

Before that day, three things should sit with the company. The code in a git repository you can open without the builder. Lovable’s backup notes say to keep it in version control, such as GitHub, and to move it with Git sync. A database export and the storage files, kept outside the project: a database restore is not a full copy of the app, and leaving means setting up sign-in, secrets, and email again. And a note on being found if the spare host is not Lovable. I covered that in Lovable SEO: rendering and the canonical domain do not follow the app on their own.

With those, a stuck publish is a delay. Without them, the status page is your plan.

What should the review hand you?

A ranked list you can read without me in the room. A payment that can be taken twice sits above a tidy name. Under it, a short fix plan: the first changes, in order, and the check that shows each one worked. Name the URL requested from outside, the phone that is told, and the person who can put the previous version back.

If you are about to take paying customers, or you already have a few, I do this as a Production Readiness Audit. You get the ranked risks, a remediation plan, and a recorded walkthrough. The scope is the diagnosis and the plan. Here is how that works. There is more about me on the homepage, including the work.

Sources

  1. Google, The Evolving SRE Engagement Model: what a Production Readiness Review is, and the lead time of that model.
  2. Stripe, Idempotent requests: keys on create and update, saved responses including 500s, removal after at least 24 hours.
  3. Lovable, Publish your Lovable project: the published snapshot, what accepting a draft changes immediately, and unpublish.
  4. Lovable, Revert and restore your project with version history: revert restores code and edge functions, not database data.
  5. Vercel, Performing an Instant Rollback on a Deployment: eligible deployments, timing, and what a rollback leaves untouched.
  6. Lovable, Back up, restore, and export your project's database: daily retention, what a restore omits, and exports.
  7. Supabase, Database Backups: retention by plan, free-project exports, and storage left out.
  8. Supabase, Restore to a new project: paid plans with physical backups, and jobs that start on the clone.
  9. Lovable, Connect to Supabase: who manages backups on the built-in backend and on your own project.
  10. OpenAI Help Center, Managing projects in the API platform: spend limits, alerts, and service-account secrets shown once.
  11. Vercel, Spend Management: budgets, pausing, and what a pause does not stop.

Questions and answers

What is a production readiness review?

A production readiness review checks whether a product can take real customers without a bad deploy, a silent outage, a lost database, a locked account, or an overnight bill taking it down. For a small AI-built app it is a short ranked list of those risks and a fix plan.

Is a production readiness review a code review?

No. It does not score how the code was written. It checks deploys and rollback, alerts, backups, who owns each account and key, spend caps, and what you do if publishing is stuck.

What is on a production readiness checklist for a small app?

Six checks: a deploy that finishes an in-flight sign-up or payment once and can be undone, an alert before a customer emails, a backup that has been restored once, a named owner for each account and key, a spend cap on AI and cloud usage, and a copy of the code and data you can leave with if the builder cannot publish.

What does zero downtime deployment mean for a small product?

A sign-up or payment that has already started still completes once, and you can put the previous version back quickly if the new one is wrong. It does not require a second copy of the whole system. Rolling the app back does not undo database changes.

Does a database backup count if nobody has restored it?

No. A backup counts after a restore has been run and someone has checked the data. On Lovable, daily backups cover the database only, not storage files, and a restore cannot be undone.

Who should own the domain and the payment account?

The company should own them, with a second person who can log in. A personal login held by one freelancer leaves you unable to refund a customer, change DNS, or rotate a key while that person is away.

Contact

Disagree with something here? Send me an email.