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 52 lines 3.07 KB
Rendered Raw
1 **Historical snapshot — retained as decision/evidence history. Current product: LifeGuide; current execution status: PROJECT_STATE.md.**
2
3 # LifeMate — Conceptual Domain Model v1
4
5 ## Identity
6 - **Account** — authentication identity; credentials/session are not family-shared.
7 - **Profile** — person-facing identity and preferences.
8 - **LifeContext** — Student, Work, Personal or future contexts attached to Profile.
9
10 ## Family
11 - **FamilyWorkspace** — tenant/boundary for family-shared data.
12 - **Membership** — Profile ↔ FamilyWorkspace with status and administrative capabilities.
13 - **GuardianRelationship** — explicit adult ↔ minor relationship; permissions depend on this relation, not only generic role names.
14 - **Invitation** — expiring/revocable join intent.
15 - **SharingGrant** — resource-level audience/visibility representation where policy allows.
16
17 ## Planning
18 - **PlanItem** — common scheduling identity for task/event/study/family commitments where shared fields are useful.
19 - **Task** — actionable item with status, priority, duration and optional due time.
20 - **CalendarEvent** — time-bound commitment.
21 - **Routine** — repeatable behavior/template.
22 - **Goal** — outcome with optional linked plan items.
23 - **Reminder** — delivery rule linked to a resource; obsolete reminders are cancelled on completion/reschedule.
24
25 ## School
26 - **AcademicYear** → **Term**.
27 - **Subject** belongs to a Student LifeContext and academic period.
28 - **ClassSession** represents timetable occurrences/rules.
29 - **Assignment**, **Exam**, **StudySession**, **Grade**, **RevisionPlan** attach to Subject/period as appropriate.
30
31 ## Wellbeing / AI
32 - **GuideSession** — AI interaction session with explicit guide type and context scope.
33 - **CheckIn** — structured self-reported mood/energy/stress signals; not a diagnosis.
34 - **ParentInsight** — derived, policy-controlled support summary; never assumed to equal raw transcript.
35 - **SafetyEvent** — separately governed event for defined safety escalation conditions.
36 - **AIProposal** — suggested plan/action requiring user confirmation unless a future policy explicitly permits safe automation.
37
38 ## Governance
39 - **AuditEvent** — immutable security/policy-relevant event metadata.
40 - **NotificationPreference** and **QuietHours** — per-profile delivery policy.
41 - **DeviceSubscription** — push endpoint/device metadata without becoming identity authority.
42
43 ## Ownership invariants
44 - Personal resources have an owning Profile.
45 - Family resources have a FamilyWorkspace and creator/owner semantics.
46 - School resources belong to the student's Profile/LifeContext, not to the parent account.
47 - Guardian visibility is computed from relationship + resource policy + age/safety policy.
48 - Admin capability never implies blanket read access to private content.
49 - AI retrieval is downstream of the same authorization decision as human-facing APIs.
50
51 ## Data lifecycle principles
52 Membership removal revokes future access. Retention/export/deletion rules for shared and wellbeing data are explicit policy decisions; no cascade behavior is assumed merely because a relationship ends.