Doug Borg

Case study · AI-built app

Reviewing and stabilizing an AI-built app

A solo founder built a web app, an iPhone app and AI features almost entirely with Claude Code. With users about to sign up, the founder needed to know what to fix before launch.

  • 1,000+commits across two separate repositories
  • 30findings from the review
  • 27findings closed
  • 3 daysanalysis and most of the restructure

the situation

The web app and the iPhone app lived in separate repositories with no shared checks. Both used one hosted backend, and there was no practice copy of it. Development builds of the phone app used production by default, so testing touched real accounts.

The app handled personal data about its users and paid for an AI call every time it generated content. Mistakes in data access or AI spending could expose private information or run up costs.

Stack

Web
TanStack Start
Mobile
Expo and React Native, iPhone
Backend
Convex, with Convex Auth
AI
LLM-generated content
Built with
Claude Code

what we did

I completed the analysis and most of the restructure within 3 days. Much of the work was coordinating and integrating changes that continued after the restructure started.

  1. Intake

    Wrote down what the app does, who uses it, and what worried the founder. Read the project's instructions and scripts before running anything.

  2. One workspace, one set of checks

    Combined both repositories into one and kept the full history of each. Pinned tool versions so every machine builds the same way. Ten automated checks run locally and on every pull request.

  3. The review

    30 findings across web, mobile, backend and AI, each ranked and filed as an issue. Each one says how it was verified, so the founder knew which were confirmed and which needed another look.

  4. Guardrails for AI-assisted work

    Wrote the instructions and checks the founder's AI assistants read on every task: which environment is safe to use, what must not change for apps people already installed, and when a change needs tests.

  5. Fixes, mostly by the founder

    With the issues filed and the guardrails in place, the founder worked through the list with their own AI tools. I reviewed fixes and coordinated the integration of work that continued during the restructure.

  6. Production switch

    The combined workspace became the source of the live app.

what the review found

The review found 3 high-risk, 14 medium-risk and 13 low-risk issues. Here are some of the findings and fixes:

  • Mobile app development builds used the production databaseNow they default to a practice backend with sample data
    High
  • Automated tests changed production dataThey now run only against the practice backend
    High
  • AI spending was capped per account, with no overall limitPer-user limits plus a daily ceiling for the whole app
    Medium
  • AI output was saved unchecked, and a failure could leave half-saved recordsOutput is validated, and each save completes fully or not at all
    Medium
  • Sign-in links were stored in plaintext and sent in the URLStored as a hash and kept out of the address bar
    Medium
  • Removing a device left its server access in placeIt revokes it now
    Medium
  • One account's failed attempts could lock out other accountsLimits now apply per caller
    Medium
  • Actions taken offline were dropped on any errorQueued taps now survive errors and replay
    Medium

The production switch established the workspace used for the live app. Completed work and remaining production checks are listed separately below.

in place now

  • A practice backend, with a fresh copy for each pull request
  • Preview websites for changes before they go live
  • Encrypted secrets stored alongside the code
  • Founder approval required for backend, AI, privacy and app store changes
  • Limits that stop files and functions from growing more complex
  • In-app problem reports, with optional details attached

still in progress

  • Automatic production releases when a change merges
  • A full review of who can see each account's data
  • Measuring the quality of AI-generated content over time
  • Testing on every supported device

The founder fixed most of it with their own AI tools

The review gave the founder a prioritized list of fixes, with checks in place to catch regressions.

let's talk about what you need

Email me about a problem you want to solve, a decision you're weighing, or something you want to build. We'll arrange a free 30-minute call to talk it through.

Arrange a free 30-minute call

See what a production readiness review includes