LifeMate — Personal, Family & Learning Companion
chore/phase1-repository-cleanup
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
| 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. The repository remains `davoodmehraban89/LifeMate`; repository paths, database identifiers and JWT issuer/audience are not product copy and must not be renamed by a branding sweep. |
| 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 | 1. The repository is the technical source of truth. |
| 19 | 2. Read `AGENTS.md` and `PROJECT_STATE.md` before substantial work. |
| 20 | 3. Significant product/architecture decisions must be recorded under `docs/decisions/`. |
| 21 | 4. Notion may mirror management knowledge, but it must not silently override repository decisions. |
| 22 | 5. Do not claim a decision, test, deployment, connection, or verification occurred unless it actually occurred. |
| 23 | |
| 24 | ## Product invariants |
| 25 | - `Profile` is broader than `Student`; school is a life context, not permanent identity. |
| 26 | - Family membership is dynamic; no fixed family size or fixed father/mother/one-child schema. |
| 27 | - Each person has an independent account. |
| 28 | - Sharing must support private, selected members, parent/guardian, family, and safety-controlled visibility where appropriate. |
| 29 | - Parent access and teen privacy are layered policies, not an all-or-nothing switch. |
| 30 | - Sensitive authorization must be enforced server-side. |
| 31 | - Wellbeing AI must not claim medical diagnosis or impersonate a clinician. |
| 32 | - Safety escalation is distinct from ordinary privacy/sharing. |
| 33 | - AI-generated plans are proposals unless the product explicitly defines safe automatic actions. |
| 34 | - The interface must remain usable and appealing as a teen grows older; avoid childish visual language. |
| 35 | |
| 36 | ## Distribution baseline |
| 37 | - Android: installable application. |
| 38 | - iPhone/iPad: high-quality PWA installed through Add to Home Screen, due to distribution constraints; design must not feel like a bookmarked website. |
| 39 | - Web/Desktop: responsive web experience. |
| 40 | - Preserve a future path to packaged/native iOS distribution without redesigning the domain/backend. |
| 41 | |
| 42 | ## Engineering workflow |
| 43 | - Prefer simple, reversible architecture over speculative complexity. |
| 44 | - Use feature branches and pull requests once application implementation begins. |
| 45 | - Run applicable tests, lint, static analysis and builds before declaring implementation complete. |
| 46 | - Use staging before production. |
| 47 | - Production deploys, destructive data operations, high-risk schema migrations, public release, paid actions, and sensitive access changes require explicit authorization relevant to that action. |
| 48 | - Stop and report at the end of each owner-defined phase. Merge and deployment require explicit approval for that action; approval to start a phase does not authorize either. |
| 49 | - Privacy, AI and infrastructure policy choices require an options/decision document and owner approval before implementation. |
| 50 | - Report executed checks as VERIFIED with their command/output; label checks that were not run UNVERIFIED. |
| 51 | - Secrets must not be committed to the repository or copied into documentation; use environment/secret management. |
| 52 | - Keep authoritative security and permission rules on the backend; client logic may support UX/offline behavior but cannot be the security boundary. |
| 53 | |
| 54 | ## UX / visual rules |
| 55 | - Persian RTL is first-class. |
| 56 | - Teen experience: warm, modern, graphical, inviting, calm and age-appropriate; not childish. |
| 57 | - Parent experience: clear, actionable and less decorative while sharing the same design language. |
| 58 | - Canva can supply visual assets/illustrations; Figma remains the primary UI/UX and design-system surface. |
| 59 | - Brand, app icon, PWA icon, favicon, splash/entry and login experience are product requirements, not final polish. |
| 60 | |
| 61 | ## Definition of done |
| 62 | 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. |