LifeMate — Personal, Family & Learning Companion
fix/auth-expiry-after-lock
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-QAproject successfully created with IDiqkrwxeprxvdiubdfcrbineu-central-1on PostgreSQL17.11. - One additive, intentionally private, synthetic-only migration in schema
lifeguide_qapassed 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 – Productionwas read-only inspected and remainedACTIVE_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
- Evaluate a separate
LifeGuideFree organization andLifeGuide-QAproject, only after the provider returns exactly $0 for creation and confirms capacity. Nothing in this ADR authorizes payment. - The evaluation is exclusively synthetic and isolated. Never alter Finora/EasyFactor, existing Railway, DNS, the current production backend/database, or user data.
- 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.
- Keep current LifeGuide 0.7.1 test branch/CI source and stacked PRs untouched. Prototype any adapters only in an isolated branch.
- 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.
- 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.