@davoodmehraban89 / LifeMate / commits / 37a5179
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: add three-phase final audit

davoodmehraban89 committed Oct 5, 2026 at 19:38 UTC 37a517988fdf5593e008a816f19d6a4863720747
1 file changed +62
docs/final/THREE_PHASE_AUDIT.md new
+62
@@ -0,0 +1,62 @@
1 +# LifeMate — Final Three-Phase Audit
2 +
3 +Date: 2026-10-05
4 +Baseline: `main@22e1115179f11b28a031954692b05ea2d8794c33`
5 +
6 +## Phase A — Functional and product review
7 +
8 +### Confirmed existing
9 +- Identity/session foundation and family workspaces.
10 +- Planner, reminders, school years/terms/subjects, assignments/exams/grades.
11 +- Parent/guardian relationship model and minor-aware authorization.
12 +- Learning/wellbeing/AI advisory vertical slice with explicit plan acceptance.
13 +- Offline cache/queue, responsive Flutter Web/PWA + Android shell.
14 +
15 +### Gaps found
16 +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.
17 +2. School setup is generic/manual; it does not map Iranian stage + grade to a canonical subject/book catalog.
18 +3. Grade 7 quick setup creates only Mathematics and uses Gregorian-style academic-year defaults.
19 +4. Calendar UI is not Jalali-first and does not expose an official-Iran event/holiday catalog.
20 +5. Reminder UX exists, but there is no unified notification preference model for banner/push/reminder categories.
21 +6. No private menstrual-cycle tracker/reminder surface exists.
22 +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.
23 +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.
24 +
25 +## Phase B — Quality, data-integrity and cross-platform review
26 +
27 +### Confirmed existing
28 +- 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.
29 +- Phase 5 branch and post-merge CI were green before this final phase.
30 +
31 +### Gaps to close
32 +- Add contract/schema tests for persona/profile privacy, Iranian education mapping, calendar source metadata, textbook catalog and menstrual privacy.
33 +- Add Flutter tests for Jalali conversion/weekday semantics and Iranian grade mapping.
34 +- Add release artifacts for installable Android APK and Web bundle; document iOS signing gate explicitly.
35 +
36 +## Phase C — Security and privacy review
37 +
38 +### Confirmed existing
39 +- Server-side relationship-aware authorization.
40 +- Private AI/wellbeing transcripts and separate safety ledger.
41 +- Security headers, request IDs, rate limits, bounded request bodies, secret scanning, dependency audit and backup/restore drill.
42 +
43 +### High-priority final controls
44 +- Menstrual data must be owner-private by default and never inherited by family/guardian visibility.
45 +- Child education/persona data must be mutable only by the child owner or an active guardian with explicit relationship.
46 +- Calendar/textbook external URLs must be allowlisted to trusted official sources and never execute remote content.
47 +- Notification preferences must not leak sensitive reminder titles to family members.
48 +- No production AI/voice or public release is enabled by this feature phase.
49 +
50 +## Final-phase scope
51 +
52 +The remaining engineering scope is consolidated as **Feature 1 — Iranian Family & Learning Hub**:
53 +- explicit mother/father/child persona metadata;
54 +- Iranian education stage/grade profile and grade-aware subject catalog;
55 +- Grade 7 curriculum starter catalog and official textbook-source metadata;
56 +- Jalali-first calendar semantics, Iran weekend defaults and official-event data model;
57 +- notification/reminder preferences;
58 +- owner-private menstrual-cycle tracking and reminders;
59 +- Web/Android release artifacts and iOS readiness documentation;
60 +- full regression/security verification.
61 +
62 +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.
\ No newline at end of file