LifeMate — Personal, Family & Learning Companion
fix/lifeguide-pages-qa-base-preflight
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | # ADR 0011 — Supabase Free trial as isolated LifeGuide QA (conditional) |
| 2 | |
| 3 | Date: 2026-10-15 |
| 4 | Status: **ACCEPTED FOR ISOLATED QA — initial infrastructure active; production unchanged** |
| 5 | |
| 6 | ## Superseding actual QA decision and execution — 2026-10-15 |
| 7 | |
| 8 | **Accepted for isolated synthetic-data QA ONLY; initial infrastructure provisioned. NOT a production hosting or schema migration decision.** |
| 9 | |
| 10 | Owner selected the existing independent Supabase organization now displayed as **DM Studio**, ID `unrlckipyubhegrpqgei`. The earlier proposal to create a separate `LifeGuide` organization is **withdrawn**. The project itself must be isolated; Supabase Free allows at most two active free projects across account-controlled organizations. |
| 11 | |
| 12 | - Verified Free plan, provider creation quote **$0/month**, connector cost-confirmation, and `LifeGuide-QA` project successfully created with ID `iqkrwxeprxvdiubdfcrb` in `eu-central-1` on PostgreSQL17.11. |
| 13 | - One additive, intentionally private, synthetic-only migration in schema `lifeguide_qa` passed SQL write/read and checked deny-by-default privileges/RLS. |
| 14 | - A separate JWT-gated synthetic Edge runtime probe was deployed `ACTIVE`; an unauthenticated external GET was **401**. This is not the LifeGuide app's REST API. |
| 15 | - Existing `Finora ERP – Production` was read-only inspected and remained `ACTIVE_HEALTHY`; there was **no** reuse, transfer or mutation of existing project resources. |
| 16 | - No child data, 20 application migrations, release signing, real API/PWA/Android, DNS change or public product rollout. Production hosting ADR 0009 remains unchanged. |
| 17 | - Full evidence: [QA provisioning audit](../audits/2026-10-15-supabase-qa-provisioning.md). |
| 18 | |
| 19 | The original planning narrative below is **historical**. Its independent-organization creation requirement and older pending statuses are overridden by this recorded owner decision and observed provider facts. |
| 20 | |
| 21 | ## Historical owner-approved naming update — 2026-10-15 (manual execution pending) |
| 22 | |
| 23 | Owner selected `DM Studio` as the general-purpose **display name** for the *existing* Supabase Free organization with ID `kpbskbvjspggwzmgqyze`, previously displayed as `Finora` then `LifeGuide`. This is a **rename, not a new organization**. The connector exposes no rename operation; final dashboard action and verification are **pending**. The previously proposed separate LifeGuide organization requirement is withdrawn by this decision. |
| 24 | |
| 25 | Application isolation still requires separate Supabase **projects**, with `LifeGuide-QA` to be created only after the $0 monthly cost and free-project capacity checks and approval. Nothing authorizes overwriting an existing Finora/EasyFactor project, exceeding free limits or changing production hosting ADR 0009. |
| 26 | |
| 27 | ## Context |
| 28 | |
| 29 | Owner explicitly requests an independent **LifeGuide** Supabase organization and a no-payment online test environment for child/parent Android+PWA shared state. International card payments are unavailable. Current application 0.7.1 uses Node/Express, PostgreSQL, native Argon2 and custom auth; previous production hosting ADR 0009 selected a self-hosted Compose approach due to cost, reachability and runtime constraints. |
| 30 | |
| 31 | Connected Supabase account already has an unrelated Free organization `Finora`, with projects `Finora` (INACTIVE) and `EasyFactor` (ACTIVE_HEALTHY). The Supabase Free active-project allowance is account-wide, not renewed for each organization. No LifeGuide organization/project has yet been created, and organization creation is unavailable through the connected Supabase connector. |
| 32 | |
| 33 | ## Decision boundaries |
| 34 | |
| 35 | 1. **Evaluate** a separate `LifeGuide` Free organization and `LifeGuide-QA` project, only after the provider returns **exactly $0** for creation and confirms capacity. Nothing in this ADR authorizes payment. |
| 36 | 2. The evaluation is exclusively synthetic and isolated. **Never alter** Finora/EasyFactor, existing Railway, DNS, the current production backend/database, or user data. |
| 37 | 3. Supabase-hosted PostgreSQL may preserve much of the relational model, but does **not** provide long-running Express hosting. The runtime/auth/database-role differences require a compatibility spike. This is **not** a production migration approval, nor proof of an interchangeable service. |
| 38 | 4. Keep current LifeGuide 0.7.1 test branch/CI source and stacked PRs untouched. Prototype any adapters only in an isolated branch. |
| 39 | 5. Child privacy and parent visibility must be verified by server-side negative tests, RLS if accessing via PostgREST, consent and audit semantics, not user-interface hiding. Public client must not receive privileged credentials. |
| 40 | 6. Public PWA hosting, Safari/Add to Home Screen, Android connectivity, backup/recovery, access from Iran without VPN, sanctions/terms and the Free tier's pause policy are independent acceptance gates. |
| 41 | |
| 42 | ## Rejection and exit criteria |
| 43 | |
| 44 | - If provider requires billing details, project creation costs > $0, two active slots are full, or Iran access/terms are unacceptable, **stop without attempting to bypass restrictions**. |
| 45 | - No real-data import, account migration, release, permanent architecture change, domain change, or irreversible action without new explicit approval. |
| 46 | - If the spike is successful, compare ongoing operations/backup limits against ADR 0009 before choosing any production architecture. |
| 47 | |
| 48 | ## Status and references |
| 49 | |
| 50 | - `docs/operations/SUPABASE_QA_BOOTSTRAP.md`: actionable zero-cost gates and verification ledger. |
| 51 | - `docs/decisions/0009-provider-neutral-hosting.md`: **still the active production hosting baseline**. |
| 52 | - Independent organization creation, exact cost confirmation and real QA deployment: **not done**. |