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 | # LifeGuide: Cloudflare Pages independent QA deployment verification |
| 2 | |
| 3 | Date: 2026-10-15 |
| 4 | Mode: actual deployed **static PWA staging** (NOT a complete functional backend or production release) |
| 5 | |
| 6 | ## Provider inventory and source |
| 7 | |
| 8 | - Product **LifeGuide**; GitHub repository `davoodmehraban89/LifeMate`. |
| 9 | - Supabase Free `DM Studio` → `LifeGuide-QA`, project `iqkrwxeprxvdiubdfcrb`, PG17.11, 20 app migrations in private `lifeguide_qa` schema, default-deny RLS. Existing `Finora ERP – Production` untouched. |
| 10 | - Cloudflare Pages account `ace6f7219be1e7d9ac5bacd59c05fbe2`. |
| 11 | - **Existing/unchanged** Pages `lifemate-staging.pages.dev` from `deployment-static` (last success 2026-10-06). |
| 12 | - **New** Pages `lifeguide-qa.pages.dev`, GitHub source branch `infra/lifeguide-cloudflare-qa`, build script `bash scripts/build-cloudflare-pages-qa.sh`, published folder `apps/lifemate/build/web`. |
| 13 | - At checkpoint, Pages production deployment `1a64a095-c1da-40b5-98ec-3d662d379e92`, SHA `3291d0cddaa92c4d88f0e8b945beb79956cf7f4f`, **status success**. Previous deployment `9bfb30df-8ad0-4f4e-ade2-9ec77350543b` also success. Build logs showed pinned Flutter release build, Pages Functions compiled, **51 static assets** uploaded (first deployment), asset publish success. |
| 14 | |
| 15 | ## Actual public network checks using independent HTTP fetch |
| 16 | |
| 17 | QA hostname: **https://lifeguide-qa.pages.dev/** |
| 18 | |
| 19 | | URL | Result | Interpretation | |
| 20 | | --- | --- | --- | |
| 21 | | `/` | HTML retrieved; title **LifeGuide / لایفگاید**, `lang=fa` and startup text | Static index is served; not proof Flutter full render in Safari | |
| 22 | | `/config.json` | JSON `{"apiBaseUrl":"/api","apiFallbackUrls":[]}` | No silent fallback to Railway or third-party services | |
| 23 | | `/health` | HTTP 200 JSON `{"status":"ok","component":"pwa_gateway_only","product":"LifeGuide","backend":"not_connected"}` | Frontend gateway only | |
| 24 | | `/ready` | HTTP 503 | Correctly refuses to claim ready backend | |
| 25 | | `/api/health` | HTTP 503 | Correctly refuses HTML fallback; **real REST API not deployed** | |
| 26 | |
| 27 | No claim that Flutter's interactive auth, Android APK, cross-device task sync, Kavenegar API send or database login function works at this URL; none has been validated or enabled. |
| 28 | |
| 29 | ## Domain / provider incident |
| 30 | |
| 31 | Owner's LTE screenshot shows **Arvan-proxied `https://app.lifeguide.ir/` HTTP 504 Gateway Timeout** (2026-10-15 04:01 UTC). Authoritative DNS is at Arvan; unrelated, existing Railway origin (no longer active deployment target) uses older `main` build. No Railway deployment or DNS change was performed here. Kavenegar rejected the `lifeguideotp` template because **the registered app URL was not inspectable**; support ticket instructs requesting another review after full access restored. |
| 32 | |
| 33 | Cloudflare Pages official docs allow **externally hosted DNS for a subdomain**. Full switch of the apex nameservers is *not* required. **Do not change CNAME yet**: first stage full family API and verify the mobile PWA + Iran LTE, then associate `app.lifeguide.ir` as a Cloudflare Pages custom domain, and obtain explicit owner approval before editing Arvan's `app` record. Confirm any existing Arvan CDN/proxy/TLS rule does not continue routing to Railway. |
| 34 | |
| 35 | ## Verification limits and next tasks |
| 36 | |
| 37 | - GitHub Actions run `38680750623` at latest check: **Backend success, Security success, Flutter in progress**. Wait for full CI before marking final pipeline green. |
| 38 | - No DNS / real accounts / payment / registered family data / API keys / live SMS were changed. |
| 39 | - QA Supabase DB is ready at **database layer only**. Need a reviewed authenticated server adapter preserving the v0.7.1 JWT and guardian/family authorization semantics. Supabase Edge should only host server-side code; never put `service_role`, Postgres password, Kavenegar key or privileged bearer in frontend or Git. |
| 40 | - Until full authenticated API, keep Cloudflare `/api/*` **fail closed (503 JSON)** and `/ready` 503. Passing the health endpoint alone must not be presented as ready. |
| 41 | - Need real-user acceptance on iPhone Safari and Android **inside Iran without VPN**; remote HTTP tests cannot reproduce their conditions. Kavenegar pattern remains rejected; no paid SMS testing authorized. |
| 42 | - Production DNS, real data migration, signing/releasing APK, and changes to Finora are outside scope. |
| 43 | |
| 44 | References: [ADR 0013](../decisions/0013-cloudflare-supabase-kavenegar-stack.md), [Supabase schema proof](2026-10-15-supabase-full-schema-family-acceptance.md), [Kavenegar instructions](../operations/KAVENEGAR_SMS_SETUP.md), GitHub Draft PR15. |