LifeMate — Personal, Family & Learning Companion

phase-2/product-foundation-identity
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 55 lines 4.44 KB
Rendered Raw
1 # LifeMate — Project State
2
3 **Last updated:** 2026-10-05
4 **Phase:** Phase 2 — Product Foundation & Identity — COMPLETE
5 **Repository:** `davoodmehraban89/LifeMate`
6 **Working product name:** LifeMate — approved
7
8 ## Transfer checkpoint
9 Phase 1 and Phase 2 are complete. The implementation branch `phase-2/product-foundation-identity` now contains the real Flutter Android/Web-PWA scaffold, provider-neutral Node API, PostgreSQL identity/family schema, auth/recovery/change-password flows, profile/family/invitation/guardian foundations, Persian RTL role-aware Teen/Parent shells, security gates and CI. Railway staging is live with PostgreSQL, API and transactional-email test infrastructure. The Phase 2 CI run for head `9c8a813d4673f9f320d804c91a347a14a51d26db` passed backend, Flutter/Web/Android and security jobs.
10
11 ## Five-phase roadmap
12 1. **Foundation, Product Contract & UX Direction** — COMPLETE
13 2. **Product Foundation & Identity** — COMPLETE
14 3. **Planner, School & Family Core** — NEXT
15 4. **AI Guides, Learning & Wellbeing**
16 5. **Hardening, Observability & Release**
17
18 ## Accepted architecture baseline
19 - Client: Flutter for Android + app-centric responsive Web/PWA.
20 - iPhone/iPad initial distribution: Home Screen PWA; future packaged/native iOS path preserved.
21 - Backend: provider-neutral Node API + standard PostgreSQL. Railway is the current staging host; managed database/provider can be replaced without changing domain contracts.
22 - Identity: LifeMate-owned email/password/session adapter with Argon2id, verification/reset tokens, rotating refresh sessions and server-side authorization.
23 - Offline: explicit custom web service-worker/cache strategy; browser storage is non-authoritative.
24 - Authorization: relationship-aware and server-enforced; family admin is not blanket private-content access.
25
26 ## Product/UX baseline
27 - Student navigation uses MyStudyLife as the primary IA benchmark: Today, Weekly Schedule, Calendar, Tasks, Exams/Grades, Focus, AI; LifeMate Family/Wellbeing extensions are additive.
28 - Parent/adult experiences share the platform while emphasizing Family, authorized progress/support information and guidance.
29 - Parent support focuses on authorized schedule/academic/support summaries, not routine private transcript surveillance.
30 - Visual language: warm, modern, calm, graphical, teen-friendly but non-childish; Persian RTL first-class. Default profile themes: daughter/teen girl = white + soft pink; son/teen boy = white + calm blue; parents/adults = white + calm blue.
31 - Figma artifact exists: `LifeMate — Product UX & Brand v1` with initial editable direction frames.
32 - Canva is supporting visual/illustration exploration; Figma remains UI source of truth.
33 - Notion Project Hub exists as management mirror; GitHub remains technical source of truth.
34
35 ## Phase 2 completed vertical slice
36 Auth → verified email/recovery/change password → Profile → Family Workspace → invitation/membership → Guardian Relationship → server-side permission tests → Persian RTL Teen/Parent shells → CI → persistent staging infrastructure and smoke verification.
37
38 ### Verified Phase 2 gates
39 - PostgreSQL migrations and authorization helper tests pass.
40 - Backend API tests pass, including unauthenticated, teen/non-admin denial and active-member role-escalation protection.
41 - Backend dependency audit reports no high-severity blocking vulnerability.
42 - Secret/environment-file CI gates pass.
43 - Flutter formatting, static analysis and widget tests pass.
44 - Flutter Web release build passes.
45 - Android debug APK build passes.
46 - Railway staging PostgreSQL, API and Mailpit are online; API health and staging transactional-email probe passed.
47
48 ## Phase 3 entry point
49 Implement Planner, School & Family Core on top of the completed identity/family contracts. Preserve role-aware navigation, relationship-aware permissions, Persian RTL, provider-neutral backend boundaries and the existing CI/security gates.
50
51 ## Production-gate items intentionally deferred
52 These do not block the engineering foundation but do block public production of wellbeing/minor-sensitive AI features: jurisdiction-specific legal/guardian consent review; safety severity taxonomy; emergency resource localization; AI provider privacy/retention review; wellbeing retention/export/deletion policy.
53
54 ## Guardrail
55 AI/wellbeing production exposure stays disabled until its dedicated safety/legal/provider gates pass. Production deploys, destructive migrations and sensitive access changes still require explicit action-specific approval.