LifeMate — Personal, Family & Learning Companion
docs: align phase 2 quality gates with provider-neutral authorization
davoodmehraban89 committed
Oct 5, 2026 at 08:57 UTC
ed3833b1ba0349b55ebffc346ab155e9a48901f2
1 file changed
+3
-3
docs/quality/PHASE_2_QUALITY_GATES.md
+3
-3
@@ -5,13 +5,13 @@ 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;
8
+4. authorization/database tests when schema or access-policy 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.
11
+7. secret scanning and backend dependency audit in CI.
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.
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. 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.
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.