LifeMate — Personal, Family & Learning Companion

test/android-reminder-acceptance
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 64 lines 4.09 KB
Rendered Raw
1 **Historical snapshot — retained as decision/evidence history. Current product: LifeGuide; current execution status: PROJECT_STATE.md.**
2
3 # LifeMate — Final Three-Phase Audit
4
5 Date: 2026-10-05
6 Baseline: `main@22e1115179f11b28a031954692b05ea2d8794c33`
7
8 ## Phase A — Functional and product review
9
10 ### Confirmed existing
11 - Identity/session foundation and family workspaces.
12 - Planner, reminders, school years/terms/subjects, assignments/exams/grades.
13 - Parent/guardian relationship model and minor-aware authorization.
14 - Learning/wellbeing/AI advisory vertical slice with explicit plan acceptance.
15 - Offline cache/queue, responsive Flutter Web/PWA + Android shell.
16
17 ### Gaps found
18 1. Family roles are technical (`parent_guardian`, `teen_minor`, `adult_member`) rather than explicit household personas (mother/father/child) with child sex, birth date/age and education profile.
19 2. School setup is generic/manual; it does not map Iranian stage + grade to a canonical subject/book catalog.
20 3. Grade 7 quick setup creates only Mathematics and uses Gregorian-style academic-year defaults.
21 4. Calendar UI is not Jalali-first and does not expose an official-Iran event/holiday catalog.
22 5. Reminder UX exists, but there is no unified notification preference model for banner/push/reminder categories.
23 6. No private menstrual-cycle tracker/reminder surface exists.
24 7. iOS project structure exists through Flutter, but the release gate does not build an iOS artifact; signed iOS distribution still requires Apple signing/provisioning on macOS.
25 8. Official textbook PDFs are not bundled. Bundling third-party/copyrighted binaries without a verified redistribution license is not acceptable; the product should keep official source metadata/links and allow lawful import/download.
26
27 ## Phase B — Quality, data-integrity and cross-platform review
28
29 ### Confirmed existing
30 - CI runs backend migrations, authorization tests, Node tests, syntax/schema checks, backup/restore drill, Flutter format/analyze/tests, Web release build, Android build and PWA metadata checks.
31 - Phase 5 branch and post-merge CI were green before this final phase.
32
33 ### Gaps to close
34 - Add contract/schema tests for persona/profile privacy, Iranian education mapping, calendar source metadata, textbook catalog and menstrual privacy.
35 - Add Flutter tests for Jalali conversion/weekday semantics and Iranian grade mapping.
36 - Add release artifacts for installable Android APK and Web bundle; document iOS signing gate explicitly.
37
38 ## Phase C — Security and privacy review
39
40 ### Confirmed existing
41 - Server-side relationship-aware authorization.
42 - Private AI/wellbeing transcripts and separate safety ledger.
43 - Security headers, request IDs, rate limits, bounded request bodies, secret scanning, dependency audit and backup/restore drill.
44
45 ### High-priority final controls
46 - Menstrual data must be owner-private by default and never inherited by family/guardian visibility.
47 - Child education/persona data must be mutable only by the child owner or an active guardian with explicit relationship.
48 - Calendar/textbook external URLs must be allowlisted to trusted official sources and never execute remote content.
49 - Notification preferences must not leak sensitive reminder titles to family members.
50 - No production AI/voice or public release is enabled by this feature phase.
51
52 ## Final-phase scope
53
54 The remaining engineering scope is consolidated as **Feature 1 — Iranian Family & Learning Hub**:
55 - explicit mother/father/child persona metadata;
56 - Iranian education stage/grade profile and grade-aware subject catalog;
57 - Grade 7 curriculum starter catalog and official textbook-source metadata;
58 - Jalali-first calendar semantics, Iran weekend defaults and official-event data model;
59 - notification/reminder preferences;
60 - owner-private menstrual-cycle tracking and reminders;
61 - Web/Android release artifacts and iOS readiness documentation;
62 - full regression/security verification.
63
64 Public production deployment, App Store/Play Store publication, Apple signing credentials, external AI/voice enablement, and redistribution of textbook PDFs without verified rights remain external release gates rather than engineering omissions.