Methodology — how we count “92% of broken Lovable apps” and other claims
By Hyder ShahFounder · Afterbuild LabsLast updated 2026-04-18
Methodological transparency matters here because the AI-built app rescue space is awash in fabricated-sounding statistics. Every advisor quotes a percentage, most of those percentages have no source, and the AI engines that increasingly answer founder questions will happily repeat any number that looks numeric. We refuse to be part of that noise. Every quantified claim on afterbuildlabs.com has its counting rules documented here: what sample it came from, what we define as the thing being counted, what the limitations are, and when the claim was last updated.
If you are reading this because you want to cite one of our numbers, good — start with the specific claim below, copy the sample size and definition, and link back to both the research page and this methodology note. If you spot a counting error, email hello@afterbuildlabs.com. Corrections get a dated entry in the version history at the bottom of this page.
Scope
This page covers Afterbuild Labs’s internal quantified claims — the numbers we generate from our own rescue engagements. It does not cover third-party studies we cite (Veracode, The Register, Snyk, Stripe); those are the responsibility of the publishing organisation and we link to their sources directly on the research page. If you want to know how Veracode calculated 45%, read the Veracode methodology appendix. If you want to know how we calculated 92%, read on.
“92% of broken Lovable apps fail on one of five things”
Sample
N = roughly 50 rescue engagements between January 2025 and April 2026 where the repo was built primarily on Lovable. Engagements earlier than January 2025 are excluded because Lovable’s default table-creation behaviour changed materially in mid-December 2024, and numbers drawn from the prior era describe a different product.
Definition of “broken”
An app qualifies as broken when the founder explicitly described it as non-functional in production at the time of engagement — typically phrased as “users can’t sign up,” “Stripe isn’t charging,” “I’m leaking data,” or “nothing works on the live URL.” Apps that are “working but fragile” are excluded from the broken sample and handled under separate hardening metrics.
The five failure modes
When more than one failure mode was present (common), we classified by the primary failure — the one the founder reported first or the one we fixed first. Approximate breakdown across the sample:
- RLS disabled or misapplied— ~38% of primary failures.
- OAuth redirect misconfiguration— ~20% (localhost URIs, Vercel preview URLs, missing consent screens).
- Stripe webhook failure— ~16% (missing signature verification, non-idempotent handlers, unhandled event types).
- Env var problems— ~10% (missing on production, public-prefixed secrets, test-mode keys in prod builds).
- CORS misconfiguration— ~8%.
- Other— ~8% (schema issues, rate limits, hydration bugs, vendor quirks).
Sum of the first five: approximately 92%. That is the number quoted on the homepage and in rescue guides.
Limitations
- Self-selection bias.Our sample is apps that reached a paid rescue. Apps whose founders fixed the problem alone, walked away, or never launched are not in the sample. The 92% describes apps that got broken enough to hire us — not Lovable apps in general.
- Platform bias.Heavily skewed toward Lovable because Lovable generates the most inbound rescue requests we see. Numbers derived from this sample should not be read off as “all AI-built apps” — Bolt, Cursor, and Base44 apps show different failure distributions.
- Small N. 50 is a case series, not a controlled study. Patterns at this sample size are suggestive, not statistically definitive.
- No control group. Every app in the sample is one that broke. We have no comparison sample of Lovable apps that launched and did not break. Only Lovable could construct that sample.
- Classification by judgement. Primary-failure classification is made by the engineer running the rescue, not blindly. We mitigate by keeping a written decision log per engagement but cannot claim inter-rater reliability at this sample size.
How we’d improve
When the rescue sample crosses N = 200, we intend to publish an anonymised aggregate dataset — failure mode, platform, fix duration, approximate revenue stage — with columns chosen to prevent re-identification. That would let other researchers cross-reference our pattern against their own. It would also let us update the 92% number with a tighter interval than we can publish today.
“19 days median time to production”
Calculated across completed engagements in the same January 2025 – April 2026 window. The quoted 19-day number is the median elapsed calendar days; the mean is approximately 24, pulled higher by a small tail of rescues that uncovered deeper schema rewrites during the audit. Mode is 14 days.
Start event: the scope is signed and the engineer has read access to the repository. Clock starts that business day.
End event:the rescue is handed off — client holds admin access to repo and deployment, RLS is enforced and tested, webhook endpoints are verified, a runbook is delivered, and the client has signed off on handover. Clock stops that business day.
Engagements that stalled for reasons outside the engineering scope (client paused for fundraising, client went cold, client changed direction mid-rescue) are excluded from the average. This is a real filter that inflates the number somewhat; a stricter calendar-days-to-complete metric including stalls would be longer. We chose the engineering-time metric because it reflects the work the founder is buying.
“100% handoff rate”
Definition. A handoff is the transfer of operational ownership from Afterbuild Labs to the client. It requires, specifically:
- Client is admin on the repository; any Afterbuild Labs collaborator access is reduced to read-only or removed.
- Client owns the deployment platform account (Vercel, Railway, etc.) or is the admin on a shared account.
- Vendor credentials (Supabase, Stripe, domain registrar, email provider) are under client control and Afterbuild Labs does not retain production keys.
- A written runbook is delivered covering deploy, rollback, and the two or three most-likely incident patterns for that app.
- Client has signed off, in writing or on a recorded call, that the handoff checklist is complete.
Rate.Handoffs delivered divided by engagements completed. At April 2026 this is 100%. Engagements that were paused by the client before completion are not in the denominator — they are counted separately and noted transparently in our own records. The 100% number is not a marketing figure; it is the count against a fixed definition, and we will correct it publicly the first time a completed engagement ships without a clean handoff.
“47 apps rescued”
Count. 47, as of April 2026. Updated in the version history when it moves.
What counts as a rescue. A paid engagement with a signed scope, shipped fixes, and a completed handoff. Specifically excluded:
- Free rescue diagnostics that did not convert to an engagement.
- Advisory calls and paid consultations without production code changes.
- Referrals we declined or passed on.
- Engagements still in progress (counted separately in our own tracking, not in the public number).
- Hardening or feature-build work on apps we previously rescued — those are counted as follow-on engagements, not new rescues.
Date range: first rescue January 2025; cutoff for the 47 figure is 17 April 2026. The number includes both Lovable rescues and rescues on other platforms; the 92% figure above is specifically a Lovable-sample subset.
Case study composites
Some case studies on this site are labelled composite. That means they combine details drawn from multiple real engagements, anonymised, time-shifted, and with identifying specifics changed, to illustrate a rescue pattern without identifying any single client. Composites are used because most of our clients are pre-launch founders who have not agreed to be named publicly.
What is real in a composite case study: the failure modes, the technical fix path, the approximate timelines, the approximate platform mix. What is changed: client names, industries (directionally preserved), specific dollar figures, exact dates. Composites are always labelled as composites in the page header. We do not present composites as single named clients.
As named clients publish their own stories and consent to being cited, we retire the corresponding composite and replace it with the real one. This transition happens quietly on individual case study pages; the version history at the bottom of this methodology page notes each transition.
Runbook template for agency-to-production handoffs
Every rescue ends with a written operations runbook. The template is roughly 30 pages and covers the six sections we have found a non-original engineering team actually needs on day one: an architecture map (stack diagram plus which service owns which capability), a deploy-and-rollback chapter with exact commands for the current provider, an on-call ladder (what a paging event looks like, who it escalates to, what the three most-likely incident patterns look like for this app), a vendor catalogue (every paid and free dependency with contract terms, renewal dates, and admin contact), an RLS / auth / payments catalogue with the active policies and their pgTAP tests, and a change log seeded with the rescue itself.
The runbook is always written in the client’s own voice and committed into the repository at /runbookso it moves with the code. When the same agency or the same internal engineer later asks “how do we rotate the Stripe key,” the answer is a section number, not a Slack message. Two of the rescues that generated this template are the Base44 agency escape and the v0 prototype-to-production engagements.
A redacted version of the template is what we’re happy to share with prospective clients during scoping calls — email hello@afterbuildlabs.com to request a copy. We do not publish it as a public download because the structure is partly what a rescue is paying for; we do publish its table of contents and will walk through any section on a call.
Agency archetypes we encounter
AI-agency rescue requests cluster into three recurring patterns. Naming them here because the remediation differs sharply per archetype, and founders evaluating us deserve to know which one they are likely dealing with before we quote.
- The design-led no-code agency that took on too much backend.A studio whose core skill is brand and UX accepts a retainer that implicitly requires multi-tenant data, roles, billing, and integrations — then ships it on a no-code platform because that is the only way the calendar works. The rescue is usually a clustering pass (reduce the bespoke surface to a small number of reusable templates) plus an infrastructure lift to owned infra. The Base44 agency escape is an example.
- The full-stack agency that lost the source.A senior developer left; the remaining team cannot run the app locally and does not know which of three environments is canonical. The rescue begins with archeology — recovering a reproducible build — before any forward work can happen.
- The solo AI consultant who handed off a prompt session. A freelance operator sold a founder a Bolt or Lovable export and walked away. The rescue is effectively a greenfield rebuild using the generated code as a specification, not a foundation.
We name patterns, never studios. The three archetypes above represent the shape of the engagement; the actual agency is anonymised in every public case study.
Cursor “rails” — guardrails for AI-pair-programming regression
When a team hires us to break a Cursor regression loop, the deliverable is not a rewrite. It is a set of rails that let the team keep using Cursor without the drift tax. Cursor’s agent mode is a local optimiser with no global memory; the rails give it an anchor it cannot silently rewrite.
The rails we install are consistent across healthtech, fintech, and SaaS rescues: repo-scoped ESLint and TypeScript rules that fail the build when the architecture contract is violated; feature-slice boundaries with typed public APIs (cross-slice imports outside the API are lint errors); a 2–3 page ARCHITECTURE.md that is referenced by the rules so the convention is both human- and machine-readable; pre-commit hooks that run the typechecker and the relevant Playwright slice before the commit lands; a Cursor playbook covering scoped prompts (one file or one slice at a time), test-first agent runs, and a PR template with explicit context budgets.
We derived this rail set from rescues like the Cursor regression-loop resolved for healthtech engagement. The ruleset is published, redacted, on request — we plan to open a public starter repository when we are confident the rules generalise cleanly outside the five codebases we have deployed them on.
SOC 2 starter pack for AI-built healthtech
Healthtech pilots ask for compliance evidence long before the founder expected to have it. The starter pack is the minimum viable set of controls we ship on a healthtech rescue so the founder can respond to the first SOC 2 questionnaire without a panic.
- Audit log middleware. Insert/update/delete on any PHI-adjacent table writes to an
audit_eventsrow via a Postgres trigger — not an application-layer call that can be forgotten on a new endpoint. - Role-based access via RLS. Every policy has a pgTAP test. A red-team script attempts cross-tenant reads on every CI run.
- Encryption-at-rest confirmation. A written attestation from each infrastructure vendor (database, storage, backup) linked from a single data-handling page, with the specific cipher and key-management posture named.
- Vendor inventory plus DPA links. Every sub-processor named, with the current data-processing addendum or Business Associate Agreement reference, updated on every contract renewal.
- Backup and restore proof.The most recent successful test-restore is dated and documented. We rehearse the restore on every engagement; “we have backups” is not evidence that the backups work.
The template grew out of the Cursor regression-loop resolved for healthtech engagement and has since been reused on every regulated-data rescue. It is not SOC 2 certification — it is the evidence pack a founder needs to answer a diligence questionnaire honestly and with documentation to back each answer.
Series-A infrastructure packet for fintech
Fintech founders arrive in Series-A diligence with a common set of infrastructure questions from the lead investor’s technical DD partner. The packet is the written artifact we produce so the founder can answer those questions in one email with evidence, rather than in a dozen back-and-forth exchanges.
- RLS policy list with pgTAP coverage report (the file the DD partner actually wants to read).
- Stripe webhook signature verification plus idempotency keys on the events table, with a sample retry trace.
- Migration trail — a git log that is auditable, not a collection of agent-generated checkpoint commits.
- Staging-to-production parity statement: what differs between the two environments and why, named explicitly.
- Observability baseline: current error rate, p95 latency, and the dashboards they are measured on.
- Disaster recovery posture: a documented RTO / RPO and the most recent successful restore drill.
The packet we produced on the Replit Agent to Vercel migration is the shape this template takes. Redacted templates are available on request during a scoping call.
Version history
Dated entries for every meaningful methodology change. Most recent first.
- 2026-04-18
Initial publication. 92% figure based on ~50 Lovable engagements. 19-day median time-to-production. 100% handoff rate against the definition above. 47 total apps rescued. Composite case study convention documented.
Claims derived from this methodology are collected on the research page. For the vocabulary used here, see the glossary. Author: Hyder Shah.