LifeMate — Personal, Family & Learning Companion
docs: add project operating rules
davoodmehraban89 committed
Oct 5, 2026 at 06:16 UTC
23f41a088cfd374c5f43d451dbfd0974a53265e9
1 file changed
+59
AGENTS.md
new
+59
@@ -0,0 +1,59 @@
1
+# LifeMate — Operating Rules
2
+
3
+## Mission
4
+Build LifeMate 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
+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
+- Secrets must not be committed to the repository or copied into documentation; use environment/secret management.
49
+- Keep authoritative security and permission rules on the backend; client logic may support UX/offline behavior but cannot be the security boundary.
50
+
51
+## UX / visual rules
52
+- Persian RTL is first-class.
53
+- Teen experience: warm, modern, graphical, inviting, calm and age-appropriate; not childish.
54
+- Parent experience: clear, actionable and less decorative while sharing the same design language.
55
+- Canva can supply visual assets/illustrations; Figma remains the primary UI/UX and design-system surface.
56
+- Brand, app icon, PWA icon, favicon, splash/entry and login experience are product requirements, not final polish.
57
+
58
+## Definition of done
59
+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.