LifeMate — Personal, Family & Learning Companion
docs: record completed phase 4 AI privacy and family guidance boundaries
davoodmehraban89 committed
Oct 5, 2026 at 16:25 UTC
dc750c81735664b87e3a651e0860b3ba807cc906
1 file changed
+25
-5
docs/decisions/0004-ai-learning-wellbeing-safety.md
+25
-5
@@ -3,14 +3,34 @@
3
Status: Accepted for Phase 4 engineering/staging.
4
5
## Decision
6
-AI Guides are advisory. They may propose study/planner/wellbeing actions but never silently mutate planner data. Proposals require explicit user acceptance. Wellbeing guidance is self-reflection/support, not diagnosis or treatment.
6
+AI Guides are advisory. They may propose study, planner, wellbeing and family-support actions but never silently mutate planner data. Explicit proposals require user acceptance.
7
8
-AI sessions and wellbeing check-ins are owner-private by default. Parent/family membership does not grant transcript access. A user may mark a wellbeing check-in `guardian_summary`, but Phase 4 does not expose raw notes through guardian endpoints.
8
+Wellbeing guidance is supportive self-reflection and family communication guidance, not diagnosis, treatment or a substitute for a clinician or emergency service. The product must not present AI as a doctor or psychologist.
9
10
-The server applies a safety classifier before guide output. High-risk self-harm language receives a fixed safety response rather than ordinary coaching. This is an engineering guardrail, not the final jurisdiction-specific crisis system.
10
+AI sessions, messages and wellbeing notes are owner-private by default. Family membership or family-admin status does not grant raw transcript access. A wellbeing check-in can be marked `guardian_summary`; guardian endpoints expose only aggregates and safety signals, never the note body or private AI transcript.
11
+
12
+Parents/guardians with an active guardian relationship can request family guidance. The guide receives only authorized academic metrics, authorized wellbeing aggregates and safety-signal counts. The API response explicitly records that raw notes and raw conversations were not included.
13
+
14
+## Safety boundary
15
+The server classifies messages before generative output. High-risk self-harm language receives a fixed safety-first response and creates a separate `wellbeing_safety_event` signal. Safety escalation is therefore distinct from ordinary privacy sharing.
16
+
17
+The fixed urgent response directs the user toward an immediately available trusted person and local emergency resources. This is an engineering guardrail, not the final jurisdiction-specific crisis system.
18
19
## Provider boundary
13
-Phase 4 core does not require an external AI provider. A deterministic local guide keeps tests/staging functional and prevents accidental transmission of minor-sensitive content. A future provider adapter must pass privacy/retention and safety review before production enablement.
20
+Phase 4 has a provider-neutral OpenAI-compatible adapter controlled by `AI_BASE_URL`, `AI_API_KEY` and `AI_MODEL`. If no approved provider is configured, staging uses the deterministic local guide. Urgent safety responses never depend on the external model.
21
+
22
+No minor-sensitive provider configuration may be enabled in public production until provider privacy, retention, data-location and safety review passes.
23
+
24
+## Learning behavior
25
+Study guidance should favor hints, decomposition, active recall and checking understanding rather than immediately supplying final homework answers. Learning goals and confidence/difficulty check-ins remain separate from grades so the product can track learning process as well as outcomes.
26
27
## Production gate
16
-Public production exposure of wellbeing/minor-sensitive generative AI remains disabled until legal/guardian consent, severity taxonomy, localized emergency resources, provider privacy/retention, and retention/export/deletion policies are approved.
28
+Public production exposure of wellbeing/minor-sensitive generative AI remains disabled until all of these are approved:
29
+- jurisdiction-specific legal and guardian-consent review;
30
+- safety severity taxonomy and escalation policy;
31
+- localized emergency resources;
32
+- AI provider privacy/retention/data-location review;
33
+- wellbeing and AI retention/export/deletion policy;
34
+- final voice-provider privacy review before voice conversations are enabled.
35
+
36
+Voice remains a product requirement, but Phase 4 does not enable microphone/TTS transmission until the provider/privacy gate is selected and tested.