LifeMate — Personal, Family & Learning Companion
docs: record reversible Supabase Free QA trial decision
davoodmehraban89 committed
Oct 15, 2026 at 00:04 UTC
9ed90a3ad93eff9342ddd932b05910bbb33b6b08
1 file changed
+31
docs/decisions/0011-supabase-free-qa-trial.md
new
+31
@@ -0,0 +1,31 @@
1
+# ADR 0011 — Supabase Free trial as isolated LifeGuide QA (conditional)
2
+
3
+Date: 2026-10-15
4
+Status: **PROPOSED FOR QA ONLY — not activated**
5
+
6
+## Context
7
+
8
+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.
9
+
10
+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.
11
+
12
+## Decision boundaries
13
+
14
+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.
15
+2. The evaluation is exclusively synthetic and isolated. **Never alter** Finora/EasyFactor, existing Railway, DNS, the current production backend/database, or user data.
16
+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.
17
+4. Keep current LifeGuide 0.7.1 test branch/CI source and stacked PRs untouched. Prototype any adapters only in an isolated branch.
18
+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.
19
+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.
20
+
21
+## Rejection and exit criteria
22
+
23
+- 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**.
24
+- No real-data import, account migration, release, permanent architecture change, domain change, or irreversible action without new explicit approval.
25
+- If the spike is successful, compare ongoing operations/backup limits against ADR 0009 before choosing any production architecture.
26
+
27
+## Status and references
28
+
29
+- `docs/operations/SUPABASE_QA_BOOTSTRAP.md`: actionable zero-cost gates and verification ledger.
30
+- `docs/decisions/0009-provider-neutral-hosting.md`: **still the active production hosting baseline**.
31
+- Independent organization creation, exact cost confirmation and real QA deployment: **not done**.