LifeMate — Personal, Family & Learning Companion
docs: define phase two quality gates
davoodmehraban89 committed
Oct 5, 2026 at 06:28 UTC
44f6347c49af54e86c8f769b9a1589d968d119e5
1 file changed
+32
docs/quality/PHASE_2_QUALITY_GATES.md
new
+32
@@ -0,0 +1,32 @@
1
+# LifeMate — Phase 2 Quality Gates
2
+
3
+## Pull request gates
4
+Once application code exists, every implementation PR must run:
5
+1. formatting check;
6
+2. Flutter/Dart static analysis;
7
+3. unit/widget tests relevant to changed domain/UI;
8
+4. authorization/database tests when schema/RLS changes;
9
+5. Android debug build smoke;
10
+6. Web release/debug build smoke as appropriate;
11
+7. secret scanning/dependency review available in the repository plan/tooling.
12
+
13
+## Security tests required for identity/family
14
+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. RLS tests must cover SELECT/INSERT/UPDATE/DELETE rather than only happy-path reads.
15
+
16
+## Staging rule
17
+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.
18
+
19
+## Observability baseline
20
+- Crash/error reporting with sensitive-data scrubbing.
21
+- PostHog only from an explicit event allowlist.
22
+- Feature flags for risky/AI capabilities.
23
+- No raw wellbeing transcript/private free text in analytics.
24
+
25
+## UX smoke
26
+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.
27
+
28
+## Platform smoke
29
+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.
30
+
31
+## Definition of done
32
+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.
\ No newline at end of file