LifeMate — Personal, Family & Learning Companion

phase-4/ai-learning-wellbeing
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 47 lines 3.85 KB
Rendered Raw
1 # LifeMate — Project State
2
3 **Last updated:** 2026-10-05
4 **Phase:** Phase 4 — AI Guides, Learning & Wellbeing — COMPLETE
5 **Repository:** `davoodmehraban89/LifeMate`
6 **Working product name:** LifeMate — approved
7
8 ## Transfer checkpoint
9 Phases 1–4 engineering core are complete. Phase 4 adds learning goals/check-ins, private wellbeing check-ins, advisory study/planner/wellbeing guides, explicit AI plan proposals, a high-risk safety response path, RTL UI surface and dedicated safety/privacy architecture. Public production exposure of minor-sensitive wellbeing AI remains intentionally gated.
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** — COMPLETE
15 4. **AI Guides, Learning & Wellbeing** — COMPLETE
16 5. **Hardening, Observability & Release** — NEXT
17
18 ## Accepted architecture baseline
19 - Flutter Android + responsive Web/PWA; future packaged/native iOS path preserved.
20 - Provider-neutral Node API + PostgreSQL; Railway remains staging host.
21 - LifeMate-owned identity/session adapter; server-side relationship-aware authorization.
22 - Offline client support does not replace server authority.
23 - AI guides are advisory and plan proposals require explicit acceptance.
24 - Wellbeing/AI transcripts remain owner-private; family membership does not grant transcript access.
25
26 ## Phase 4 completed vertical slice
27 Learning goal → learning check-in → wellbeing check-in → AI guide session → safety classification → advisory response → explicit plan proposal → accept/reject decision. No guide response silently mutates planner state.
28
29 ### Verified Phase 4 gates
30 - Migration `0004_ai_learning_wellbeing.sql` defines seven Phase 4 tables, including the separate `wellbeing_safety_event` ledger, and owner-oriented indexes.
31 - Phase 4 API implements learning goals/check-ins, private/guardian-summary wellbeing check-ins, AI sessions/messages, explicit proposal decisions, guardian wellbeing summaries and privacy-preserving family guidance.
32 - High-risk self-harm language follows a fixed urgent-support path and writes a separate safety signal; ordinary family membership never grants raw wellbeing notes or AI transcripts.
33 - Study/planner/wellbeing guidance is advisory, non-diagnostic and never silently mutates planner data.
34 - Flutter includes interactive guide chat, learning goals/check-ins, wellbeing check-ins, guardian summary and parent family-guidance flows.
35 - ADR `docs/decisions/0004-ai-learning-wellbeing-safety.md` records privacy, provider, voice and production safety gates.
36 - CI run 143 passed backend integration/schema/contract tests, dependency audit, security scanning, Flutter format/analyze/tests, Web release build and Android debug build at branch head `dc750c81735664b87e3a651e0860b3ba807cc906`.
37 - Railway staging migration verified `PHASE4_DB_SMOKE_OK` with all seven Phase 4 tables.
38 - Railway staging API function deployed successfully and is listening on port 8080 with the Phase 4 learning/wellbeing/guardian routes.
39
40 ## Phase 5 entry point
41 Hardening, observability and release readiness: production-grade telemetry, rate limiting/abuse controls, backup/restore drills, performance/accessibility regression, release packaging and operational runbooks.
42
43 ## Production-gate items intentionally deferred
44 Jurisdiction-specific legal/guardian consent review; final safety severity taxonomy; emergency resource localization; external AI provider privacy/retention review; wellbeing retention/export/deletion policy. These gates block public production exposure of minor-sensitive wellbeing AI but do not invalidate the completed Phase 4 engineering core.
45
46 ## Guardrail
47 AI/wellbeing production exposure stays disabled until dedicated safety/legal/provider gates pass. Production deploys, destructive migrations and sensitive access changes require explicit action-specific approval.