LifeMate — Personal, Family & Learning Companion
fix/personal-jalali-dates
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
| 1 | # LifeGuide personal device planner — implementation plan |
| 2 | |
| 3 | > **For agentic workers:** Use isolated specialist ownership with integration and independent review by the root. Checkboxes record the bounded delivery, not release readiness. |
| 4 | |
| 5 | **Goal:** Deliver an Android APK usable immediately without API setup: private weekly planning, independent occurrence completion, local notifications and durable restart. |
| 6 | **Architecture:** Separate debug-only Android package/entrypoint; authoritative transactional SQLite, no HTTP imports or INTERNET permission. Reuse the proven native alarm engine behind a distinct guarded device channel; keep online identity/permissions unchanged. |
| 7 | **Tech stack:** Flutter3.47.6, Dart, sqflite, Android AlarmManager/NotificationManager. |
| 8 | **Spec:** [ADR0016](../../decisions/0016-initial-child-planner-delivery.md), current owner instruction for a usable APK without API and subsequent continue after scoped explanation. |
| 9 | |
| 10 | ## Global constraints |
| 11 | |
| 12 | - One local personal profile; profile_category never grants a family role. No phone/email/OTP/server account claims. |
| 13 | - Separate `ir.lifeguide.app.device`, label «لایفگاید شخصی», version0.7.2-personal.1/code9; production `ir.lifeguide.app` unchanged. Debug is not a release. |
| 14 | - SQLite v1 in app-private storage, backup disabled. No imports from online API/cache/auth. No sample rows in the user build; fixtures use separate database files. |
| 15 | - No merge/deploy/DNS/foreign real child data. Tests synthetic; every runtime claim needs commands/output. Phone/Safari/Iran acceptance stays UNVERIFIED. |
| 16 | |
| 17 | ## Review focus |
| 18 | |
| 19 | 1. Save failures/corrupt DB must never report success or silently reset data. |
| 20 | 2. Repeated generation and restarts cannot duplicate occurrences or tick a different date. |
| 21 | 3. An OFF choice or edited/completed item must not reappear as a stale alarm after asynchronous work/restart. |
| 22 | 4. The user artifact must be the real standalone entrypoint, not a fixture or ordinary online APK. |
| 23 | 5. App update/install must not overwrite an older app/account/cache or require data deletion. |
| 24 | |
| 25 | ## Task1 — Durable personal data (owner: standalone_storage) |
| 26 | |
| 27 | - [x] Implement `lib/standalone/model.dart` and `store.dart` and actual file DB tests in `test/standalone_store_test.dart`. |
| 28 | - [x] Single editable profile; daily/every2days/weekday slots/one-off, independent occurrence edits, completion and archive. |
| 29 | - [x] Verify Create→Close→Reopen→Read→Update→Read→Archive; transactions, validation, stable IDs and generation uniqueness. |
| 30 | |
| 31 | ## Task2 — Working RTL interface (owner: standalone_ui) |
| 32 | |
| 33 | - [x] `standalone/app.dart`, `planner_ui.dart`, `settings_ui.dart`, focused widget tests. No account/server screens or inert feature cards. |
| 34 | - [x] Home, Saturday-first week, editable forms, per-occurrence details, explicit device-only setting, local profile/theme edits. |
| 35 | - [x] Before-write alarm invalidation, awaited save, after-write refresh; storage failures stay visible without clearing data. |
| 36 | |
| 37 | ## Task3 — Local reminders (owner: standalone_reminders; native helper owns its Kotlin files) |
| 38 | |
| 39 | - [x] Dedicated device-only types/channel; BuildConfig guard; no fabricated server acknowledgement. |
| 40 | - [x] Default OFF, explicit permission/opt-in, next28days/max128 nearest records with visible limit; generic lock-screen body and chosen companion name. |
| 41 | - [x] Native and Dart OFF choices fail closed; suspend before data writes and reconcile only from actual DB rows. Online24h lease remains unchanged; device lease capped31days. |
| 42 | |
| 43 | ## Task4 — Isolation and delivery (owner: root) |
| 44 | |
| 45 | - [x] Gradle debug-only package and highest-priority no-INTERNET manifest; isolated `standalone_main.dart`, actual reminder settings/coordinator. |
| 46 | - [x] Binary checker rejects online package, wrong version/activity, network/extra permissions, backup or exported reminder receiver. |
| 47 | - [x] CI builds user APK first, copies LifeGuide.apk, then builds never-distributed fixture. Guard filenames/entrypoints and verify both signatures/manifests. |
| 48 | |
| 49 | ## Task5 — Android acceptance (owner: standalone_android_acceptance) |
| 50 | |
| 51 | - [x] Fresh emulator only; refuse physical/preinstalled package before writes. Launch exact user APK and capture onboarding screenshot. |
| 52 | - [x] Replace only the just-installed synthetic fixture package with same-cert fixture; alternate fixture SQLite; real independent SQL reads and restart/tick/edit/archive. |
| 53 | - [x] Prove native alarm after ordinary process death, cancellation before deadline and OFF; no force-stop/manual notification and no false-death transport fallback. |
| 54 | |
| 55 | ## Final gates (owner: root) |
| 56 | |
| 57 | - [x] Run full Flutter suite/analyze/format, Python tool tests, JSON/naming/credential scans; preserve failing outputs and fixes. |
| 58 | - [x] Independent review; small dependent PR; actual CI logs, artifact digest/manifest/signature. No merge or deployment. |
| 59 | - [x] Preserve tracked source/evidence in GitHub and runtime source in /workspace; provide the actual LifeGuide.apk with a GitHub artifact recovery link, explain local-only scope and real-device gaps. |
| 60 | |
| 61 | Commands/results become VERIFIED only after execution; expected outcomes here are UNVERIFIED until the evidence report is written. |
| 62 | |
| 63 | Completed bounded delivery: runtime3e36dfd, CI39480587450 PASS; local and CI output, earlier failures and remaining real-device/online/signing gaps in `docs/audits/evidence/personal-android-2026-10-20.json`. Checkboxes do not claim physical-device or production acceptance. |
| 64 | |
| 65 | Delivery-path deviation: /workspace has no allocatable data space; attempts to copy the APK failed ENOSPC, without deleting any existing data/artifact/cache. Verified regular APK is served from /tmp/lg-final-apk/LifeGuide.apk; GitHub artifact12292340083 preserves the recovery download. Do not describe the temporary local path as persistent. |