Phase 01
Foundation
Auth, Billing, Multi-Tenant Migration
Outcome
Lumina runs on a single shared Supabase project with row-level security, Clerk auth, and Stripe subscription billing — and one design partner is already migrated to prove the pattern works in production.
What we'll do
- Spec the Supabase RLS pattern (policies per table, tenant context, test fixtures) and document it
- Stand up staging environment and mirror one design-partner customer's data
- Run staging cutover, validate every read/write path, prove rollback works
- Wire Clerk auth (sign-up, sign-in, session, tenant claim on JWT)
- Wire Stripe subscription billing (products, prices, webhook handlers, customer portal)
- Migrate remaining two design partners to production RLS, one at a time
- Deliver rollback playbook as a living doc in the repo
What you walk away with