LifeMate — Personal, Family & Learning Companion

feat/child-device-safety
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 72 lines 18.3 KB
Rendered Raw
1 # LifeGuide / لایف‌گاید — وضعیت واقعی پروژه
2
3 Updated: 2026-10-11. Backend version: **0.6.0**. Branch: **feat/aparat-learning-library**, stacked on **feat/online-family-stage0**, based on main `abdc9d9d032bc6746c8390b902a2e52d82991530`. Repository remains `davoodmehraban89/LifeMate`.
4
5 **Status: shared online Stage 0 stack verified locally with synthetic data; hardware/release gates remain open. Not a complete operational product or public release.** Prior COMPLETE/READY claims are retained only in [historical checkpoint](../history/2026-10-05-project-state.md); they do not prove this candidate's acceptance. [Draft PR #10](https://github.com/davoodmehraban89/LifeMate/pull/10) is open; main is not merged.
6
7 ## Current education packet —0.6.0
8
9 This feature branch preserves the online0.5.1 base and Feature1. [Draft PR #11](https://github.com/davoodmehraban89/LifeMate/pull/11) is open on the previous online feature branch; neither PR is merged. It adds migrations0013–0015, grade/three academic-track library, real owner-private progress, lesson-linked planner/timer, reviewed/versioned formative assessment and explicitly consented feedback. Android first-run connection is explained without a guessed public URL. Runtime DB credentials cannot write catalogue/review/question definitions; only the separate migrator/importer can. [Current0.6.0 handover](../operations/HANDOVER_0.6.0.md) supersedes the old artifact links for this feature.
10
11 Research inventory is217 books/1373 units/1348 video candidates. **Real published fully reviewed videos:0; real published question banks:0.** Primary62 official1405–1406 editions were inspected; secondary155 edition years remain unknown/unverified. Book index/page/video fragments do not establish a complete school year. Technical iframe probe used a paused provider tutorial, not approved teaching. [Quality/operation guide](../operations/LEARNING_CONTENT.md), [evidence/acceptance limits](../audits/2026-10-11-learning-verification.md). Full item-by-item media/assessment review, specialist pedagogy and real device acceptance remain open; no claim of guaranteed understanding or complete school is made.
12
13 Feedback is voluntarily written chosen text; no private chat/health extraction, admin/notification/export pipeline or autonomous AI/deploy is implemented. Adult/family education and age-appropriate support are documented future domains; AI/voice and sensitive health remain disabled. Minor safeguarding, consent/legal gates and in-country sensitive storage require separate review before implementation.
14
15 The fresh APK asks for a full HTTPS API address because Android has no configured active shared endpoint. On2026-10-11 public read-only checks observed app.lifeguide.ir still serving the old product HTML; /config.json,/api/health,/api/ready also returned HTML, not usable current JSON. This does not prove every possible endpoint absent; it does not establish compatibility. [Connection audit](../audits/2026-10-11-apk-connection.md). No live deploy or DNS changes were made.
16
17 Current0.6.0 execution: local151/151 backend and112/112 Flutter, analyzer clean, fresh Compose15 checksum migrations, runtime-family9/9 and learning15/15, separate-role synthetic dump/restore and trustedHTTPS7 checks passed. Actual compiledPWA/localHTTPS browser substitute10/10 passed: grade/profile selection, self-reported progress independently read byAPI/SQL, feedback consent+redaction and close/reopen session refresh;55 requests/zero external/errors. Root inspected both screenshots: same progress/server timestamp retained. Dynamic progress text was absent from the ChromiumARIA snapshot after update; accessibility and physical-touch acceptance remain unresolved, not certified by DOM-semantic clicks. [Browser receipt](../audits/evidence/learning-browser-2026-10-11.json).
18
19 Initial featureCI38113435509 failed with143 backendpass/8 cancelled: fixture guard rejected the existing syntheticCI DB name. Root reproduced and fixed the exact-name/local-host gate; targeted10/10 and full151/151 passed. Corrected source **b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f**, [CI38148788571](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571): **all three jobs SUCCESS**, including roles/restore,112 Flutter, web and debugAPK0.6.0/code5/ir.lifeguide.app binary manifest+v2signature. [Final receipt](../audits/evidence/ci-learning-final-2026-10-11.json), [debug APK](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986), [web](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327). Debug certificate differs from historical builds; owner-device certificate/install/upgrade and release signing remain UNVERIFIED. Do not erase unsent data to resolve signing conflicts. Subsequent browser-test/docs evidence commits do not claim an additional latest-HEADCI or change the app source covered by the cited build.
20
21 The following0.5.1 execution evidence is historical and does not certify this new source. Current0.6.0 test/build receipts are recorded separately in the learning verification packet.
22
23 ## Baseline and reuse
24
25 [Main gap analysis](../audits/2026-10-08-online-gap-analysis.md) was written before new implementation. GitHub refs verified: local persistence `62e82ba`, backend safety `e5e3e41`, Cloudflare/Neon `7a83ca8`; only isolated backend safety commit reused. Login-free LocalOnlyApi and managed-host adapters were not merged into the online product. Main already contains family/guardian identity, planner/offline queue, authorization tests and **Feature 1** Iranian education/catalog/calendar/preferences; these are preserved. Feature 1 household persona is a preference, not a server grant of parental access. Health/cycle UI and external AI/voice remain disabled.
26
27 ## Current implementation
28
29 - Shared Node/Express/Argon2id/PostgreSQL with migrations 0007–0012: optional email/phone identity, verification delivery recovery, rate-limited resend, opt-in HTTPS webhook SMS adapter, hashed tokens and refresh rotation. Test runner removes inherited live delivery/AI settings.
30 - Current family/membership/guardian checks, private notes stripped from shared task views, report metrics scoped per visible task. Family archival and revoked membership/guardian relationships close access. Selected grants do not resurrect after rejoining.
31 - Canonical plan creation version1, stable UUID offline mutations, request-hash idempotency, row/owner locks, expected-version conflicts, canonical server acknowledgement; edit and safe archive use real storage.
32 - Study sessions/intervals/events survive backend restart; start/pause/resume/stop, corrections/archive, overlap/duplicate protection. Timer/self-reported durations are explicitly not proof of study. Guardian confirmation requires authorized evidence.
33 - Persian RTL parent views, allowed learning reports, activity timestamps, last-refresh/error state and polling. Seven/thirty-day reports include all of today in Tehran, without changing server freshness timestamps. Android endpoint settings/fallback selection and web no-store config.json use one chosen HTTPS API; endpoint/account switch clears old credentials/cache. Forced session expiry instead quarantines the same account/endpoint namespace without deleting unsent work; only a fresh authenticated handle can recover it.
34 - Client queue/cache scoped to endpoint+authenticated user, durable enqueue-before-send, FIFO chains, malformed-ack rejection, conflicts retained, logout generation invalidation. Explicit server conflict choice journals local payloads before removing their full pending chain. Storage failures are not mistaken for network outages.
35 - Subject/class and private learning check-in CRUD/archive now use owner validation and retain linked homework/history. Profile category and editable display name remain independent of family permissions.
36 - Self-hosted Compose API/Postgres/nginxTLS + backup cron/healthchecks; independent non-superuser migrator, runtime DML and read-only backup credentials. Explicit backup-validated existing-object adoption; unexpected ownership/privileges fail before mutation. Tested synthetic backup/restore uses existing scripts. Runtime web fonts/CanvasKit are bundled locally. Notification polling uses a replaceable delivery port; background push is not enabled.
37 - Web bootstrap holds one exclusive origin/browser-profile Web Lock before engine/session/cache access. A second instance or unsupported browser shows a Persian retry screen. Page lifecycle invalidation guards delayed HTTP responses and stale cache handles. Actual Safari/BFCache acceptance remains UNVERIFIED.
38 - Product rebrand **LifeGuide**, Android **ir.lifeguide.app**, release key required from secrets; automatic public publishing and unused fix workflow removed. Deployment and signed-APK workflows are manual and disabled by default.
39
40 ## Execution evidence so far
41
42 Actual output and A–H limits are recorded in [online acceptance](../audits/2026-10-08-online-acceptance.md) and [Stage 0 verification](../audits/2026-10-08-stage0-verification.md). Root reran Node22.23.3 against a fresh PostgreSQL16 database: **130/130 passed, zero failures/skips**. All twelve migrations applied, four SQL matrices passed, syntax check covered 38 files and dependency audit reported zero vulnerabilities. The independent real-entrypoint/HTTP/DB eight-step substitute passed **9/9**. Flutter aggregate **64/64**, analyzer clean; final frozen-source release web build **57.5s**. Compiled browser request test observed 14 local requests, zero external/missing/error; its HTTPS responses are explicitly intercepted and do not prove real TLS.
43
44 On 2026-10-08, local prebuilt Compose PostgreSQL/API/nginxTLS/backup were observed healthy. Real trusted HTTPS smoke passed create/read/archive/logout; synthetic family task and 1500-second paused session survived API image recreation. Mother/father browser rendering and session restart evidence are recorded separately from backend substitutes. Backup cron, two concurrent distinct archives and fresh synthetic restore/privacy/session drill passed. Complete SDK Dockerfile image build failed with disk/snapshot exhaustion; **UNVERIFIED**, while the checked host/CI web artifact has a lighter Compose packaging path. Historical checksum-less ledger entries are not retrospectively certified; fresh twelve-entry ledgers have checksums.
45
46 The first source CI passed backend tests/SQL but failed backup due to non-executable scripts; file mode and PostgreSQL16 client/container invocation were fixed and local restore retained **12/12** ledger/checksum entries. Final source commit **`7d9366832adaaab4cc3f24ef4d928fddd307fdc9`**, [CI run 37810558847](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847): **all three jobs succeeded**, including 130 backend tests, 64 Flutter tests, PostgreSQL16 backup/restore, release web build and actual debug APK build/upload. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11563914781) and [LifeGuide-debug-apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11565283053) are test artifacts; debug signing is not a release. Independent downloaded APK inspection/install and release signing remain **UNVERIFIED**. Subsequent handover documentation does not change the application source tested by that run. No live host, DNS, production deploy, real-data migration, merge, signup, purchase or public release ran.
47
48 The subsequent handover-only commit `1c162a5` initially hit a GitHub account restriction before any runner started. After the owner reported it resolved, root actually requested rerun: [run37813595994 attempt2](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994/attempts/2) completed all three jobs successfully on the same source:130 backend tests,64 Flutter tests, web and debug APK upload. [Historical restriction and exact fresh artifact receipts](../audits/2026-10-09-ci-billing-block.md). No account/payment settings were changed. That CI success does not cover the new0.5.1 changes.
49
50 The0.5.1 packet and its evidence are tracked in [isolation verification](../audits/2026-10-09-isolation-verification.md). Actual fresh client tests: **68/68 Flutter, zero failures/skips;3/3 Chrome Dart guards, zero skips; analyzer clean**. Forced401/403 expiry tests preserve stable mutation UUID/payloads, invalidate old stores, isolate another account and allow one replay after same-account authentication; deliberate logout/server switch still discards. Final frozen-source release web build passed in43.0s;14 local asset requests/zero external or errors,8 compiled instance cases and forced-expiry exact-byte preservation passed. PostgreSQL final role drill passed9/9 runtime family tests,17 denied SQL checks per source/restored DB and12 checksum migrations. Current Compose API really uses lifeguide_api without admin/DDL flags; the existing completed task and1500-second session stayed unchanged. Real trusted HTTPS smoke7/7 and fresh mother PWA login/report passed, with23 same-origin requests and no private note. [Screenshot and sanitized receipt](../audits/2026-10-09-isolation-verification.md). [New source CI](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) on7c4ca78 completed all three jobs successfully:130 backend,9 runtime-family,68 Flutter,3 Chrome guards, compiled gate8, expiry retention, web and debug APK. Actual APK binary manifest0.5.1/code4/ir.lifeguide.app and valid Android Debug v2 signature were inspected on the runner; this is not a signed release or device acceptance. [Artifact IDs, binary/ZIP digests and receipt](../audits/2026-10-09-isolation-verification.md). Final handover changes after that source are documentation only with[skip ci], not a claimed successful latest-head CI. Unrun checks remain UNVERIFIED. No live deploy, DNS, real-data migration, merge, signup, purchase or public release ran.
51
52 ## UNVERIFIED acceptance and remaining gates
53
54 - Real Android three-device lifecycle/install/upgrade; iPhone/iPad Safari login, Add to Home Screen and safe PWA update.
55 - Windows PowerShell/WSL2/mkcert owner-PC installation and trusted mobile TLS.
56 - VPN-free API/PWA/APK reachability inside Iran; foreign VPS/payment/KYC eligibility. No suitable long-term free/no-card VPS was verified; Stage 0 LAN is the primary recommendation.
57 - Real email/SMS delivery/provider/payment, timing-indistinguishability of registration, background push.
58 - Owner release keystore/certificate, genuinely signed LifeGuide.apk and public availability.
59 - Legal/consent/retention gates for minor wellbeing and cycle data; in-country sensitive storage policy. These gates are flagged, not implemented or certified.
60 - Complete account contact/closure, active-member role/admin transfer, and legacy life-context/year/term lifecycle CRUD; richer school/check-in UI and detailed exam/grade reports. Subject/class/check-in API CRUD is now tested, but that does not complete every auxiliary entity or its UI.
61 - Real-host credential/ownership transition and encrypted/off-PC backups. Local independent-role tests do not authorize changing live privileges. [Database role runbook](../operations/DATABASE_ROLES.md).
62 - Fully offline cold PWA startup, browser eviction/storage quota and hardware accessibility/update behavior; real Safari and actual BFCache restore. Exclusive-instance tests use Chromium; close all old app versions once before upgrading. Pending study events must receive acknowledgement before another event is recorded.
63
64 ## Next and operator responsibilities
65
66 Owner currently has no access to the home PC; no immediate owner action is required. Windows/mobile Stage0 acceptance stays pending until PC/LAN access returns. [Read-only public domain audit](../audits/2026-10-09-public-domain.md) at07:32:31UTC observed app.lifeguide.ir still serving0.1.0/build1 behind Arvan; the owner panel screenshot supports a Railway origin. This is the old public deployment, not the0.5.1 test endpoint; no DNS/origin change ran. Public GET results do not prove Iran VPN-free reachability or device acceptance.
67
68 The independent [Stage0 readiness packet](../audits/2026-10-09-stage0-readiness.md) fixes a reproduced Windows-style Git checkout failure with a standard LF text/binary-preservation policy. Root actually ran RED/GREEN on Node22.23.3 using the unchanged real web artifact: Windows/LF checkout, three shell endings,13 binary inputs and source/artifact tamper rejection passed. No local Flutter rebuild/restamp or actual Windows run happened. The new regression then ran successfully after a fresh web build in [CI37900944165](https://github.com/davoodmehraban89/LifeMate/actions/runs/37900944165), source7d35ee6.
69
70 The same packet fixes a reproduced false TLS PASS under inherited insecure Node settings. Node22.23.3 local HTTPS regression passed5/5 with zero failures/skips after explicit verified-TLS enforcement. Root's real existing Compose read-only smoke passed5 checks at07:43:47UTC; it did not opt into a new write round-trip. No task/session, live host or trust-store setting was changed. CI37900944165 completed all three jobs SUCCESS, including new TLS5/5 and checkout tests,130 backend,9 family,68 Flutter,3 Chrome guards, web and actual debug APK build/manifest/v2 signature. [Receipt and current artifacts](../audits/evidence/ci-stage0-readiness-2026-10-09.json). The official connector downloaded the ZIP for private delivery; local extraction returned403 and is UNVERIFIED. Actual device install/upgrade, owner-signed release and public hosting remain open. The new debug certificate differs from the earlier CI build; no uninstall/data erase was performed or recommended for unsent work. Documentation follow-up does not claim an additional latest-head CI run.
71
72 Owner follows [exact0.5.1 handover steps](../operations/HANDOVER_0.5.1.md) and runs [Stage 0](../operations/STAGE0.md) using the checked prebuilt web artifact, synthetic accounts and A–H hardware acceptance; record real Android/Safari/Windows and VPN-free Iran results before operational use. Remaining engineering packets include account/membership lifecycle CRUD and detailed school UI/report gaps. Follow the explicit DB-role adoption runbook for an existing local fixture; never run it on a live database without approval. Owner chooses hosting, DNS, SMS/email provider and signing key outside chat; any live change needs its explicit approval. [Hosting ADR](../decisions/0009-provider-neutral-hosting.md), [naming ADR](../decisions/0010-lifeguide-naming.md), [migration/rollback](../operations/DOMESTIC_MIGRATION.md).