LifeMate — Personal, Family & Learning Companion

fix/lifeguide-qa-pages-env-deployment
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 60 lines 4.44 KB
Rendered Raw
1 # LifeGuide — Operating Rules
2
3 ## Mission
4 Build LifeGuide as a maintainable, secure, attractive personal/family/learning companion. The product starts with a teen-and-family use case but must not be hard-coded to one family, one age, or one school year.
5
6 ## Coordination model
7 The coordinating project lead owns prioritization, dependencies, integration, conflict resolution, and final delivery. Five specialist ownership areas are active:
8
9 1. **Product & Research** — discovery, scope, benchmark research, requirements, acceptance criteria.
10 2. **UX/UI & Brand** — teen/parent/family journeys, design system, RTL/accessibility, Figma, visual assets.
11 3. **Architecture, Data, Security & Safety** — domain model, auth, permissions, privacy, parental visibility, wellbeing safety, APIs and data architecture.
12 4. **Cross-platform Development** — Android, iOS/PWA, web, integrations, notifications, offline/sync.
13 5. **QA, Release & Observability** — independent verification, CI, regression, staging, telemetry and release readiness.
14
15 A tool or connector is not an agent. GitHub, Figma, Canva, Supabase, Context7, PostHog, Notion and other services are capabilities used by the responsible owner.
16
17 ## Source of truth
18 - For a new ChatGPT/Codex session, the durable boot prompt is [`docs/START_HERE_FA.md`](docs/START_HERE_FA.md). It is a navigation guide; **the newest `PROJECT_STATE.md` checkpoint and direct provider checks always take precedence**.
19 1. The repository is the technical source of truth.
20 2. Read `AGENTS.md` and `PROJECT_STATE.md` before substantial work.
21 3. Significant product/architecture decisions must be recorded under `docs/decisions/`.
22 4. Notion may mirror management knowledge, but it must not silently override repository decisions.
23 5. Do not claim a decision, test, deployment, connection, or verification occurred unless it actually occurred.
24
25 ## Product invariants
26 - `Profile` is broader than `Student`; school is a life context, not permanent identity.
27 - Family membership is dynamic; no fixed family size or fixed father/mother/one-child schema.
28 - Each person has an independent account.
29 - Sharing must support private, selected members, parent/guardian, family, and safety-controlled visibility where appropriate.
30 - Parent access and teen privacy are layered policies, not an all-or-nothing switch.
31 - Sensitive authorization must be enforced server-side.
32 - Wellbeing AI must not claim medical diagnosis or impersonate a clinician.
33 - Safety escalation is distinct from ordinary privacy/sharing.
34 - AI-generated plans are proposals unless the product explicitly defines safe automatic actions.
35 - The interface must remain usable and appealing as a teen grows older; avoid childish visual language.
36
37 ## Distribution baseline
38 - Android: installable application.
39 - iPhone/iPad: high-quality PWA installed through Add to Home Screen, due to distribution constraints; design must not feel like a bookmarked website.
40 - Web/Desktop: responsive web experience.
41 - Preserve a future path to packaged/native iOS distribution without redesigning the domain/backend.
42
43 ## Engineering workflow
44 - Prefer simple, reversible architecture over speculative complexity.
45 - Use feature branches and pull requests once application implementation begins.
46 - Run applicable tests, lint, static analysis and builds before declaring implementation complete.
47 - Use staging before production.
48 - Production deploys, destructive data operations, high-risk schema migrations, public release, paid actions, and sensitive access changes require explicit authorization relevant to that action.
49 - Secrets must not be committed to the repository or copied into documentation; use environment/secret management.
50 - Keep authoritative security and permission rules on the backend; client logic may support UX/offline behavior but cannot be the security boundary.
51
52 ## UX / visual rules
53 - Persian RTL is first-class.
54 - Teen experience: warm, modern, graphical, inviting, calm and age-appropriate; not childish.
55 - Parent experience: clear, actionable and less decorative while sharing the same design language.
56 - Canva can supply visual assets/illustrations; Figma remains the primary UI/UX and design-system surface.
57 - Brand, app icon, PWA icon, favicon, splash/entry and login experience are product requirements, not final polish.
58
59 ## Definition of done
60 A work item is complete only when its output exists, acceptance criteria have been checked, important unresolved risks are stated, and project state/decision documentation is updated when applicable.