@davoodmehraban89 / LifeMate / commits / ceb579d
Fork 0

LifeMate — Personal, Family & Learning Companion

docs(ops): reconcile Supabase QA runbook to live project and security checks

davoodmehraban89 committed Oct 15, 2026 at 00:38 UTC ceb579d8f928018dc6bf77f36328a7228419470f
1 file changed +32 -14
docs/operations/SUPABASE_QA_BOOTSTRAP.md
+32 -14
@@ -1,11 +1,25 @@
1 # LifeGuide — Supabase Free isolated QA bootstrap (proposed / not deployed)
2
3 -Status: **PREPARATION ONLY — blocked on independent organization creation and cost check**
3 +Status: **QA project DB provisioned; app integration not deployed**
4 Prepared: 2026-10-15
5 Repository: `davoodmehraban89/LifeMate`
6 QA preparation branch: `infra/lifeguide-supabase-qa`
7 Baseline: `fix/study-duration-display` (LifeGuide 0.7.1, source CI `d0b3446d736b67fdb4e0218282ad15f0e74fdb55`)
8
9 +## CURRENT VERIFIED RESULT — 2026-10-15
10 +
11 +**Gate 0 / Gate 1: DONE.** User selected shared organization **DM Studio**. Connected Supabase verifies org `unrlckipyubhegrpqgei` on Free; `get_cost(project)` returned **$0/month** and the connector completed cost confirmation. Provider created **LifeGuide-QA** (`iqkrwxeprxvdiubdfcrb`) in Frankfurt on PostgreSQL17.11; status `ACTIVE_HEALTHY`. Existing `Finora ERP – Production` remains `ACTIVE_HEALTHY` and was not modified.
12 +
13 +**Private database probe: DONE.** One `lifeguide_qa.setup_probe` synthetic row created/read, `public` app tables 0, anon/authenticated grants false, RLS enabled+forced. Migration `20261014210221_lifeguide_qa_isolated_connectivity_baseline`, mirrored in source. INFO advisor `rls_enabled_no_policy` expected: no access is deliberately allowed to this probe.
14 +
15 +**Edge runtime probe: DONE.** `lifeguide-qa-health` v1 deployed with `verify_jwt=true`; unauthenticated external GET **401**. Authenticated GET, real family account and permission checks, app API, Android/PWA, Iran no-VPN **NOT DONE**.
16 +
17 +**Next milestone:** review managed Postgres roles against the 20 existing application migrations and decide how to host/adapt the Node/Express+native Argon2/JWT server. Do NOT run original db-role scripts unreviewed, do NOT enable client-direct access to old app tables or configure Flutter with the raw project URL. Only synthetic user data when implementing the small task/report flow.
18 +
19 +**Authoritative receipt:** [2026-10-15 Supabase QA provisioning](../audits/2026-10-15-supabase-qa-provisioning.md).
20 +
21 +The previous organization-creation instructions, pending statuses and first plan below are **historical**, superseded by the actual shared DM Studio choice and successful QA provisioning. They must not be re-executed.
22 +
23 ## Objective and non-negotiables
24
25 Proof of an **online synthetic-data-only** vertical slice for one child and two authorized parents: Android/API create task → PostgreSQL persistence → authorized parent reads from PWA → study duration appears → closed-and-reopened sessions preserve data. A green Web/APK build or accessible public health URL alone is **not** proof.
@@ -95,16 +109,20 @@ Deliverable: migration compatibility table and chosen **smallest reversible QA s
109 - Gate E: Backups/export and recovery proof with **synthetic** data, plus a safe teardown plan for QA-only resources (no teardown without approval).
110 - Gate F: Release/migration approval is separate. Do not merge stacked production PRs, change existing DNS, change signing, import real children records, or activate public rollout based only on this PoC.
111
98 -## Execution ledger
99 -
100 -| Item | State | Evidence |
101 -| --- | --- | --- |
102 -| Current Supabase organization/project inventory | **DONE — read-only** | Existing Finora organization and EasyFactor/Finora projects inspected via connected Supabase tool |
103 -| Isolated QA branch prepared | **DONE** | `infra/lifeguide-supabase-qa` forked from `fix/study-duration-display` |
104 -| Independent LifeGuide Supabase organization | **BLOCKED — owner dashboard action** | No create-organization action is exposed by connected Supabase tool |
105 -| Exact $0 price / active-project capacity | **NOT RUN — requires new org ID** | Call `get_cost` against LifeGuide after Gate 0 |
106 -| Supabase LifeGuide-QA project | **NOT CREATED** | Must pass cost/capacity approval |
107 -| API migration / SQL applied / Edge Functions / PWA deployed | **NOT RUN** | Must pass all gates |
108 -| Real Android, iOS Safari, Iran no-VPN | **UNVERIFIED** | Requires real-device/network testing |
109 -
110 -Next step: Owner creates **Free LifeGuide organization only**, sends its non-secret ID. Continue cost check and isolated project provisioning without touching Finora/EasyFactor.
112 +## Execution ledger (current)
113 +
114 +| Item | Verified outcome |
115 +| --- | --- |
116 +| DM Studio Free org `unrlckipyubhegrpqgei` | **PASS** |
117 +| Exact project creation charge `$0/month`, user/provider confirmation | **PASS** |
118 +| LifeGuide-QA `iqkrwxeprxvdiubdfcrb` in Frankfurt | **ACTIVE_HEALTHY** |
119 +| Isolation from Finora ERP – Production | **NO WRITES** to existing project; existing status remains healthy |
120 +| Supabase PostgreSQL17.11, `pgcrypto` present | **PASS** |
121 +| Private `lifeguide_qa` migration, synthetic insert/read, anon/auth denied | **PASS** |
122 +| Supabase JWT-gated Edge runtime `lifeguide-qa-health` | **ACTIVE**, unauthenticated GET **401** |
123 +| Existing LifeGuide 20 application SQL migrations in Supabase | **NOT RUN**; compatibility gate |
124 +| Real shared family API, RLS/guardian negative tests | **NOT RUN** |
125 +| PWA/Android, Safari, Iran no VPN, backup restore | **UNVERIFIED** |
126 +| Production DNS, real data, original projects, billing | **UNCHANGED** |
127 +
128 +See [actual evidence](../audits/2026-10-15-supabase-qa-provisioning.md). No further owner action necessary for the completed provisioning step. Next code/data changes must retain distinct QA-only scope and pass compatibility/security checks.