@davoodmehraban89 / LifeMate / commits / fccc10e
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: deliver verified learning browser and CI evidence [skip ci]

Quinn White committed Oct 11, 2026 at 15:02 UTC fccc10e9604ae0c6b6b4aa8949b443fb90ca4b1c
14 files changed +1696 -15
PROJECT_STATE.md
+5 -1
@@ -6,7 +6,7 @@ Updated: 2026-10-11. Backend version: **0.6.0**. Branch: **feat/aparat-learning-
6
7 ## Current education packet —0.6.0
8
9 -This feature branch preserves the online0.5.1 base and Feature1. 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.
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](docs/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](docs/operations/LEARNING_CONTENT.md), [evidence/acceptance limits](docs/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
@@ -14,6 +14,10 @@ Feedback is voluntarily written chosen text; no private chat/health extraction,
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](docs/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](docs/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](docs/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
README.md
+2 -2
@@ -8,7 +8,7 @@
8
9 کتابخانه پایه ۱ تا ۱۲ و سه رشته نظری، انتخاب پایه/رشته/سال، پیشرفت شخصی پایدار، پیوند درس به برنامه و تایمر، سنجش پاسخ در سرور با توضیح و مرور، و بازخورد با رضایت صریح اضافه شده‌اند. زیرساخت سنجش با سؤال ساختگی آزموده می‌شود؛ بانک سؤال واقعی هنوز منتشر نشده است.
10
11 -۲۱۷ کتاب، ۱۳۷۳ بخش و ۱۳۴۸ منبع ویدیویی برای بررسی فهرست شده‌اند؛ **تعداد ویدیوهای واقعی با بازبینی کامل و منتشرشده صفر است**. این اعداد پوشش کامل آموزش نیستند. چاپ جاری ۶۲ کتاب ابتدایی از صفحات رسمی بررسی شده؛ سال چاپ ۱۵۵ کتاب متوسطه هنوز تأیید نشده است. کاردانش/فنی‌وحرفه‌ای و بانک کامل امتحان پیاده‌سازی نشده‌اند. [روند بررسی و انتشار محتوا](docs/operations/LEARNING_CONTENT.md) و [شواهد این بسته](docs/audits/2026-10-11-learning-verification.md).
11 +۲۱۷ کتاب، ۱۳۷۳ بخش و ۱۳۴۸ منبع ویدیویی برای بررسی فهرست شده‌اند؛ **تعداد ویدیوهای واقعی با بازبینی کامل و منتشرشده صفر است**. این اعداد پوشش کامل آموزش نیستند. چاپ جاری ۶۲ کتاب ابتدایی از صفحات رسمی بررسی شده؛ سال چاپ ۱۵۵ کتاب متوسطه هنوز تأیید نشده است. کاردانش/فنی‌وحرفه‌ای و بانک کامل امتحان پیاده‌سازی نشده‌اند. [روند بررسی و انتشار محتوا](docs/operations/LEARNING_CONTENT.md)، [شواهد این بسته](docs/audits/2026-10-11-learning-verification.md) و [تحویل0.6.0](docs/operations/HANDOVER_0.6.0.md). تغییرات در [PR پیش‌نویس۱۱](https://github.com/davoodmehraban89/LifeMate/pull/11) هستند؛ main ادغام نشده است.
12
13 APK نصب تازه آدرس HTTPS **API فعال مشترک** را از مدیر سرویس می‌خواهد؛ ذخیره آدرس، تست اتصال نیست. [بررسی صفحه اتصال](docs/audits/2026-10-11-apk-connection.md). دامنه عمومی بررسی‌شده هنوز API سازگار این بسته را ارائه نمی‌کند؛ URL حدسی یا رمز/توکن در این صفحه وارد نکنید.
14
@@ -65,7 +65,7 @@ PostgreSQL مرجع رکوردها و مجوزهاست؛ کش/صف آفلاین
65
66 API، مهاجرت و backup از سه credential مستقل PostgreSQL استفاده می‌کنند؛ API مدیر یا مالک دیتابیس نیست. برای نصب تازه و انتقال صریح مالکیت دیتابیس موجود، [راهنمای نقش‌های دیتابیس](docs/operations/DATABASE_ROLES.md) را دنبال کنید. تغییر مجوز روی میزبان زنده به تأیید جداگانه نیاز دارد.
67
68 -- [اقدام‌های دقیق مالک برای0.5.1](docs/operations/HANDOVER_0.5.1.md)
68 +- [اقدام‌های دقیق مالک برای0.6.0](docs/operations/HANDOVER_0.6.0.md)؛ [تحویل تاریخی0.5.1](docs/operations/HANDOVER_0.5.1.md)
69 - [وضعیت و شواهد](PROJECT_STATE.md)، [تغییرات](CHANGELOG.md)، [تحلیل شکاف main](docs/audits/2026-10-08-online-gap-analysis.md)
70 - [ماتریس پذیرش A–H، خروجی‌ها و artifactها](docs/audits/2026-10-08-online-acceptance.md)، [HTTPS و مرورگر واقعی محلی](docs/audits/2026-10-08-stage0-verification.md)
71 - [تصمیم میزبانی و تحقیق](docs/decisions/0009-provider-neutral-hosting.md)، [نام و هویت انتشار](docs/decisions/0010-lifeguide-naming.md)
docs/audits/2026-10-08-naming.md
+38 -7
@@ -19,11 +19,14 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
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-11. Backend version: **0.6.0**. Branch: **feat/aparat-learning-library**, stacked on **feat/online-family-stage0**, based on main 'abdc9d9d032bc6746c8390b902a2e52d82991530'. Repository remains 'davoodmeh |
21 | PROJECT_STATE.md:5 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | **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 [hi |
22 -| PROJECT_STATE.md:42 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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 |
23 -| PROJECT_STATE.md:44 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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://g |
24 -| PROJECT_STATE.md:46 | 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 -| PROJECT_STATE.md:64 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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 |
22 +| PROJECT_STATE.md:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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 migration |
23 +| PROJECT_STATE.md:19 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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 |
24 +| PROJECT_STATE.md:46 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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 |
25 +| PROJECT_STATE.md:48 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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://g |
26 +| PROJECT_STATE.md:50 | 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 |
27 +| PROJECT_STATE.md:68 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 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 |
28 | 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 تغییر نمی‌کنند. |
29 +| README.md:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | ۲۱۷ کتاب، ۱۳۷۳ بخش و ۱۳۴۸ منبع ویدیویی برای بررسی فهرست شده‌اند؛ **تعداد ویدیوهای واقعی با بازبینی کامل و منتشرشده صفر است**. این اعداد پوشش کامل آموزش نیستند. چاپ جاری ۶۲ کتاب ابتدایی از صفحات رسمی بررسی شده؛ سال چاپ ۱۵ |
30 | README.md:17 | 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 اس |
31 | README.md:22 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
32 | README.md:48 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | cd apps/lifemate |
@@ -121,8 +124,9 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
124 | backend/tests/auth_delivery.test.js:378 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const active = jwt.verify(login.body.accessToken, jwtSecret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
125 | backend/tests/auth_delivery.test.js:379 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const expiredAccess = jwt.sign({ sub: active.sub, sid: active.sid, aud: 'lifemate-api' }, jwtSecret, { issuer: 'lifemate', expiresIn: -1 }); |
126 | backend/tests/learning_assessment.test.js:39 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return{id,token:jwt.sign({sub:id,sid,aud:'lifemate-api'},process.env.JWT_SECRET,{issuer:'lifemate',expiresIn:'15m'})};} |
124 -| backend/tests/learning_feedback.test.js:119 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return { id, sid, token: jwt.sign({ sub: id, sid, aud: 'lifemate-api' }, process.env.JWT_SECRET, |
125 -| backend/tests/learning_feedback.test.js:120 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | { issuer: 'lifemate', expiresIn: '15m' }) }; |
127 +| backend/tests/learning_feedback.test.js:98 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.ok(location.pathname.includes('test') \|\| location.pathname === '/lifemate_ci' \|\| |
128 +| backend/tests/learning_feedback.test.js:123 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return { id, sid, token: jwt.sign({ sub: id, sid, aud: 'lifemate-api' }, process.env.JWT_SECRET, |
129 +| backend/tests/learning_feedback.test.js:124 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | { issuer: 'lifemate', expiresIn: '15m' }) }; |
130 | backend/tests/learning_library.test.js:16 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | async function actor(){const id=crypto.randomUUID(),sid=crypto.randomUUID();await pool.query('insert into app_user(id,identity_subject,email_normalized,email_verified_at) values($1,$2,$3,now())',[id,'learning:${id}','${i |
131 | backend/tests/planner_sync.test.js:26 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return { id, token: jwt.sign({ sub: id, sid, aud: 'lifemate-api' }, secret, { issuer: 'lifemate', expiresIn: '15m' }) }; |
132 | backend/tests/privacy_regression.test.js:69 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return { id, token: jwt.sign({ sub: id, sid, aud: 'lifemate-api' }, secret, { issuer: 'lifemate', expiresIn: '15m' }) }; |
@@ -179,7 +183,29 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
183 | docs/audits/2026-10-11-apk-connection.md:19 | historical — keep | snapshot/previous decision; not current deployment evidence | \| '/api/health' \| HTTP 200 با 'text/html' و عنوان 'LifeMate'؛ پاسخ سلامت JSON نیست \| |
184 | docs/audits/2026-10-11-apk-connection.md:20 | historical — keep | snapshot/previous decision; not current deployment evidence | \| '/api/ready' \| HTTP 200 با 'text/html' و عنوان 'LifeMate'؛ پاسخ آمادگی JSON نیست \| |
185 | docs/audits/2026-10-11-apk-connection.md:35 | historical — keep | snapshot/previous decision; not current deployment evidence | اجرا با Flutter 3.47.6 در پوشه 'apps/lifemate': |
186 +| docs/audits/2026-10-11-apk-connection.md:49 | historical — keep | snapshot/previous decision; not current deployment evidence | پس از این آزمون‌های هدفمند، بسته ادغام واقعاً۱۱۲ آزمون Flutter و ساخت APK0.6.0/code5 را در [CI اولیه](https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509) اجرا کرد؛ job Flutter موفق ولی کل CI به علت هشت |
187 +| docs/audits/2026-10-11-learning-verification.md:41 | historical — keep | snapshot/previous decision; not current deployment evidence | - [CI اولیه38113435509](https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509) در backend ناموفق بود:۱۴۳ موفق،۸ لغوشده؛ محافظ fixture نام موجود دیتابیس ساختگی CI را نمی‌شناخت. [رسید اولیه](evidence/ci-lea |
188 +| docs/audits/2026-10-11-learning-verification.md:53 | historical — keep | snapshot/previous decision; not current deployment evidence | CI اصلاح‌شده روی source **'b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f'** و PR merge 'df2bb6e685e1868d3fe05d28cdcec24c38990e7b': [run38148788571](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571)، **هر |
189 +| docs/audits/2026-10-11-learning-verification.md:55 | historical — keep | snapshot/previous decision; not current deployment evidence | - [APK آزمایشی داخل ZIP](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986)؛ نام فایل 'LifeGuide-debug.apk'. SHA256 فایل APK: 'b96a8e168c1fe804dad12899df8a882a6a23de72e209aa585c3 |
190 +| docs/audits/2026-10-11-learning-verification.md:56 | historical — keep | snapshot/previous decision; not current deployment evidence | - [وب همین منبع با provenance](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327). Artifactها در زمان بررسی منقضی نبودند؛ دانلود GitHub نیاز به دسترسی حساب مخزن دارد. لینک دانلود |
191 | 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", |
192 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:2 | historical — keep | snapshot/previous decision; not current deployment evidence | "repository": "davoodmehraban89/LifeMate", |
193 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:7 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571", |
194 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:25 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/job/114497654492", |
195 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:190 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/job/114497654705", |
196 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:295 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/job/114497654712", |
197 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:574 | historical — keep | snapshot/previous decision; not current deployment evidence | "localManifestCommand": "python3 apps/lifemate/tool/check_apk_manifest.py /workspace/scratch/LifeGuide-debug.apk --mode debug", |
198 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:598 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327", |
199 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:609 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986", |
200 +| docs/audits/evidence/ci-learning-final-2026-10-11.json:633 | historical — keep | snapshot/previous decision; not current deployment evidence | "cause": "Feedback fixture database-name guard rejected the existing loopback lifemate_ci fixture; corrected and regression-tested in b3a62b76.", |
201 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:2 | historical — keep | snapshot/previous decision; not current deployment evidence | "repository": "davoodmehraban89/LifeMate", |
202 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:7 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509", |
203 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:25 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/job/114393521008", |
204 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:130 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/job/114393521136", |
205 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:175 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/job/114393521154", |
206 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:346 | historical — keep | snapshot/previous decision; not current deployment evidence | "context": "The disposable CI PostgreSQL database is named lifemate_ci; the newly added feedback fixture guard did not recognize that established CI database name.", |
207 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:523 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/artifacts/11692890454", |
208 +| docs/audits/evidence/ci-learning-initial-2026-10-11.json:534 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/artifacts/11692816646", |
209 | docs/audits/evidence/ci-stage0-readiness-2026-10-09.json:2 | historical — keep | snapshot/previous decision; not current deployment evidence | "repository": "davoodmehraban89/LifeMate", |
210 | docs/audits/evidence/ci-stage0-readiness-2026-10-09.json:7 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/37900944165", |
211 | docs/audits/evidence/ci-stage0-readiness-2026-10-09.json:23 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/37900944165/job/113723098892", |
@@ -217,8 +243,12 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
243 | 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 |
244 | 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 |
245 | 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/37900944165/artifacts/11602957035) داخل ZIP فقط آزمایشی و با گواهی debug است. پس از استخراج، hash فایل را با [receipt فعلی](../audits/eviden |
246 +| docs/operations/HANDOVER_0.6.0.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | شاخه 'feat/aparat-learning-library' و [PR پیش‌نویس ۱۱](https://github.com/davoodmehraban89/LifeMate/pull/11) روی بسته آنلاین قبلی قرار دارند؛ main ادغام نشده است. [شواهد اجرا و محدودیت‌ها](../audits/2026-10-11-learning-v |
247 +| docs/operations/HANDOVER_0.6.0.md:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 1. یک checkout مستقل از شاخه آموزش آماده کنید. تغییرات پوشه قبلی را با reset یا force حذف نکنید. خروجی 'LifeGuide-web' همان اجرای CI را از [صفحه ساخت اصلاح‌شده](https://github.com/davoodmehraban89/LifeMate/actions/runs/3 |
248 +| docs/operations/HANDOVER_0.6.0.md:19 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
249 +| docs/operations/HANDOVER_0.6.0.md:33 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | خروجی [APK اصلاح‌شده](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986) با نام 'LifeGuide-debug.apk' داخل ZIP، **آزمایشی** است. شناسه نهایی 'ir.lifeguide.app'، نسخه 0.6.0 و code |
250 | 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 را مطابق سیاست نشس |
221 -| 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 |
251 +| docs/operations/STAGE0.md:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 2. ابتدا خروجی بررسی‌شده وب را طبق بخش «بسته‌بندی PWA» آماده کنید: برای شاخه آموزش0.6.0، artifact کامل [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327) را همراه |
252 | 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 |
253 | docs/operations/STAGE0.md:31 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Set-Location apps/lifemate |
254 | docs/operations/STAGE0.md:43 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Set-Location apps/lifemate |
@@ -276,4 +306,5 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
306 | 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 |
307 | 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 |
308 | 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'); |
309 +| scripts/test-learning-browser.cjs:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const {chromium} = require('../apps/lifemate/node_modules/playwright'); |
310 | 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-11-apk-connection.md
+1 -1
@@ -46,7 +46,7 @@ flutter analyze lib/endpoint_settings.dart test/endpoint_settings_test.dart
46 - `/workspace/scratch/endpoint-onboarding-red.log`
47 - `/workspace/scratch/endpoint-onboarding-green.log`
48
49 -ساخت APK جدید برای این تغییر، نصب Android، حفظ تنظیم پس از restart واقعی دستگاه، اتصال عمومی و پذیرش iPhone/Safari در این بسته **UNVERIFIED** هستند. اجرای کامل مجموعه Flutter و ساخت/CI بر عهده بسته ادغام هماهنگ‌کننده است و این گزارش موفقیت آن‌ها را ادعا نمی‌کند.
49 +پس از این آزمون‌های هدفمند، بسته ادغام واقعاً۱۱۲ آزمون Flutter و ساخت APK0.6.0/code5 را در [CI اولیه](https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509) اجرا کرد؛ job Flutter موفق ولی کل CI به علت هشت آزمون backend لغوشده ناموفق بود. [رسید تفکیک‌شده](evidence/ci-learning-initial-2026-10-11.json) و [گزارش ادغام](2026-10-11-learning-verification.md) نتیجه اصلاح بعدی را ثبت می‌کنند. نصب Android، حفظ تنظیم پس از restart واقعی دستگاه، اتصال عمومی و پذیرش iPhone/Safari همچنان **UNVERIFIED** هستند؛ ساخت فایل جای پذیرش دستگاه نیست.
50
51 ## اقدام مالک
52
docs/audits/2026-10-11-learning-verification.md
+18 -1
@@ -19,9 +19,18 @@
19 | TLS rejection regression |۵/۵، skip صفر | ورودی insecure نمی‌تواند PASS جعلی بسازد |
20 | Compose تازه واقعی |Postgres/API/nginxTLS/backup healthy؛۲۱۷ کتاب/۱۳۷۳ بخش/۱۳۴۸ ویدیو draft | کاتالوگ داده پژوهش؛۰ ویدیو/۰ بانک سؤال واقعی منتشرشده |
21 | HTTPS واقعی محلی |گواهی قبلی و CA منقضی رد شدند؛ با CA آزمایشی تازه TLS+health+PWA+config+auth موفق | CA عمومی به آزمون داده شد؛ پذیرش اعتماد دستگاه مالک UNVERIFIED |
22 +| مرورگر با API/DB واقعی و HTTPS معتبر |۱۰/۱۰ بررسی؛۵۵ درخواست؛۰ خارجی/خطا؛ ورود+پایه+پیشرفت+withdraw+restart موفق | Chromium با داده ساختگی و کنترل semantic؛ لمس دستگاه/Safari و دسترس‌پذیری کامل UNVERIFIED |
23
24 خروجی ماشین‌خوان: [core receipt](evidence/learning-core-2026-10-11.json). لاگ‌های واقعی در `/workspace/scratch/learning-*`؛ هیچ فایل env/key/token/password در مخزن نیست. نتیجه scan فایل‌های tracked محدودیت ابزار را دارد.
25
26 +## پذیرش مرورگر واقعی محلی
27 +
28 +`scripts/test-learning-browser.cjs` واقعاً روی Compose جدا، HTTPS مورد اعتماد عادی و PWA ساخته‌شده اجرا شد؛ هیچ پاسخ API intercept، اعتبارسنجی TLS خاموش یا state برنامه تزریق نشد. [رسید۱۰ بررسی](evidence/learning-browser-2026-10-11.json)، [تصویر پیشرفت](evidence/learning-browser-2026-10-11-progress.png) و [تصویر پس از بازکردن دوباره](evidence/learning-browser-2026-10-11.png). هماهنگ‌کننده هر دو تصویر را دید: وضعیت «در حال یادگیری» و همان زمان ثبت سرور پس از restart باقی مانده‌اند. API مستقل و SQL نیز یک رکورد با version1/source=self_reported را تأیید کردند؛ refresh نشست HTTP200 بود.
29 +
30 +پایه۱/چاپ۱۴۰۵–۱۴۰۶ از UI ذخیره و API مستقل خوانده شد. بازکردن درس پیشرفت خودکار نساخت؛ ویدیو draft نمایش داده نشد و بانک سؤال `{assessment:null,reason:review_pending}` ماند. بازخورد بدون رضایت هیچ POST نداشت؛ با رضایت HTTP201 گرفت. پس‌گرفتن HTTP204 و خواندن مستقل API/SQL، summary=NULL و consent=false را تأیید کردند. runtime واقعی۵۵ درخواست داشت، همه همان مبدأ؛ CanvasKit و فونت‌ها محلی و خطا صفر بود.
31 +
32 +حدود این جانشین: به علت transformهای Flutter/RTL، کنترل‌های semantic با DOM click فعال شدند و متن با صفحه‌کلید وارد شد؛ آزمون لمس/اشاره‌گر واقعی نیست. متن پویا پیشرفت/زمان در تصویر دیده می‌شود ولی پس از تغییر در ARIA snapshot نبود؛ **محدودیت شناخته‌شده دسترس‌پذیری** است و این آزمون آن را اصلاح یا certify نمی‌کند. اجراهای قبلی harness روی انتظار ARIA یا fill بدون commit متن متوقف شدند؛ به‌عنوان PASS حساب نشده‌اند. اجرای نهایی با fixture تازه، متن keyboard/Tab و شواهد مستقل موفق شد. بستن/بازکردن Chromium پذیرش Android/Safari یا cold-start کاملاً آفلاین نیست.
33 +
34 ## اصلاح‌های بازتولیدشده
35
36 - دروازه انتشار با `free_access=NULL` پیش‌تر دور می‌خورد؛ به true صریح و بازبینی کامل نسخه‌دار نیاز دارد. اصلاح چاپ/منبع کتاب یا بخش، خواندن/شمارش ویدیوی دارای بازبینی قدیمی را متوقف می‌کند.
@@ -29,6 +38,7 @@
38 - GET دیررس بازخورد پس از DELETE می‌توانست خلاصه پس‌گرفته‌شده را دوباره نمایش دهد؛ widget RED بازتولید کرد، request epoch و snapshot بدنه ارسال اصلاح شدند، GREEN موفق.
39 - اضافه‌شدن بخش درس/متن اتصال، چهار تست UI را در viewport۶۰۰پیکسل یا label قبلی شکست داد. تست‌ها اکنون منوی واقعاً scrollشده را لمس می‌کنند و بعد از حرکت settle می‌شوند؛ assertionهای حفظ صف/ورود/عدم تکمیل خودکار تضعیف نشده‌اند.
40 - fixtureهای تست از داده واقعی جدا هستند؛ خطای serviceEnv در مرحله ادغام رفع شد. اجرای نهایی کامل۱۵۱ backend و۱۱۲ Flutter صفر لغو/شکست دارد؛ اجراهای شکست‌خورده موفق معرفی نشده‌اند.
41 +- [CI اولیه38113435509](https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509) در backend ناموفق بود:۱۴۳ موفق،۸ لغوشده؛ محافظ fixture نام موجود دیتابیس ساختگی CI را نمی‌شناخت. [رسید اولیه](evidence/ci-learning-initial-2026-10-11.json) ساخت موفق وب/APK را جدا از شکست کل اجرا ثبت می‌کند. هماهنگ‌کننده همین خطا را روی دیتابیس محلی با نام دقیق CI بازتولید کرد؛ بعد از مجازکردن همان نام مشخص و حفظ شرط میزبان محلی، آزمون هدفمند۱۰/۱۰ و مجموعه کامل۱۵۱/۱۵۱ با صفر لغو/شکست موفق شد. این تغییر فقط آزمون است و احراز هویت محصول را تغییر نمی‌دهد. لاگ‌های RED/GREEN: `/workspace/scratch/learning-ci-guard-red.log`، `learning-ci-guard-green.log` و `learning-ci-guard-full-green.log`.
42
43 ## آموزش هنوز نیازمند بررسی محتواست
44
@@ -40,4 +50,11 @@
50
51 علت درخواست URL و بررسی دامنه در [connection audit](2026-10-11-apk-connection.md). APK نصب‌شده بدون API مشترک فعال امکان ورود آنلاین ندارد؛ دامنه عمومی مسیرهای بررسی‌شده را به HTML قدیمی هدایت می‌کند. URL حدسی وارد نکنید. اکنون با نبود PC اقدامی لازم نیست؛ پس از دسترسی، [Stage0](../operations/STAGE0.md) و [بررسی محتوا](../operations/LEARNING_CONTENT.md) را با داده ساختگی دنبال کنید. ورود نشانی کامل HTTPS/API از مدیر و اعتماد گواهی LAN لازم است.
52
43 -استقرار/DNS/انتقال داده واقعی/merge/انتشار عمومی انجام نشده‌اند. APK تازه/CI این feature تا ثبت رسید مستقل UNVERIFIED؛ artifact0.5.1 تاریخی با کد جدید سازگار نیست. کلید release، میزبان، SMS و پذیرش ایران به تصمیم/اقدام مالک و مجوز تغییر زنده نیاز دارند؛ رمز یا کلید در چت درخواست نمی‌شود.
53 +CI اصلاح‌شده روی source **`b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f`** و PR merge `df2bb6e685e1868d3fe05d28cdcec24c38990e7b`: [run38148788571](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571)، **هر سه job SUCCESS**. [رسید نهایی](evidence/ci-learning-final-2026-10-11.json):۱۵۱ backend، خانواده۹ و آموزش۱۵ با credential محدود،۱۵ ledger/checksum و restore؛۱۱۲ Flutter، تحلیل بدون خطا، web build۳۹٫۷ثانیه،۳ Chrome guard و۸ حالت compiled، حفظ صف expiry و checkout موفق. manifest واقعی APK برابر0.6.0/code5/ir.lifeguide.app و امضای Android Debug/v2 معتبر بود. این نتیجه نصب/ارتقای دستگاه، امضای release مالک یا سرویس عمومی را ثابت نمی‌کند.
54 +
55 +- [APK آزمایشی داخل ZIP](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986)؛ نام فایل `LifeGuide-debug.apk`. SHA256 فایل APK: `b96a8e168c1fe804dad12899df8a882a6a23de72e209aa585c3e6f2f1071c5d5`؛ hash ZIP متفاوت و در رسید است.
56 +- [وب همین منبع با provenance](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327). Artifactها در زمان بررسی منقضی نبودند؛ دانلود GitHub نیاز به دسترسی حساب مخزن دارد. لینک دانلود موقت گفتگو جای این مرجع پایدار نیست و تضمین عمر ندارد.
57 +
58 +گواهی debug این build با run تاریخی37900944165 و build اولیه38113435509 متفاوت است؛ نصب‌شده مالک مستقلاً بررسی نشده و سازگاری upgrade آن UNVERIFIED است. حذف برنامه/داده برای حل خطای امضا توصیه نمی‌شود. `LifeGuide.apk` با کلید انتشار مالک ساخته نشده است. پیگیری مستندات و اسکریپت آزمون مرورگر پس از source فوق، ادعای CI جدید برای آخرین HEAD نیست؛ منبع برنامه/build همان source بررسی‌شده باقی می‌ماند.
59 +
60 +استقرار/DNS/انتقال داده واقعی/merge/انتشار عمومی انجام نشده‌اند. artifact0.5.1 تاریخی با کد جدید سازگار نیست. [تحویل0.6.0 و فرمان‌های دقیق مالک](../operations/HANDOVER_0.6.0.md). کلید release، میزبان، SMS و پذیرش ایران به تصمیم/اقدام مالک و مجوز تغییر زنده نیاز دارند؛ رمز یا کلید در چت درخواست نمی‌شود.
docs/audits/evidence/ci-learning-final-2026-10-11.json new
+636
@@ -0,0 +1,636 @@
1 +{
2 + "repository": "davoodmehraban89/LifeMate",
3 + "observedAt": "2026-10-11T15:00:18Z",
4 + "evidenceMethod": "Official GitHub connector read of workflow run, jobs, decoded Flutter/backend logs and artifact metadata; selected sanitized output only. The connector returned a temporary File Service ZIP reference. Normal verified-TLS local download, ZIP/APK SHA-256 comparison and independent binary manifest inspection then ran; no device install or public release occurred.",
5 + "run": {
6 + "id": 38148788571,
7 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571",
8 + "featureHead": "b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f",
9 + "checkedOutPullRequestMerge": "df2bb6e685e1868d3fe05d28cdcec24c38990e7b",
10 + "base": "ee04dd2fac84df731c489e072e924e670257736b",
11 + "branch": "feat/aparat-learning-library",
12 + "pullRequest": 11,
13 + "event": "pull_request",
14 + "runNumber": 229,
15 + "status": "completed",
16 + "conclusion": "success",
17 + "overallGreen": true
18 + },
19 + "jobs": [
20 + {
21 + "id": 114497654492,
22 + "name": "flutter",
23 + "status": "completed",
24 + "conclusion": "success",
25 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/job/114497654492",
26 + "steps": [
27 + {
28 + "name": "Set up job",
29 + "status": "completed",
30 + "conclusion": "success",
31 + "number": 1
32 + },
33 + {
34 + "name": "Run actions/checkout@v4",
35 + "status": "completed",
36 + "conclusion": "success",
37 + "number": 2
38 + },
39 + {
40 + "name": "Run actions/setup-node@v4",
41 + "status": "completed",
42 + "conclusion": "success",
43 + "number": 3
44 + },
45 + {
46 + "name": "Run subosito/flutter-action@v2",
47 + "status": "completed",
48 + "conclusion": "success",
49 + "number": 4
50 + },
51 + {
52 + "name": "Run flutter pub get",
53 + "status": "completed",
54 + "conclusion": "success",
55 + "number": 5
56 + },
57 + {
58 + "name": "Run flutter --version --machine",
59 + "status": "completed",
60 + "conclusion": "success",
61 + "number": 6
62 + },
63 + {
64 + "name": "Run dart format --output=none --set-exit-if-changed lib test",
65 + "status": "completed",
66 + "conclusion": "success",
67 + "number": 7
68 + },
69 + {
70 + "name": "Run flutter analyze",
71 + "status": "completed",
72 + "conclusion": "success",
73 + "number": 8
74 + },
75 + {
76 + "name": "Run flutter test",
77 + "status": "completed",
78 + "conclusion": "success",
79 + "number": 9
80 + },
81 + {
82 + "name": "Run node tool/test_web_bootstrap.mjs",
83 + "status": "completed",
84 + "conclusion": "success",
85 + "number": 10
86 + },
87 + {
88 + "name": "Run flutter build web --release --no-web-resources-cdn --pwa-strategy=none",
89 + "status": "completed",
90 + "conclusion": "success",
91 + "number": 11
92 + },
93 + {
94 + "name": "Run node tool/test_web_bootstrap.mjs",
95 + "status": "completed",
96 + "conclusion": "success",
97 + "number": 12
98 + },
99 + {
100 + "name": "Bundle local resources and reject external runtime services",
101 + "status": "completed",
102 + "conclusion": "success",
103 + "number": 13
104 + },
105 + {
106 + "name": "Check compiled browser requests for local fonts and CanvasKit",
107 + "status": "completed",
108 + "conclusion": "success",
109 + "number": 14
110 + },
111 + {
112 + "name": "Check exclusive web instance before session and cache access",
113 + "status": "completed",
114 + "conclusion": "success",
115 + "number": 15
116 + },
117 + {
118 + "name": "Preserve unsent changes across forced session expiry",
119 + "status": "completed",
120 + "conclusion": "success",
121 + "number": 16
122 + },
123 + {
124 + "name": "Record checked prebuilt web provenance",
125 + "status": "completed",
126 + "conclusion": "success",
127 + "number": 17
128 + },
129 + {
130 + "name": "Verify Windows checkout preserves the checked web artifact",
131 + "status": "completed",
132 + "conclusion": "success",
133 + "number": 18
134 + },
135 + {
136 + "name": "Run actions/upload-artifact@v4",
137 + "status": "completed",
138 + "conclusion": "success",
139 + "number": 19
140 + },
141 + {
142 + "name": "Build test APK (debug certificate; not a release)",
143 + "status": "completed",
144 + "conclusion": "success",
145 + "number": 20
146 + },
147 + {
148 + "name": "Inspect the actual APK manifest and debug signature",
149 + "status": "completed",
150 + "conclusion": "success",
151 + "number": 21
152 + },
153 + {
154 + "name": "Run actions/upload-artifact@v4",
155 + "status": "completed",
156 + "conclusion": "success",
157 + "number": 22
158 + },
159 + {
160 + "name": "Post Run subosito/flutter-action@v2",
161 + "status": "completed",
162 + "conclusion": "success",
163 + "number": 42
164 + },
165 + {
166 + "name": "Post Run actions/setup-node@v4",
167 + "status": "completed",
168 + "conclusion": "success",
169 + "number": 43
170 + },
171 + {
172 + "name": "Post Run actions/checkout@v4",
173 + "status": "completed",
174 + "conclusion": "success",
175 + "number": 44
176 + },
177 + {
178 + "name": "Complete job",
179 + "status": "completed",
180 + "conclusion": "success",
181 + "number": 45
182 + }
183 + ]
184 + },
185 + {
186 + "id": 114497654705,
187 + "name": "backend",
188 + "status": "completed",
189 + "conclusion": "success",
190 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/job/114497654705",
191 + "steps": [
192 + {
193 + "name": "Set up job",
194 + "status": "completed",
195 + "conclusion": "success",
196 + "number": 1
197 + },
198 + {
199 + "name": "Initialize containers",
200 + "status": "completed",
201 + "conclusion": "success",
202 + "number": 2
203 + },
204 + {
205 + "name": "Run actions/checkout@v4",
206 + "status": "completed",
207 + "conclusion": "success",
208 + "number": 3
209 + },
210 + {
211 + "name": "Run actions/setup-node@v4",
212 + "status": "completed",
213 + "conclusion": "success",
214 + "number": 4
215 + },
216 + {
217 + "name": "Verify reachability smoke rejects untrusted TLS",
218 + "status": "completed",
219 + "conclusion": "success",
220 + "number": 5
221 + },
222 + {
223 + "name": "Run npm ci",
224 + "status": "completed",
225 + "conclusion": "success",
226 + "number": 6
227 + },
228 + {
229 + "name": "Apply migrations and verify repeat run",
230 + "status": "completed",
231 + "conclusion": "success",
232 + "number": 7
233 + },
234 + {
235 + "name": "Import checked educational metadata and verify repeat run",
236 + "status": "completed",
237 + "conclusion": "success",
238 + "number": 8
239 + },
240 + {
241 + "name": "SQL authorization matrix",
242 + "status": "completed",
243 + "conclusion": "success",
244 + "number": 9
245 + },
246 + {
247 + "name": "Run npm test && npm run check && npm audit --audit-level=high",
248 + "status": "completed",
249 + "conclusion": "success",
250 + "number": 10
251 + },
252 + {
253 + "name": "Verify isolated database roles and runtime family scenario",
254 + "status": "completed",
255 + "conclusion": "success",
256 + "number": 11
257 + },
258 + {
259 + "name": "Backup and restore synthetic database",
260 + "status": "completed",
261 + "conclusion": "success",
262 + "number": 12
263 + },
264 + {
265 + "name": "Post Run actions/setup-node@v4",
266 + "status": "completed",
267 + "conclusion": "success",
268 + "number": 22
269 + },
270 + {
271 + "name": "Post Run actions/checkout@v4",
272 + "status": "completed",
273 + "conclusion": "success",
274 + "number": 23
275 + },
276 + {
277 + "name": "Stop containers",
278 + "status": "completed",
279 + "conclusion": "success",
280 + "number": 24
281 + },
282 + {
283 + "name": "Complete job",
284 + "status": "completed",
285 + "conclusion": "success",
286 + "number": 25
287 + }
288 + ]
289 + },
290 + {
291 + "id": 114497654712,
292 + "name": "security",
293 + "status": "completed",
294 + "conclusion": "success",
295 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/job/114497654712",
296 + "steps": [
297 + {
298 + "name": "Set up job",
299 + "status": "completed",
300 + "conclusion": "success",
301 + "number": 1
302 + },
303 + {
304 + "name": "Run actions/checkout@v4",
305 + "status": "completed",
306 + "conclusion": "success",
307 + "number": 2
308 + },
309 + {
310 + "name": "Reject tracked credentials and private artifacts",
311 + "status": "completed",
312 + "conclusion": "success",
313 + "number": 3
314 + },
315 + {
316 + "name": "Audit product naming",
317 + "status": "completed",
318 + "conclusion": "success",
319 + "number": 4
320 + },
321 + {
322 + "name": "Post Run actions/checkout@v4",
323 + "status": "completed",
324 + "conclusion": "success",
325 + "number": 8
326 + },
327 + {
328 + "name": "Complete job",
329 + "status": "completed",
330 + "conclusion": "success",
331 + "number": 9
332 + }
333 + ]
334 + }
335 + ],
336 + "observedOutput": {
337 + "backend": {
338 + "tests": 151,
339 + "pass": 151,
340 + "fail": 0,
341 + "cancelled": 0,
342 + "skipped": 0,
343 + "todo": 0,
344 + "durationMs": 16637.462945,
345 + "result": "PASS",
346 + "nodeVersion": "22.23.3",
347 + "fixtureGuard": "Corrected source recognizes the established loopback-only CI fixture name; adversarial fixture guard tests ran."
348 + },
349 + "tlsSmoke": {
350 + "tests": 5,
351 + "pass": 5,
352 + "fail": 0,
353 + "cancelled": 0,
354 + "skipped": 0,
355 + "scope": "Real loopback TLS fixtures, not public server or Iran reachability"
356 + },
357 + "migrations": {
358 + "result": "PASS",
359 + "count": 15,
360 + "applyAndRepeat": true
361 + },
362 + "educationalMetadataImport": {
363 + "result": "PASS",
364 + "importAndRepeat": true,
365 + "books": 217,
366 + "units": 1373,
367 + "videos": 1348,
368 + "publicationStatus": "draft",
369 + "fullyReviewedTeaching": "Not certified by metadata import"
370 + },
371 + "sqlAuthorizationMatrix": {
372 + "result": "PASS",
373 + "schemaFiles": 4
374 + },
375 + "runtimeRolesAndBackupRestore": {
376 + "result": "PASS",
377 + "sourceDeniedChecks": 35,
378 + "restoredDeniedChecks": 35,
379 + "checksumMigrations": 15,
380 + "postgresqlDumpVersion": "16.15",
381 + "runtimeCatalogWritesDenied": true,
382 + "newMigratorTablesDefaultReadOnly": true,
383 + "failClosedPreflight": "Current/other API-owned DB, migrator-owned DB, non-public API-owned schema, backup-owned relation, PUBLIC/direct schema CREATE and auxiliary SECURITY DEFINER all rejected before automatic repair.",
384 + "sourceReceipt": "PASS role acceptance source: fresh checksum migrations + repeat, restrictive SQL capabilities and runtime family HTTP scenario",
385 + "restoreReceipt": "PASS restored checksum ledger entries, migrator ownership/repeat, runtime denial matrix, guardian/private policy and paused-study600seconds",
386 + "dumpRole": "lifeguide_backup",
387 + "restoreRole": "lifeguide_migrator",
388 + "pausedStudySeconds": 600,
389 + "cleanupReceipt": "PASS cleanup: only tagged newly-created role-test databases dropped; application DB preserved",
390 + "existingScripts": "backup.sh and restore.sh also completed; restored migration-ledger count matched source."
391 + },
392 + "flutter": {
393 + "passed": 112,
394 + "receipt": "🎉 112 tests passed."
395 + },
396 + "analyzer": {
397 + "result": "PASS",
398 + "receipt": "No issues found! (ran in 10.2s)"
399 + },
400 + "format": {
401 + "result": "PASS",
402 + "command": "dart format --output=none --set-exit-if-changed lib test"
403 + },
404 + "flutterToolchain": {
405 + "version": "3.47.6",
406 + "revision": "5fc346839b5d0eef006ed8404392afb4dfae428d",
407 + "dartSdkVersion": "3.13.5"
408 + },
409 + "releaseWebBuild": {
410 + "result": "PASS",
411 + "seconds": 39.7,
412 + "command": "flutter build web --release --no-web-resources-cdn --pwa-strategy=none",
413 + "receipt": "✓ Built build/web"
414 + },
415 + "assets": {
416 + "requests": 13,
417 + "externalRequests": 0,
418 + "missingAssets": 0,
419 + "errors": 0,
420 + "fontsLocal": true,
421 + "canvasKitLocal": true,
422 + "scope": "Synthetic HTTPS origin; intercepted compiled artifact responses; real TLS and service-worker acceptance UNVERIFIED"
423 + },
424 + "chromeDartGuards": {
425 + "passed": 3,
426 + "receipt": "00:00 +3: All tests passed!"
427 + },
428 + "bootstrapInstance": {
429 + "caseCount": 8,
430 + "cases": [
431 + "same-origin contention + background ownership + retry denied",
432 + "owner close then blocked-tab retry acquires without erasure",
433 + "independent origin unaffected",
434 + "simultaneous race has one owner; separate browser profile unaffected",
435 + "unsupported Web Locks fails closed",
436 + "actual renderer crash releases lock for a fresh tab",
437 + "history navigation cannot restore an owner while another tab owns",
438 + "synthetic persisted pagehide invalidates; pageshow replaces old engine before re-entry"
439 + ],
440 + "scope": "Real Chromium, instrumented loader, synthetic intercepted HTTPS"
441 + },
442 + "compiledInstance": {
443 + "caseCount": 8,
444 + "cases": [
445 + "same-origin contention + background ownership + retry denied",
446 + "owner close then blocked-tab retry acquires without erasure",
447 + "independent origin unaffected",
448 + "simultaneous race has one owner; separate browser profile unaffected",
449 + "unsupported Web Locks fails closed",
450 + "actual renderer crash releases lock for a fresh tab",
451 + "history navigation cannot restore an owner while another tab owns",
452 + "synthetic persisted pagehide invalidates; pageshow replaces old engine before re-entry"
453 + ],
454 + "scope": "Real Chromium; synthetic intercepted HTTPS; TLS/PWA/Safari/device UNVERIFIED",
455 + "actualBFCacheRestoration": "UNVERIFIED",
456 + "persistedPageshowObserved": false
457 + },
458 + "forcedExpiry": {
459 + "result": "PASS",
460 + "before": {
461 + "sessionPresent": true,
462 + "pending": 1
463 + },
464 + "afterLateResponse": {
465 + "sessionPresent": true,
466 + "pending": 1
467 + },
468 + "afterReopen": {
469 + "sessionPresent": false,
470 + "pending": 1
471 + },
472 + "refreshes": 2,
473 + "exactDurableBytesPreserved": true,
474 + "exactBytesBasis": "Completed test_web_session_expiry.cjs step includes strict originalCache equality; synthetic intercepted refresh and explicit pagehide."
475 + },
476 + "prebuiltProvenance": {
477 + "result": "PASS",
478 + "inputFiles": 57
479 + },
480 + "windowsStyleCheckout": {
481 + "result": "PASS",
482 + "coreAutocrlfModes": [
483 + "false",
484 + "true"
485 + ],
486 + "shellScriptsChecked": 3,
487 + "binaryInputsMatched": 13,
488 + "sourceTamperRejected": true,
489 + "artifactTamperRejected": true,
490 + "buildOrRestampInCheckoutTest": false,
491 + "actualWindows": "UNVERIFIED"
492 + },
493 + "securityJob": {
494 + "result": "PASS",
495 + "retainedNamingOccurrences": 274,
496 + "receipts": [
497 + "Tracked-file credential/artifact scan passed; this is not a complete secret audit.",
498 + "Naming audit passed: 274 retained text occurrences classified; binary fonts/icons excluded."
499 + ],
500 + "scope": "Tracked scanner and naming classification only; not a complete security audit."
501 + },
502 + "syntax": {
503 + "result": "PASS",
504 + "checkedFiles": 51
505 + },
506 + "dependencyAudit": {
507 + "result": "PASS",
508 + "vulnerabilities": 0
509 + },
510 + "runtimeFamily": {
511 + "tests": 9,
512 + "pass": 9,
513 + "fail": 0,
514 + "cancelled": 0,
515 + "skipped": 0
516 + },
517 + "runtimeLearning": {
518 + "tests": 15,
519 + "pass": 15,
520 + "fail": 0,
521 + "cancelled": 0,
522 + "skipped": 0
523 + }
524 + },
525 + "apk": {
526 + "result": "PASS",
527 + "mode": "debug",
528 + "file": "LifeGuide-debug.apk",
529 + "package": "ir.lifeguide.app",
530 + "versionName": "0.6.0",
531 + "versionCode": 5,
532 + "label": "لایف‌گاید",
533 + "debuggable": true,
534 + "allowBackup": false,
535 + "usesCleartextTraffic": false,
536 + "internetPermission": true,
537 + "minSdkVersion": 24,
538 + "targetSdkVersion": 36,
539 + "sha256": "b96a8e168c1fe804dad12899df8a882a6a23de72e209aa585c3e6f2f1071c5d5",
540 + "hashScope": "APK payload built and binary-manifest-inspected on CI runner; distinct from uploaded ZIP digest",
541 + "buildReceipt": "✓ Built build/app/outputs/flutter-apk/app-debug.apk",
542 + "signature": {
543 + "result": "Verifies",
544 + "v2": true,
545 + "signers": 1,
546 + "certificateDN": "C=US, O=Android, CN=Android Debug",
547 + "certificateSha256": "0ab668352f8d23f249a2064a5e394def730639f270383d20796fc62108317294",
548 + "algorithm": "RSA",
549 + "keyBits": 2048
550 + },
551 + "release": false,
552 + "upgradeCompatibility": {
553 + "previousRun": 37900944165,
554 + "previousCertificateSha256": "32b5fb29e0a669ba75628d819a9ca36c84cf4e8ad2b6798bc280032e03d6d1fb",
555 + "sameCertificate": false,
556 + "limitation": "Different same-package debug certificate prevents an in-place Android upgrade from that earlier artifact. No uninstall, data deletion, migration or device upgrade was performed or recommended by this reviewer.",
557 + "userInstalledCertificate": "UNVERIFIED; the owner installed a previous APK but that device certificate was not inspected.",
558 + "initialRun": {
559 + "run": 38113435509,
560 + "certificateSha256": "f991799407013444ac67c7a2b55228e7ede05a952bebaf08ee2cdd223efd553f",
561 + "sameCertificate": false
562 + }
563 + },
564 + "temporaryConnectorDownload": {
565 + "result": "PASS",
566 + "fileName": "LifeGuide-debug-apk-0.6.0.zip",
567 + "localDownload": "PASS using urllib.request with ssl.create_default_context()",
568 + "verifiedTLS": true,
569 + "zipBytes": 87665500,
570 + "zipSha256": "693ca96d4087583de4cb5ebdb9a7bb9eb042b6cc1af5a318e815d7d6ba63d47f",
571 + "localExtraction": "PASS; only LifeGuide-debug.apk extracted",
572 + "apkBytes": 168752390,
573 + "localBinaryInspection": "PASS",
574 + "localManifestCommand": "python3 apps/lifemate/tool/check_apk_manifest.py /workspace/scratch/LifeGuide-debug.apk --mode debug",
575 + "localSignatureInspection": "UNVERIFIED; signature verification ran on the CI runner and downloaded APK digest matched runner receipt.",
576 + "deliveryDirectory": "Scratch fallback; /mnt/data creation was denied by OS permissions.",
577 + "expiryGuarantee": false
578 + },
579 + "localManifest": {
580 + "result": "PASS",
581 + "package": "ir.lifeguide.app",
582 + "versionName": "0.6.0",
583 + "versionCode": 5,
584 + "label": "لایف‌گاید",
585 + "debuggable": true,
586 + "allowBackup": false,
587 + "usesCleartextTraffic": false,
588 + "internetPermission": true,
589 + "minSdkVersion": 24,
590 + "targetSdkVersion": 36,
591 + "sha256": "b96a8e168c1fe804dad12899df8a882a6a23de72e209aa585c3e6f2f1071c5d5"
592 + }
593 + },
594 + "artifacts": [
595 + {
596 + "id": 11706251327,
597 + "name": "LifeGuide-web",
598 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327",
599 + "zipBytes": 18977223,
600 + "zipSha256": "b30a3fba461cd40d2077f5b027964be569bf4f05947c482aa88e7cb1e69bba1a",
601 + "expired": false,
602 + "createdAt": "2026-10-11T14:53:28Z",
603 + "expiresAt": "2027-01-09T14:50:10Z",
604 + "headSha": "b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f"
605 + },
606 + {
607 + "id": 11706166986,
608 + "name": "LifeGuide-debug-apk",
609 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986",
610 + "zipBytes": 87665500,
611 + "zipSha256": "693ca96d4087583de4cb5ebdb9a7bb9eb042b6cc1af5a318e815d7d6ba63d47f",
612 + "expired": false,
613 + "createdAt": "2026-10-11T14:57:38Z",
614 + "expiresAt": "2027-01-09T14:50:10Z",
615 + "headSha": "b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f"
616 + }
617 + ],
618 + "limitations": [
619 + "A successful CI, debug APK build, binary manifest inspection and signature verification do not certify an operational public deployment, owner-signed release or real devices.",
620 + "Real Android installation/lifecycle/upgrade, Safari Add to Home Screen, real device video playback and full item-by-item teaching-content review remain UNVERIFIED.",
621 + "Compiled CI browser tests intercept synthetic HTTPS; they do not prove real TLS, installed PWA, actual BFCache restore, a live server or VPN-free reachability inside Iran. Separate local real-HTTPS evidence is recorded elsewhere.",
622 + "Real Windows/PowerShell/WSL2 execution, owner release signing and live email/SMS delivery remain UNVERIFIED.",
623 + "The debug certificate differs from the prior documented APK and initial run. No uninstall, data deletion, device upgrade or migration was performed or recommended.",
624 + "No live deploy, DNS change, real-data migration, merge, paid action or public release was performed."
625 + ],
626 + "previousFailure": {
627 + "run": 38113435509,
628 + "featureHead": "89bed4cf9c0b24dc7265d88f2321fc601b5182bb",
629 + "receipt": "ci-learning-initial-2026-10-11.json",
630 + "conclusion": "failure",
631 + "backendPass": 143,
632 + "backendCancelled": 8,
633 + "cause": "Feedback fixture database-name guard rejected the existing loopback lifemate_ci fixture; corrected and regression-tested in b3a62b76.",
634 + "preservedAsHistorical": true
635 + }
636 +}
docs/audits/evidence/ci-learning-initial-2026-10-11.json new
+550
@@ -0,0 +1,550 @@
1 +{
2 + "repository": "davoodmehraban89/LifeMate",
3 + "observedAt": "2026-10-11T14:49:56Z",
4 + "evidenceMethod": "Official GitHub connector read of workflow run, jobs, decoded Flutter/backend logs and artifact metadata. Selected sanitized output only. The connector downloaded the debug artifact to a temporary File Service reference; no local extraction, device install or public release was performed by this reviewer.",
5 + "run": {
6 + "id": 38113435509,
7 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509",
8 + "featureHead": "89bed4cf9c0b24dc7265d88f2321fc601b5182bb",
9 + "checkedOutPullRequestMerge": "6f7eb7d432b11bff3d9504cf3a427f7cf2e70443",
10 + "base": "ee04dd2fac84df731c489e072e924e670257736b",
11 + "branch": "feat/aparat-learning-library",
12 + "pullRequest": 11,
13 + "event": "pull_request",
14 + "runNumber": 228,
15 + "status": "completed",
16 + "conclusion": "failure",
17 + "overallGreen": false
18 + },
19 + "jobs": [
20 + {
21 + "id": 114393521008,
22 + "name": "backend",
23 + "status": "completed",
24 + "conclusion": "failure",
25 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/job/114393521008",
26 + "steps": [
27 + {
28 + "name": "Set up job",
29 + "status": "completed",
30 + "conclusion": "success",
31 + "number": 1
32 + },
33 + {
34 + "name": "Initialize containers",
35 + "status": "completed",
36 + "conclusion": "success",
37 + "number": 2
38 + },
39 + {
40 + "name": "Run actions/checkout@v4",
41 + "status": "completed",
42 + "conclusion": "success",
43 + "number": 3
44 + },
45 + {
46 + "name": "Run actions/setup-node@v4",
47 + "status": "completed",
48 + "conclusion": "success",
49 + "number": 4
50 + },
51 + {
52 + "name": "Verify reachability smoke rejects untrusted TLS",
53 + "status": "completed",
54 + "conclusion": "success",
55 + "number": 5
56 + },
57 + {
58 + "name": "Run npm ci",
59 + "status": "completed",
60 + "conclusion": "success",
61 + "number": 6
62 + },
63 + {
64 + "name": "Apply migrations and verify repeat run",
65 + "status": "completed",
66 + "conclusion": "success",
67 + "number": 7
68 + },
69 + {
70 + "name": "Import checked educational metadata and verify repeat run",
71 + "status": "completed",
72 + "conclusion": "success",
73 + "number": 8
74 + },
75 + {
76 + "name": "SQL authorization matrix",
77 + "status": "completed",
78 + "conclusion": "success",
79 + "number": 9
80 + },
81 + {
82 + "name": "Run npm test && npm run check && npm audit --audit-level=high",
83 + "status": "completed",
84 + "conclusion": "failure",
85 + "number": 10
86 + },
87 + {
88 + "name": "Verify isolated database roles and runtime family scenario",
89 + "status": "completed",
90 + "conclusion": "skipped",
91 + "number": 11
92 + },
93 + {
94 + "name": "Backup and restore synthetic database",
95 + "status": "completed",
96 + "conclusion": "skipped",
97 + "number": 12
98 + },
99 + {
100 + "name": "Post Run actions/setup-node@v4",
101 + "status": "completed",
102 + "conclusion": "skipped",
103 + "number": 22
104 + },
105 + {
106 + "name": "Post Run actions/checkout@v4",
107 + "status": "completed",
108 + "conclusion": "success",
109 + "number": 23
110 + },
111 + {
112 + "name": "Stop containers",
113 + "status": "completed",
114 + "conclusion": "success",
115 + "number": 24
116 + },
117 + {
118 + "name": "Complete job",
119 + "status": "completed",
120 + "conclusion": "success",
121 + "number": 25
122 + }
123 + ]
124 + },
125 + {
126 + "id": 114393521136,
127 + "name": "security",
128 + "status": "completed",
129 + "conclusion": "success",
130 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/job/114393521136",
131 + "steps": [
132 + {
133 + "name": "Set up job",
134 + "status": "completed",
135 + "conclusion": "success",
136 + "number": 1
137 + },
138 + {
139 + "name": "Run actions/checkout@v4",
140 + "status": "completed",
141 + "conclusion": "success",
142 + "number": 2
143 + },
144 + {
145 + "name": "Reject tracked credentials and private artifacts",
146 + "status": "completed",
147 + "conclusion": "success",
148 + "number": 3
149 + },
150 + {
151 + "name": "Audit product naming",
152 + "status": "completed",
153 + "conclusion": "success",
154 + "number": 4
155 + },
156 + {
157 + "name": "Post Run actions/checkout@v4",
158 + "status": "completed",
159 + "conclusion": "success",
160 + "number": 8
161 + },
162 + {
163 + "name": "Complete job",
164 + "status": "completed",
165 + "conclusion": "success",
166 + "number": 9
167 + }
168 + ]
169 + },
170 + {
171 + "id": 114393521154,
172 + "name": "flutter",
173 + "status": "completed",
174 + "conclusion": "success",
175 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/job/114393521154",
176 + "steps": [
177 + {
178 + "name": "Set up job",
179 + "status": "completed",
180 + "conclusion": "success",
181 + "number": 1
182 + },
183 + {
184 + "name": "Run actions/checkout@v4",
185 + "status": "completed",
186 + "conclusion": "success",
187 + "number": 2
188 + },
189 + {
190 + "name": "Run actions/setup-node@v4",
191 + "status": "completed",
192 + "conclusion": "success",
193 + "number": 3
194 + },
195 + {
196 + "name": "Run subosito/flutter-action@v2",
197 + "status": "completed",
198 + "conclusion": "success",
199 + "number": 4
200 + },
201 + {
202 + "name": "Run flutter pub get",
203 + "status": "completed",
204 + "conclusion": "success",
205 + "number": 5
206 + },
207 + {
208 + "name": "Run flutter --version --machine",
209 + "status": "completed",
210 + "conclusion": "success",
211 + "number": 6
212 + },
213 + {
214 + "name": "Run dart format --output=none --set-exit-if-changed lib test",
215 + "status": "completed",
216 + "conclusion": "success",
217 + "number": 7
218 + },
219 + {
220 + "name": "Run flutter analyze",
221 + "status": "completed",
222 + "conclusion": "success",
223 + "number": 8
224 + },
225 + {
226 + "name": "Run flutter test",
227 + "status": "completed",
228 + "conclusion": "success",
229 + "number": 9
230 + },
231 + {
232 + "name": "Run node tool/test_web_bootstrap.mjs",
233 + "status": "completed",
234 + "conclusion": "success",
235 + "number": 10
236 + },
237 + {
238 + "name": "Run flutter build web --release --no-web-resources-cdn --pwa-strategy=none",
239 + "status": "completed",
240 + "conclusion": "success",
241 + "number": 11
242 + },
243 + {
244 + "name": "Run node tool/test_web_bootstrap.mjs",
245 + "status": "completed",
246 + "conclusion": "success",
247 + "number": 12
248 + },
249 + {
250 + "name": "Bundle local resources and reject external runtime services",
251 + "status": "completed",
252 + "conclusion": "success",
253 + "number": 13
254 + },
255 + {
256 + "name": "Check compiled browser requests for local fonts and CanvasKit",
257 + "status": "completed",
258 + "conclusion": "success",
259 + "number": 14
260 + },
261 + {
262 + "name": "Check exclusive web instance before session and cache access",
263 + "status": "completed",
264 + "conclusion": "success",
265 + "number": 15
266 + },
267 + {
268 + "name": "Preserve unsent changes across forced session expiry",
269 + "status": "completed",
270 + "conclusion": "success",
271 + "number": 16
272 + },
273 + {
274 + "name": "Record checked prebuilt web provenance",
275 + "status": "completed",
276 + "conclusion": "success",
277 + "number": 17
278 + },
279 + {
280 + "name": "Verify Windows checkout preserves the checked web artifact",
281 + "status": "completed",
282 + "conclusion": "success",
283 + "number": 18
284 + },
285 + {
286 + "name": "Run actions/upload-artifact@v4",
287 + "status": "completed",
288 + "conclusion": "success",
289 + "number": 19
290 + },
291 + {
292 + "name": "Build test APK (debug certificate; not a release)",
293 + "status": "completed",
294 + "conclusion": "success",
295 + "number": 20
296 + },
297 + {
298 + "name": "Inspect the actual APK manifest and debug signature",
299 + "status": "completed",
300 + "conclusion": "success",
301 + "number": 21
302 + },
303 + {
304 + "name": "Run actions/upload-artifact@v4",
305 + "status": "completed",
306 + "conclusion": "success",
307 + "number": 22
308 + },
309 + {
310 + "name": "Post Run subosito/flutter-action@v2",
311 + "status": "completed",
312 + "conclusion": "success",
313 + "number": 42
314 + },
315 + {
316 + "name": "Post Run actions/setup-node@v4",
317 + "status": "completed",
318 + "conclusion": "success",
319 + "number": 43
320 + },
321 + {
322 + "name": "Post Run actions/checkout@v4",
323 + "status": "completed",
324 + "conclusion": "success",
325 + "number": 44
326 + },
327 + {
328 + "name": "Complete job",
329 + "status": "completed",
330 + "conclusion": "success",
331 + "number": 45
332 + }
333 + ]
334 + }
335 + ],
336 + "observedOutput": {
337 + "backend": {
338 + "tests": 151,
339 + "pass": 143,
340 + "fail": 0,
341 + "cancelled": 8,
342 + "skipped": 0,
343 + "durationMs": 14955.618557,
344 + "result": "FAILURE",
345 + "error": "Feedback tests require an explicit synthetic test database",
346 + "context": "The disposable CI PostgreSQL database is named lifemate_ci; the newly added feedback fixture guard did not recognize that established CI database name.",
347 + "guardFixAndNewSourceVerification": "UNVERIFIED by this receipt; coordinator is implementing a separate fix. Runtime-role and backup/restore steps were SKIPPED."
348 + },
349 + "tlsSmoke": {
350 + "tests": 5,
351 + "pass": 5,
352 + "fail": 0,
353 + "cancelled": 0,
354 + "skipped": 0,
355 + "scope": "Real loopback TLS fixtures, not public server or Iran reachability"
356 + },
357 + "migrations": {
358 + "result": "PASS",
359 + "applyAndRepeat": true
360 + },
361 + "educationalMetadataImport": {
362 + "result": "PASS",
363 + "importAndRepeat": true,
364 + "fullyReviewedTeaching": "Not certified by importing metadata"
365 + },
366 + "sqlAuthorizationMatrix": {
367 + "result": "PASS"
368 + },
369 + "runtimeRolesAndBackupRestore": {
370 + "result": "UNVERIFIED",
371 + "ciSteps": "SKIPPED after backend test cancellation"
372 + },
373 + "flutter": {
374 + "passed": 112,
375 + "receipt": "🎉 112 tests passed."
376 + },
377 + "analyzer": {
378 + "result": "PASS",
379 + "receipt": "No issues found! (ran in 10.2s)"
380 + },
381 + "format": {
382 + "result": "PASS",
383 + "command": "dart format --output=none --set-exit-if-changed lib test"
384 + },
385 + "flutterToolchain": {
386 + "version": "3.47.6",
387 + "revision": "5fc346839b5d0eef006ed8404392afb4dfae428d",
388 + "dartSdkVersion": "3.13.5"
389 + },
390 + "releaseWebBuild": {
391 + "result": "PASS",
392 + "seconds": 39.2,
393 + "command": "flutter build web --release --no-web-resources-cdn --pwa-strategy=none",
394 + "receipt": "✓ Built build/web"
395 + },
396 + "assets": {
397 + "requests": 13,
398 + "externalRequests": 0,
399 + "missingAssets": 0,
400 + "errors": 0,
401 + "fontsLocal": true,
402 + "canvasKitLocal": true,
403 + "scope": "Synthetic HTTPS origin; intercepted compiled artifact responses; real TLS and service-worker acceptance UNVERIFIED"
404 + },
405 + "chromeDartGuards": {
406 + "passed": 3,
407 + "receipt": "00:00 +3: All tests passed!"
408 + },
409 + "bootstrapInstance": {
410 + "caseCount": 8,
411 + "cases": [
412 + "same-origin contention + background ownership + retry denied",
413 + "owner close then blocked-tab retry acquires without erasure",
414 + "independent origin unaffected",
415 + "simultaneous race has one owner; separate browser profile unaffected",
416 + "unsupported Web Locks fails closed",
417 + "actual renderer crash releases lock for a fresh tab",
418 + "history navigation cannot restore an owner while another tab owns",
419 + "synthetic persisted pagehide invalidates; pageshow replaces old engine before re-entry"
420 + ],
421 + "scope": "Real Chromium, instrumented loader, synthetic intercepted HTTPS"
422 + },
423 + "compiledInstance": {
424 + "caseCount": 8,
425 + "cases": [
426 + "same-origin contention + background ownership + retry denied",
427 + "owner close then blocked-tab retry acquires without erasure",
428 + "independent origin unaffected",
429 + "simultaneous race has one owner; separate browser profile unaffected",
430 + "unsupported Web Locks fails closed",
431 + "actual renderer crash releases lock for a fresh tab",
432 + "history navigation cannot restore an owner while another tab owns",
433 + "synthetic persisted pagehide invalidates; pageshow replaces old engine before re-entry"
434 + ],
435 + "scope": "Real Chromium; synthetic intercepted HTTPS; TLS/PWA/Safari/device UNVERIFIED",
436 + "actualBFCacheRestoration": "UNVERIFIED",
437 + "persistedPageshowObserved": false
438 + },
439 + "forcedExpiry": {
440 + "result": "PASS",
441 + "before": {
442 + "sessionPresent": true,
443 + "pending": 1
444 + },
445 + "afterLateResponse": {
446 + "sessionPresent": true,
447 + "pending": 1
448 + },
449 + "afterReopen": {
450 + "sessionPresent": false,
451 + "pending": 1
452 + },
453 + "refreshes": 2,
454 + "exactDurableBytesPreserved": true,
455 + "exactBytesBasis": "Completed test_web_session_expiry.cjs step includes strict originalCache equality; synthetic intercepted refresh and explicit pagehide."
456 + },
457 + "prebuiltProvenance": {
458 + "result": "PASS",
459 + "inputFiles": 57
460 + },
461 + "windowsStyleCheckout": {
462 + "result": "PASS",
463 + "coreAutocrlfModes": [
464 + "false",
465 + "true"
466 + ],
467 + "shellScriptsChecked": 3,
468 + "binaryInputsMatched": 13,
469 + "sourceTamperRejected": true,
470 + "artifactTamperRejected": true,
471 + "buildOrRestampInCheckoutTest": false,
472 + "actualWindows": "UNVERIFIED"
473 + },
474 + "securityJob": {
475 + "result": "PASS",
476 + "scope": "Tracked credential/artifact scanner and naming audit only; not a complete security audit"
477 + }
478 + },
479 + "apk": {
480 + "result": "PASS",
481 + "mode": "debug",
482 + "file": "LifeGuide-debug.apk",
483 + "package": "ir.lifeguide.app",
484 + "versionName": "0.6.0",
485 + "versionCode": 5,
486 + "label": "لایف‌گاید",
487 + "debuggable": true,
488 + "allowBackup": false,
489 + "usesCleartextTraffic": false,
490 + "internetPermission": true,
491 + "minSdkVersion": 24,
492 + "targetSdkVersion": 36,
493 + "sha256": "3876651d30c6999120bf03721ea4c0295afec5d633b877e28bd99ec64d6771ac",
494 + "hashScope": "APK payload built and binary-manifest-inspected on CI runner; distinct from uploaded ZIP digest",
495 + "buildReceipt": "✓ Built build/app/outputs/flutter-apk/app-debug.apk",
496 + "signature": {
497 + "result": "Verifies",
498 + "v2": true,
499 + "signers": 1,
500 + "certificateDN": "C=US, O=Android, CN=Android Debug",
501 + "certificateSha256": "f991799407013444ac67c7a2b55228e7ede05a952bebaf08ee2cdd223efd553f",
502 + "algorithm": "RSA",
503 + "keyBits": 2048
504 + },
505 + "release": false,
506 + "upgradeCompatibility": {
507 + "previousRun": 37900944165,
508 + "previousCertificateSha256": "32b5fb29e0a669ba75628d819a9ca36c84cf4e8ad2b6798bc280032e03d6d1fb",
509 + "sameCertificate": false,
510 + "limitation": "Different same-package debug certificate prevents an in-place Android upgrade from that earlier artifact. No uninstall, data deletion, migration or device upgrade was performed or recommended by this reviewer."
511 + },
512 + "temporaryConnectorDownload": {
513 + "result": "Returned File Service ZIP reference",
514 + "localExtraction": "UNVERIFIED",
515 + "localBinaryInspection": "UNVERIFIED",
516 + "expiryGuarantee": false
517 + }
518 + },
519 + "artifacts": [
520 + {
521 + "id": 11692890454,
522 + "name": "LifeGuide-web",
523 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/artifacts/11692890454",
524 + "zipBytes": 18977223,
525 + "zipSha256": "3d140d5c4a3286d440d45b17b044625a03bb721ac55ba4250e90e07d82e7f3ad",
526 + "expired": false,
527 + "createdAt": "2026-10-11T05:04:49Z",
528 + "expiresAt": "2027-01-09T05:01:16Z",
529 + "headSha": "89bed4cf9c0b24dc7265d88f2321fc601b5182bb"
530 + },
531 + {
532 + "id": 11692816646,
533 + "name": "LifeGuide-debug-apk",
534 + "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38113435509/artifacts/11692816646",
535 + "zipBytes": 87665499,
536 + "zipSha256": "7f9580d1344ff9c451d19ef0146f58afa8df80e7b5124c5a0ecd6afaff3022b3",
537 + "expired": false,
538 + "createdAt": "2026-10-11T05:09:19Z",
539 + "expiresAt": "2027-01-09T05:01:16Z",
540 + "headSha": "89bed4cf9c0b24dc7265d88f2321fc601b5182bb"
541 + }
542 + ],
543 + "limitations": [
544 + "Overall CI is FAILURE despite successful Flutter build and artifacts; backend fixture guard cancelled eight tests. This receipt cannot certify a later source or fixed backend.",
545 + "Real Android installation/lifecycle/upgrade, Safari Add to Home Screen, real device playback and full teaching-content review remain UNVERIFIED.",
546 + "Compiled CI browser tests intercept synthetic HTTPS; they do not prove real TLS, installed PWA, actual BFCache restore, a live server or VPN-free reachability inside Iran.",
547 + "Real Windows/PowerShell/WSL2 execution, owner release signing, live delivery providers and operational deployment remain UNVERIFIED.",
548 + "No live deploy, DNS change, real-data migration, merge, paid action or public release was performed."
549 + ]
550 +}
docs/audits/evidence/learning-browser-2026-10-11-progress.png
Binary files /dev/null and b/docs/audits/evidence/learning-browser-2026-10-11-progress.png differ
docs/audits/evidence/learning-browser-2026-10-11.json new
+89
@@ -0,0 +1,89 @@
1 +{
2 + "date": "2026-10-11T14:58:24.671Z",
3 + "mode": "Actual isolated local Compose HTTPS; normal Node and Chromium CA trust; no network interception or TLS bypass",
4 + "origin": "https://127.0.0.1:8445",
5 + "browser": "Chromium",
6 + "checks": [
7 + {
8 + "name": "independent verified HTTPS health",
9 + "status": "PASS"
10 + },
11 + {
12 + "name": "compiled PWA actual synthetic account login",
13 + "status": "PASS"
14 + },
15 + {
16 + "name": "grade1 common1405-1406 saved through UI and read by independent API",
17 + "status": "PASS"
18 + },
19 + {
20 + "name": "actual imported lesson renders with draft videos unavailable, no iframe",
21 + "status": "PASS"
22 + },
23 + {
24 + "name": "UI progress acknowledgement independently verified through API and PostgreSQL",
25 + "status": "PASS"
26 + },
27 + {
28 + "name": "real draft assessment gate shows no invented question bank",
29 + "status": "PASS"
30 + },
31 + {
32 + "name": "feedback blocked without explicit consent then acknowledged by real server",
33 + "status": "PASS"
34 + },
35 + {
36 + "name": "withdrawal redacts chosen text and consent in independent API and PostgreSQL",
37 + "status": "PASS"
38 + },
39 + {
40 + "name": "closed and reopened Chromium refreshes persisted session; independent API retains one acknowledged progress record",
41 + "status": "PASS"
42 + },
43 + {
44 + "name": "real compiled runtime uses only local API, fonts and CanvasKit without errors",
45 + "status": "PASS"
46 + }
47 + ],
48 + "fixture": "Dedicated synthetic account; no real family/private/media data",
49 + "counts": {
50 + "requests": 55,
51 + "externalRequests": 0,
52 + "iframes": 0,
53 + "browserErrors": 0,
54 + "failedRequests": 0
55 + },
56 + "realApprovedVideoCount": 0,
57 + "realApprovedQuestionBankCount": 0,
58 + "visualEvidence": {
59 + "progressScreenshot": "learning-browser-2026-10-11-progress.png",
60 + "reopenedLessonScreenshot": "learning-browser-2026-10-11.png",
61 + "automatedDynamicProgressSemantics": "UNVERIFIED: dynamic progress/timestamp text was absent from Chromium ARIA after updates; inspect rendered screenshots separately"
62 + },
63 + "interactionMode": "Rendered Flutter semantic controls activated with DOM element.click because RTL hit rectangles are transformed; text entered through rendered fields and keyboard. No API or state injection. Physical touch/pointer/accessibility acceptance is UNVERIFIED.",
64 + "authResponses": [
65 + {
66 + "path": "/api/v1/auth/login",
67 + "status": 200
68 + },
69 + {
70 + "path": "/api/v1/auth/refresh",
71 + "status": 200
72 + }
73 + ],
74 + "fonts": [
75 + "/assets/fonts/MaterialIcons-Regular.otf",
76 + "/assets/assets/fonts/LifeGuidePersian.ttf",
77 + "/assets/assets/fonts/LifeGuideLatin.ttf",
78 + "/assets/assets/fonts/LifeGuideEmoji.ttf",
79 + "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
80 + ],
81 + "limitations": [
82 + "Real Android devices UNVERIFIED",
83 + "Safari/Add to Home Screen UNVERIFIED",
84 + "Video playback and teaching quality UNVERIFIED",
85 + "Iran VPN-free reachability UNVERIFIED",
86 + "Offline cold startup UNVERIFIED",
87 + "Dynamic progress accessibility semantics after updates remain unverified; screenshots require separate visual review"
88 + ]
89 +}
docs/audits/evidence/learning-browser-2026-10-11.png
Binary files /dev/null and b/docs/audits/evidence/learning-browser-2026-10-11.png differ
docs/audits/evidence/learning-core-2026-10-11.json
+39 -2
@@ -20,7 +20,15 @@
20 "skipped": 0,
21 "syntaxFiles": 51,
22 "npmAuditVulnerabilities": 0,
23 - "fullLog": "/workspace/scratch/learning-root-full-backend-final.log"
23 + "fullLog": "/workspace/scratch/learning-root-full-backend-final.log",
24 + "ciNameGuardReproduction": {
25 + "database": "local exact CI fixture name",
26 + "redCancelled": 8,
27 + "targetedGreenPass": 10,
28 + "fullGreenPass": 151,
29 + "fullGreenCancelled": 0,
30 + "log": "/workspace/scratch/learning-ci-guard-full-green.log"
31 + }
32 },
33 "flutter": {
34 "version": "3.47.6",
@@ -66,5 +74,34 @@
74 "Public shared endpoint and Iran VPN-free reachability",
75 "Owner release signing",
76 "Real AI/counselling/admin-feedback workflow"
69 - ]
77 + ],
78 + "browserAcceptance": {
79 + "receipt": "learning-browser-2026-10-11.json",
80 + "checks": 10,
81 + "pass": 10,
82 + "requests": 55,
83 + "externalRequests": 0,
84 + "mode": "Real local trusted HTTPS/API/PostgreSQL; no interception/TLS bypass",
85 + "visualProgressAndRestart": "Root inspected both PNGs; in_progress and same server timestamp retained",
86 + "limitations": [
87 + "Physical touch/pointer UNVERIFIED",
88 + "Dynamic progress ARIA omission observed, not fixed",
89 + "Safari/Add to Home Screen UNVERIFIED"
90 + ]
91 + },
92 + "compose": {
93 + "project": "lifeguide-learning-audit",
94 + "status": "actual healthy Postgres/API/nginxTLS/backup",
95 + "syntheticOnly": true,
96 + "independentMigrations": 15,
97 + "units": 1373,
98 + "videos": 1348,
99 + "publishedVideos": 0,
100 + "publishedAssessments": 0,
101 + "trustedHttpsWriteSmoke": {
102 + "checks": 7,
103 + "pass": 7,
104 + "log": "/workspace/scratch/learning-https-write-smoke.log"
105 + }
106 + }
107 }
docs/operations/HANDOVER_0.6.0.md new
+41
@@ -0,0 +1,41 @@
1 +# LifeGuide 0.6.0 — تحویل بسته آموزش آزمایشی
2 +
3 +شاخه `feat/aparat-learning-library` و [PR پیش‌نویس ۱۱](https://github.com/davoodmehraban89/LifeMate/pull/11) روی بسته آنلاین قبلی قرار دارند؛ main ادغام نشده است. [شواهد اجرا و محدودیت‌ها](../audits/2026-10-11-learning-verification.md) مرجع نتیجه آزمون هستند. این نسخه مدرسه کامل یا سرویس عمومی آماده استفاده نیست.
4 +
5 +## اکنون چه اقدامی لازم است؟
6 +
7 +وقتی به رایانه دسترسی ندارید، اقدامی لازم نیست. کادر URL در APK **نشانی HTTPS API مشترک خانواده** را می‌خواهد؛ نصب APK یا ذخیره URL، سرور را راه‌اندازی نمی‌کند. [بررسی دامنه و اتصال](../audits/2026-10-11-apk-connection.md) نشان داد مسیرهای بررسی‌شده دامنه عمومی هنوز پاسخ سازگار این نسخه را نمی‌دهند. دامنه یا `/api` را حدس نزنید و DNS را تغییر ندهید.
8 +
9 +## پس از دسترسی به رایانه: فقط Stage 0 با داده ساختگی
10 +
11 +1. یک checkout مستقل از شاخه آموزش آماده کنید. تغییرات پوشه قبلی را با reset یا force حذف نکنید. خروجی `LifeGuide-web` همان اجرای CI را از [صفحه ساخت اصلاح‌شده](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571) همراه `build-provenance.json` در `apps/lifemate/build/web` استخراج کنید. موفقیت/شناسه دقیق artifact را در رسید نهایی بررسی کنید؛ وجود workflow به معنی موفقیت همه jobها نیست.
12 +2. Docker Desktop/WSL2، Node 22 و mkcert لازم‌اند. به [Stage 0](STAGE0.md) برای اعتماد عمومی CA روی Android/iPhone و فایروال محدود LAN مراجعه کنید. فرمان‌های زیر روی Windows مالک **UNVERIFIED** هستند؛ جای IP نمونه، IP واقعی رایانه را بگذارید:
13 +
14 +```powershell
15 +New-Item -ItemType Directory -Force deployment/tls | Out-Null
16 +mkcert -install
17 +mkcert -cert-file deployment/tls/server.pem -key-file deployment/tls/server-key.pem 192.168.1.10 localhost 127.0.0.1
18 +mkcert -CAROOT
19 +node scripts/prebuilt-web-check.mjs apps/lifemate
20 +./scripts/local-deploy.ps1 -Origin https://192.168.1.10 -PrebuiltWeb
21 +docker compose ps
22 +```
23 +
24 +3. فقط گواهی **عمومی** CA را برای اعتماد به دستگاه‌های آزمون منتقل کنید؛ کلید CA/سرور در رایانه و خارج Git بماند. هشدار TLS را دور نزنید. وقتی Compose سالم و گواهی مورد اعتماد است، PWA روی `https://LAN-IP/` و API روی `https://LAN-IP/api` هستند. برای Android/LAN، APK عمومی CI حاوی CA رایانه شما نیست؛ build debug جدا با `LIFEGUIDE_DEBUG_CA_BASE64` و گواهی عمومی خودتان طبق [Stage 0](STAGE0.md#آماده‌سازی-windows) لازم است و پذیرش دستگاه هنوز UNVERIFIED است. سپس نشانی کامل API همان شبکه را یک‌بار در APK وارد کنید. نصب گواهی در گوشی به‌تنهایی اعتماد HTTP برنامه را اثبات نمی‌کند؛ define آزمایشی در release ممنوع است.
25 +4. fixture خانواده با حساب مستقل کودک/مادر/پدر را مطابق بخش «حساب و round-trip ساختگی» در [Stage 0](STAGE0.md) بسازید. رمز فقط در محیط خصوصی خودتان بماند. ورود این fixture تأیید تحویل ایمیل/SMS نیست؛ provider واقعی هنوز فعال/آزموده نشده است.
26 +5. سناریوی تکلیف ریاضی، گزارش مجاز هر دو والد، تایمر با توقف/ادامه و بستن/بازکردن سه دستگاه را اجرا کنید. سپس «مدرسه من»، انتخاب پایه، بازکردن یک بخش از میانه کتاب، ثبت پیشرفت شخصی، بستن/بازکردن و تغییر آفلاین/اتصال دوباره را بررسی کنید. پیشرفت باید تأیید سرور و وضعیت تغییر ارسال‌نشده را روشن نشان دهد؛ گزارش شخصی یا تایمر اثبات یادگیری نیست.
27 +6. بازخورد اختیاری را با متن ساختگی و رضایت صریح ارسال و رضایت را پس بگیرید؛ متن سرور باید حذف شود. موضوع خصوصی خانواده/سلامت/گفت‌وگو را برای گزارش خطای محتوا وارد نکنید.
28 +
29 +برای توقف و راه‌اندازی دوباره، `docker compose stop` و `docker compose start` داده volume را حفظ می‌کنند. برای استفاده معمول `down -v` اجرا نکنید. checker خروجی وب نامنطبق را رد می‌کند؛ با stamp دوباره، خروجی قدیمی را معتبر معرفی نکنید.
30 +
31 +## APK و امضای انتشار
32 +
33 +خروجی [APK اصلاح‌شده](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986) با نام `LifeGuide-debug.apk` داخل ZIP، **آزمایشی** است. شناسه نهایی `ir.lifeguide.app`، نسخه 0.6.0 و code 5 هستند؛ manifest/hash/signature واقعی هر فایل باید با [رسید همان run](../audits/evidence/ci-learning-final-2026-10-11.json) مقایسه شود. هر سه job این run واقعاً موفق شدند؛ این به معنی نصب/پذیرش دستگاه نیست. اختلاف گواهی Debug می‌تواند ارتقای مستقیم را رد کند؛ برنامه یا داده دارای کار ارسال‌نشده را برای رفع خطای امضا حذف نکنید. نصب و ارتقای واقعی دستگاه هنوز UNVERIFIED است.
34 +
35 +`LifeGuide.apk` با امضای انتشار مالک هنوز ساخته نشده است. روش ساخت کلید پایدار خارج مخزن و secretهای محیط حفاظت‌شده در [تحویل قبلی، بخش کلید رسمی](HANDOVER_0.5.1.md#2-خروجی-apk-و-کلید-رسمی) آمده است؛ کلید/رمز در چت یا Git قرار نگیرد. ساخت artifact آزمایشی مجوز انتشار عمومی نیست.
36 +
37 +## چه چیزی هنوز آموزش آماده استفاده نیست؟
38 +
39 +۲۱۷ کتاب، ۱۳۷۳ بخش و ۱۳۴۸ ویدیو فقط فهرست پژوهش‌اند. **ویدیوی واقعی منتشرشده با بازبینی کامل: صفر؛ بانک سؤال واقعی منتشرشده: صفر.** کتاب‌های متوسطه هنوز تأیید چاپ ندارند. برنامه ویدیو/سؤال بررسی‌نشده را به کودک عرضه نمی‌کند؛ دیدن پیام «در انتظار بازبینی» در این نسخه رفتار مورد انتظار است، نه اثبات پوشش کامل آموزش. [مراحل بررسی هر درس](LEARNING_CONTENT.md) شامل تطبیق چاپ/هدف، مشاهده کامل، صحت، تناسب، حقوق نمایش و سؤال با پاسخ توضیحی است.
40 +
41 +انتخاب میزبان، مجوز انتقال DNS، provider پیامک/ایمیل، کلید امضای مالک و پذیرش واقعی Android/Safari/ایران همچنان مراحل جدا هستند. [میزبانی](../decisions/0009-provider-neutral-hosting.md)، [انتقال به سرور داخلی و rollback](DOMESTIC_MIGRATION.md). هیچ ثبت‌نام، خرید، تغییر زنده، انتقال داده واقعی، merge یا انتشار عمومی در این بسته انجام نشده است. AI/voice، مشاوره بالینی و داده حساس سلامت غیرفعال‌اند؛ گردش ادمین بازخورد و توسعه خودکار هنوز اجرا نشده است.
docs/operations/STAGE0.md
+1 -1
@@ -5,7 +5,7 @@
5 ## آماده‌سازی Windows
6
7 1. Docker Desktop با WSL2، Git، Node >=22 و mkcert را نصب کنید. گوشی‌ها و PC به LAN مورد اعتماد متصل باشند. IP محلی PC را با `ipconfig` پیدا و DHCP آن را ثابت کنید. دریافت اولیه وابستگی‌ها ممکن است به VPN توسعه‌دهنده نیاز داشته باشد؛ اجرای کلاینت CDN خارجی ندارد.
8 -2. ابتدا خروجی بررسی‌شده وب را طبق بخش «بسته‌بندی PWA» آماده کنید: artifact کامل [LifeGuide-web همین منبع](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018/artifacts/11600220473) را همراه provenance در `apps/lifemate/build/web` استخراج کنید، یا build واقعی محلی را انجام دهید. سپس از ریشه مخزن، در PowerShell، IP نمونه را عوض کنید:
8 +2. ابتدا خروجی بررسی‌شده وب را طبق بخش «بسته‌بندی PWA» آماده کنید: برای شاخه آموزش0.6.0، artifact کامل [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327) را همراه provenance در `apps/lifemate/build/web` استخراج کنید، یا build واقعی محلی را انجام دهید. خروجی تاریخی0.5.1 با ورودی‌های آموزش جدید سازگار نیست. سپس از ریشه مخزن، در PowerShell، IP نمونه را عوض کنید:
9
10 ```powershell
11 New-Item -ItemType Directory -Force deployment/tls | Out-Null
scripts/test-learning-browser.cjs new
+276
@@ -0,0 +1,276 @@
1 +// Developer acceptance substitute: compiled PWA, real local HTTPS/API/Postgres.
2 +// Requires a normally trusted public local CA and a NEW synthetic fixture.
3 +// Does not intercept responses, disable TLS, publish lessons or play media.
4 +const assert = require('node:assert/strict');
5 +const fs = require('node:fs/promises');
6 +const path = require('node:path');
7 +const os = require('node:os');
8 +const https = require('node:https');
9 +const {spawnSync} = require('node:child_process');
10 +const {chromium} = require('../apps/lifemate/node_modules/playwright');
11 +
12 +const root = path.resolve(__dirname, '..');
13 +const origin = process.env.LEARNING_BROWSER_ORIGIN || 'https://127.0.0.1:8445';
14 +const parsed = new URL(origin);
15 +assert(parsed.protocol === 'https:' && parsed.hostname === '127.0.0.1' &&
16 + parsed.port === '8445' && parsed.pathname === '/' && !parsed.username &&
17 + !parsed.password && !parsed.search && !parsed.hash,
18 + 'This test is restricted to the isolated local synthetic HTTPS stack on8445.');
19 +const email = process.env.SMOKE_EMAIL || '';
20 +const password = process.env.SMOKE_PASSWORD || '';
21 +assert(/^learning-browser-[a-f0-9]+@example\.test$/.test(email) && password.length >= 10,
22 + 'Provide the dedicated synthetic fixture through SMOKE_EMAIL/SMOKE_PASSWORD.');
23 +assert(process.env.ROOT_CA && process.env.LEARNING_COMPOSE_ENV,
24 + 'ROOT_CA and private LEARNING_COMPOSE_ENV paths are required.');
25 +const receiptFile = path.resolve(process.argv[2] || path.join(root,
26 + 'docs/audits/evidence/learning-browser-2026-10-11.json'));
27 +const screenshotFile = receiptFile.replace(/\.json$/, '.png');
28 +const uuid = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i;
29 +const escaped = value => value.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');
30 +const paths = [], errors = [], failures = [], auth = [], checks = [];
31 +let stage = 'startup';
32 +let ca;
33 +const check = name => { checks.push({name, status:'PASS'}); console.log(`PASS ${name}`); };
34 +
35 +function api(method, endpoint, body, accessToken) {
36 + return new Promise((resolve,reject) => {
37 + const serialized = body === undefined ? null : Buffer.from(JSON.stringify(body));
38 + const req = https.request(new URL('/api' + endpoint, origin), {
39 + method, ca, rejectUnauthorized:true,
40 + headers:{...(serialized ? {'content-type':'application/json','content-length':serialized.length} : {}),
41 + ...(accessToken ? {authorization:`Bearer ${accessToken}`} : {})}
42 + }, response => {
43 + assert(response.socket.authorized, 'Independent API socket must verify TLS.');
44 + let content = '';
45 + response.setEncoding('utf8'); response.on('data', part => content += part);
46 + response.on('end', () => {
47 + try {resolve({status:response.statusCode,json:content ? JSON.parse(content) : null});}
48 + catch {reject(new Error('Independent API returned non-JSON content'));}
49 + });
50 + });
51 + req.setTimeout(15000, () => req.destroy(new Error('Independent HTTPS API timed out')));
52 + req.on('error', reject); req.end(serialized);
53 + });
54 +}
55 +
56 +function dbJson(query) {
57 + const result = spawnSync('docker', ['compose','--env-file',process.env.LEARNING_COMPOSE_ENV,
58 + 'exec','-T','postgres','sh','-c',
59 + 'psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -At -v ON_ERROR_STOP=1'],
60 + {cwd:root,input:query,encoding:'utf8',timeout:15000});
61 + assert.equal(result.status,0,'Independent synthetic DB assertion failed.');
62 + return JSON.parse(result.stdout.trim());
63 +}
64 +
65 +function observe(page) {
66 + page.on('request', request => {
67 + const url = new URL(request.url());
68 + paths.push({origin:url.origin,path:url.pathname.replace(/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}/gi,':fixture-id'),method:request.method()});
69 + });
70 + page.on('requestfailed', request => failures.push({path:new URL(request.url()).pathname,
71 + failure:request.failure()?.errorText || 'network failure'}));
72 + page.on('pageerror', () => errors.push('Browser page error'));
73 + page.on('response', response => {
74 + const endpoint = new URL(response.url()).pathname;
75 + if (['/api/v1/auth/login','/api/v1/auth/refresh'].includes(endpoint))
76 + auth.push({path:endpoint,status:response.status()});
77 + if (response.status() >= 400) errors.push(`HTTP ${response.status()} ${endpoint.replace(/[a-f0-9-]{36}/gi,':fixture-id')}`);
78 + });
79 +}
80 +
81 +async function boot(context) {
82 + const page = context.pages()[0] || await context.newPage(); observe(page);
83 + const response = await page.goto(origin,{waitUntil:'networkidle',timeout:60000});
84 + assert.equal(response.status(),200);
85 + await page.waitForFunction(() => !document.getElementById('startup-status'),null,{timeout:60000});
86 + await page.locator('flt-glass-pane').waitFor({state:'attached'});
87 + const accessibility = page.locator('flt-semantics-placeholder');
88 + if (await accessibility.count()) await accessibility.evaluate(element => element.click());
89 + await page.waitForLoadState('networkidle');
90 + return page;
91 +}
92 +
93 +async function click(locator) {
94 + await locator.waitFor({state:'attached',timeout:20000});
95 + // Flutter RTL semantics nodes may have transformed DOM hit rectangles.
96 + // Activates the rendered semantic control; never injects API/state data.
97 + await locator.evaluate(element => element.click());
98 +}
99 +async function bodyIncludes(page, text) {
100 + await page.waitForFunction(needle => document.body.textContent.includes(needle) ||
101 + [...document.querySelectorAll('[aria-label]')].some(element =>
102 + element.getAttribute('aria-label').includes(needle)),text,{timeout:20000});
103 +}
104 +async function school(page) {
105 + await click(page.getByRole('button',{name:'مدرسه من',exact:true}));
106 + await bodyIncludes(page,'انتخاب پایه و رشته');
107 +}
108 +async function lesson(page, course, unit) {
109 + await page.getByLabel('جستجوی کتاب',{exact:true}).fill(course.titleFa);
110 + await click(page.getByRole('button',{name:new RegExp('^' + escaped(course.titleFa) + ' ')}));
111 + await bodyIncludes(page,'جستجوی درس یا صفحه');
112 + await page.getByLabel('جستجوی درس یا صفحه',{exact:true}).fill(unit.titleFa);
113 + await click(page.getByRole('button',{name:new RegExp('^' + escaped(unit.titleFa) + ' ')}));
114 + await bodyIncludes(page,'پیشرفت شخصی:');
115 +}
116 +
117 +(async () => {
118 + ca = await fs.readFile(process.env.ROOT_CA);
119 + const profile = await fs.mkdtemp(path.join(os.tmpdir(),'lifeguide-learning-browser-'));
120 + const launch = () => chromium.launchPersistentContext(profile,{headless:true,
121 + executablePath:process.env.LIFEGUIDE_TEST_CHROMIUM_PATH || '/usr/bin/chromium',
122 + ignoreHTTPSErrors:false,serviceWorkers:'allow',timezoneId:'Asia/Tehran',
123 + viewport:{width:1100,height:1050}});
124 + let context;
125 + try {
126 + stage = 'realTLS';
127 + assert.equal((await api('GET','/health')).status,200); check('independent verified HTTPS health');
128 + const loggedIn = await api('POST','/v1/auth/login',{email,password});
129 + assert.equal(loggedIn.status,200); const token = loggedIn.json.accessToken;
130 + const profileResult = await api('GET','/v1/profile',undefined,token);
131 + assert.equal(profileResult.status,200); const owner = profileResult.json.user_id;
132 + assert(uuid.test(owner));
133 + assert.equal((await api('GET','/v1/education/library',undefined,token)).json.education,null,
134 + 'Use a new fixture with no preselected education.');
135 +
136 + context = await launch(); let page = await boot(context);
137 + stage = 'realLogin';
138 + await page.getByLabel('ایمیل یا شماره تلفن',{exact:true}).fill(email);
139 + await page.getByLabel('ایمیل یا شماره تلفن',{exact:true}).press('Tab');
140 + await page.getByLabel('رمز عبور',{exact:true}).fill(password);
141 + await page.getByLabel('رمز عبور',{exact:true}).press('Tab');
142 + const loginResponse = page.waitForResponse(response => response.url().endsWith('/api/v1/auth/login') && response.request().method() === 'POST');
143 + await click(page.getByRole('button',{name:'ورود',exact:true}));
144 + const browserLogin = await loginResponse;
145 + const entered = browserLogin.request().postDataJSON();
146 + assert(entered.password === password,'Synthetic browser password field was not committed.');
147 + assert((entered.email ?? entered.identifier) === email,'Synthetic browser contact field was not committed.');
148 + assert.equal(browserLogin.status(),200);
149 + await school(page); check('compiled PWA actual synthetic account login');
150 +
151 + stage = 'educationSelection';
152 + await click(page.getByRole('button',{name:'انتخاب پایه و رشته',exact:true}));
153 + // The dropdown is an actual Flutter semantic button, not a native select.
154 + await click(page.getByRole('button',{name:'پایه',exact:true}));
155 + await click(page.getByRole('menuitem',{name:'پایه 1',exact:true}));
156 + const educationResponse = page.waitForResponse(response => response.url().endsWith('/api/v1/me/education') && response.request().method() === 'PUT');
157 + await click(page.getByRole('button',{name:'ذخیره',exact:true}));
158 + assert.equal((await educationResponse).status(),200);
159 + const library = (await api('GET','/v1/education/library',undefined,token)).json;
160 + assert.deepEqual(library.education,{nationalGrade:1,trackCode:'common',schoolYear:'1405-1406'});
161 + const course = library.courses.find(item => item.unitCount > 0 && item.reviewCandidateCount > 0);
162 + assert(course); const detail = (await api('GET',`/v1/education/courses/${course.id}`,undefined,token)).json;
163 + const unit = detail.units.find(item => item.reviewCandidateCount > 0);
164 + assert(unit && uuid.test(unit.id),'A real draft resource must exist behind the publication gate.');
165 + assert(detail.units.every(item => item.videos.length === 0));
166 + assert.equal((await api('GET','/v1/me/learning-progress',undefined,token)).json.progress.length,0,
167 + 'Browsing a library must not fabricate learning progress.');
168 + check('grade1 common1405-1406 saved through UI and read by independent API');
169 +
170 + stage = 'libraryLesson'; await lesson(page,course,unit);
171 + await bodyIncludes(page,'ویدیوی بازبینی‌شده و منتشرشده هنوز ثبت نشده');
172 + assert.equal(await page.locator('iframe').count(),0);
173 + assert.equal((await api('GET','/v1/me/learning-progress',undefined,token)).json.progress.length,0,
174 + 'Opening a lesson must not automatically record learning progress.');
175 + check('actual imported lesson renders with draft videos unavailable, no iframe');
176 +
177 + stage = 'progress';
178 + const progressResponse = page.waitForResponse(response => response.url().includes('/api/v1/me/learning-progress/') && response.request().method() === 'PUT');
179 + await click(page.getByRole('button',{name:'در حال یادگیری',exact:true}));
180 + const ackResponse = await progressResponse; assert.equal(ackResponse.status(),200);
181 + const ack = await ackResponse.json(); assert.equal(ack.source,'self_reported');
182 + assert.equal(ack.unitId,unit.id); assert.equal(ack.status,'in_progress'); assert.equal(ack.version,1);
183 + const independent = (await api('GET','/v1/me/learning-progress',undefined,token)).json.progress;
184 + assert.equal(independent.length,1); assert.equal(independent[0].status,'in_progress');
185 + const stored = dbJson(`select json_build_object('count',count(*),'status',max(status),'source',max(source),'version',max(version)) from learning_progress where owner_user_id='${owner}' and unit_id='${unit.id}';`);
186 + assert.deepEqual(stored,{count:1,status:'in_progress',source:'self_reported',version:1});
187 + await page.waitForLoadState('networkidle');
188 + await fs.mkdir(path.dirname(receiptFile),{recursive:true});
189 + await page.screenshot({path:receiptFile.replace(/\.json$/, '-progress.png'),fullPage:false});
190 + check('UI progress acknowledgement independently verified through API and PostgreSQL');
191 +
192 + stage = 'quizGate';
193 + const quizResponse = page.waitForResponse(response => response.url().endsWith(`/api/v1/education/units/${unit.id}/assessment`));
194 + await click(page.getByRole('button',{name:'تمرین فهم درس و مرور',exact:true}));
195 + const quiz = await quizResponse; assert.equal(quiz.status(),200);
196 + assert.deepEqual(await quiz.json(),{assessment:null,reason:'review_pending'});
197 + await bodyIncludes(page,'آزمون این درس در انتظار بازبینی است');
198 + check('real draft assessment gate shows no invented question bank');
199 + await click(page.getByRole('button',{name:'برگشتن',exact:true}));
200 +
201 + stage = 'feedback';
202 + await click(page.getByRole('button',{name:'گزارش ایراد این درس',exact:true}));
203 + const syntheticSummary = 'SYNTHETIC_BROWSER_FEEDBACK_NO_PERSONAL_DATA';
204 + const summaryInput = page.getByLabel('خلاصه ایراد یا پیشنهاد',{exact:true});
205 + await summaryInput.pressSequentially(syntheticSummary,{delay:5});
206 + await summaryInput.press('Tab');
207 + const postsBefore = paths.filter(item => item.path === '/api/v1/education/feedback' && item.method === 'POST').length;
208 + await click(page.getByRole('button',{name:'ارسال بازخورد',exact:true}));
209 + await bodyIncludes(page,'خلاصه و رضایت ارسال را تکمیل کن.');
210 + assert.equal(paths.filter(item => item.path === '/api/v1/education/feedback' && item.method === 'POST').length,postsBefore);
211 + await click(page.getByRole('checkbox'));
212 + const feedbackResponse = page.waitForResponse(response => response.url().endsWith('/api/v1/education/feedback') && response.request().method() === 'POST');
213 + await click(page.getByRole('button',{name:'ارسال بازخورد',exact:true}));
214 + const sent = await feedbackResponse; assert.equal(sent.status(),201);
215 + const feedback = (await sent.json()).feedback; assert(uuid.test(feedback.id));
216 + await bodyIncludes(page,'بازخورد در سرور ثبت شد');
217 + assert.equal((await api('GET','/v1/me/education-feedback',undefined,token)).json.feedback[0].summary,syntheticSummary);
218 + check('feedback blocked without explicit consent then acknowledged by real server');
219 + const withdrawnResponse = page.waitForResponse(response => response.url().endsWith(`/api/v1/me/education-feedback/${feedback.id}`) && response.request().method() === 'DELETE');
220 + await click(page.getByRole('button',{name:'پس‌گرفتن رضایت',exact:true}));
221 + assert.equal((await withdrawnResponse).status(),204);
222 + await bodyIncludes(page,'رضایت ارسال پس گرفته شد');
223 + const withdrawn = (await api('GET','/v1/me/education-feedback',undefined,token)).json.feedback[0];
224 + assert.equal(withdrawn.summary,null); assert.equal(withdrawn.shareWithContentTeam,false); assert(withdrawn.withdrawnAt);
225 + const redacted = dbJson(`select json_build_object('count',count(*),'summaryRedacted',bool_and(summary is null),'consentWithdrawn',bool_and(not share_with_content_team),'withdrawn',bool_and(withdrawn_at is not null)) from learning_content_feedback where owner_user_id='${owner}' and id='${feedback.id}';`);
226 + assert.deepEqual(redacted,{count:1,summaryRedacted:true,consentWithdrawn:true,withdrawn:true});
227 + check('withdrawal redacts chosen text and consent in independent API and PostgreSQL');
228 +
229 + stage = 'restart';
230 + await page.goto('about:blank'); await context.close(); context = null;
231 + context = await launch(); page = await boot(context);
232 + await school(page); await lesson(page,course,unit);
233 + await page.waitForLoadState('networkidle');
234 + assert(auth.some(item => item.path === '/api/v1/auth/refresh' && item.status === 200));
235 + const afterRestart = (await api('GET','/v1/me/learning-progress',undefined,token)).json.progress;
236 + assert.equal(afterRestart.length,1); assert.equal(afterRestart[0].version,1);
237 + assert.equal(await page.locator('iframe').count(),0);
238 + check('closed and reopened Chromium refreshes persisted session; independent API retains one acknowledged progress record');
239 +
240 + stage = 'networkAudit';
241 + assert.equal(paths.filter(item => item.origin !== origin).length,0);
242 + assert.equal(errors.length,0); assert.equal(failures.length,0);
243 + assert(paths.some(item => item.path.includes('/canvaskit/') && item.path.endsWith('.wasm')));
244 + for (const font of ['LifeGuidePersian.ttf','LifeGuideLatin.ttf','LifeGuideEmoji.ttf'])
245 + assert(paths.some(item => item.path.endsWith(font)));
246 + check('real compiled runtime uses only local API, fonts and CanvasKit without errors');
247 + await fs.mkdir(path.dirname(receiptFile),{recursive:true});
248 + await page.screenshot({path:screenshotFile,fullPage:false});
249 + const receipt = {date:new Date().toISOString(),mode:'Actual isolated local Compose HTTPS; normal Node and Chromium CA trust; no network interception or TLS bypass',
250 + origin,browser:'Chromium',checks,fixture:'Dedicated synthetic account; no real family/private/media data',
251 + counts:{requests:paths.length,externalRequests:0,iframes:0,browserErrors:0,failedRequests:0},
252 + realApprovedVideoCount:0,realApprovedQuestionBankCount:0,
253 + visualEvidence:{progressScreenshot:path.basename(receiptFile.replace(/\.json$/, '-progress.png')),
254 + reopenedLessonScreenshot:path.basename(screenshotFile),
255 + automatedDynamicProgressSemantics:'UNVERIFIED: dynamic progress/timestamp text was absent from Chromium ARIA after updates; inspect rendered screenshots separately'},
256 + interactionMode:'Rendered Flutter semantic controls activated with DOM element.click because RTL hit rectangles are transformed; text entered through rendered fields and keyboard. No API or state injection. Physical touch/pointer/accessibility acceptance is UNVERIFIED.',
257 + authResponses:auth,fonts:[...new Set(paths.filter(item => /\.(ttf|otf|woff2)$/.test(item.path)).map(item => item.path))],
258 + limitations:['Real Android devices UNVERIFIED','Safari/Add to Home Screen UNVERIFIED','Video playback and teaching quality UNVERIFIED','Iran VPN-free reachability UNVERIFIED','Offline cold startup UNVERIFIED','Dynamic progress accessibility semantics after updates remain unverified; screenshots require separate visual review']};
259 + await fs.writeFile(receiptFile,JSON.stringify(receipt,null,2)+'\n');
260 + console.log(JSON.stringify(receipt,null,2));
261 + } catch (error) {
262 + if (process.env.LEARNING_BROWSER_DIAGNOSTICS && context && stage !== 'realLogin') {
263 + const page = context.pages()[0];
264 + const file = path.resolve(process.env.LEARNING_BROWSER_DIAGNOSTICS);
265 + assert(!file.startsWith(root + path.sep), 'Private diagnostics must stay outside the repo.');
266 + if (page) await fs.writeFile(file,(await page.locator('body').ariaSnapshot())
267 + .replaceAll(email,'[synthetic fixture]').replaceAll(password,'[redacted]'),{mode:0o600});
268 + if (page) await page.screenshot({path:file + '.png',fullPage:false});
269 + }
270 + console.error(`FAIL ${stage}: ${error.message.replaceAll(email,'[synthetic fixture]').replaceAll(password,'[redacted]')}`);
271 + throw new Error(`Local learning browser acceptance failed at ${stage}`);
272 + } finally {
273 + if(context) { for(const page of context.pages()) await page.goto('about:blank').catch(()=>{}); await context.close(); }
274 + await fs.rm(profile,{recursive:true,force:true});
275 + }
276 +})().catch(error => {console.error(error.message);process.exitCode=1;});