LifeMate — Personal, Family & Learning Companion

feat/flutter-mobile-navigation
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
md 5.52 KB

ADR 0011 — Supabase Free trial as isolated LifeGuide QA (conditional)

Date: 2026-10-15
Status: ACCEPTED FOR ISOLATED QA — initial infrastructure active; production unchanged

Superseding actual QA decision and execution — 2026-10-15

Accepted for isolated synthetic-data QA ONLY; initial infrastructure provisioned. NOT a production hosting or schema migration decision.

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.

  • 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.
  • One additive, intentionally private, synthetic-only migration in schema lifeguide_qa passed SQL write/read and checked deny-by-default privileges/RLS.
  • 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.
  • Existing Finora ERP – Production was read-only inspected and remained ACTIVE_HEALTHY; there was no reuse, transfer or mutation of existing project resources.
  • No child data, 20 application migrations, release signing, real API/PWA/Android, DNS change or public product rollout. Production hosting ADR 0009 remains unchanged.
  • Full evidence: QA provisioning audit.

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.

Historical owner-approved naming update — 2026-10-15 (manual execution pending)

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.

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.

Context

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.

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.

Decision boundaries

  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.
  2. The evaluation is exclusively synthetic and isolated. Never alter Finora/EasyFactor, existing Railway, DNS, the current production backend/database, or user data.
  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.
  4. Keep current LifeGuide 0.7.1 test branch/CI source and stacked PRs untouched. Prototype any adapters only in an isolated branch.
  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.
  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.

Rejection and exit criteria

  • 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.
  • No real-data import, account migration, release, permanent architecture change, domain change, or irreversible action without new explicit approval.
  • If the spike is successful, compare ongoing operations/backup limits against ADR 0009 before choosing any production architecture.

Status and references

  • docs/operations/SUPABASE_QA_BOOTSTRAP.md: actionable zero-cost gates and verification ledger.
  • docs/decisions/0009-provider-neutral-hosting.md: still the active production hosting baseline.
  • Independent organization creation, exact cost confirmation and real QA deployment: not done.