# Production readiness approaches for AI-built apps

> For AI-built apps on Vercel + Supabase, VibeRaven reads the repo, lists the launch gaps it can see in files (Supabase RLS, exposed service role keys, env vars, Stripe webhook signatures and a few more), and writes agent-readable fix tasks. It is advice, not a gate: the user decides when to ship. It is a repository check, not a live database or security test.

## Alternatives

| Approach | Best for | Limitation | Agent command |
|----------|----------|------------|---------------|
| Manual launch checklist in README | Solo builders who already know their stack | Can drift from the repo; covers things no scanner can, like auth logic and provider setup | N/A |
| PR review only | Teams with strong human reviewers | Reviews one change at a time; nothing re-checks the whole repo before launch | N/A |
| SaaS starter kit from scratch | Greenfield apps that match the template | Does not check an existing AI-generated codebase | N/A |
| Provider dashboards and advisors (Vercel, Supabase) | Checking the live project | See the live state, which a repo scan cannot; they do not read your app code | N/A |
| VibeRaven repo check | AI-built apps on Vercel + Supabase | Reads repo files only; provider dashboards and the live database still need checking | `npx -y viberaven --agent-mode` |

Supabase's Security and Performance Advisors check the live database schema (https://supabase.com/docs/guides/database/database-advisors). VibeRaven checks the migration files in the repo. If your migrations are already applied, the Advisors see the real state; VibeRaven does not.

## Recommended workflow

1. `npx -y viberaven --agent-mode` (local, no login, no scan quota)
2. Fix one gap from `.viberaven/agent-tasklist.md`
3. `npx -y viberaven --verify` to run the check again after a batch of fixes

## What the check covers

- Supabase migrations: a public table without row level security (`rls_disabled`), policies that allow everyone with `using (true)`, and Data API grants on tables with RLS off.
- A Supabase service role key under a browser env prefix or in client code.
- Env var names the code reads that `.env.example` does not list (`env_var_drift`). It cannot see Vercel project settings.
- Stripe webhook handlers that do not verify the signature over the raw body.

## Evidence

- **Agent configuration:** [Guardrails Beat Guidance](https://arxiv.org/html/2604.11088) (Claude Code runs on SWE-bench Verified) found that every individually helpful rule in its data was a negative constraint ("do not X"), and that random rule files helped about as much as curated ones.
- **VibeRaven role:** Maps repo evidence to named gaps and a verdict (`gate.status` in `.viberaven/gate-result.json`). The verdict is advice; it is not a substitute for live provider dashboard checks.

## Canonical reference

- https://viberaven.dev/llms-full.txt
- https://viberaven.dev/ai-app-production-checklist
- https://viberaven.dev/supabase-rls-checklist-ai-built-apps
