LifeMate — Personal, Family & Learning Companion

docs/offline-data-rescue-options
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 1.56 KB

ADR 0012 — Grade-aware learning catalogue and in-page Aparat

Date: 2026-10-09. Status: accepted for local implementation; deployment remains gated.

Feature 1 supplies education profiles and a grade-7 textbook seed but no teaching videos or lesson progress. The owner requests grades1–12 teaching inside LifeGuide, using Aparat embeds without downloading or redirecting by default.

Extend the existing PostgreSQL curriculum/textbook model with evidence-bearing ordered units/resources and owner-private self-reported progress. Use deterministic imports, expected-version mutations and durable client queues. Reuse canonical planner/study sessions; do not infer learning from playback.

Use the official HTTPS Aparat player in a click-to-load iframe on web/PWA and an in-page WebView on Android. Accept only a video hash, no arbitrary HTML/URL. Keep credentials and user metadata out of provider requests, suppress referrer, permit only the player frame in the application's frame policy. Aparat is a narrow user-authorized exception to the local-only runtime-assets policy; no external font/CanvasKit/API dependency follows from it.

Tradeoffs: video streaming cannot be offline; provider advertisements, cookies, removal, availability and network restrictions are outside LifeGuide's control. Metadata/free-access checks do not certify teaching quality. Catalogue counts must disclose missing coverage and edition alignment. Full pedagogical review and Android/Safari acceptance remain UNVERIFIED. No provider account, payment, public deployment or live migration follows from this ADR.