LifeMate — Personal, Family & Learning Companion

fix/personal-notification-controls
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 34 lines 2.16 KB
Rendered Raw
1 **Historical snapshot — retained as decision/evidence history. Current product: LifeGuide; current execution status: PROJECT_STATE.md.**
2
3 # LifeMate — Phase 2 Quality Gates
4
5 ## Pull request gates
6 Once application code exists, every implementation PR must run:
7 1. formatting check;
8 2. Flutter/Dart static analysis;
9 3. unit/widget tests relevant to changed domain/UI;
10 4. authorization/database tests when schema or access-policy changes;
11 5. Android debug build smoke;
12 6. Web release/debug build smoke as appropriate;
13 7. secret scanning and backend dependency audit in CI.
14
15 ## Security tests required for identity/family
16 For each protected resource, test allowed and denied access for: owner profile, related guardian, unrelated family member, removed member, unauthenticated user and privileged server path where applicable. LifeMate's primary authorization boundary is the server/API layer; database constraints and helper-policy tests provide defense in depth. If RLS is enabled for a deployment, its SELECT/INSERT/UPDATE/DELETE policies must be tested as an additional gate.
17
18 ## Staging rule
19 All deployable changes land in staging before production. Staging uses separate environment/secrets/data from production. No production deploy, destructive migration or sensitive access change is implied by merge alone.
20
21 ## Observability baseline
22 - Crash/error reporting with sensitive-data scrubbing.
23 - PostHog only from an explicit event allowlist.
24 - Feature flags for risky/AI capabilities.
25 - No raw wellbeing transcript/private free text in analytics.
26
27 ## UX smoke
28 At minimum verify Teen and Parent core flows at mobile width, Persian RTL, text scaling, keyboard/input, empty/loading/error states and offline/reconnect behavior relevant to the feature.
29
30 ## Platform smoke
31 Android + iPhone Safari + iPhone Home Screen PWA + desktop web for release-critical flows. Browser automation may cover web regressions, but Home Screen/PWA behaviors require real-device validation before production release.
32
33 ## Definition of done
34 A feature is not complete because code exists. It requires passing automated checks, acceptance criteria, relevant platform smoke, updated decisions/state and explicit remaining-risk disclosure.