@davoodmehraban89 / LifeMate / commits / 7d35ee6
Fork 0

LifeMate — Personal, Family & Learning Companion

docs(ci): record Stage0 readiness checks and pending device acceptance

Quinn White committed Oct 9, 2026 at 07:46 UTC 7d35ee64a8d4aee51a92ee5fe551e8b3c33761e9
10 files changed +274 -16
.github/workflows/ci.yml
+4
@@ -40,6 +40,8 @@ jobs:
40 - uses: actions/checkout@v4
41 - uses: actions/setup-node@v4
42 with: {node-version: 22, cache: npm, cache-dependency-path: backend/package-lock.json}
43 + - name: Verify reachability smoke rejects untrusted TLS
44 + run: node --test scripts/test-reachability-smoke.mjs
45 - run: npm ci
46 working-directory: backend
47 - name: Apply migrations and verify repeat run
@@ -114,6 +116,8 @@ jobs:
116 run: node tool/test_web_session_expiry.cjs --artifact=build/web
117 - name: Record checked prebuilt web provenance
118 run: node ../../scripts/prebuilt-web-check.mjs . --stamp-after-build
119 + - name: Verify Windows checkout preserves the checked web artifact
120 + run: node ../../scripts/test-prebuilt-checkout.mjs
121 - uses: actions/upload-artifact@v4
122 with: {name: LifeGuide-web, path: apps/lifemate/build/web, if-no-files-found: error}
123 - name: Build test APK (debug certificate; not a release)
CHANGELOG.md
+3
@@ -7,6 +7,9 @@
7 - Acquire an exclusive browser Web Lock before Flutter, session or cache startup; show a Persian retry screen for a second instance or unsupported browsers.
8 - Preserve account-scoped unsent mutations on forced session expiry; invalidate stale handles and recover only after the same account authenticates again. Deliberate logout/server switch retains its discard policy.
9 - Add real PostgreSQL role/restore and compiled Chromium regressions to CI, plus inspection of the actual debug APK manifest/signature.
10 +- Preserve LF text and binary bytes across Windows Git checkouts; test the existing checked web artifact, executable shell inputs and tamper rejection without restamping it.
11 +- Require verified TLS explicitly in the reachability smoke script, including when an inherited Node environment requests insecure TLS; reject invalid trust/hostname before login or writes.
12 +- Record the read-only public-domain audit: old0.1.0/build1 remains on app.lifeguide.ir; owner-PC/mobile acceptance waits until PC/LAN access is available.
13 - Real-device/Safari, Windows, Iran reachability, live providers and owner-signed release remain UNVERIFIED. See PROJECT_STATE.md for execution evidence.
14
15 ## 0.5.0 — 2026-10-08 — online Stage 0 candidate
PROJECT_STATE.md
+6
@@ -47,4 +47,10 @@ The0.5.1 packet and its evidence are tracked in [isolation verification](docs/au
47
48 ## Next and operator responsibilities
49
50 +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](docs/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.
51 +
52 +The independent [Stage0 readiness packet](docs/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 new Flutter build/restamp or actual Windows run happened. A new CI regression is configured; its execution is UNVERIFIED until a new run reports it.
53 +
54 +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. New CI steps are configured but UNVERIFIED until executed; old0.5.1 CI does not claim those new checks.
55 +
56 Owner follows [exact0.5.1 handover steps](docs/operations/HANDOVER_0.5.1.md) and runs [Stage 0](docs/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](docs/decisions/0009-provider-neutral-hosting.md), [naming ADR](docs/decisions/0010-lifeguide-naming.md), [migration/rollback](docs/operations/DOMESTIC_MIGRATION.md).
README.md
+2
@@ -8,6 +8,8 @@
8
9 Windows/LAN: [راهنمای Stage 0](docs/operations/STAGE0.md). Docker Desktop/Compose و گواهی HTTPS مورد اعتماد دستگاه‌های آزمون لازم‌اند؛ حساب یا پرداخت میزبان لازم نیست. مسیر بررسی‌شده، بسته‌بندی وب از خروجی واقعی build است: [LifeGuide-web از CI همین منبع](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600220473) را همراه فایل provenance در `apps/lifemate/build/web` استخراج کنید، یا مطابق راهنما با Flutter3.47.6 بسازید. checkout باید شامل همان کد برنامه باشد؛ checker خروجی قدیمی یا نامنطبق را رد می‌کند.
10
11 +اگر به رایانه دسترسی ندارید، فعلاً اقدامی لازم نیست. [دامنهٔ عمومی](docs/audits/2026-10-09-public-domain.md) هنوز نسخهٔ قدیمی است؛ آزمون بستهٔ جدید پس از دسترسی به PC/LAN انجام می‌شود. policy پایان خط در `.gitattributes`، ورودی‌های متنی را حتی با تنظیم رایج Git ویندوز به‌صورت LF نگه می‌دارد؛ فونت‌ها و آیکون‌های باینری تغییر نمی‌کنند. hash نامنطبق را با stamp دوباره دور نزنید.
12 +
13 ```powershell
14 node scripts/prebuilt-web-check.mjs apps/lifemate
15 ./scripts/local-deploy.ps1 -Origin https://192.168.1.10 -Certificate deployment/tls/server.pem -PrivateKey deployment/tls/server-key.pem -PrebuiltWeb
docs/audits/2026-10-08-naming.md
+20 -14
@@ -5,16 +5,16 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
5 | Location | Classification | Reason | Source excerpt |
6 | --- | --- | --- | --- |
7 | .env.example:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | POSTGRES_DB=lifemate |
8 -| .gitattributes:2 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | apps/lifemate/assets/fonts/*.txt whitespace=-blank-at-eol |
8 +| .gitattributes:6 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | apps/lifemate/assets/fonts/*.txt whitespace=-blank-at-eol |
9 | .github/workflows/ci.yml:29 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | POSTGRES_DB: lifemate_ci |
10 | .github/workflows/ci.yml:32 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | --health-cmd "pg_isready -U postgres -d lifemate_ci" |
11 | .github/workflows/ci.yml:36 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | DATABASE_URL: postgresql://postgres:synthetic_ci_only@localhost:5432/lifemate_ci |
12 -| .github/workflows/ci.yml:60 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: lifemate_ci |
13 -| .github/workflows/ci.yml:79 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | docker exec -i -e DATABASE_URL=postgresql://postgres:synthetic_ci_only@127.0.0.1:5432/lifemate_ci "$PG_CONTAINER" bash -s -- /tmp/lifeguide-ci.dump < backend/scripts/backup.sh |
14 -| .github/workflows/ci.yml:82 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | test "$(docker exec "$PG_CONTAINER" psql -U postgres -d lifeguide_restore -Atc 'select count(*) from schema_migration')" = "$(docker exec "$PG_CONTAINER" psql -U postgres -d lifemate_ci -Atc 'select count(*) from schema_ |
15 -| .github/workflows/ci.yml:86 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | run: {working-directory: apps/lifemate} |
16 -| .github/workflows/ci.yml:118 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-web, path: apps/lifemate/build/web, if-no-files-found: error} |
17 -| .github/workflows/ci.yml:133 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-debug-apk, path: apps/lifemate/build/LifeGuide-debug.apk, if-no-files-found: error} |
12 +| .github/workflows/ci.yml:62 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: lifemate_ci |
13 +| .github/workflows/ci.yml:81 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | docker exec -i -e DATABASE_URL=postgresql://postgres:synthetic_ci_only@127.0.0.1:5432/lifemate_ci "$PG_CONTAINER" bash -s -- /tmp/lifeguide-ci.dump < backend/scripts/backup.sh |
14 +| .github/workflows/ci.yml:84 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | test "$(docker exec "$PG_CONTAINER" psql -U postgres -d lifeguide_restore -Atc 'select count(*) from schema_migration')" = "$(docker exec "$PG_CONTAINER" psql -U postgres -d lifemate_ci -Atc 'select count(*) from schema_ |
15 +| .github/workflows/ci.yml:88 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | run: {working-directory: apps/lifemate} |
16 +| .github/workflows/ci.yml:122 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-web, path: apps/lifemate/build/web, if-no-files-found: error} |
17 +| .github/workflows/ci.yml:137 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-debug-apk, path: apps/lifemate/build/LifeGuide-debug.apk, if-no-files-found: error} |
18 | .github/workflows/release-build.yml:16 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | run: {working-directory: apps/lifemate} |
19 | .github/workflows/release-build.yml:40 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-signed-apk, path: apps/lifemate/build/LifeGuide.apk, if-no-files-found: error} |
20 | PROJECT_STATE.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Updated: 2026-10-09. Backend version: **0.5.1**. Branch: **feat/online-family-stage0**, based on main 'abdc9d9d032bc6746c8390b902a2e52d82991530'. Repository remains 'davoodmehraban89/LifeMate'. |
@@ -24,9 +24,9 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
24 | PROJECT_STATE.md:34 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | The0.5.1 packet and its evidence are tracked in [isolation verification](docs/audits/2026-10-09-isolation-verification.md). Actual fresh client tests: **68/68 Flutter, zero failures/skips;3/3 Chrome Dart guards, zero ski |
25 | README.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | همراه فارسی و راست‌به‌چپ خانواده و آموزش؛ Android و PWA والدین از یک API مبتنی بر Node/Express و PostgreSQL مشترک استفاده می‌کنند. نام مخزن 'davoodmehraban89/LifeMate' و قراردادهای قدیمی پایگاه داده و JWT تغییر نمی‌کنند. |
26 | README.md:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Windows/LAN: [راهنمای Stage 0](docs/operations/STAGE0.md). Docker Desktop/Compose و گواهی HTTPS مورد اعتماد دستگاه‌های آزمون لازم‌اند؛ حساب یا پرداخت میزبان لازم نیست. مسیر بررسی‌شده، بسته‌بندی وب از خروجی واقعی build اس |
27 -| README.md:12 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
28 -| README.md:37 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | cd apps/lifemate |
29 -| README.md:44 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate --stamp-after-build |
27 +| README.md:14 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
28 +| README.md:39 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | cd apps/lifemate |
29 +| README.md:46 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate --stamp-after-build |
30 | apps/lifemate/android/app/src/main/AndroidManifest.xml:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | android:icon="@drawable/lifemate_logo"> |
31 | apps/lifemate/lib/main.dart:19 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | runApp(const LifeMateApp()); |
32 | apps/lifemate/lib/main.dart:22 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | class LifeMateApp extends StatefulWidget { |
@@ -152,7 +152,12 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
152 | docs/audits/2026-10-09-isolation-verification.md:41 | historical — keep | snapshot/previous decision; not current deployment evidence | - [LifeGuide-debug-apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600076483): ZIP86,928,494bytes؛ digest archive '71954bddac25cacf29b9f2115b62de8eb576c763d4e5e26495b0e98c0d8add1f'. |
153 | docs/audits/2026-10-09-isolation-verification.md:57 | historical — keep | snapshot/previous decision; not current deployment evidence | Flutter commandها از 'apps/lifemate' و shell role command از root repo اجرا شدند. Logs این محیط: '/workspace/scratch/lifeguide-dbrole-green-final.log'، 'review-web-refresh-preserve-red.log'، 'review-web-refresh-preserve- |
154 | docs/audits/2026-10-09-isolation-verification.md:61 | historical — keep | snapshot/previous decision; not current deployment evidence | در fetch رسمی GitHub، description مخزن در۲۰۲۶-۱۰-۰۹ هنوز 'LifeMate — Personal, Family & Learning Companion' بود. **target setting: user-facing — change**؛ نقل‌قول این گزارش فقط شاهد تاریخی مشاهده‌شده است. این تنظیم بیرون |
155 +| docs/audits/2026-10-09-stage0-readiness.md:25 | historical — keep | snapshot/previous decision; not current deployment evidence | node scripts/prebuilt-web-check.mjs apps/lifemate |
156 | docs/audits/evidence/ci-0.5.1.json:3 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018", |
157 +| docs/audits/evidence/public-domain-2026-10-09.json:81 | historical — keep | snapshot/previous decision; not current deployment evidence | "app_name": "lifemate", |
158 +| docs/audits/evidence/public-domain-2026-10-09.json:84 | historical — keep | snapshot/previous decision; not current deployment evidence | "package_name": "lifemate" |
159 +| docs/audits/evidence/public-domain-2026-10-09.json:92 | historical — keep | snapshot/previous decision; not current deployment evidence | "title": "LifeMate", |
160 +| docs/audits/evidence/public-domain-2026-10-09.json:100 | historical — keep | snapshot/previous decision; not current deployment evidence | "title": "LifeMate", |
161 | docs/decisions/0006-provider-neutral-postgresql-backend.md:9 | historical — keep | snapshot/previous decision; not current deployment evidence | Phase 2 originally treated Supabase as the likely combined database/auth/backend provider. Creation of an isolated LifeMate staging project was blocked by account-level project limits. More importantly, tying identity, a |
162 | docs/decisions/0006-provider-neutral-postgresql-backend.md:12 | historical — keep | snapshot/previous decision; not current deployment evidence | LifeMate will use PostgreSQL as its durable relational source of truth while exposing infrastructure through explicit application ports/adapters. |
163 | docs/decisions/0006-provider-neutral-postgresql-backend.md:18 | historical — keep | snapshot/previous decision; not current deployment evidence | - 'LifeMateApi': authenticated application boundary; clients do not receive privileged database credentials. |
@@ -172,10 +177,10 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
177 | docs/history/2026-10-05-project-state.md:23 | historical — keep | snapshot/previous decision; not current deployment evidence | - LifeMate-owned identity/session adapter; server-side relationship-aware authorization. |
178 | docs/operations/BACKUP_RESTORE.md:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 'backend/scripts/backup.sh /secure/location/lifemate-YYYYMMDD.dump' |
179 | docs/operations/BACKUP_RESTORE.md:15 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 'backend/scripts/restore.sh /secure/location/lifemate-YYYYMMDD.dump' |
175 -| docs/operations/HANDOVER_0.5.1.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | کد آزموده‌شده '7c4ca78' و خروجی‌های [run37893432018](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) هستند. commit تحویل بعدی فقط مستندات است. نصب Windows/Android/Safari و دسترسی بدون VPN ایران **U |
176 -| docs/operations/HANDOVER_0.5.1.md:7 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | checkout شاخه 'feat/online-family-stage0' را در پوشهٔ آزمون مستقل آماده کنید. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600220473) را همراه 'build-provenance.json' |
177 -| docs/operations/HANDOVER_0.5.1.md:16 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
178 -| docs/operations/HANDOVER_0.5.1.md:26 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | [LifeGuide-debug.apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600076483) فقط آزمایشی و با گواهی debug است. پس از استخراج، hash فایل را با [receipt](../audits/evidence/ci-0.5.1.js |
180 +| docs/operations/HANDOVER_0.5.1.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | کد برنامهٔ آزموده‌شده '7c4ca78' و خروجی‌های [run37893432018](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) هستند. commit '6e9d27d' فقط مستندات تحویل بود؛ [بستهٔ آماده‌سازی بعدی](../audits/2026-10 |
181 +| docs/operations/HANDOVER_0.5.1.md:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | checkout شاخه 'feat/online-family-stage0' را در پوشهٔ آزمون مستقل و تازه آماده کنید؛ فایل‌های ویرایش‌شدهٔ checkout قدیمی را با reset/force حذف نکنید. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/r |
182 +| docs/operations/HANDOVER_0.5.1.md:20 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
183 +| docs/operations/HANDOVER_0.5.1.md:30 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | [LifeGuide-debug.apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600076483) فقط آزمایشی و با گواهی debug است. پس از استخراج، hash فایل را با [receipt](../audits/evidence/ci-0.5.1.js |
184 | docs/operations/SELF_HOSTED_DEPLOYMENT.md:13 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 3. '.env.example' را به '.env' کپی و secretها را در محیط/secret management میزبان تولید کنید. نام schemaها، JWT issuer='lifemate' و audience='lifemate-api' تغییر نمی‌کند. روی انتقال دیتابیس، secret JWT را مطابق سیاست نشس |
185 | docs/operations/STAGE0.md:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 2. ابتدا خروجی بررسی‌شده وب را طبق بخش «بسته‌بندی PWA» آماده کنید: artifact کامل [LifeGuide-web همین منبع](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600220473) را همراه provenance |
186 | docs/operations/STAGE0.md:15 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
@@ -235,3 +240,4 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
240 | scripts/local-deploy.ps1:74 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | & node scripts/prebuilt-web-check.mjs apps/lifemate |
241 | scripts/local-deploy.sh:59 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
242 | scripts/prebuilt-web-check.mjs:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const app = resolve(process.argv[2] ?? 'apps/lifemate'); |
243 +| scripts/test-prebuilt-checkout.mjs:12 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const app = resolve(process.argv[2] ?? fileURLToPath(new URL('../apps/lifemate/', import.meta.url))); |
docs/audits/2026-10-09-public-domain.md new
+25
@@ -0,0 +1,25 @@
1 +# وضعیت دامنهٔ عمومی و پذیرشِ در انتظار
2 +
3 +در 2026-10-09 ساعت **07:32:31 UTC**، فقط DNS عمومی و فایل‌های عمومی با GET خوانده شدند. هیچ ورود، درخواست نوشتن، تغییر DNS/CDN، deploy یا تغییر سرویس زنده انجام نشد. [رسید خواندنی](evidence/public-domain-2026-10-09.json).
4 +
5 +| بررسی اجراشده | نتیجهٔ مشاهده‌شده | محدودیت |
6 +|---|---|---|
7 +| DNS `app.lifeguide.ir` | `185.143.233.132` و `185.143.234.132` | IPهای عمومی CDN؛ IP سرور مبدأ از این پاسخ معلوم نمی‌شود. |
8 +| NS دامنهٔ `lifeguide.ir` | `s.ns.arvancdn.ir` و `d.ns.arvancdn.ir` | DNS در آروان است؛ این مشاهده دسترسی کاربران ایران را ثابت نمی‌کند. |
9 +| HTTPS `/` | HTTP200 و عنوان قدیمی محصول | دریافت صفحه، آزمون API یا پذیرش چندکاربره نیست. |
10 +| HTTPS `/version.json` | HTTP200؛ نسخهٔ `0.1.0`، build `1` | بستهٔ آزموده‌شدهٔ `0.5.1`/build `4` روی این دامنه مشاهده نشد. |
11 +| HTTPS `/config.json` | HTTP200 با `text/html` و صفحهٔ برنامه | پاسخ SPA fallback است؛ config واقعیِ same-origin `/api` نیست. |
12 +
13 +تصویر پنل آروان که مالک فرستاد، یک CNAME مبدأ با پسوند `.up.railway.app` نشان می‌دهد. بنابراین طبق **شاهد پنل**، مسیر فعلی `app.lifeguide.ir → CDN آروان → Railway` است؛ DNS عمومی به‌تنهایی مبدأ Railway را آشکار نمی‌کند. پیشوند کاملِ hostname در تصویر خوانا نیست و حدس زده نشده است. حالت ارتباط با مبدأ در تصویر «خودکار» است؛ خالی‌بودن فهرست گواهیِ مبدأ در پنل، نبود گواهی HTTPS روی Railway را ثابت نمی‌کند.
14 +
15 +این مسیر وضعیت تاریخیِ سرویس فعلی است. Railway در معماری جایگزین کنار گذاشته شده؛ باقی‌بودن مبدأ قبلی، مجوز قطع آن یا deploy تازه نیست. نام دامنهٔ خریداری‌شده حفظ می‌شود و تغییر مبدأ تنها پس از انتخاب مقصد آماده، آزمون و مجوز صریح مالک انجام خواهد شد. IP خصوصیِ LAN را در DNS عمومی ثبت نکنید.
16 +
17 +## اکنون که مالک به رایانه دسترسی ندارد
18 +
19 +**اقدامی از طرف مالک لازم نیست.** آماده‌سازی Docker/mkcert و آزمون Windows/Android/Safari تا دسترسی به PC و LAN منتظر می‌ماند؛ این وضعیت مسدودبودن پذیرش دستگاه‌ها است، نه شکست آزمون اجراشده. توسعه و آزمون‌های مستقل در محیط تیم می‌توانند ادامه پیدا کنند.
20 +
21 +`https://app.lifeguide.ir/` فعلاً لینک آزمون بستهٔ جدید نیست. دادهٔ واقعیِ خانواده یا اطلاعات حساس برای آزمایش در برنامهٔ قدیمی وارد نشود. راهنمای شروع، پس از دسترسی به رایانه، [HANDOVER_0.5.1](../operations/HANDOVER_0.5.1.md) است؛ Stage0 روی LAN و فقط با حساب‌های ساختگی انجام می‌شود و به خرید سرور نیاز ندارد.
22 +
23 +`scripts/reachability-smoke.mjs` به Node22 نیاز دارد و ابزار داخل مرورگر معمولی گوشی نیست. script موجود، قبل از ورود یا نوشتن، `/config.json` را JSON parse می‌کند و `/api` و `no-store` می‌خواهد؛ پاسخ HTML200 را قبول نمی‌کند. این script فعلاً **تطبیق نسخهٔ انتشار را بررسی نمی‌کند**. خواندن `version.json`، نصب Safari، persistence، همگام‌سازی یا VPN-free reachability را تأیید نمی‌کند.
24 +
25 +**UNVERIFIED:** دسترسی بدون VPN از اپراتورهای داخل ایران، Android/iPhone/Safari واقعی، نصب و ارتقا، قطع اینترنت و بازگشت هر سه دستگاه، آمادگی مقصد عمومی جایگزین، cutover/rollback زنده. تنظیمات فعلی دامنه و آروان تا آماده‌شدن و تأیید مقصد حفظ شوند.
docs/audits/2026-10-09-stage0-readiness.md new
+63
@@ -0,0 +1,63 @@
1 +# Stage0 readiness while owner-PC acceptance is pending
2 +
3 +The owner has no access to the home PC. No immediate owner action is required. Actual Windows/PowerShell/Docker Desktop and physical Android/Safari acceptance remain **UNVERIFIED**. This packet addresses independently reproducible preparation failures; it does not deploy the candidate or make the old public domain a new test endpoint.
4 +
5 +## Actual Git checkout regression
6 +
7 +Root independently ran the regression with **Node22.23.3**, using the real previously built/postprocessed/stamped web artifact. No Flutter build, provenance restamp, application-source edit or binary rewrite ran.
8 +
9 +```text
10 +RED EXPECTED: exit1 old checkout policy rejected real checked artifact at manifest.json
11 +PASS original checked artifact
12 +PASS actual Git checkout core.autocrlf=false
13 +PASS core.autocrlf=false: three shell scripts retain LF;13 font/icon binaries are byte-identical
14 +PASS actual Git checkout core.autocrlf=true
15 +PASS core.autocrlf=true: three shell scripts retain LF;13 font/icon binaries are byte-identical
16 +PASS source change is still rejected
17 +PASS artifact change is still rejected
18 +PASS prebuilt checkout regression: provenance, Windows checkout, shell endings, binary preservation and tamper rejection; no build or restamp performed.
19 +```
20 +
21 +Commands actually run:
22 +
23 +```bash
24 +node scripts/test-prebuilt-checkout.mjs
25 +node scripts/prebuilt-web-check.mjs apps/lifemate
26 +```
27 +
28 +The RED run temporarily removed only the new LF rule and restored its exact bytes in a `finally` block before the GREEN run. The original Git configuration was never changed. Each test uses Git's real `checkout-index`, copies the existing artifact into an isolated temporary checkout, runs the unchanged integrity checker and removes the temporary checkout. Synthetic tamper probes modify only temporary copies.
29 +
30 +Root policy `* text=auto eol=lf` preserves text endings under Windows-style `core.autocrlf=true` and leaves binary bytes intact. Backup/restore/local-deploy shell inputs retain Linux-executable endings. Existing font-license whitespace rules are preserved. The recorded artifact is still47 inputs, source digest `1eeb1d833d63331e1a24a322836f8d9bf1f24205267e33286ff3a2349a6eff53`, artifact digest `c6937cc01490dd289d09adc1e84a32824c720cb22d97a470e99e78fabd1cf1b0`, recorded2026-10-09T06:22:16.747Z. Git emulation on Linux is not an actual Windows execution.
31 +
32 +CI is configured to run the regression after the real release web build/postprocessing/provenance step. Execution of that new CI step remains **UNVERIFIED** until a new run produces evidence; the previous successful0.5.1 CI did not include it. The application build/test receipts from [isolation verification](2026-10-09-isolation-verification.md) remain historical evidence for the unchanged application source.
33 +
34 +## Actual TLS regression and real local smoke
35 +
36 +The reachability script previously inherited `NODE_TLS_REJECT_UNAUTHORIZED=0`. A specialist reproduced the problem with an actual loopback HTTPS server and an untrusted temporary CA: the old script reported `exit=0, TLS=PASS`. Node22.23.3 baseline suite was RED with3 passes/2 failures. This was not a successful trust check; it demonstrated a false positive. No public endpoint was contacted by that regression.
37 +
38 +The fix sets `rejectUnauthorized:true` for every request, captures `socket.authorized` in the response callback and requires strict `true` before reporting TLS PASS. Root independently ran the permanent suite on Node22.23.3:
39 +
40 +```text
41 +ok1 trusted local CA and matching hostname pass read-only smoke without TLS-disable
42 +ok2 untrusted CA fails before opted-in synthetic auth or writes
43 +ok3 inherited NODE_TLS_REJECT_UNAUTHORIZED=0 cannot produce a false TLS PASS
44 +Local untrusted fixture: exit=1, TLS=not recorded
45 +ok4 inherited TLS-disable cannot reach opted-in synthetic auth or writes
46 +ok5 trusted CA with hostname mismatch fails before opted-in synthetic auth or writes
47 +tests5; pass5; fail0; cancelled0; skipped0; todo0
48 +```
49 +
50 +```bash
51 +node --test scripts/test-reachability-smoke.mjs
52 +ROOT_CA_FILE=/path/to/public-local-ca.pem node scripts/reachability-smoke.mjs https://127.0.0.1:8443
53 +```
54 +
55 +Root also executed the second command against the existing real synthetic Compose stack at **2026-10-09T07:43:47.247Z**, with its normal public CA and no TLS-disable setting. **5 checks PASS:** TLS chain/hostname, database health, PWA HTML/manifest, same-origin/no-store runtime config and anonymous planner401. API write round-trip was intentionally not opted into in this run and remains **UNVERIFIED for this run**; prior write acceptance is separately recorded. No new task/session or credential was created. The local regression's CA/private keys are generated outside the repository and removed by teardown; no private key is tracked. [Real local read-only receipt](evidence/stage0-readiness-https-2026-10-09.json).
56 +
57 +CI is configured to run the5 TLS tests on Node22. Execution of that new CI step is **UNVERIFIED** until a new run reports it. Actual device TLS trust and Iran reachability are separate pending gates.
58 +
59 +## Public-domain read-only checks
60 +
61 +At07:32:31UTC, actual public DNS and static HTTPS GET observed the old0.1.0/build1 on `app.lifeguide.ir`, with `/config.json` returning HTML200. [Sanitized receipt and precise limits](2026-10-09-public-domain.md). A separate parse/assertion run passed5/5 checks on that recorded response set; those assertions are snapshot consistency checks, not additional network/device acceptance.
62 +
63 +No public login/write, live server/CDN/DNS change, new account/payment, merge, release, real-data migration or owner-PC access occurred.
docs/audits/evidence/public-domain-2026-10-09.json new
+109
@@ -0,0 +1,109 @@
1 +{
2 + "at": "2026-10-09T07:32:31.409017+00:00",
3 + "mode": "read-only public DNS and static HTTP GET; no credentials or write requests",
4 + "checks": {
5 + "app_a": {
6 + "url": "https://dns.google/resolve?name=app.lifeguide.ir&type=A",
7 + "http_status": 200,
8 + "content_type": "application/json; charset=UTF-8",
9 + "final_url": "https://dns.google/resolve?name=app.lifeguide.ir&type=A",
10 + "body": {
11 + "Status": 0,
12 + "TC": false,
13 + "RD": true,
14 + "RA": true,
15 + "AD": false,
16 + "CD": false,
17 + "Question": [
18 + {
19 + "name": "app.lifeguide.ir.",
20 + "type": 1
21 + }
22 + ],
23 + "Answer": [
24 + {
25 + "name": "app.lifeguide.ir.",
26 + "type": 1,
27 + "TTL": 180,
28 + "data": "185.143.234.132"
29 + },
30 + {
31 + "name": "app.lifeguide.ir.",
32 + "type": 1,
33 + "TTL": 180,
34 + "data": "185.143.233.132"
35 + }
36 + ],
37 + "Comment": "Response from 185.143.232.253."
38 + }
39 + },
40 + "nameservers": {
41 + "url": "https://dns.google/resolve?name=lifeguide.ir&type=NS",
42 + "http_status": 200,
43 + "content_type": "application/json; charset=UTF-8",
44 + "final_url": "https://dns.google/resolve?name=lifeguide.ir&type=NS",
45 + "body": {
46 + "Status": 0,
47 + "TC": false,
48 + "RD": true,
49 + "RA": true,
50 + "AD": false,
51 + "CD": false,
52 + "Question": [
53 + {
54 + "name": "lifeguide.ir.",
55 + "type": 2
56 + }
57 + ],
58 + "Answer": [
59 + {
60 + "name": "lifeguide.ir.",
61 + "type": 2,
62 + "TTL": 7200,
63 + "data": "d.ns.arvancdn.ir."
64 + },
65 + {
66 + "name": "lifeguide.ir.",
67 + "type": 2,
68 + "TTL": 7200,
69 + "data": "s.ns.arvancdn.ir."
70 + }
71 + ],
72 + "Comment": "Response from 185.143.232.253."
73 + }
74 + },
75 + "version": {
76 + "url": "https://app.lifeguide.ir/version.json",
77 + "http_status": 200,
78 + "content_type": "application/json",
79 + "final_url": "https://app.lifeguide.ir/version.json",
80 + "body": {
81 + "app_name": "lifemate",
82 + "version": "0.1.0",
83 + "build_number": "1",
84 + "package_name": "lifemate"
85 + }
86 + },
87 + "index": {
88 + "url": "https://app.lifeguide.ir/",
89 + "http_status": 200,
90 + "content_type": "text/html",
91 + "final_url": "https://app.lifeguide.ir/",
92 + "title": "LifeMate",
93 + "json_response": false
94 + },
95 + "runtime_config": {
96 + "url": "https://app.lifeguide.ir/config.json",
97 + "http_status": 200,
98 + "content_type": "text/html",
99 + "final_url": "https://app.lifeguide.ir/config.json",
100 + "title": "LifeMate",
101 + "json_response": false
102 + }
103 + },
104 + "limits": [
105 + "Origin hostname is not visible through CDN DNS; Railway target is supported by owner-provided panel screenshot, not an inferred exact hostname.",
106 + "Iran VPN-free reachability and physical device acceptance UNVERIFIED.",
107 + "No live configuration or deployment changes performed."
108 + ]
109 +}
docs/audits/evidence/stage0-readiness-https-2026-10-09.json new
+36
@@ -0,0 +1,36 @@
1 +{
2 + "origin": "https://127.0.0.1:8443",
3 + "at": "2026-10-09T07:43:47.247Z",
4 + "results": [
5 + {
6 + "name": "TLS",
7 + "status": "PASS",
8 + "detail": "Certificate chain and hostname verified by Node TLS"
9 + },
10 + {
11 + "name": "/health",
12 + "status": "PASS",
13 + "detail": "HTTP 200 and database-backed status ok"
14 + },
15 + {
16 + "name": "PWA",
17 + "status": "PASS",
18 + "detail": "HTTPS HTML and standalone manifest loaded; Safari installation UNVERIFIED"
19 + },
20 + {
21 + "name": "runtime config",
22 + "status": "PASS",
23 + "detail": "Same-origin /api; no-store"
24 + },
25 + {
26 + "name": "API auth boundary",
27 + "status": "PASS",
28 + "detail": "Anonymous planner request rejected with 401"
29 + },
30 + {
31 + "name": "API round-trip",
32 + "status": "UNVERIFIED",
33 + "detail": "Set SMOKE_ALLOW_SYNTHETIC_WRITE=yes and synthetic SMOKE_EMAIL/SMOKE_PASSWORD to run"
34 + }
35 + ]
36 +}
docs/operations/HANDOVER_0.5.1.md
+6 -2
@@ -1,10 +1,14 @@
1 # LifeGuide0.5.1 — اقدام‌های دستی مالک
2
3 -کد آزموده‌شده `7c4ca78` و خروجی‌های [run37893432018](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) هستند. commit تحویل بعدی فقط مستندات است. نصب Windows/Android/Safari و دسترسی بدون VPN ایران **UNVERIFIED**؛ فقط حساب‌های ساختگی برای پذیرش استفاده شوند. هیچ گام این صفحه توسط تیم روی سرور زنده انجام نشده است.
3 +کد برنامهٔ آزموده‌شده `7c4ca78` و خروجی‌های [run37893432018](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) هستند. commit `6e9d27d` فقط مستندات تحویل بود؛ [بستهٔ آماده‌سازی بعدی](../audits/2026-10-09-stage0-readiness.md) policy checkout، بررسی سخت‌گیرانهٔ TLS ابزار اتصال و آزمون‌های مربوط را اضافه می‌کند و کد برنامه/خروجی build را تغییر نمی‌دهد. نصب Windows/Android/Safari و دسترسی بدون VPN ایران **UNVERIFIED**؛ فقط حساب‌های ساختگی برای پذیرش استفاده شوند. هیچ گام این صفحه توسط تیم روی سرور زنده انجام نشده است.
4 +
5 +اگر اکنون به رایانه دسترسی ندارید، **فعلاً اقدامی لازم نیست**؛ گام‌های زیر برای زمان دسترسی به PC/LAN هستند. دامنهٔ `app.lifeguide.ir` در [بررسی خواندنی 2026-10-09](../audits/2026-10-09-public-domain.md) هنوز نسخهٔ عمومی قدیمی `0.1.0`/build `1` را نشان داد؛ لینک آزمون بستهٔ جدید نیست. تنظیمات DNS/آروان را تا آماده‌شدن مقصد جایگزین و تأیید صریح انتقال حفظ کنید.
6
7 ## 1. Stage0 رایگان؛ نیازی به انتخاب VPS فعلی نیست
8
7 -checkout شاخه `feat/online-family-stage0` را در پوشهٔ آزمون مستقل آماده کنید. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600220473) را همراه `build-provenance.json` در `apps/lifemate/build/web` استخراج کنید. Docker Desktop/WSL2، Node22 و mkcert لازم‌اند. IP نمونه را با IP واقعی PC عوض کنید؛ port-forward/tunnel/DNS عمومی نسازید.
9 +checkout شاخه `feat/online-family-stage0` را در پوشهٔ آزمون مستقل و تازه آماده کنید؛ فایل‌های ویرایش‌شدهٔ checkout قدیمی را با reset/force حذف نکنید. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600220473) را همراه `build-provenance.json` در `apps/lifemate/build/web` استخراج کنید. Docker Desktop/WSL2، Node22 و mkcert لازم‌اند. IP نمونه را با IP واقعی PC عوض کنید؛ port-forward/tunnel/DNS عمومی نسازید.
10 +
11 +`.gitattributes` ورودی‌های متنی را با LF و فایل‌های باینری را بدون تغییر نگه می‌دارد؛ آزمون checkout واقعیِ Git با `core.autocrlf=true` در محیط تیم انجام می‌شود و اجرای واقعی Windows را جایگزین نمی‌کند. پس از checkout جدید، خطای checker به‌معنی ورودی/خروجی نامنطبق است؛ فایل provenance را دوباره stamp نکنید مگر build واقعیِ همان منبع اجرا شده باشد.
12
13 description فعلی GitHub هنوز نام قدیمی دارد؛ اگر مالک metadata را اصلاح کرد، فقط description به LifeGuide تغییر کند، نه نام/URL مخزن. این تنظیم خارجی توسط تیم تغییر نکرده است.
14