LifeMate — Personal, Family & Learning Companion
test: record HTTPS acceptance and LifeGuide handover [skip ci]
Quinn White committed
Oct 12, 2026 at 08:12 UTC
e4cbc8bd37ee8d1c580a3b8ac33c3abfe6e269a3
27 files changed
+1593
-95
CHANGELOG.md
+18
@@ -1,5 +1,23 @@
1
# LifeGuide Changelog
2
3
+## 0.7.1 — 2026-10-12 — shared-network session recovery
4
+
5
+- Fix a real three-account PWA acceptance blocker: public auth capabilities no longer consume sensitive login/delivery attempts, and refresh/logout have a separate bounded session bucket.
6
+- Keep strict sensitive-auth limits and trusted-proxy rules; near-match methods/paths remain strict. Add production-entrypoint PostgreSQL tests for shared-IP family rotation and rate-limit boundaries.
7
+- Flutter remains0.7.0+6 because the client protocol and application source are unchanged. Release signing, hardware/Safari/Iran access and real content review remain UNVERIFIED.
8
+
9
+## 0.7.0 — 2026-10-12 — learning and family operations (test candidate)
10
+
11
+- Preserve Feature 1 and the real shared backend; add owner-private goal mutation receipts, version conflicts, durable client retry and check-in/history UI.
12
+- Add role/admin-transfer/invitation lifecycle with current authorization, atomic invalidation and age-aware safeguards; keep profile category independent of permissions.
13
+- Add explicit school context/year/term editors and versioned lifecycle; preserve linked task/grade/class history when archived.
14
+- Add owner-only quiz/review history and period-scoped parent metrics; clear stale or denied views and stabilize report source fingerprints.
15
+- Add explicitly granted consented-feedback moderation and non-sensitive development briefs; withdrawals invalidate later reads/exports. No external AI, automatic messages or deployment.
16
+- Add a dedicated local synthetic-only publication CLI with review/hash/version gates and immutable attempt history; all real teaching media and question banks remain DRAFT.
17
+- Expose progress updates in Chromium accessibility semantics and add a public offline startup notice without caching API/auth/config or private data.
18
+- Harden expired/revoked-session writes after database lock waits; expand real PostgreSQL/runtime-role acceptance.
19
+- Real Android/Safari/Windows/Iran, full educational review, live hosting, owner release signing and complete product acceptance remain UNVERIFIED; see PROJECT_STATE.
20
+
21
## 0.6.0 — 2026-10-11 — reviewed learning infrastructure (test candidate)
22
23
- Preserve existing online family/planner/study and Feature 1; add grade/academic-track catalogue, deterministic unit IDs and repeatable metadata importer.
PROJECT_STATE.md
+29
-53
@@ -1,72 +1,48 @@
1
# LifeGuide / لایفگاید — وضعیت واقعی پروژه
2
3
-Updated: 2026-10-11. Backend version: **0.6.0**. Branch: **feat/aparat-learning-library**, stacked on **feat/online-family-stage0**, based on main `abdc9d9d032bc6746c8390b902a2e52d82991530`. Repository remains `davoodmehraban89/LifeMate`.
3
+Updated: 2026-10-12. Backend **0.7.1**; Flutter **0.7.0+6**. Branch **feat/learning-content-operations**, stacked on **feat/aparat-learning-library** at `fccc10e9604ae0c6b6b4aa8949b443fb90ca4b1c`. Main remains `abdc9d9d032bc6746c8390b902a2e52d82991530`. Repository remains `davoodmehraban89/LifeMate`; Android identity remains `ir.lifeguide.app`.
4
5
-**Status: shared online Stage 0 stack verified locally with synthetic data; hardware/release gates remain open. Not a complete operational product or public release.** Prior COMPLETE/READY claims are retained only in [historical checkpoint](docs/history/2026-10-05-project-state.md); they do not prove this candidate's acceptance. [Draft PR #10](https://github.com/davoodmehraban89/LifeMate/pull/10) is open; main is not merged.
5
+**نامزد آزمون با داده ساختگی؛ نسخه کامل عملیاتی یا انتشار عمومی نیست.** [ممیزی فاصله تا تکمیل](docs/audits/2026-10-11-completion-gap-analysis.md) مبنای این بسته است. جزئیات و خروجیهای تاریخی0.6.0 در [checkpoint قبلی](docs/history/2026-10-11-project-state-0.6.0.md) حفظ شدهاند؛ آن CI موفق، اجرای تازه این منبع نیست. [PR پیشنویس۱۲](https://github.com/davoodmehraban89/LifeMate/pull/12) روی۱۱ باز است؛۱۰،۱۱ و۱۲ ادغام نشدهاند.
6
7
-## Current education packet —0.6.0
7
+## بسته جاری0.7.1 / کلاینت0.7.0+6
8
9
-This feature branch preserves the online0.5.1 base and Feature1. [Draft PR #11](https://github.com/davoodmehraban89/LifeMate/pull/11) is open on the previous online feature branch; neither PR is merged. It adds migrations0013–0015, grade/three academic-track library, real owner-private progress, lesson-linked planner/timer, reviewed/versioned formative assessment and explicitly consented feedback. Android first-run connection is explained without a guessed public URL. Runtime DB credentials cannot write catalogue/review/question definitions; only the separate migrator/importer can. [Current0.6.0 handover](docs/operations/HANDOVER_0.6.0.md) supersedes the old artifact links for this feature.
9
+- عملیات بازخورد آموزشی: دسترسی صریح و قابل لغو مستقل از مدیر خانواده؛ فقط خلاصهای که مالک با رضایت انتخاب کرده، triage نسخهدار و تهیه برنامه توسعه بدون متن خصوصی یا مشخصات مالک. پسگرفتن رضایت، خواندن/brief بعدی را متوقف میکند. ارسال خودکار به AI، پیامرسان یا agent و انتشار خودکار وجود ندارد.
10
+- اهداف خصوصی: CRUD/بایگانی روی API/PostgreSQL، UUID پایدار، کنترل نسخه، صف بادوام و رسید معتبر؛ بازتاب یادگیری و تاریخچه از API خصوصی موجود. درخواستهای legacy بدون idempotency پس از پاسخ نامعلوم فقط دوباره خوانده میشوند، نه خودکار نوشته.
11
+- خانواده: مدیریت UI روی API واقعی، انتقال اتمی مدیریت، تغییر نقش و لغو دعوت با مجوز فعلی؛ لغو نقش/عضویت، اشتراک و سرپرستی ناسازگار را قطع میکند. نوع پروفایل مجوز نیست. سن ثبتشده، احراز هویت رسمی سن محسوب نمیشود.
12
+- مدرسه: مدیریت زمینه/سال/نیمسال نسخهدار و بایگانی بدون حذف تکلیف/تاریخ؛ درس و کلاس از API موجود. تاریخها صریح انتخاب میشوند؛ راهاندازی ثابت و ساخت خودکار سال نمونه حذف شده است.
13
+- مرور و گزارش: تاریخچه آزمون و مرور فقط برای مالک؛ گزارش مجاز والد با شمارندههای بازه مستقل از کل سابقه، زمان تهران، نمره مدرسه جدا از کوییز خصوصی و رفع fingerprint ناپایدار. خطای دریافت، داده قبلی را تازه معرفی نمیکند. زمان تایمر یا خوداظهاری اثبات مطالعه نیست.
14
+- شروع آفلاین PWA: service worker فقط صفحه عمومی قطع اتصال ارائه میکند؛ API/config/auth یا داده خصوصی را بهجای پاسخ شبکه برنمیگرداند. دسترسی آفلاین به برنامه احراز هویتشده پس از cold-start، quota/eviction و Safari هنوز UNVERIFIED هستند.
15
+- ابزار محلی عملیات انتشار برای fixture ساختگی با credential جدا، dry-run، هش/نسخه/review gate و journal شناسه/هش؛ API حق انتشار ندارد. این ابزار مجوز انتشار درس واقعی یا تأیید بازبینی ویدیو نیست.
16
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.
17
+## آموزش واقعی و دامنهها
18
13
-Feedback is voluntarily written chosen text; no private chat/health extraction, admin/notification/export pipeline or autonomous AI/deploy is implemented. Adult/family education and age-appropriate support are documented future domains; AI/voice and sensitive health remain disabled. Minor safeguarding, consent/legal gates and in-country sensitive storage require separate review before implementation.
19
+Feature 1 ایران و Backend/خانواده/planner/offline queue/آزمونهای مجوز main حفظ شدهاند؛ LocalOnlyApi وارد نسخه آنلاین نشده است. موجودی تحقیق:217 کتاب،1373 بخش،1348 نامزد ویدیو؛ **ویدیوی واقعی با بازبینی کامل و منتشرشده:0؛ بانک سؤال واقعی منتشرشده:0**. نمونه اصیل ریاضی اول ابتدایی برای چاپ1405–1406 و چند کتاب متوسطه بررسی محدود مستند دارند؛ [گزارش و حدود بررسی](docs/research/2026-10-11-math-pilot-review.md). فایل draft ریاضی reviewRecord:null دارد. مشاهده کامل فیلم، حقوق نمایش، تطبیق همه صفحات، بازبینی متخصص و ارزیابی اثر یادگیری هنوز تکمیل نشدهاند. metadata و امتیاز یک کوییز تضمین فهم یا یک سال مدرسه نیستند.
20
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.
21
+APK نصب تازه آدرس HTTPS **API فعال مشترک** میخواهد؛ default عمومی تأییدشده وجود ندارد. طبق [بررسی اتصال11اکتبر](docs/audits/2026-10-11-apk-connection.md)، app.lifeguide.ir هنوز HTML قدیمی ارائه میکرد و مسیرهای config/health/ready بررسیشده API JSON سازگار نبودند. این گزارش بررسی تازه12اکتبر DNS/دامنه نیست. هیچ DNS یا سرویس زنده تغییر نکرده است.
22
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).
23
+## اجرای بسته جاری
24
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.
25
+نسخه پایه0.7.0 واقعاً آزموده و ساخته شد: Node22/PG16 **244/244**؛ Flutter **200/200**، formatter69فایل/بدون تغییر و analyzer clean؛ syntax67فایل و npm audit صفر vulnerability؛20 migration checksumدار و repeat/import repeat؛ چهار ماتریسSQL؛ runtime family9/9 و learning/family/school/report96/96؛58 منعSQL هم در source و هم restore. backup با credential read-only و restore با migrator مستقل، تاریخچه و session600ثانیه را حفظ کردند.
26
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.
27
+release web محلی56.8ثانیه ساخته شد؛ fonts/CanvasKit محلی، تست compiled14request/zeroexternal، guards8+8، Chrome3/3، حفظ صف پس از expiry، checker/provenance و Windows-style checkout/tamper rejection موفق شدند. API استاندارد Dockerfile و gateway prebuilt واقعاً ساخته شدند؛ Compose با role محدود سالم است،20/20checksum و صفر محتوای واقعی published مستقلSQL تأیید شد. HTTPS round-trip7مرحله موفق شد. مرورگر واقعی HTTPS بدون interception/TLS-bypass **14/14**،90درخواست محلی و صفرخطا گذراند: ثبت/بازگشایی، AXstatus، feedback/withdrawal، آفلاین با حفظ exact bytes و reconnect یک mutation بدون duplicate. [Receipt](docs/audits/evidence/content-operations-browser-2026-10-12.json). تصویر اول و بازگشایی SHA یکسان دارند؛ root تصویر درس را بررسی کرد. در تستیار، نام AX محاسبهشده Chromium فاصلهها را normalize میکند؛ مقایسه صرف newline نادرست اصلاح شد، وضعیت و timestamp همچنان دقیق بررسی میشوند.
28
23
-## Baseline and reuse
29
+[CI نهایی38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644) روی source `0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef`: هر سه job SUCCESS؛ Node245/245، Flutter200/200، syntax68 و audit0، role9+96 و restore موفق. [Receipt و خطوط خروجی](docs/audits/evidence/ci-content-operations-final-2026-10-12.json). root اجرای محلی0.7.1 را نیز با245/245 و regression7/7 مشاهده کرد. [گزارش کامل پذیرش A–H و شکستها](docs/audits/2026-10-12-content-operations-verification.md).
30
25
-[Main gap analysis](docs/audits/2026-10-08-online-gap-analysis.md) was written before new implementation. GitHub refs verified: local persistence `62e82ba`, backend safety `e5e3e41`, Cloudflare/Neon `7a83ca8`; only isolated backend safety commit reused. Login-free LocalOnlyApi and managed-host adapters were not merged into the online product. Main already contains family/guardian identity, planner/offline queue, authorization tests and **Feature 1** Iranian education/catalog/calendar/preferences; these are preserved. Feature 1 household persona is a preference, not a server grant of parental access. Health/cycle UI and external AI/voice remain disabled.
31
+APK واقعی **0.7.0/code6/ir.lifeguide.app** ساخته، manifest و debug-v2signature روی runner بررسی شد؛ root ZIP و APK را دانلود و digest/manifest مستقل تأیید کرد. [APK نهایی](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941)، [وب](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928). APK168960414bytes، SHA `b9b8599de796986cf2800ce24782ee85bc87a7d97889d2d194465f0ad4f07915`. debugcertificate با قبلی فرق دارد؛ نصب/ارتقا UNVERIFIED و حذف داده برای حل تفاوت امضا مجاز نیست. خروجی release امضاشده مالک هنوز ساخته نشده است.
32
27
-## Current implementation
33
+آزمون خانواده سهحسابی HTTPS واقعی: تکلیف ریاضی → مادر در PWA → تایمر با pause/resume → گزارش → تکمیل → پدر جدا → بازگشایی نشستها، پنج اجرای مرورگر117درخواست بدون خطای آن runهای موفق. اقدام فرزند از API بود، نه Android. SQL مستقل taskv6/completed/1800seconds برنامه و session4seconds/دوinterval را تأیید کرد؛ UI زیر یک دقیقه را0 دقیقه نشان میدهد. [Receipt](docs/audits/evidence/contentops-family-real-https-2026-10-12.json).
34
29
-- Shared Node/Express/Argon2id/PostgreSQL with migrations 0007–0012: optional email/phone identity, verification delivery recovery, rate-limited resend, opt-in HTTPS webhook SMS adapter, hashed tokens and refresh rotation. Test runner removes inherited live delivery/AI settings.
30
-- Current family/membership/guardian checks, private notes stripped from shared task views, report metrics scoped per visible task. Family archival and revoked membership/guardian relationships close access. Selected grants do not resurrect after rejoining.
31
-- Canonical plan creation version1, stable UUID offline mutations, request-hash idempotency, row/owner locks, expected-version conflicts, canonical server acknowledgement; edit and safe archive use real storage.
32
-- Study sessions/intervals/events survive backend restart; start/pause/resume/stop, corrections/archive, overlap/duplicate protection. Timer/self-reported durations are explicitly not proof of study. Guardian confirmation requires authorized evidence.
33
-- Persian RTL parent views, allowed learning reports, activity timestamps, last-refresh/error state and polling. Seven/thirty-day reports include all of today in Tehran, without changing server freshness timestamps. Android endpoint settings/fallback selection and web no-store config.json use one chosen HTTPS API; endpoint/account switch clears old credentials/cache. Forced session expiry instead quarantines the same account/endpoint namespace without deleting unsent work; only a fresh authenticated handle can recover it.
34
-- Client queue/cache scoped to endpoint+authenticated user, durable enqueue-before-send, FIFO chains, malformed-ack rejection, conflicts retained, logout generation invalidation. Explicit server conflict choice journals local payloads before removing their full pending chain. Storage failures are not mistaken for network outages.
35
-- Subject/class and private learning check-in CRUD/archive now use owner validation and retain linked homework/history. Profile category and editable display name remain independent of family permissions.
36
-- Self-hosted Compose API/Postgres/nginxTLS + backup cron/healthchecks; independent non-superuser migrator, runtime DML and read-only backup credentials. Explicit backup-validated existing-object adoption; unexpected ownership/privileges fail before mutation. Tested synthetic backup/restore uses existing scripts. Runtime web fonts/CanvasKit are bundled locally. Notification polling uses a replaceable delivery port; background push is not enabled.
37
-- Web bootstrap holds one exclusive origin/browser-profile Web Lock before engine/session/cache access. A second instance or unsupported browser shows a Persian retry screen. Page lifecycle invalidation guards delayed HTTP responses and stale cache handles. Actual Safari/BFCache acceptance remains UNVERIFIED.
38
-- Product rebrand **LifeGuide**, Android **ir.lifeguide.app**, release key required from secrets; automatic public publishing and unused fix workflow removed. Deployment and signed-APK workflows are manual and disabled by default.
35
+تست والد نقص429 هنگام reopen را آشکار کرد. اصلاح0.7.1 فقط GET دقیق capabilities و POST دقیق refresh/logout را در budgetهای محدود جدا نگه میدارد؛ ورود/بازیابی/ارسال همچنان سقف حساس10/600 دارند. 30درخواست HTTPS واقعی روی API role محدود و سه حساب موفق؛ task و report هر دو والد پس از تعویض image محفوظ بود. [Receipt](docs/audits/evidence/contentops-nat-https-2026-10-12.json). دو probe اضافی والد ERR_ABORTED داشتند؛ دو retry بدون تغییر/ورود تازه و probe ابزارشده بعدی موفق بودند. علت لغوهای قبلی UNVERIFIED و در گزارش حفظ است؛ ادعای بیخطایی همه probeها وجود ندارد.
36
40
-## Execution evidence so far
37
+## محدودیتها و گیتهای باز
38
42
-Actual output and A–H limits are recorded in [online acceptance](docs/audits/2026-10-08-online-acceptance.md) and [Stage 0 verification](docs/audits/2026-10-08-stage0-verification.md). Root reran Node22.23.3 against a fresh PostgreSQL16 database: **130/130 passed, zero failures/skips**. All twelve migrations applied, four SQL matrices passed, syntax check covered 38 files and dependency audit reported zero vulnerabilities. The independent real-entrypoint/HTTP/DB eight-step substitute passed **9/9**. Flutter aggregate **64/64**, analyzer clean; final frozen-source release web build **57.5s**. Compiled browser request test observed 14 local requests, zero external/missing/error; its HTTPS responses are explicitly intercepted and do not prove real TLS.
39
+- Android واقعی سهدستگاه، نصب/ارتقا با داده معلق؛ iPhone/iPad Safari و Add to Home Screen، لمس و screen reader: UNVERIFIED.
40
+- Windows/LAN/mkcert مالک، شبکه ایران بدون VPN، انتخاب میزبان/پرداخت/KYC، ایمیل/پیامک واقعی و push پسزمینه: UNVERIFIED.
41
+- امضای release با keystore مالک و انتشار LifeGuide.apk: UNVERIFIED. خروجی debug انتشار رسمی نیست؛ برای تفاوت امضا، داده ارسالنشده را حذف نکنید.
42
+- حساب/contact/closure و سیاست نگهداری، آزمون تشریحی/rubric، سنجش تشخیصی و برنامه یادگیری تطبیقی، پوشش کامل کتابهای نظری/فنیوحرفهای و آموزش خانواده هنوز کامل نیستند.
43
+- AI/voice خارجی، سلامت/چرخه و مشاوره حساس کودک غیرفعالاند. رضایت/حقوق/نگهداری داخلی و safeguarding باید جداگانه طراحی و بررسی تخصصی شوند؛ هیچ استخراج گفتوگوی خصوصی یا ارسال خودکار برای والد/مدیر انجام نمیشود.
44
+- Production/live deploy، DNS، انتقال داده واقعی، merge نهایی، انتشار عمومی، ثبتنام یا خرید مجاز نیستند و اجرا نشدهاند. درخواست ادامه توسعه جای مجوز صریح آن اقدامات را نمیگیرد.
45
44
-On 2026-10-08, local prebuilt Compose PostgreSQL/API/nginxTLS/backup were observed healthy. Real trusted HTTPS smoke passed create/read/archive/logout; synthetic family task and 1500-second paused session survived API image recreation. Mother/father browser rendering and session restart evidence are recorded separately from backend substitutes. Backup cron, two concurrent distinct archives and fresh synthetic restore/privacy/session drill passed. Complete SDK Dockerfile image build failed with disk/snapshot exhaustion; **UNVERIFIED**, while the checked host/CI web artifact has a lighter Compose packaging path. Historical checksum-less ledger entries are not retrospectively certified; fresh twelve-entry ledgers have checksums.
46
+## راه تحویل و اقدام مالک
47
46
-The first source CI passed backend tests/SQL but failed backup due to non-executable scripts; file mode and PostgreSQL16 client/container invocation were fixed and local restore retained **12/12** ledger/checksum entries. Final source commit **`7d9366832adaaab4cc3f24ef4d928fddd307fdc9`**, [CI run 37810558847](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847): **all three jobs succeeded**, including 130 backend tests, 64 Flutter tests, PostgreSQL16 backup/restore, release web build and actual debug APK build/upload. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11563914781) and [LifeGuide-debug-apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11565283053) are test artifacts; debug signing is not a release. Independent downloaded APK inspection/install and release signing remain **UNVERIFIED**. Subsequent handover documentation does not change the application source tested by that run. No live host, DNS, production deploy, real-data migration, merge, signup, purchase or public release ran.
47
-
48
-The subsequent handover-only commit `1c162a5` initially hit a GitHub account restriction before any runner started. After the owner reported it resolved, root actually requested rerun: [run37813595994 attempt2](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994/attempts/2) completed all three jobs successfully on the same source:130 backend tests,64 Flutter tests, web and debug APK upload. [Historical restriction and exact fresh artifact receipts](docs/audits/2026-10-09-ci-billing-block.md). No account/payment settings were changed. That CI success does not cover the new0.5.1 changes.
49
-
50
-The0.5.1 packet and its evidence are tracked in [isolation verification](docs/audits/2026-10-09-isolation-verification.md). Actual fresh client tests: **68/68 Flutter, zero failures/skips;3/3 Chrome Dart guards, zero skips; analyzer clean**. Forced401/403 expiry tests preserve stable mutation UUID/payloads, invalidate old stores, isolate another account and allow one replay after same-account authentication; deliberate logout/server switch still discards. Final frozen-source release web build passed in43.0s;14 local asset requests/zero external or errors,8 compiled instance cases and forced-expiry exact-byte preservation passed. PostgreSQL final role drill passed9/9 runtime family tests,17 denied SQL checks per source/restored DB and12 checksum migrations. Current Compose API really uses lifeguide_api without admin/DDL flags; the existing completed task and1500-second session stayed unchanged. Real trusted HTTPS smoke7/7 and fresh mother PWA login/report passed, with23 same-origin requests and no private note. [Screenshot and sanitized receipt](docs/audits/2026-10-09-isolation-verification.md). [New source CI](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) on7c4ca78 completed all three jobs successfully:130 backend,9 runtime-family,68 Flutter,3 Chrome guards, compiled gate8, expiry retention, web and debug APK. Actual APK binary manifest0.5.1/code4/ir.lifeguide.app and valid Android Debug v2 signature were inspected on the runner; this is not a signed release or device acceptance. [Artifact IDs, binary/ZIP digests and receipt](docs/audits/2026-10-09-isolation-verification.md). Final handover changes after that source are documentation only with[skip ci], not a claimed successful latest-head CI. Unrun checks remain UNVERIFIED. No live deploy, DNS, real-data migration, merge, signup, purchase or public release ran.
51
-
52
-## UNVERIFIED acceptance and remaining gates
53
-
54
-- Real Android three-device lifecycle/install/upgrade; iPhone/iPad Safari login, Add to Home Screen and safe PWA update.
55
-- Windows PowerShell/WSL2/mkcert owner-PC installation and trusted mobile TLS.
56
-- VPN-free API/PWA/APK reachability inside Iran; foreign VPS/payment/KYC eligibility. No suitable long-term free/no-card VPS was verified; Stage 0 LAN is the primary recommendation.
57
-- Real email/SMS delivery/provider/payment, timing-indistinguishability of registration, background push.
58
-- Owner release keystore/certificate, genuinely signed LifeGuide.apk and public availability.
59
-- Legal/consent/retention gates for minor wellbeing and cycle data; in-country sensitive storage policy. These gates are flagged, not implemented or certified.
60
-- Complete account contact/closure, active-member role/admin transfer, and legacy life-context/year/term lifecycle CRUD; richer school/check-in UI and detailed exam/grade reports. Subject/class/check-in API CRUD is now tested, but that does not complete every auxiliary entity or its UI.
61
-- Real-host credential/ownership transition and encrypted/off-PC backups. Local independent-role tests do not authorize changing live privileges. [Database role runbook](docs/operations/DATABASE_ROLES.md).
62
-- Fully offline cold PWA startup, browser eviction/storage quota and hardware accessibility/update behavior; real Safari and actual BFCache restore. Exclusive-instance tests use Chromium; close all old app versions once before upgrading. Pending study events must receive acknowledgement before another event is recorded.
63
-
64
-## Next and operator responsibilities
65
-
66
-Owner currently has no access to the home PC; no immediate owner action is required. Windows/mobile Stage0 acceptance stays pending until PC/LAN access returns. [Read-only public domain audit](docs/audits/2026-10-09-public-domain.md) at07:32:31UTC observed app.lifeguide.ir still serving0.1.0/build1 behind Arvan; the owner panel screenshot supports a Railway origin. This is the old public deployment, not the0.5.1 test endpoint; no DNS/origin change ran. Public GET results do not prove Iran VPN-free reachability or device acceptance.
67
-
68
-The independent [Stage0 readiness packet](docs/audits/2026-10-09-stage0-readiness.md) fixes a reproduced Windows-style Git checkout failure with a standard LF text/binary-preservation policy. Root actually ran RED/GREEN on Node22.23.3 using the unchanged real web artifact: Windows/LF checkout, three shell endings,13 binary inputs and source/artifact tamper rejection passed. No local Flutter rebuild/restamp or actual Windows run happened. The new regression then ran successfully after a fresh web build in [CI37900944165](https://github.com/davoodmehraban89/LifeMate/actions/runs/37900944165), source7d35ee6.
69
-
70
-The same packet fixes a reproduced false TLS PASS under inherited insecure Node settings. Node22.23.3 local HTTPS regression passed5/5 with zero failures/skips after explicit verified-TLS enforcement. Root's real existing Compose read-only smoke passed5 checks at07:43:47UTC; it did not opt into a new write round-trip. No task/session, live host or trust-store setting was changed. CI37900944165 completed all three jobs SUCCESS, including new TLS5/5 and checkout tests,130 backend,9 family,68 Flutter,3 Chrome guards, web and actual debug APK build/manifest/v2 signature. [Receipt and current artifacts](docs/audits/evidence/ci-stage0-readiness-2026-10-09.json). The official connector downloaded the ZIP for private delivery; local extraction returned403 and is UNVERIFIED. Actual device install/upgrade, owner-signed release and public hosting remain open. The new debug certificate differs from the earlier CI build; no uninstall/data erase was performed or recommended for unsent work. Documentation follow-up does not claim an additional latest-head CI run.
71
-
72
-Owner follows [exact0.5.1 handover steps](docs/operations/HANDOVER_0.5.1.md) and runs [Stage 0](docs/operations/STAGE0.md) using the checked prebuilt web artifact, synthetic accounts and A–H hardware acceptance; record real Android/Safari/Windows and VPN-free Iran results before operational use. Remaining engineering packets include account/membership lifecycle CRUD and detailed school UI/report gaps. Follow the explicit DB-role adoption runbook for an existing local fixture; never run it on a live database without approval. Owner chooses hosting, DNS, SMS/email provider and signing key outside chat; any live change needs its explicit approval. [Hosting ADR](docs/decisions/0009-provider-neutral-hosting.md), [naming ADR](docs/decisions/0010-lifeguide-naming.md), [migration/rollback](docs/operations/DOMESTIC_MIGRATION.md).
48
+[تحویل0.7.1 و مراحل دقیق](docs/operations/HANDOVER_0.7.1.md)، [Stage0 رایگان](docs/operations/STAGE0.md)، [نقشهای مستقل دیتابیس](docs/operations/DATABASE_ROLES.md)، [میزبانی](docs/decisions/0009-provider-neutral-hosting.md)، [نامگذاری](docs/decisions/0010-lifeguide-naming.md)، [مهاجرت داخلی و rollback](docs/operations/DOMESTIC_MIGRATION.md). مالک پس از دسترسی به PC/LAN آزمونهای واقعی را اجرا میکند؛ تا آن زمان اقدام فوری لازم نیست. انتخاب سرور، DNS، SMS/email provider و key امضا خارج چت و پیش از هر تغییر زنده انجام میشود.
README.md
+5
-3
@@ -4,11 +4,13 @@
4
5
این شاخه یک **نامزد آزمون آنلاین با داده ساختگی** است. نسخه کامل عملیاتی یا منتشرشده نیست. پذیرش Android/iPhone/Safari واقعی و دسترسی بدون VPN داخل ایران **UNVERIFIED** است. Backend موجود و Feature 1 ایران حفظ شدهاند؛ حالت بدون ورودِ محلی جای سیستم چندکاربره نیست.
6
7
-## آموزش در نسخه 0.6.0 آزمایشی
7
+## آموزش و مدیریت در Backend0.7.1 / کلاینت0.7.0+6 آزمایشی
8
9
کتابخانه پایه ۱ تا ۱۲ و سه رشته نظری، انتخاب پایه/رشته/سال، پیشرفت شخصی پایدار، پیوند درس به برنامه و تایمر، سنجش پاسخ در سرور با توضیح و مرور، و بازخورد با رضایت صریح اضافه شدهاند. زیرساخت سنجش با سؤال ساختگی آزموده میشود؛ بانک سؤال واقعی هنوز منتشر نشده است.
10
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 ادغام نشده است.
11
+این بسته مدیریت اهداف خصوصی، خانواده و فضای تحصیلی، تاریخچه مرور، گزارش بازهای والد و عملیات بازخورد با رضایت را روی API واقعی تکمیل میکند. ابزار بازبینی محتوا فقط fixture ساختگی را محلی منتشر میکند؛ محتوای واقعی بدون بررسی کامل فعال نمیشود. حالت شروع آفلاین فقط اعلان عمومی قطع اتصال نشان میدهد و داده قدیمی را زنده معرفی نمیکند. [وضعیت تازه](PROJECT_STATE.md) و [ممیزی شکافها](docs/audits/2026-10-11-completion-gap-analysis.md).
12
+
13
+۲۱۷ کتاب، ۱۳۷۳ بخش و ۱۳۴۸ منبع ویدیویی برای بررسی فهرست شدهاند؛ **تعداد ویدیوهای واقعی با بازبینی کامل و منتشرشده صفر است**. این اعداد پوشش کامل آموزش نیستند. چاپ جاری ۶۲ کتاب ابتدایی از صفحات رسمی بررسی شده؛ سال چاپ ۱۵۵ کتاب متوسطه هنوز تأیید نشده است. کاردانش/فنیوحرفهای و بانک کامل امتحان پیادهسازی نشدهاند. [روند بررسی و انتشار محتوا](docs/operations/LEARNING_CONTENT.md)، [شواهد این بسته](docs/audits/2026-10-12-content-operations-verification.md) و [تحویل0.7.1](docs/operations/HANDOVER_0.7.1.md). [PR پیشنویس۱۲](https://github.com/davoodmehraban89/LifeMate/pull/12) روی۱۱ است؛ main ادغام نشده است. [APK آزمایشی ساختهشده](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941) امضای debug دارد؛ release رسمی نیست.
14
15
APK نصب تازه آدرس HTTPS **API فعال مشترک** را از مدیر سرویس میخواهد؛ ذخیره آدرس، تست اتصال نیست. [بررسی صفحه اتصال](docs/audits/2026-10-11-apk-connection.md). دامنه عمومی بررسیشده هنوز API سازگار این بسته را ارائه نمیکند؛ URL حدسی یا رمز/توکن در این صفحه وارد نکنید.
16
@@ -16,7 +18,7 @@ APK نصب تازه آدرس HTTPS **API فعال مشترک** را از مدی
18
19
Windows/LAN: [راهنمای Stage 0](docs/operations/STAGE0.md). Docker Desktop/Compose و گواهی HTTPS مورد اعتماد دستگاههای آزمون لازماند؛ حساب یا پرداخت میزبان لازم نیست. مسیر بررسیشده، بستهبندی وب از خروجی واقعی build است: خروجی وب مربوط به همین commit (artifact تاریخی0.5.1 با این منبع سازگار نیست) را همراه فایل provenance در `apps/lifemate/build/web` استخراج کنید، یا مطابق راهنما با Flutter3.47.6 بسازید. checkout باید شامل همان کد برنامه باشد؛ checker خروجی قدیمی یا نامنطبق را رد میکند.
20
19
-اگر به رایانه دسترسی ندارید، فعلاً اقدامی لازم نیست. [دامنهٔ عمومی](docs/audits/2026-10-09-public-domain.md) هنوز نسخهٔ قدیمی است؛ آزمون بستهٔ جدید پس از دسترسی به PC/LAN انجام میشود. policy پایان خط در `.gitattributes`، ورودیهای متنی را حتی با تنظیم رایج Git ویندوز بهصورت LF نگه میدارد؛ فونتها و آیکونهای باینری تغییر نمیکنند. hash نامنطبق را با stamp دوباره دور نزنید.
21
+اگر به رایانه دسترسی ندارید، فعلاً اقدامی لازم نیست. [بررسی اتصال دامنه11اکتبر](docs/audits/2026-10-11-apk-connection.md) هنوز نسخهٔ قدیمی است؛ آزمون بستهٔ جدید پس از دسترسی به PC/LAN انجام میشود. policy پایان خط در `.gitattributes`، ورودیهای متنی را حتی با تنظیم رایج Git ویندوز بهصورت LF نگه میدارد؛ فونتها و آیکونهای باینری تغییر نمیکنند. hash نامنطبق را با stamp دوباره دور نزنید.
22
23
```powershell
24
node scripts/prebuilt-web-check.mjs apps/lifemate
apps/lifemate/tool/assert-learning-progress-semantics.cjs
+6
-2
@@ -33,10 +33,14 @@ async function assertLearningProgressSemantics(page, progress) {
33
const session = await page.context().newCDPSession(page);
34
try {
35
const {nodes} = await session.send('Accessibility.getFullAXTree');
36
+ // Chromium flattens whitespace in computed accessible names. The DOM
37
+ // attribute above must remain exact; AX content is compared under the
38
+ // browser's name normalization without dropping status or timestamp.
39
+ const normalizedName = value => String(value).replace(/\s+/gu,' ').trim();
40
const matches = nodes.filter(node => !node.ignored &&
37
- node.role?.value === 'status' && node.name?.value === label);
41
+ node.role?.value === 'status' && normalizedName(node.name?.value) === normalizedName(label));
42
assert.equal(matches.length, 1,
39
- 'The updated label must appear in Chromium accessibility, not only DOM attributes.');
43
+ `The updated label must appear in Chromium accessibility, not only DOM attributes; status names: ${JSON.stringify(nodes.filter(n=>!n.ignored&&n.role?.value==='status').map(n=>n.name?.value))}`);
44
assert.equal(nodes.filter(node => !node.ignored &&
45
node.role?.value === 'StaticText' && node.name?.value?.startsWith('پیشرفت شخصی:')).length, 0,
46
'Do not duplicate progress announcements through excluded child Text widgets.');
docs/audits/2026-10-08-naming.md
+106
-31
@@ -13,48 +13,67 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
13
| .github/workflows/ci.yml:84 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | docker exec -i -e DATABASE_URL=postgresql://postgres:synthetic_ci_only@127.0.0.1:5432/lifemate_ci "$PG_CONTAINER" bash -s -- /tmp/lifeguide-ci.dump < backend/scripts/backup.sh |
14
| .github/workflows/ci.yml:87 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | test "$(docker exec "$PG_CONTAINER" psql -U postgres -d lifeguide_restore -Atc 'select count(*) from schema_migration')" = "$(docker exec "$PG_CONTAINER" psql -U postgres -d lifemate_ci -Atc 'select count(*) from schema_ |
15
| .github/workflows/ci.yml:91 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | run: {working-directory: apps/lifemate} |
16
-| .github/workflows/ci.yml:125 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-web, path: apps/lifemate/build/web, if-no-files-found: error} |
17
-| .github/workflows/ci.yml:140 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-debug-apk, path: apps/lifemate/build/LifeGuide-debug.apk, if-no-files-found: error} |
16
+| .github/workflows/ci.yml:126 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-web, path: apps/lifemate/build/web, if-no-files-found: error} |
17
+| .github/workflows/ci.yml:141 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-debug-apk, path: apps/lifemate/build/LifeGuide-debug.apk, if-no-files-found: error} |
18
| .github/workflows/release-build.yml:16 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | run: {working-directory: apps/lifemate} |
19
| .github/workflows/release-build.yml:40 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | with: {name: LifeGuide-signed-apk, path: apps/lifemate/build/LifeGuide.apk, if-no-files-found: error} |
20
-| PROJECT_STATE.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Updated: 2026-10-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: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 |
20
+| PROJECT_STATE.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Updated: 2026-10-12. Backend **0.7.1**; Flutter **0.7.0+6**. Branch **feat/learning-content-operations**, stacked on **feat/aparat-learning-library** at 'fccc10e9604ae0c6b6b4aa8949b443fb90ca4b1c'. Main remains 'abdc9d9d0 |
21
+| PROJECT_STATE.md:5 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | **نامزد آزمون با داده ساختگی؛ نسخه کامل عملیاتی یا انتشار عمومی نیست.** [ممیزی فاصله تا تکمیل](docs/audits/2026-10-11-completion-gap-analysis.md) مبنای این بسته است. جزئیات و خروجیهای تاریخی0.6.0 در [checkpoint قبلی](do |
22
+| PROJECT_STATE.md:29 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | [CI نهایی38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644) روی source '0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef': هر سه job SUCCESS؛ Node245/245، Flutter200/200، syntax68 و audit0، role9 |
23
+| PROJECT_STATE.md:31 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | APK واقعی **0.7.0/code6/ir.lifeguide.app** ساخته، manifest و debug-v2signature روی runner بررسی شد؛ root ZIP و APK را دانلود و digest/manifest مستقل تأیید کرد. [APK نهایی](https://github.com/davoodmehraban89/LifeMate/act |
24
| 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 |
33
-| README.md:55 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate --stamp-after-build |
25
+| README.md:13 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | ۲۱۷ کتاب، ۱۳۷۳ بخش و ۱۳۴۸ منبع ویدیویی برای بررسی فهرست شدهاند؛ **تعداد ویدیوهای واقعی با بازبینی کامل و منتشرشده صفر است**. این اعداد پوشش کامل آموزش نیستند. چاپ جاری ۶۲ کتاب ابتدایی از صفحات رسمی بررسی شده؛ سال چاپ ۱۵ |
26
+| README.md:19 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Windows/LAN: [راهنمای Stage 0](docs/operations/STAGE0.md). Docker Desktop/Compose و گواهی HTTPS مورد اعتماد دستگاههای آزمون لازماند؛ حساب یا پرداخت میزبان لازم نیست. مسیر بررسیشده، بستهبندی وب از خروجی واقعی build اس |
27
+| README.md:24 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
28
+| README.md:50 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | cd apps/lifemate |
29
+| README.md:57 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate --stamp-after-build |
30
| apps/lifemate/android/app/src/main/AndroidManifest.xml:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | android:icon="@drawable/lifemate_logo"> |
35
-| apps/lifemate/lib/main.dart:20 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | runApp(const LifeMateApp()); |
36
-| apps/lifemate/lib/main.dart:23 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | class LifeMateApp extends StatefulWidget { |
37
-| apps/lifemate/lib/main.dart:24 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const LifeMateApp({super.key, this.api, this.runtime}); |
38
-| apps/lifemate/lib/main.dart:29 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | State<LifeMateApp> createState() => _LifeMateAppState(); |
39
-| apps/lifemate/lib/main.dart:32 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | class _LifeMateAppState extends State<LifeMateApp> { |
31
+| apps/lifemate/lib/main.dart:27 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | runApp(const LifeMateApp()); |
32
+| apps/lifemate/lib/main.dart:30 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | class LifeMateApp extends StatefulWidget { |
33
+| apps/lifemate/lib/main.dart:31 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const LifeMateApp({super.key, this.api, this.runtime}); |
34
+| apps/lifemate/lib/main.dart:36 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | State<LifeMateApp> createState() => _LifeMateAppState(); |
35
+| apps/lifemate/lib/main.dart:39 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | class _LifeMateAppState extends State<LifeMateApp> { |
36
| apps/lifemate/pubspec.yaml:1 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | name: lifemate |
37
| apps/lifemate/test/aparat_player_test.dart:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/aparat_player.dart'; |
38
| apps/lifemate/test/app_test.dart:5 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
39
| apps/lifemate/test/app_test.dart:6 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/main.dart'; |
40
| apps/lifemate/test/app_test.dart:211 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(api: FakeApi())); |
41
| apps/lifemate/test/app_test.dart:219 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(api: FakeApi())); |
46
-| apps/lifemate/test/education_ui_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
47
-| apps/lifemate/test/education_ui_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/education_ui.dart'; |
42
+| apps/lifemate/test/content_review_navigation_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
43
+| apps/lifemate/test/content_review_navigation_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/main.dart'; |
44
+| apps/lifemate/test/content_review_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
45
+| apps/lifemate/test/content_review_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/content_review_sync.dart'; |
46
+| apps/lifemate/test/content_review_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/content_review_ui.dart'; |
47
+| apps/lifemate/test/content_review_test.dart:12 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
48
+| apps/lifemate/test/dashboard_periods_test.dart:7 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
49
+| apps/lifemate/test/dashboard_periods_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/dashboard_ui.dart'; |
50
+| apps/lifemate/test/dashboard_periods_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/session_store.dart'; |
51
+| apps/lifemate/test/education_ui_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
52
+| apps/lifemate/test/education_ui_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/education_ui.dart'; |
53
| apps/lifemate/test/endpoint_settings_test.dart:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/endpoint_settings.dart'; |
54
| apps/lifemate/test/endpoint_settings_test.dart:4 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/runtime_config.dart'; |
55
+| apps/lifemate/test/family_management_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
56
+| apps/lifemate/test/family_management_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/family_management_ui.dart'; |
57
+| apps/lifemate/test/family_management_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
58
| apps/lifemate/test/iran_hub_test.dart:2 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/iran_hub.dart'; |
59
| apps/lifemate/test/learning_feedback_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
60
| apps/lifemate/test/learning_feedback_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/learning_feedback_ui.dart'; |
61
| apps/lifemate/test/learning_feedback_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
62
+| apps/lifemate/test/learning_goal_sync_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
63
+| apps/lifemate/test/learning_goal_sync_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/learning_goal_sync.dart'; |
64
+| apps/lifemate/test/learning_goal_sync_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
65
+| apps/lifemate/test/learning_goal_sync_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/session_store.dart'; |
66
+| apps/lifemate/test/learning_goals_ui_test.dart:7 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
67
+| apps/lifemate/test/learning_goals_ui_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/phase4_ui.dart'; |
68
+| apps/lifemate/test/learning_goals_ui_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/learning_goals_ui.dart'; |
69
| apps/lifemate/test/learning_quiz_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
70
| apps/lifemate/test/learning_quiz_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/learning_quiz_ui.dart'; |
71
| apps/lifemate/test/learning_quiz_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
72
| apps/lifemate/test/learning_quiz_test.dart:12 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/session_store.dart'; |
73
+| apps/lifemate/test/learning_reviews_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
74
+| apps/lifemate/test/learning_reviews_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/learning_reviews_ui.dart'; |
75
+| apps/lifemate/test/learning_reviews_test.dart:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
76
+| apps/lifemate/test/learning_reviews_test.dart:12 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/session_store.dart'; |
77
| apps/lifemate/test/learning_sync_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
78
| apps/lifemate/test/learning_sync_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/learning_sync.dart'; |
79
| apps/lifemate/test/learning_sync_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
@@ -78,14 +97,20 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
97
| apps/lifemate/test/online_ui_test.dart:141 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp()); |
98
| apps/lifemate/test/online_ui_test.dart:154 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(api: FakeApi())); |
99
| apps/lifemate/test/online_ui_test.dart:245 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(runtime: runtime)); |
81
-| apps/lifemate/test/online_ui_test.dart:479 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(runtime: runtime)); |
82
-| apps/lifemate/test/online_ui_test.dart:532 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(runtime: runtime)); |
100
+| apps/lifemate/test/online_ui_test.dart:485 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(runtime: runtime)); |
101
+| apps/lifemate/test/online_ui_test.dart:538 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await tester.pumpWidget(LifeMateApp(runtime: runtime)); |
102
| apps/lifemate/test/phase4_ui_test.dart:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
103
| apps/lifemate/test/phase4_ui_test.dart:4 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/phase4_ui.dart'; |
104
| apps/lifemate/test/runtime_config_test.dart:6 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
105
| apps/lifemate/test/runtime_config_test.dart:7 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/runtime_config.dart'; |
106
| apps/lifemate/test/runtime_config_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/runtime_controller.dart'; |
107
| apps/lifemate/test/runtime_config_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/session_store.dart'; |
108
+| apps/lifemate/test/school_lifecycle_sync_test.dart:6 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
109
+| apps/lifemate/test/school_lifecycle_sync_test.dart:7 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
110
+| apps/lifemate/test/school_lifecycle_sync_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/school_management_ui.dart'; |
111
+| apps/lifemate/test/school_management_test.dart:7 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
112
+| apps/lifemate/test/school_management_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/phase3_ui.dart'; |
113
+| apps/lifemate/test/school_management_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/school_management_ui.dart'; |
114
| apps/lifemate/test/session_expiry_test.dart:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/api.dart'; |
115
| apps/lifemate/test/session_expiry_test.dart:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/offline_store.dart'; |
116
| apps/lifemate/test/session_expiry_test.dart:10 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | import 'package:lifemate/plan_sync.dart'; |
@@ -112,10 +137,12 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
137
| backend/package-lock.json:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | "name": "lifemate-backend", |
138
| backend/package.json:2 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | "name": "lifemate-backend", |
139
| backend/scripts/backup.sh:4 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | output="${1:-lifemate-$(date -u +%Y%m%dT%H%M%SZ).dump}" |
140
+| backend/scripts/manage-content-capabilities.js:30 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | !(location.pathname.includes('test')\|\|location.pathname==='/lifemate_ci'\|\| |
141
| backend/scripts/migrate.js:32 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | await client.query("select pg_advisory_lock(hashtextextended('lifemate_schema_migration',0))"); |
142
| backend/scripts/restore-smoke.sql:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | values('00000000-0000-4000-8000-000000000005','restore-smoke','restore-smoke@lifemate.test',now()) |
143
| backend/src/auth_router.js:59 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | accessToken: jwt.sign({ sub: userId, sid: result.rows[0].id, aud: 'lifemate-api' }, jwtSecret, { expiresIn: '15m', issuer: 'lifemate' }), |
144
| backend/src/auth_router.js:275 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | identity = jwt.verify(req.headers.authorization?.replace(/^Bearer\s+/i, ''), jwtSecret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
145
+| backend/src/content_publication.js:20 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | !/^\/(?:lifeguide_[a-z0-9_]*test(?:_[a-z0-9]+)*\|lifemate_ci\|lifeguide_roles_(?:source\|target)_[a-f0-9]{16})$/.test(url.pathname)) fail('local_test_database_required'); |
146
| backend/src/entrypoint.js:22 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | res.json({ status: 'ok', service: 'lifemate-api' }); |
147
| backend/src/entrypoint.js:37 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | outer.listen(publicPort, () => console.log(JSON.stringify({ type: 'startup', service: 'lifemate-api', port: publicPort }))); |
148
| backend/src/session_auth.js:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | audience: 'lifemate-api', |
@@ -123,26 +150,50 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
150
| backend/tests/auth_delivery.test.js:372 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const identity = jwt.verify(verified.body.accessToken, jwtSecret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
151
| 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' }); |
152
| 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 }); |
153
+| backend/tests/auth_nat_rate_limit.test.js:15 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.ok(['/lifeguide_library_test', '/lifeguide_contentops_test', '/lifemate_ci'].includes(database.pathname) \|\| |
154
+| backend/tests/auth_nat_rate_limit.test.js:106 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const identity = jwt.verify(user.tokens.accessToken, secret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
155
+| backend/tests/auth_nat_rate_limit.test.js:144 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const oldIdentity = jwt.verify(previous.accessToken, secret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
156
+| backend/tests/auth_nat_rate_limit.test.js:151 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const identity = jwt.verify(user.tokens.accessToken, secret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
157
+| backend/tests/auth_nat_rate_limit.test.js:162 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const expiring = jwt.verify(users[2].tokens.accessToken, secret, { audience: 'lifemate-api', issuer: 'lifemate' }); |
158
+| backend/tests/content_publication.test.js:15 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.ok(['localhost','127.0.0.1','[::1]'].includes(source.hostname)&&(/test/.test(source.pathname)\|\|source.pathname==='/lifemate_ci'),'Refuse nonlocal/nontest fixture'); |
159
+| backend/tests/content_review.test.js:55 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.ok(location.pathname.includes('test')\|\|location.pathname==='/lifemate_ci'\|\| |
160
+| backend/tests/content_review.test.js:74 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return {id,sid,token:jwt.sign({...extraClaims,sub:id,sid,aud:'lifemate-api'},process.env.JWT_SECRET,{issuer:'lifemate',expiresIn})}; |
161
+| backend/tests/family_lifecycle.test.js:59 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.ok(location.pathname.includes('test') \|\| location.pathname === '/lifemate_ci' \|\| |
162
+| backend/tests/family_lifecycle.test.js:78 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | return { id, sid, email, token: jwt.sign({ ...claims, sub: id, sid, aud: 'lifemate-api' }, secret, |
163
+| backend/tests/family_lifecycle.test.js:79 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | { issuer: 'lifemate', expiresIn: '15m' }) }; |
164
+| backend/tests/family_lifecycle.test.js:454 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | owner.token = jwt.sign({ sub: owner.id, sid: owner.sid, aud: 'lifemate-api', exp: expiration }, secret, { issuer: 'lifemate' }); |
165
| 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'})};} |
166
| 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' \|\| |
167
| 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, |
168
| backend/tests/learning_feedback.test.js:124 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | { issuer: 'lifemate', expiresIn: '15m' }) }; |
169
+| backend/tests/learning_goal_mutations.test.js:47 | 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,{issuer:'lifemate',expiresIn:'15m'})}; |
170
+| backend/tests/learning_goal_mutations.test.js:190 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | owner.token=jwt.sign({sub:owner.id,sid:owner.sid,aud:'lifemate-api',exp:expiresAt},process.env.JWT_SECRET,{issuer:'lifemate'}); |
171
+| backend/tests/learning_goal_mutations.test.js:218 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | owner.token=jwt.sign({sub:owner.id,sid:owner.sid,aud:'lifemate-api',exp:expiresAt},process.env.JWT_SECRET,{issuer:'lifemate'}); |
172
| 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 |
173
+| backend/tests/learning_unit_locator.test.js:15 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.ok(location.pathname.includes('test') \|\| location.pathname === '/lifemate_ci' \|\| |
174
+| backend/tests/learning_unit_locator.test.js:55 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | actors[index].token = jwt.sign({ sub: id, sid, aud: 'lifemate-api' }, secret, |
175
+| backend/tests/learning_unit_locator.test.js:56 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | { issuer: 'lifemate', expiresIn: '15m' }); |
176
+| backend/tests/learning_unit_locator.test.js:125 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const expired = { ...actor, token: jwt.sign({ sub: actor.id, sid: actor.sid, aud: 'lifemate-api' }, secret, { issuer: 'lifemate', expiresIn: -1 }) }; |
177
| 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' }) }; |
178
| 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
| backend/tests/profile_category.test.js:34 | 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' }) }; |
180
+| backend/tests/report_periods.test.js:14 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | assert.match(database.pathname, /^\/(?:lifeguide_[a-z_]*test[a-z_]*\|lifemate_ci\|lifeguide_roles_source_[a-f0-9]{16})$/); |
181
+| backend/tests/report_periods.test.js:47 | 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' }, secret, { issuer: 'lifemate', expiresIn: '15m' }) }; |
182
+| backend/tests/report_periods.test.js:196 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const expired = { ...f.mother, token: jwt.sign({ sub: f.mother.id, sid: f.mother.sid, aud: 'lifemate-api' }, secret, { issuer: 'lifemate', expiresIn: -1 }) }; |
183
| backend/tests/request_safety.test.js:100 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const token = jwt.sign({ sub: id, sid: sessionId, aud: 'lifemate-api' }, process.env.JWT_SECRET, { expiresIn: '15m', issuer: 'lifemate' }); |
184
| backend/tests/school_crud.test.js:63 | 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' }) }; |
185
+| backend/tests/school_lifecycle.test.js:64 | 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' }) }; |
186
+| backend/tests/school_lifecycle.test.js:277 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const token = jwt.sign({ sub: actor.id, sid: claims.sid, aud: 'lifemate-api' }, process.env.JWT_SECRET, { issuer: 'lifemate', expiresIn: 2 }); |
187
| backend/tests/study_sessions.test.js:50 | 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' }, jwtSecret, { issuer: 'lifemate', expiresIn: '15m' }) }; |
188
| backend/tests/study_sessions.test.js:251 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const expired = { ...f.child, token: jwt.sign({ sub: f.child.id, sid: f.child.sid, aud: 'lifemate-api' }, jwtSecret, { issuer: 'lifemate', expiresIn: -1 }) }; |
189
| docker-compose.prebuilt-web.yml:6 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | context: ./apps/lifemate |
190
| docker-compose.yml:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: ${POSTGRES_DB:-lifemate} |
140
-| docker-compose.yml:29 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: ${POSTGRES_DB:-lifemate} |
141
-| docker-compose.yml:39 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: ${POSTGRES_DB:-lifemate} |
142
-| docker-compose.yml:48 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | POSTGRES_DB: ${POSTGRES_DB:-lifemate} |
143
-| docker-compose.yml:154 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | context: ./apps/lifemate |
144
-| docker-compose.yml:182 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | DATABASE_URL: postgresql://${BACKUP_DB_USER:-lifeguide_backup}@postgres:5432/${POSTGRES_DB:-lifemate} |
145
-| docker-compose.yml:210 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | DATABASE_URL: postgresql://${MIGRATOR_DB_USER:-lifeguide_migrator}@postgres:5432/${POSTGRES_DB:-lifemate} |
191
+| docker-compose.yml:31 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: ${POSTGRES_DB:-lifemate} |
192
+| docker-compose.yml:41 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | PGDATABASE: ${POSTGRES_DB:-lifemate} |
193
+| docker-compose.yml:50 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | POSTGRES_DB: ${POSTGRES_DB:-lifemate} |
194
+| docker-compose.yml:156 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | context: ./apps/lifemate |
195
+| docker-compose.yml:184 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | DATABASE_URL: postgresql://${BACKUP_DB_USER:-lifeguide_backup}@postgres:5432/${POSTGRES_DB:-lifemate} |
196
+| docker-compose.yml:212 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | DATABASE_URL: postgresql://${MIGRATOR_DB_USER:-lifeguide_migrator}@postgres:5432/${POSTGRES_DB:-lifemate} |
197
| docs/ROADMAP.md:3 | historical — keep | snapshot/previous decision; not current deployment evidence | # LifeMate — Five-Phase Roadmap |
198
| docs/architecture/DOMAIN_MODEL_V1.md:3 | historical — keep | snapshot/previous decision; not current deployment evidence | # LifeMate — Conceptual Domain Model v1 |
199
| docs/architecture/PHASE_2_BLUEPRINT.md:3 | historical — keep | snapshot/previous decision; not current deployment evidence | # LifeMate — Phase 2 Implementation Blueprint |
@@ -184,11 +235,18 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
235
| 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 نیست \| |
236
| docs/audits/2026-10-11-apk-connection.md:35 | historical — keep | snapshot/previous decision; not current deployment evidence | اجرا با Flutter 3.47.6 در پوشه 'apps/lifemate': |
237
| 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 به علت هشت |
238
+| docs/audits/2026-10-11-completion-gap-analysis.md:32 | historical — keep | snapshot/previous decision; not current deployment evidence | فایلهای مبنا: [server.js](../../backend/src/server.js)، [profile_router.js](../../backend/src/profile_router.js)، [auth_router.js](../../backend/src/auth_router.js)، [phase3.js](../../backend/src/phase3.js)، [phase4.js] |
239
| 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 |
240
| 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)، **هر |
241
| 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 |
242
| 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 نیاز به دسترسی حساب مخزن دارد. لینک دانلود |
243
+| docs/audits/2026-10-12-content-operations-verification.md:3 | historical — keep | snapshot/previous decision; not current deployment evidence | تاریخ: 2026-10-12. شاخه 'feat/learning-content-operations'؛ source آزموده و ساختهشده '0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef'. [PR12](https://github.com/davoodmehraban89/LifeMate/pull/12) پیشنویس و روی PR11 است؛ هیچ |
244
+| docs/audits/2026-10-12-content-operations-verification.md:25 | historical — keep | snapshot/previous decision; not current deployment evidence | \| CI نهایی \| سه job SUCCESS؛ backend245، Flutter200، محدودیت نقش/restore و وب/APK واقعی \| [run38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644)، [metadata و خطوط خروجی](evidence/ci-co |
245
+| docs/audits/2026-10-12-content-operations-verification.md:55 | historical — keep | snapshot/previous decision; not current deployment evidence | [APK آزمایشی نهایی](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941) و [PWA](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928) تا2027 |
246
| 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", |
247
+| docs/audits/evidence/ci-content-operations-final-2026-10-12.json:9 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644", |
248
+| docs/audits/evidence/ci-content-operations-final-2026-10-12.json:271 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941" |
249
+| docs/audits/evidence/ci-content-operations-final-2026-10-12.json:280 | historical — keep | snapshot/previous decision; not current deployment evidence | "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928" |
250
| docs/audits/evidence/ci-learning-final-2026-10-11.json:2 | historical — keep | snapshot/previous decision; not current deployment evidence | "repository": "davoodmehraban89/LifeMate", |
251
| 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", |
252
| 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", |
@@ -237,8 +295,18 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
295
| docs/history/2026-10-05-project-state.md:8 | historical — keep | snapshot/previous decision; not current deployment evidence | **Working product name:** LifeMate — approved |
296
| docs/history/2026-10-05-project-state.md:11 | historical — keep | snapshot/previous decision; not current deployment evidence | Phases 1–5 engineering core are complete. LifeMate now has the foundation/identity, planner-school-family core, advisory learning/wellbeing guides, and the operational hardening/release-readiness layer required for a con |
297
| docs/history/2026-10-05-project-state.md:23 | historical — keep | snapshot/previous decision; not current deployment evidence | - LifeMate-owned identity/session adapter; server-side relationship-aware authorization. |
298
+| docs/history/2026-10-11-project-state-0.6.0.md:3 | historical — keep | snapshot/previous decision; not current deployment evidence | 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 |
299
+| docs/history/2026-10-11-project-state-0.6.0.md:5 | historical — keep | snapshot/previous decision; not current deployment evidence | **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 |
300
+| docs/history/2026-10-11-project-state-0.6.0.md:9 | historical — keep | snapshot/previous decision; not current deployment evidence | 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 |
301
+| docs/history/2026-10-11-project-state-0.6.0.md:19 | historical — keep | snapshot/previous decision; not current deployment evidence | 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 |
302
+| docs/history/2026-10-11-project-state-0.6.0.md:46 | historical — keep | snapshot/previous decision; not current deployment evidence | 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 |
303
+| docs/history/2026-10-11-project-state-0.6.0.md:48 | historical — keep | snapshot/previous decision; not current deployment evidence | 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 |
304
+| docs/history/2026-10-11-project-state-0.6.0.md:50 | historical — keep | snapshot/previous decision; not current deployment evidence | The0.5.1 packet and its evidence are tracked in [isolation verification](../audits/2026-10-09-isolation-verification.md). Actual fresh client tests: **68/68 Flutter, zero failures/skips;3/3 Chrome Dart guards, zero skips |
305
+| docs/history/2026-10-11-project-state-0.6.0.md:68 | historical — keep | snapshot/previous decision; not current deployment evidence | The independent [Stage0 readiness packet](../audits/2026-10-09-stage0-readiness.md) fixes a reproduced Windows-style Git checkout failure with a standard LF text/binary-preservation policy. Root actually ran RED/GREEN on |
306
| docs/operations/BACKUP_RESTORE.md:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 'backend/scripts/backup.sh /secure/location/lifemate-YYYYMMDD.dump' |
307
| docs/operations/BACKUP_RESTORE.md:15 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 'backend/scripts/restore.sh /secure/location/lifemate-YYYYMMDD.dump' |
308
+| docs/operations/CONTENT_REVIEW.md:28 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 'lifemate_ci' یا نام دقیق آزمون تفکیک نقشهای پروژه باشد. کاربر |
309
+| docs/operations/DOMESTIC_MIGRATION.md:17 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | اجرای محلی تازه12اکتبر و [CI38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644) روی منبع '0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef'، **20checksum ledger،58منع SQL در source و restore،runti |
310
| docs/operations/HANDOVER_0.5.1.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | منبع آزمودهشدهٔ فعلی '7d35ee6' و خروجیهای [run37900944165](https://github.com/davoodmehraban89/LifeMate/actions/runs/37900944165) هستند؛ هر سه job شامل build جدید وب/APK موفق شدند. [بستهٔ آمادهسازی](../audits/2026-10- |
311
| 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 |
312
| 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 |
@@ -247,8 +315,14 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
315
| 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 |
316
| 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 |
317
| 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 |
318
+| docs/operations/HANDOVER_0.7.1.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | واقعاً اجرا شد: Backend **245/245**، Flutter **200/200**، build وب و APK debug و هر سه job در [CI38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644). منبع آن '0831ee6ba81a4811f819e8d8dbfe3 |
319
+| docs/operations/HANDOVER_0.7.1.md:13 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | [دانلود APK همین run](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941) یک ZIP با فایل **LifeGuide-debug.apk** است. لینک artifact مخزن خصوصی به ورود حساب GitHub دارای دسترسی نیا |
320
+| docs/operations/HANDOVER_0.7.1.md:28 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | git clone --branch feat/learning-content-operations --single-branch https://github.com/davoodmehraban89/LifeMate.git LifeGuide-test-0.7.1 |
321
+| docs/operations/HANDOVER_0.7.1.md:34 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | [LifeGuide-web همین run](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928) را همراه تمام فایلها و 'build-provenance.json' در 'apps/lifemate/build/web' استخراج کنید؛ 'index.html |
322
+| docs/operations/HANDOVER_0.7.1.md:43 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
323
+| docs/operations/HANDOVER_0.7.1.md:57 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Set-Location apps/lifemate |
324
| 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 را مطابق سیاست نشس |
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) را همراه |
325
+| docs/operations/STAGE0.md:8 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | 2. ابتدا خروجی بررسیشده وب را طبق بخش «بستهبندی PWA» آماده کنید: برای source '0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef'، artifact کامل [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/382010116 |
326
| 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 |
327
| docs/operations/STAGE0.md:31 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Set-Location apps/lifemate |
328
| docs/operations/STAGE0.md:43 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Set-Location apps/lifemate |
@@ -307,4 +381,5 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
381
| 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 |
382
| 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'); |
383
| 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'); |
384
+| scripts/test-learning-browser.cjs:11 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | const {assertLearningProgressSemantics} = require('../apps/lifemate/tool/assert-learning-progress-semantics.cjs'); |
385
| 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-12-content-operations-verification.md
new
+63
@@ -0,0 +1,63 @@
1
+# LifeGuide — شواهد بسته 0.7.1 / کلاینت 0.7.0+6
2
+
3
+تاریخ: 2026-10-12. شاخه `feat/learning-content-operations`؛ source آزموده و ساختهشده `0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef`. [PR12](https://github.com/davoodmehraban89/LifeMate/pull/12) پیشنویس و روی PR11 است؛ هیچ merge یا تغییر زنده انجام نشد. commitهای بعدی مستندات و تستیار خواندنی، build تازه برنامه محسوب نمیشوند. داده تمام سناریوها ساختگی بود.
4
+
5
+## اجرای واقعی
6
+
7
+| اجرا | خروجی مشاهدهشده | حدود اثبات |
8
+| --- | --- | --- |
9
+| Node22.23.3 / PostgreSQL16، `npm test` | `tests245, pass245, fail0`؛ 66.85ثانیه | API واقعی، نه گوشی |
10
+| regression محدودیت NAT پس از محدودکردن guard محیط | `tests7, pass7, fail0`؛ سه guard منفی قبل از اتصال DB رد شدند | entrypoint واقعی، ساعت طبیعی، بدون reset پنجره |
11
+| `npm run check` / `npm audit --audit-level=high` | 68فایل syntax، صفر vulnerability | کیفیت/امنیت کامل محصول را تضمین نمیکند |
12
+| Flutter3.47.6 / Dart3.13.5، `flutter test` | 200/200، 56ثانیه | widget/unit، نه دستگاه واقعی |
13
+| formatter/analyzer | 69فایل، صفر تغییر؛ `No issues found` | کد کلاینت ثابت مانده است |
14
+| migration/import/repeat | 20/20checksum؛ repeat بدون تغییر؛ 217کتاب/1373بخش/1348نامزد DRAFT | صفر ویدیوی واقعی و صفر بانک سؤال واقعی منتشرشده |
15
+| چهار ماتریس SQL | اجرا با psql واقعی کانتینر؛ PASS | شامل guardian/privacy/Phase3/Phase4 |
16
+| نقش محدود runtime | family9/9 و learning/content/goals/family/school/report/locator96/96؛ 58منعSQL در source و restore | API فاقد DDL، capability/catalogue/publication audit فقط خواندنی |
17
+| backup و restore | `PASS restored checksum ledger entries, migrator ownership/repeat, runtime denial matrix, guardian/private policy and paused-study600seconds` | dump فقطخواندنی، restore نقش migrator در DB تازه ساختگی؛ انتقال واقعی اجرا نشد |
18
+| `flutter build web --release --no-web-resources-cdn --pwa-strategy=none` | build محلی56.8ثانیه موفق؛ fonts/CanvasKit محلی | build کامل SDK در Docker این محیط UNVERIFIED؛ مسیر prebuilt واقعاً ساخته شد |
19
+| compiled runtime/resource/guards | 14request/0external؛ Web Locks8+8؛ Chrome3؛ expiry/queue preservation؛ worker4؛ provenance/Windows-checkout/tamper rejection PASS | برخی تستها interception دارند و مدرک TLS نیستند |
20
+| Compose محلی | API استاندارد Dockerfile و gateway prebuilt ساخته؛ api/postgres/gateway/backup healthy؛ 20checksum و صفر real-published مستقلSQL | پروژه جدا `lifeguide-learning-audit`، HTTPS loopback8445، نه میزبان مالک |
21
+| smoke HTTPS | 7/7، گواهی و hostname واقعاً بررسی شد؛ homework create/read/archive، logout و رد token قبلی | [receipt](evidence/contentops-https-roundtrip-2026-10-12.json)؛ نصب Safari را اثبات نمیکند |
22
+| کتابخانه با PWA کامپایلشده روی HTTPS | 14/14،90درخواست محلی، صفر browser/online error،4قطع عمدی آفلاین | [receipt](evidence/content-operations-browser-2026-10-12.json)؛ بدون interception یا TLS bypass |
23
+| سهحساب خانواده روی HTTPS | پنج اجرای PWA،117درخواست محلی؛ homework/timer/completion و بازگشایی محفوظ | [receipt](evidence/contentops-family-real-https-2026-10-12.json)؛ فرزند از API، والدها Chromium profile مستقل |
24
+| بعد از تعویض API به0.7.1 | 30درخواست HTTPS واقعی، سه حساب، caps/login/refresh و گزارش هر دو والد PASS؛ رکورد قبلی taskv6/session4sec محفوظ | [receipt](evidence/contentops-nat-https-2026-10-12.json)؛ این 30درخواست رسیدن به سقف429 را نمیسنجد؛ regression جدا آن را سنجید |
25
+| CI نهایی | سه job SUCCESS؛ backend245، Flutter200، محدودیت نقش/restore و وب/APK واقعی | [run38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644)، [metadata و خطوط خروجی](evidence/ci-content-operations-final-2026-10-12.json) |
26
+
27
+لاگهای کامل محلی در `/workspace/scratch/contentops-*` و لاگهای CI در run پیوندشدهاند. credential/token و متن fixture خصوصی به سند/مخزن کپی نشدهاند. خلاصه بالا از خروجی واقعی است؛ صرف success یکی از jobها شاهد پذیرش چند دستگاه نیست.
28
+
29
+## شکستهای مشاهدهشده و اصلاح
30
+
31
+- اجرای نخست suite، قرارداد invite فعال را403 بهجای409 داد؛ ترتیب اعتبارسنجی اصلاح و suite244/244 و سپس245/245 گذشت. دو widget test بهعلت Drawer طولانی پیش از scroll، کنترل تنظیمات را نمیدیدند؛ interaction تست اصلاح شد و assertions حفظ شدند. یک lint واقعی main اصلاح شد.
32
+- ماتریسSQL ابتدا با psql میزبانِ موجودنبودن127 متوقف شد؛ با psql واقعی PG کانتینر اجرا شد. restore نخست بهعلت متغیر exportنشده شکست خورد؛ env خصوصی درست صادر و drill کامل دوباره گذشت، checksum migration دستکاری نشد.
33
+- نخستین full run0.7.1 هنگام build همزمان Docker vfs به `No space left on device / SQL53100` رسید. فقط کپیهای image/build/archive متعلق به همین اجرا و بدون reference پاک شد؛ هیچ volume/داده/صف حذف نشد. پس از آزادسازی، full suite245/245 گذشت؛ این شکست پنهان نمیشود.
34
+- نخستین browser learning run، label محاسبهشده AX را با newline literal مقایسه کرد. Chromium whitespace را normalize میکند؛ تستیار اکنون DOM exact و AX normalized را با وضعیت و timestamp کامل میسنجد، یک status و نبود duplicate را حفظ میکند. fresh synthetic run14/14 گذشت. دو تصویر درس/بازگشایی SHA یکسان دارند؛ تغییر بصری ساختگی ادعا نمیشود.
35
+- تست خانواده هنگام بازگشایی429 واقعی نشان داد: `/v1/auth/capabilities` و refresh سقف مشترک حساس10/600 را مصرف میکردند.0.7.1 فقط GET دقیق capabilities را در120/60 و POST دقیق refresh/logout را در60/600 محدود میکند؛ register/login/recovery/resend/OTP همچنان10/600 هستند. مسیرهای نزدیک، case، روش اشتباه و XFF جعلشده strict باقی میمانند. JWT/Argon2id/tokenhash/rotation تغییر نکردهاند.
36
+- پس از0.7.1 دو probe والد `net::ERR_ABORTED` داشتند؛ دو اجرای بعدی همان profile با refresh200 و گزارش completed موفق شدند، بدون ورود/توکن جدید یا reset. trace بعدی بعضی abortها را **پیش از teardown** ثبت کرد؛ نسبتدادن به بستن تستیار صحیح نیست. stream-probe موفق، `reader.cancel()` بعد از EOF را دید ولی علت شکست قبلی را ثابت نکرد. [receipt با شکستها و حدود](evidence/contentops-parents-after-nat-2026-10-12.json). [بررسی مستقل و probe نهایی23درخواست](evidence/contentops-browser-abort-review-2026-10-12.json) نیز موفق بود، ولی رفتار reader.cancel بعد از EOF علت شکست قبلی را ثابت نکرد. علت نهایی UNVERIFIED؛ هیچ شکست شبکهای globally ignore نشده و ادعای zero-error برای تمام probeهای بعد از hotfix وجود ندارد.
37
+
38
+## پذیرش A–H و سناریوی هشتمرحلهای
39
+
40
+| معیار | آنچه واقعاً اجرا شد | پذیرش واقعی باقیمانده |
41
+| --- | --- | --- |
42
+| A تکلیف فرزند و خواندن مستقل | HTTPS create ACK، GET مستقل و SQL: completed/v6، planned1800seconds | ثبت همین تکلیف در Android واقعی UNVERIFIED |
43
+| B والد مجاز در PWA | مادر در compiled Chromium از حساب مستقل task planned را دید | Safari/A2HS UNVERIFIED |
44
+| C تغییر بین حسابها | completion فرزند، refresh پدر جدا و reportcompleted؛ SQL مستقل | دستگاههای فیزیکی UNVERIFIED |
45
+| D بستن/بازگشایی و ماندگاری | هر دو parent browser profile بسته/باز و refresh؛ child refresh؛ رکورد پس از API image recreation باقی ماند | Android exit/upgrade و Safari process kill UNVERIFIED |
46
+| E آفلاین و بدون duplicate | UI واقعی progress UUID پایدار را journal کرد؛ exactbytes پس از reopen عمومی آفلاین محفوظ؛ reconnect همان intent یکبار ACK، second sync duplicate نداشت | این run برای پیشرفت درس است؛ offline homework دستگاه واقعی UNVERIFIED |
47
+| F والد نامجاز/خانواده دیگر | HTTP+SQL authorization matrix؛ owner-only goals/checkins/attempts و گزارش مجاز بدون private note | بررسی حقوقی و دادههای wellbeing واقعی در دامنه این تست نیست |
48
+| G pause/resume/exit/re-sync | تایمر actual-time: دو interval، pause، login مستقل جدید، resume/stop و replay بدون doublecount؛ 4ثانیه؛ drill fixture جدا600ثانیه | خروج برنامه Android و ادامه تایمر UI UNVERIFIED |
49
+| H HTTPS Safari install/login/refresh | trusted HTTPS، compiled Chromium login/refresh، manifest/worker | Safari/iPhone/iPad/Add to Home Screen اجرا نشده: UNVERIFIED |
50
+
51
+هشت مرحله بهصورت **جایگزین نرمافزاری محدود** اجرا شد: تکلیف ریاضی توسط فرزند → مشاهده مادر → شروع/وقفه/ادامه/پایان session → گزارش مجاز → تکمیل → مشاهده پدر → بازگشایی profileهای مستقل و خواندن محفوظ. زمان API چهار ثانیه است؛ UI فعلی دقیقه صحیح نشان میدهد و زیر یک دقیقه را0 نشان داد. نمایش دقیق ثانیه و مطالعه واقعی اثبات نشدهاند. child actions از HTTP API بودند؛ این شاهد اجرای هشت مرحله با سه گوشی نیست.
52
+
53
+## بازبینی و کنترل تحویل
54
+
55
+بازبین مستقل، diff محدود hotfix از `fcbaa12` تا `0831ee6` و تغییر تستیار AX را خواند؛ Critical/Important/Minor مشخصی گزارش نکرد. این بازبینی اجرای تست جدید یا بررسی تمام محصول نیست. کنترل نهایی tracked-secret/artifact scan، naming379case/0display item، `git diff --check`، parse7JSON، لینک23سند محلی و prebuilt66input/matching digest واقعاً گذشتند. checker لینک نخست source-excerptهای بریده inventory را بهاشتباه لینک سند شمرد؛ با جداکردن فقط inventory تولیدشده از اسناد، targetهای واقعی بدون خطا تأیید شدند.
56
+
57
+## فایل نصبی و گیت تحویل
58
+
59
+[APK آزمایشی نهایی](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941) و [PWA](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928) تا2027-01-10 artifact گیتهاباند؛ ممکن است ورود گیتهاب لازم باشد. ZIP APK واقعاً دانلود، integrity و تکورودی `LifeGuide-debug.apk` بررسی شد. binary manifest مستقل PASS: `ir.lifeguide.app`،0.7.0/code6، labelفارسی، backupfalse، cleartextfalse. SHA APK: `b9b8599de796986cf2800ce24782ee85bc87a7d97889d2d194465f0ad4f07915`؛168960414bytes. CI واقعاً apksigner را اجرا و v2true اعلام کرد؛ apksigner محلی موجود نبود و اجرای محلی امضا UNVERIFIED است.
60
+
61
+debugcertificate این run با runقبلی فرق دارد؛ upgrade روی نسخه قبلی ممکن است رد شود. حذف برنامه یا داده ارسالنشده راه حل تحویل نیست. کلید پایدار release مالک در secretmanager، امضای رسمی LifeGuide.apk و آزمون نصب/ارتقا هنوز UNVERIFIED هستند. APK جدید، API عمومی ایجاد نمیکند و CA LAN اختصاصی مالک در artifactCI وجود ندارد؛ [تحویل و مراحل مالک](../operations/HANDOVER_0.7.1.md) مسیر صحیح را توضیح میدهد.
62
+
63
+ویدیوهای کامل بررسیشده/منتشرشده و بانک سؤال واقعی هنوز0 هستند. نمونه ریاضی `reviewRecord:null` و DRAFT است؛ ترجمه metadata به «آموزش کامل» مجاز نیست. مدرسه تطبیقی، امتحان تشریحی، آموزش خانواده، safeguarding و حقوق/رضایت تخصصی کودکان کامل نشدهاند. AI/voice خارجی و سلامت/چرخه غیرفعالاند. Windows مالک، ایران بدون VPN، میزبان عمومی، ایمیل/SMS واقعی، releasekey و دستگاهها UNVERIFIED. هیچ DNS، live deploy، real migration، merge نهایی، publicrelease، signup یا payment انجام نشد.
docs/audits/evidence/ci-content-operations-final-2026-10-12.json
new
+302
@@ -0,0 +1,302 @@
1
+{
2
+ "date": "2026-10-12",
3
+ "source": "0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef",
4
+ "backendVersion": "0.7.1",
5
+ "clientVersion": "0.7.0+6",
6
+ "mode": "Official GitHub connector observed completed run/jobs and decoded actual logs; root downloaded actual APK ZIP and inspected bytes/manifest. No live deploy.",
7
+ "run": {
8
+ "id": 38201011644,
9
+ "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644",
10
+ "status": "completed",
11
+ "conclusion": "success"
12
+ },
13
+ "jobs": [
14
+ {
15
+ "id": 114654207749,
16
+ "name": "security",
17
+ "status": "completed",
18
+ "conclusion": "success",
19
+ "steps": [
20
+ {
21
+ "name": "Set up job",
22
+ "conclusion": "success"
23
+ },
24
+ {
25
+ "name": "Run actions/checkout@v4",
26
+ "conclusion": "success"
27
+ },
28
+ {
29
+ "name": "Reject tracked credentials and private artifacts",
30
+ "conclusion": "success"
31
+ },
32
+ {
33
+ "name": "Audit product naming",
34
+ "conclusion": "success"
35
+ },
36
+ {
37
+ "name": "Post Run actions/checkout@v4",
38
+ "conclusion": "success"
39
+ },
40
+ {
41
+ "name": "Complete job",
42
+ "conclusion": "success"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "id": 114654207932,
48
+ "name": "flutter",
49
+ "status": "completed",
50
+ "conclusion": "success",
51
+ "steps": [
52
+ {
53
+ "name": "Set up job",
54
+ "conclusion": "success"
55
+ },
56
+ {
57
+ "name": "Run actions/checkout@v4",
58
+ "conclusion": "success"
59
+ },
60
+ {
61
+ "name": "Run actions/setup-node@v4",
62
+ "conclusion": "success"
63
+ },
64
+ {
65
+ "name": "Run subosito/flutter-action@v2",
66
+ "conclusion": "success"
67
+ },
68
+ {
69
+ "name": "Run flutter pub get",
70
+ "conclusion": "success"
71
+ },
72
+ {
73
+ "name": "Run flutter --version --machine",
74
+ "conclusion": "success"
75
+ },
76
+ {
77
+ "name": "Run dart format --output=none --set-exit-if-changed lib test",
78
+ "conclusion": "success"
79
+ },
80
+ {
81
+ "name": "Run flutter analyze",
82
+ "conclusion": "success"
83
+ },
84
+ {
85
+ "name": "Run flutter test",
86
+ "conclusion": "success"
87
+ },
88
+ {
89
+ "name": "Run node tool/test_web_bootstrap.mjs",
90
+ "conclusion": "success"
91
+ },
92
+ {
93
+ "name": "Run node --test tool/test_offline_worker.mjs",
94
+ "conclusion": "success"
95
+ },
96
+ {
97
+ "name": "Run flutter build web --release --no-web-resources-cdn --pwa-strategy=none",
98
+ "conclusion": "success"
99
+ },
100
+ {
101
+ "name": "Run node tool/test_web_bootstrap.mjs",
102
+ "conclusion": "success"
103
+ },
104
+ {
105
+ "name": "Bundle local resources and reject external runtime services",
106
+ "conclusion": "success"
107
+ },
108
+ {
109
+ "name": "Check compiled browser requests for local fonts and CanvasKit",
110
+ "conclusion": "success"
111
+ },
112
+ {
113
+ "name": "Check exclusive web instance before session and cache access",
114
+ "conclusion": "success"
115
+ },
116
+ {
117
+ "name": "Preserve unsent changes across forced session expiry",
118
+ "conclusion": "success"
119
+ },
120
+ {
121
+ "name": "Record checked prebuilt web provenance",
122
+ "conclusion": "success"
123
+ },
124
+ {
125
+ "name": "Verify Windows checkout preserves the checked web artifact",
126
+ "conclusion": "success"
127
+ },
128
+ {
129
+ "name": "Run actions/upload-artifact@v4",
130
+ "conclusion": "success"
131
+ },
132
+ {
133
+ "name": "Build test APK (debug certificate; not a release)",
134
+ "conclusion": "success"
135
+ },
136
+ {
137
+ "name": "Inspect the actual APK manifest and debug signature",
138
+ "conclusion": "success"
139
+ },
140
+ {
141
+ "name": "Run actions/upload-artifact@v4",
142
+ "conclusion": "success"
143
+ },
144
+ {
145
+ "name": "Post Run subosito/flutter-action@v2",
146
+ "conclusion": "success"
147
+ },
148
+ {
149
+ "name": "Post Run actions/setup-node@v4",
150
+ "conclusion": "success"
151
+ },
152
+ {
153
+ "name": "Post Run actions/checkout@v4",
154
+ "conclusion": "success"
155
+ },
156
+ {
157
+ "name": "Complete job",
158
+ "conclusion": "success"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "id": 114654207943,
164
+ "name": "backend",
165
+ "status": "completed",
166
+ "conclusion": "success",
167
+ "steps": [
168
+ {
169
+ "name": "Set up job",
170
+ "conclusion": "success"
171
+ },
172
+ {
173
+ "name": "Initialize containers",
174
+ "conclusion": "success"
175
+ },
176
+ {
177
+ "name": "Run actions/checkout@v4",
178
+ "conclusion": "success"
179
+ },
180
+ {
181
+ "name": "Run actions/setup-node@v4",
182
+ "conclusion": "success"
183
+ },
184
+ {
185
+ "name": "Verify reachability smoke rejects untrusted TLS",
186
+ "conclusion": "success"
187
+ },
188
+ {
189
+ "name": "Run npm ci",
190
+ "conclusion": "success"
191
+ },
192
+ {
193
+ "name": "Apply migrations and verify repeat run",
194
+ "conclusion": "success"
195
+ },
196
+ {
197
+ "name": "Import checked educational metadata and verify repeat run",
198
+ "conclusion": "success"
199
+ },
200
+ {
201
+ "name": "SQL authorization matrix",
202
+ "conclusion": "success"
203
+ },
204
+ {
205
+ "name": "Run npm test && npm run check && npm audit --audit-level=high",
206
+ "conclusion": "success"
207
+ },
208
+ {
209
+ "name": "Verify isolated database roles and runtime family scenario",
210
+ "conclusion": "success"
211
+ },
212
+ {
213
+ "name": "Backup and restore synthetic database",
214
+ "conclusion": "success"
215
+ },
216
+ {
217
+ "name": "Post Run actions/setup-node@v4",
218
+ "conclusion": "success"
219
+ },
220
+ {
221
+ "name": "Post Run actions/checkout@v4",
222
+ "conclusion": "success"
223
+ },
224
+ {
225
+ "name": "Stop containers",
226
+ "conclusion": "success"
227
+ },
228
+ {
229
+ "name": "Complete job",
230
+ "conclusion": "success"
231
+ }
232
+ ]
233
+ }
234
+ ],
235
+ "observedLogLines": {
236
+ "backend": [
237
+ "2026-10-12T03:45:59.8733649Z # tests 5",
238
+ "2026-10-12T03:45:59.8734711Z # pass 5",
239
+ "2026-10-12T03:45:59.8735131Z # fail 0",
240
+ "2026-10-12T03:46:02.2385483Z found 0 vulnerabilities",
241
+ "2026-10-12T03:46:46.7776248Z # tests 245",
242
+ "2026-10-12T03:46:46.7776627Z # pass 245",
243
+ "2026-10-12T03:46:46.7776820Z # fail 0",
244
+ "2026-10-12T03:46:48.5397591Z Syntax checked 68 source/script/test files.",
245
+ "2026-10-12T03:46:48.9422588Z found 0 vulnerabilities",
246
+ "2026-10-12T03:46:55.6181829Z # tests 9",
247
+ "2026-10-12T03:46:55.6182381Z # pass 9",
248
+ "2026-10-12T03:46:55.6182634Z # fail 0",
249
+ "2026-10-12T03:47:19.7852013Z # tests 96",
250
+ "2026-10-12T03:47:19.7852537Z # pass 96",
251
+ "2026-10-12T03:47:19.7852840Z # fail 0",
252
+ "2026-10-12T03:47:22.6885189Z PASS restored checksum ledger entries, migrator ownership/repeat, runtime denial matrix, guardian/private policy and paused-study600seconds"
253
+ ],
254
+ "flutter": [
255
+ "2026-10-12T03:46:04.4853765Z No issues found! (ran in 11.1s)",
256
+ "2026-10-12T03:46:44.9102969Z 🎉 200 tests passed.",
257
+ "2026-10-12T03:47:28.6453321Z ✓ Built build/web",
258
+ "2026-10-12T03:53:07.3732339Z ✓ Built build/app/outputs/flutter-apk/app-debug.apk",
259
+ "2026-10-12T03:53:08.4895751Z Verified using v2 scheme (APK Signature Scheme v2): true",
260
+ "2026-10-12T03:53:08.4921889Z V2 Signer: certificate SHA-256 digest: c1bf6ec0237985d9fadf7d12d614b2461e78dda64903dcff1009867b43a972e1"
261
+ ]
262
+ },
263
+ "artifacts": [
264
+ {
265
+ "id": 11725931941,
266
+ "name": "LifeGuide-debug-apk",
267
+ "sizeInBytes": 87871626,
268
+ "zipDigest": "sha256:0e4e03a528721ff1273721745277e0e65da5e5a5bf5e2427fd271f8ac7c9b51e",
269
+ "expiresAt": "2027-01-10T03:45:29Z",
270
+ "source": "0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef",
271
+ "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941"
272
+ },
273
+ {
274
+ "id": 11725840928,
275
+ "name": "LifeGuide-web",
276
+ "sizeInBytes": 19039012,
277
+ "zipDigest": "sha256:ef5fd4791557f77d11bedba4818fd406c08b34280b5da3fed053623c81285a5d",
278
+ "expiresAt": "2027-01-10T03:45:29Z",
279
+ "source": "0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef",
280
+ "url": "https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928"
281
+ }
282
+ ],
283
+ "rootApkInspection": {
284
+ "zipSha256": "0e4e03a528721ff1273721745277e0e65da5e5a5bf5e2427fd271f8ac7c9b51e",
285
+ "zipTest": "PASS; one entry LifeGuide-debug.apk",
286
+ "apkBytes": 168960414,
287
+ "apkSha256": "b9b8599de796986cf2800ce24782ee85bc87a7d97889d2d194465f0ad4f07915",
288
+ "manifest": "PASS ir.lifeguide.app, version0.7.0 code6, Persian label, debuggabletrue, allowBackupfalse, cleartextfalse, Internet, min24 target36",
289
+ "signature": "Actual CI apksigner v2 true; root local apksigner UNVERIFIED/unavailable",
290
+ "debugCertificateSha256": "c1bf6ec0237985d9fadf7d12d614b2461e78dda64903dcff1009867b43a972e1",
291
+ "previousDebugCertificateSha256": "0261b9196bfe99e293c5d2c202817922927392744917ad19873663b85af76dbd",
292
+ "upgrade": "UNVERIFIED; different debug certificate may block upgrade. Do not uninstall/erase unsent data."
293
+ },
294
+ "limitations": [
295
+ "Owner release signing UNVERIFIED",
296
+ "Actual Android install/upgrade UNVERIFIED",
297
+ "Safari/A2HS UNVERIFIED",
298
+ "Iran reachability UNVERIFIED",
299
+ "Public deployment not performed",
300
+ "Zero real reviewed/published videos and question banks"
301
+ ]
302
+}
docs/audits/evidence/content-operations-browser-2026-10-12-progress.png
Binary files /dev/null and b/docs/audits/evidence/content-operations-browser-2026-10-12-progress.png differ
docs/audits/evidence/content-operations-browser-2026-10-12.json
new
+110
@@ -0,0 +1,110 @@
1
+{
2
+ "date": "2026-10-12T03:16:35.062Z",
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": "compiled Chromium AXTree exposes one RTL status with acknowledged progress and server timestamp",
25
+ "status": "PASS"
26
+ },
27
+ {
28
+ "name": "UI progress acknowledgement independently verified through API and PostgreSQL",
29
+ "status": "PASS"
30
+ },
31
+ {
32
+ "name": "real draft assessment gate shows no invented question bank",
33
+ "status": "PASS"
34
+ },
35
+ {
36
+ "name": "feedback blocked without explicit consent then acknowledged by real server",
37
+ "status": "PASS"
38
+ },
39
+ {
40
+ "name": "withdrawal redacts chosen text and consent in independent API and PostgreSQL",
41
+ "status": "PASS"
42
+ },
43
+ {
44
+ "name": "closed and reopened Chromium refreshes persisted session; independent API retains one acknowledged progress record",
45
+ "status": "PASS"
46
+ },
47
+ {
48
+ "name": "real compiled runtime uses only local API, fonts and CanvasKit without errors",
49
+ "status": "PASS"
50
+ },
51
+ {
52
+ "name": "rendered offline action journals one stable progress intent; independent server remains unchanged",
53
+ "status": "PASS"
54
+ },
55
+ {
56
+ "name": "closed/reopened offline PWA shows only public RTL notice; exact pending bytes retained, API/config remain unavailable",
57
+ "status": "PASS"
58
+ },
59
+ {
60
+ "name": "manual reconnect authenticates current account and acknowledges identical intent once; second sync creates no duplicate",
61
+ "status": "PASS"
62
+ }
63
+ ],
64
+ "fixture": "Dedicated synthetic account; no real family/private/media data",
65
+ "counts": {
66
+ "requests": 90,
67
+ "externalRequests": 0,
68
+ "iframes": 0,
69
+ "browserErrors": 0,
70
+ "onlineFailedRequests": 0,
71
+ "expectedOfflineFailedRequests": 4
72
+ },
73
+ "offlineEvidence": "Chromium context deliberately disconnected; real UI journals a stable intent, page closes/reopens through actual service worker public fallback, reconnect retries exact body and independent API/SQL verify version2 once. Context stays open during offline page restart; process-kill/storage-eviction/Safari remain UNVERIFIED.",
74
+ "realApprovedVideoCount": 0,
75
+ "realApprovedQuestionBankCount": 0,
76
+ "visualEvidence": {
77
+ "progressScreenshot": "content-operations-browser-2026-10-12-progress.png",
78
+ "reopenedLessonScreenshot": "content-operations-browser-2026-10-12.png",
79
+ "automatedDynamicProgressSemantics": "Actual Chromium AXTree status label checked after acknowledgement and browser restart; physical screen-reader acceptance remains UNVERIFIED"
80
+ },
81
+ "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.",
82
+ "authResponses": [
83
+ {
84
+ "path": "/api/v1/auth/login",
85
+ "status": 200
86
+ },
87
+ {
88
+ "path": "/api/v1/auth/refresh",
89
+ "status": 200
90
+ },
91
+ {
92
+ "path": "/api/v1/auth/refresh",
93
+ "status": 200
94
+ }
95
+ ],
96
+ "fonts": [
97
+ "/assets/fonts/MaterialIcons-Regular.otf",
98
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
99
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
100
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
101
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
102
+ ],
103
+ "limitations": [
104
+ "Real Android devices UNVERIFIED",
105
+ "Safari/Add to Home Screen UNVERIFIED",
106
+ "Video playback and teaching quality UNVERIFIED",
107
+ "Iran VPN-free reachability UNVERIFIED",
108
+ "Physical touch and screen reader UNVERIFIED"
109
+ ]
110
+}
docs/audits/evidence/content-operations-browser-2026-10-12.png
Binary files /dev/null and b/docs/audits/evidence/content-operations-browser-2026-10-12.png differ
docs/audits/evidence/contentops-browser-abort-review-2026-10-12.json
new
+257
@@ -0,0 +1,257 @@
1
+{
2
+ "reviewedAt": "2026-10-12T08:06:14.472108+00:00",
3
+ "reviewer": "browser_abort_review (read-only investigation)",
4
+ "origin": "https://127.0.0.1:8445",
5
+ "scope": "Local synthetic parent persisted profile; current compiled PWA and API0.7.1 as supplied by root. No app/backend source change.",
6
+ "transport": "Normal Chromium trusted HTTPS; no response interception or TLS bypass.",
7
+ "priorObservedFailures": [
8
+ {
9
+ "parent": "mother",
10
+ "log": "contentops-mother-after-nat-0.7.1.log",
11
+ "failure": "requestfailed net::ERR_ABORTED",
12
+ "paths": [
13
+ "/api/v1/me/content-capabilities",
14
+ "/api/v1/reminders/claim-due",
15
+ "/api/v1/families/a1000000-0000-4000-8000-000000000001/members"
16
+ ],
17
+ "outcome": "Failed helper run retained; not counted as PASS"
18
+ },
19
+ {
20
+ "parent": "father",
21
+ "log": "contentops-father-after-nat-0.7.1.log",
22
+ "failure": "requestfailed net::ERR_ABORTED",
23
+ "paths": [
24
+ "/api/v1/auth/refresh"
25
+ ],
26
+ "outcome": "Failed helper run retained; not counted as PASS"
27
+ }
28
+ ],
29
+ "laterUninstrumentedFailedTrace": {
30
+ "failures": [
31
+ {
32
+ "timeSeconds": 4.4837,
33
+ "path": "/api/v1/today",
34
+ "failure": "net::ERR_ABORTED"
35
+ },
36
+ {
37
+ "timeSeconds": 4.486,
38
+ "path": "/api/v1/me/content-capabilities",
39
+ "failure": "net::ERR_ABORTED"
40
+ }
41
+ ],
42
+ "lifecycle": [
43
+ {
44
+ "timeSeconds": 5.4921,
45
+ "event": "before_family_tab_click"
46
+ },
47
+ {
48
+ "timeSeconds": 6.342,
49
+ "event": "before_child_report_click"
50
+ },
51
+ {
52
+ "timeSeconds": 8.0421,
53
+ "event": "beforeunload"
54
+ }
55
+ ],
56
+ "conclusion": "These failures preceded report navigation and teardown. Teardown is not a supported cause for this trace."
57
+ },
58
+ "latestActualProbe": {
59
+ "command": "python3 /workspace/scratch/contentops-pwa-browser-stream-probe.py https://127.0.0.1:8445 --profile /workspace/scratch/contentops-father-pwa-profile --screenshot /workspace/scratch/contentops-father-abort-review.png --synthetic-login-email stage0-father@lifeguide.test --synthetic-password-file <private-fixture-password-file> --resume-parent-session --expected-recorded-seconds 4 --expected-planned-seconds 1800 --expected-status completed",
60
+ "exitCode": 0,
61
+ "httpStatus": 200,
62
+ "requestCount": 23,
63
+ "externalRequests": [],
64
+ "failedRequests": [],
65
+ "browserErrors": [],
66
+ "httpErrors": [],
67
+ "resumedPersistedParentSession": true,
68
+ "refreshStatus": 200,
69
+ "permittedReportRendered": true,
70
+ "reportJsonBodyIndependentlyRead": false,
71
+ "readOnlyLimit": "No explicit login/data mutation. Ordinary app refresh-token rotation and reminder polling execute.",
72
+ "observer": "Wrap fetch/read/cancel/AbortController to record action, path, status and byte count only; original calls/response remain unchanged. Diagnostic instrumentation may affect timing.",
73
+ "observedActions": {
74
+ "chunk": 8,
75
+ "done": 8,
76
+ "cancel": 8
77
+ },
78
+ "apiBodyActions": {
79
+ "/api/v1/auth/refresh": [
80
+ {
81
+ "timeSeconds": 3.0241,
82
+ "action": "chunk",
83
+ "status": 200,
84
+ "bytes": 378
85
+ },
86
+ {
87
+ "timeSeconds": 3.0253,
88
+ "action": "done",
89
+ "status": 200,
90
+ "bytes": 0
91
+ },
92
+ {
93
+ "timeSeconds": 3.0261,
94
+ "action": "cancel",
95
+ "status": 200,
96
+ "bytes": 0
97
+ }
98
+ ],
99
+ "/api/v1/profile": [
100
+ {
101
+ "timeSeconds": 4.0454,
102
+ "action": "chunk",
103
+ "status": 200,
104
+ "bytes": 312
105
+ },
106
+ {
107
+ "timeSeconds": 4.0461,
108
+ "action": "done",
109
+ "status": 200,
110
+ "bytes": 0
111
+ },
112
+ {
113
+ "timeSeconds": 4.0463,
114
+ "action": "cancel",
115
+ "status": 200,
116
+ "bytes": 0
117
+ }
118
+ ],
119
+ "/api/v1/me/content-capabilities": [
120
+ {
121
+ "timeSeconds": 4.1197,
122
+ "action": "chunk",
123
+ "status": 200,
124
+ "bytes": 18
125
+ },
126
+ {
127
+ "timeSeconds": 4.1203,
128
+ "action": "done",
129
+ "status": 200,
130
+ "bytes": 0
131
+ },
132
+ {
133
+ "timeSeconds": 4.122,
134
+ "action": "cancel",
135
+ "status": 200,
136
+ "bytes": 0
137
+ }
138
+ ],
139
+ "/api/v1/today": [
140
+ {
141
+ "timeSeconds": 4.1223,
142
+ "action": "chunk",
143
+ "status": 200,
144
+ "bytes": 46
145
+ },
146
+ {
147
+ "timeSeconds": 4.1226,
148
+ "action": "done",
149
+ "status": 200,
150
+ "bytes": 0
151
+ },
152
+ {
153
+ "timeSeconds": 4.1228,
154
+ "action": "cancel",
155
+ "status": 200,
156
+ "bytes": 0
157
+ }
158
+ ],
159
+ "/api/v1/reminders/claim-due": [
160
+ {
161
+ "timeSeconds": 4.1425,
162
+ "action": "chunk",
163
+ "status": 200,
164
+ "bytes": 28
165
+ },
166
+ {
167
+ "timeSeconds": 4.143,
168
+ "action": "done",
169
+ "status": 200,
170
+ "bytes": 0
171
+ },
172
+ {
173
+ "timeSeconds": 4.1432,
174
+ "action": "cancel",
175
+ "status": 200,
176
+ "bytes": 0
177
+ }
178
+ ],
179
+ "/api/v1/families": [
180
+ {
181
+ "timeSeconds": 4.5938,
182
+ "action": "chunk",
183
+ "status": 200,
184
+ "bytes": 144
185
+ },
186
+ {
187
+ "timeSeconds": 4.595,
188
+ "action": "done",
189
+ "status": 200,
190
+ "bytes": 0
191
+ },
192
+ {
193
+ "timeSeconds": 4.5953,
194
+ "action": "cancel",
195
+ "status": 200,
196
+ "bytes": 0
197
+ }
198
+ ],
199
+ "/api/v1/families/a1000000-0000-4000-8000-000000000001/members": [
200
+ {
201
+ "timeSeconds": 4.6051,
202
+ "action": "chunk",
203
+ "status": 200,
204
+ "bytes": 733
205
+ },
206
+ {
207
+ "timeSeconds": 4.6064,
208
+ "action": "done",
209
+ "status": 200,
210
+ "bytes": 0
211
+ },
212
+ {
213
+ "timeSeconds": 4.6067,
214
+ "action": "cancel",
215
+ "status": 200,
216
+ "bytes": 0
217
+ }
218
+ ],
219
+ "/api/v1/families/a1000000-0000-4000-8000-000000000001/children/a0000000-0000-4000-8000-000000000001/learning-report": [
220
+ {
221
+ "timeSeconds": 6.1427,
222
+ "action": "chunk",
223
+ "status": 200,
224
+ "bytes": 2112
225
+ },
226
+ {
227
+ "timeSeconds": 6.143,
228
+ "action": "done",
229
+ "status": 200,
230
+ "bytes": 0
231
+ },
232
+ {
233
+ "timeSeconds": 6.1458,
234
+ "action": "cancel",
235
+ "status": 200,
236
+ "bytes": 0
237
+ }
238
+ ]
239
+ },
240
+ "logSha256": "87d9adbd6eba91a6aabe83fe01fd86bbba05ca2a7f0554409d0eb28430564b68",
241
+ "timelineSha256": "22bb25acbb88209d24f21c94337b91cd22cb75394e95103a164ea14496727cda"
242
+ },
243
+ "sourceFindings": {
244
+ "dependency": "http1.6.0 BrowserClient",
245
+ "file": "/home/agent/.pub-cache/hosted/pub.dev/http-1.6.0/lib/src/browser_client.dart",
246
+ "onCancel": "_readStreamBody installs controller.onCancel that calls reader.cancel(). BrowserClient.close aborts open request controllers.",
247
+ "streamResult": "All8 current probe API responses produced chunk→done→reader.cancel, no controller-abort/read-error, no failed requests. Cancelling the reader after EOF is observed even in passing runs.",
248
+ "applicationReadPath": "HttpIdentityApi calls http.Response.fromStream(await _client.send(request)) with20s timeout; it does not use an AbortableRequest here."
249
+ },
250
+ "causalConclusion": "UNVERIFIED. The abort did not reproduce in this one observer probe. Normal post-EOF reader cancellation is a candidate race, not proof of the earlier ERR_ABORTED. Prior failures are retained and not ignored/count-as-pass.",
251
+ "verifiedLimitations": [
252
+ "A passing run does not establish all retries/browser restarts error-free.",
253
+ "Restored-tab report body JSON was not independently read by this helper; new reportHTTP200 and rendered completion/time were checked. Root independent API/DB proof is separate.",
254
+ "Four recorded seconds are rounded to zero minutes in the current UI.",
255
+ "Real Safari/Android/device installation, true BFCache, touch/accessibility hardware and Iran reachability remain UNVERIFIED."
256
+ ]
257
+}
docs/audits/evidence/contentops-family-real-https-2026-10-12.json
new
+319
@@ -0,0 +1,319 @@
1
+{
2
+ "startedAt": "2026-10-12T03:20:16.466364+00:00",
3
+ "origin": "https://127.0.0.1:8445",
4
+ "data": "new synthetic-only three-account fixture",
5
+ "transport": "actual HTTPS; normal TLS certificate/hostname verification; no intercepted responses",
6
+ "checks": [
7
+ "Three independent synthetic accounts authenticated via verified HTTPS",
8
+ "A/1 child homework received server ACK; independent authenticated GET confirms id/version/private note",
9
+ "B/2 authorized mother logged into current PWA and rendered allowed planned homework",
10
+ "3/4/G actual-time timer start/pause/new child login/resume/stop: two intervals; replay does not double count",
11
+ "Harness-only expectation corrected to in_progress; resumed existing task/session without repeating create or timer writes",
12
+ "5 allowed report shows recorded duration; mother's saved PWA session refreshed after close/reopen",
13
+ "6/7/C child completion acknowledged; father's separate authenticated PWA sees new completed status",
14
+ "8/D two parent browser profiles closed/reopened and refreshed after natural auth-window expiry; independent child refresh retained task/session",
15
+ "Private owner note excluded from both allowed report JSON and rendered parent PWA"
16
+ ],
17
+ "parentBrowserRuns": [
18
+ {
19
+ "parent": "mother",
20
+ "resumed": false,
21
+ "screenshot": "contentops-mother-planned.png",
22
+ "log": "contentops-mother-planned.log",
23
+ "result": {
24
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
25
+ "browser": "151.0.7922.173",
26
+ "http": 200,
27
+ "requestCount": 24,
28
+ "externalRequests": [],
29
+ "failedRequests": [],
30
+ "browserErrors": [],
31
+ "httpErrors": [],
32
+ "syntheticParentLogin": true,
33
+ "syntheticParentAuthenticated": true,
34
+ "permittedChildReportRendered": true,
35
+ "serverReportBodyVerified": true,
36
+ "reportBodyLimit": null,
37
+ "resumedPersistedParentSession": false,
38
+ "authResponses": [
39
+ {
40
+ "path": "/api/v1/auth/login",
41
+ "status": 200
42
+ }
43
+ ],
44
+ "reportedTask": {
45
+ "title": "تمرین ریاضی — پذیرش آنلاین ۰٫۷ فقط داده آزمایشی",
46
+ "status": "planned",
47
+ "recordedDurationSeconds": 0,
48
+ "plannedDurationSeconds": 1800,
49
+ "activityState": "planned"
50
+ },
51
+ "fonts": [
52
+ "/assets/fonts/MaterialIcons-Regular.otf",
53
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
54
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
55
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
56
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
57
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
58
+ ],
59
+ "inputLabels": [],
60
+ "serviceWorkers": 1,
61
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
62
+ }
63
+ },
64
+ {
65
+ "parent": "mother",
66
+ "resumed": true,
67
+ "screenshot": "contentops-mother-recorded.png",
68
+ "log": "contentops-mother-recorded.log",
69
+ "result": {
70
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
71
+ "browser": "151.0.7922.173",
72
+ "http": 200,
73
+ "requestCount": 23,
74
+ "externalRequests": [],
75
+ "failedRequests": [],
76
+ "browserErrors": [],
77
+ "httpErrors": [],
78
+ "syntheticParentLogin": false,
79
+ "syntheticParentAuthenticated": true,
80
+ "permittedChildReportRendered": true,
81
+ "serverReportBodyVerified": false,
82
+ "reportBodyLimit": "Restored-tab JSON body UNVERIFIED; fresh-login runs independently validate JSON",
83
+ "resumedPersistedParentSession": true,
84
+ "authResponses": [
85
+ {
86
+ "path": "/api/v1/auth/refresh",
87
+ "status": 200
88
+ }
89
+ ],
90
+ "reportedTask": null,
91
+ "fonts": [
92
+ "/assets/fonts/MaterialIcons-Regular.otf",
93
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
94
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
95
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
96
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
97
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
98
+ ],
99
+ "inputLabels": [],
100
+ "serviceWorkers": 1,
101
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
102
+ }
103
+ },
104
+ {
105
+ "parent": "father",
106
+ "resumed": false,
107
+ "screenshot": "contentops-father-completed.png",
108
+ "log": "contentops-father-completed.log",
109
+ "result": {
110
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
111
+ "browser": "151.0.7922.173",
112
+ "http": 200,
113
+ "requestCount": 24,
114
+ "externalRequests": [],
115
+ "failedRequests": [],
116
+ "browserErrors": [],
117
+ "httpErrors": [],
118
+ "syntheticParentLogin": true,
119
+ "syntheticParentAuthenticated": true,
120
+ "permittedChildReportRendered": true,
121
+ "serverReportBodyVerified": true,
122
+ "reportBodyLimit": null,
123
+ "resumedPersistedParentSession": false,
124
+ "authResponses": [
125
+ {
126
+ "path": "/api/v1/auth/login",
127
+ "status": 200
128
+ }
129
+ ],
130
+ "reportedTask": {
131
+ "title": "تمرین ریاضی — پذیرش آنلاین ۰٫۷ فقط داده آزمایشی",
132
+ "status": "completed",
133
+ "recordedDurationSeconds": 4,
134
+ "plannedDurationSeconds": 1800,
135
+ "activityState": "completed"
136
+ },
137
+ "fonts": [
138
+ "/assets/fonts/MaterialIcons-Regular.otf",
139
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
140
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
141
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
142
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
143
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
144
+ ],
145
+ "inputLabels": [],
146
+ "serviceWorkers": 1,
147
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
148
+ }
149
+ },
150
+ {
151
+ "parent": "mother",
152
+ "resumed": true,
153
+ "screenshot": "contentops-mother-reopened.png",
154
+ "log": "contentops-mother-reopened.log",
155
+ "result": {
156
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
157
+ "browser": "151.0.7922.173",
158
+ "http": 200,
159
+ "requestCount": 23,
160
+ "externalRequests": [],
161
+ "failedRequests": [],
162
+ "browserErrors": [],
163
+ "httpErrors": [],
164
+ "syntheticParentLogin": false,
165
+ "syntheticParentAuthenticated": true,
166
+ "permittedChildReportRendered": true,
167
+ "serverReportBodyVerified": false,
168
+ "reportBodyLimit": "Restored-tab JSON body UNVERIFIED; fresh-login runs independently validate JSON",
169
+ "resumedPersistedParentSession": true,
170
+ "authResponses": [
171
+ {
172
+ "path": "/api/v1/auth/refresh",
173
+ "status": 200
174
+ }
175
+ ],
176
+ "reportedTask": null,
177
+ "fonts": [
178
+ "/assets/fonts/MaterialIcons-Regular.otf",
179
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
180
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
181
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
182
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
183
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
184
+ ],
185
+ "inputLabels": [],
186
+ "serviceWorkers": 1,
187
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
188
+ }
189
+ },
190
+ {
191
+ "parent": "father",
192
+ "resumed": true,
193
+ "screenshot": "contentops-father-reopened.png",
194
+ "log": "contentops-father-reopened.log",
195
+ "result": {
196
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
197
+ "browser": "151.0.7922.173",
198
+ "http": 200,
199
+ "requestCount": 23,
200
+ "externalRequests": [],
201
+ "failedRequests": [],
202
+ "browserErrors": [],
203
+ "httpErrors": [],
204
+ "syntheticParentLogin": false,
205
+ "syntheticParentAuthenticated": true,
206
+ "permittedChildReportRendered": true,
207
+ "serverReportBodyVerified": false,
208
+ "reportBodyLimit": "Restored-tab JSON body UNVERIFIED; fresh-login runs independently validate JSON",
209
+ "resumedPersistedParentSession": true,
210
+ "authResponses": [
211
+ {
212
+ "path": "/api/v1/auth/refresh",
213
+ "status": 200
214
+ }
215
+ ],
216
+ "reportedTask": null,
217
+ "fonts": [
218
+ "/assets/fonts/MaterialIcons-Regular.otf",
219
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
220
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
221
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
222
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
223
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
224
+ ],
225
+ "inputLabels": [],
226
+ "serviceWorkers": 1,
227
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
228
+ }
229
+ }
230
+ ],
231
+ "status": "PASS",
232
+ "limitations": [
233
+ "Child homework/timer/completion uses real authenticated HTTP API, not Android or child UI.",
234
+ "Parent PWA uses real Chromium at separate persistent browser profiles, not physical devices or Safari.",
235
+ "DOM semantic activation and screenshot rendering do not establish touch/screen-reader acceptance.",
236
+ "Session duration is timer-reported synthetic test time, not proof of real study.",
237
+ "No backend restart, Android exit/re-sync, Safari install, true BFCache, or Iran reachability is certified.",
238
+ "Database verification is separate and UNVERIFIED by this harness.",
239
+ "Recorded API duration is four real test seconds; current parent UI rounds it to zero minutes. This is not a claim that the UI displays exact seconds."
240
+ ],
241
+ "taskId": "c44c110c-a0fb-477e-8992-800241bf13d8",
242
+ "createMutationId": "500360e8-0ecb-4db6-975b-7d9e01bb2e26",
243
+ "sessionId": "34807baf-ab63-4709-8b18-7c9d4822a4cf",
244
+ "recordedSeconds": 4,
245
+ "session": {
246
+ "id": "34807baf-ab63-4709-8b18-7c9d4822a4cf",
247
+ "source": "timer",
248
+ "status": "completed",
249
+ "version": 4,
250
+ "startedAt": "2026-10-12T03:20:21.689Z",
251
+ "endedAt": "2026-10-12T03:20:27.320Z",
252
+ "intervals": [
253
+ {
254
+ "start": "2026-10-12T03:20:21.689Z",
255
+ "end": "2026-10-12T03:20:23.906Z"
256
+ },
257
+ {
258
+ "start": "2026-10-12T03:20:25.104Z",
259
+ "end": "2026-10-12T03:20:27.320Z"
260
+ }
261
+ ],
262
+ "recordedDurationSeconds": 4,
263
+ "isEvidenceOfStudy": false
264
+ },
265
+ "finishedAt": "2026-10-12T03:30:32.983023Z",
266
+ "previousHarnessFailure": {
267
+ "expectedStatusAfterTimer": "planned",
268
+ "correctStatusAfterTimer": "in_progress",
269
+ "appChange": false
270
+ },
271
+ "rateLimitObservation": {
272
+ "refreshStatus": 429,
273
+ "sessionStillPresent": true,
274
+ "ui": "requests too frequent; retry offered",
275
+ "scope": "one IP bucket for /v1/auth/* including login, capabilities and refresh",
276
+ "limit": 10,
277
+ "windowSeconds": 600,
278
+ "initialRetryAfterSeconds": 306,
279
+ "handling": "waited for normal bucket expiry; no reset/bypass/server/config change"
280
+ },
281
+ "finalTask": {
282
+ "id": "c44c110c-a0fb-477e-8992-800241bf13d8",
283
+ "title": "تمرین ریاضی — پذیرش آنلاین ۰٫۷ فقط داده آزمایشی",
284
+ "status": "completed",
285
+ "version": 6
286
+ },
287
+ "servedApiScope": "Current 0.7 local shared stack before the subsequent NAT limiter correction; observed original 10/600 auth bucket. No claim that this run certifies the corrected limiter.",
288
+ "browserRequestTotal": 117,
289
+ "visualInspection": {
290
+ "motherRecordedAndFatherCompleted": "opened and inspected current report screenshots",
291
+ "motherReopened": "opened and inspected completed report screenshot",
292
+ "fatherReopened": "byte-identical to inspected mother reopen report image; independently authenticated father browser request/refresh checks passed",
293
+ "exactSecondsInUI": "UNVERIFIED: current UI rounds recorded four-second duration to zero minutes"
294
+ },
295
+ "screenshotSha256": {
296
+ "contentops-mother-planned.png": "15ae0e1e1f61729598d157bbf3c65c48afd4c286bbf5dea2c5782b7367ba6a4e",
297
+ "contentops-mother-recorded.png": "158621aea6fec81e9bdd694c657a21bb1e3301453674df9030a948992ac6f6ba",
298
+ "contentops-father-completed.png": "7dc6ef247f95a9220704080676c90e7be270b27b008598294a434e12cea2c276",
299
+ "contentops-mother-reopened.png": "babd3dd9dc42fa49b96e9485242d304e302243a908ef610162f2a5fecea85a3e",
300
+ "contentops-father-reopened.png": "babd3dd9dc42fa49b96e9485242d304e302243a908ef610162f2a5fecea85a3e"
301
+ },
302
+ "rootIndependentSql": {
303
+ "at": "2026-10-12T03:23:00Z",
304
+ "scope": "separate actual Compose PostgreSQL queries; synthetic fixture only",
305
+ "task": {
306
+ "status": "completed",
307
+ "version": 6,
308
+ "visibility": "parent_guardian",
309
+ "plannedDurationSeconds": 1800
310
+ },
311
+ "session": {
312
+ "status": "completed",
313
+ "source": "timer",
314
+ "recordedDurationSeconds": 4,
315
+ "intervalCount": 2
316
+ },
317
+ "limitations": "Does not certify Android/Safari, physical study or corrected NAT policy."
318
+ }
319
+}
docs/audits/evidence/contentops-father-after-nat-0.7.1-diagnostic.png
Binary files /dev/null and b/docs/audits/evidence/contentops-father-after-nat-0.7.1-diagnostic.png differ
docs/audits/evidence/contentops-father-completed.png
Binary files /dev/null and b/docs/audits/evidence/contentops-father-completed.png differ
docs/audits/evidence/contentops-father-reopened.png
Binary files /dev/null and b/docs/audits/evidence/contentops-father-reopened.png differ
docs/audits/evidence/contentops-https-roundtrip-2026-10-12.json
new
+41
@@ -0,0 +1,41 @@
1
+{
2
+ "origin": "https://127.0.0.1:8445",
3
+ "at": "2026-10-12T03:12:58.000Z",
4
+ "results": [
5
+ {
6
+ "name": "TLS",
7
+ "status": "PASS",
8
+ "detail": "Certificate chain and hostname verified by Node TLS"
9
+ },
10
+ {
11
+ "name": "/health",
12
+ "status": "PASS",
13
+ "detail": "HTTP 200 and database-backed status ok"
14
+ },
15
+ {
16
+ "name": "PWA",
17
+ "status": "PASS",
18
+ "detail": "HTTPS HTML and standalone manifest loaded; Safari installation UNVERIFIED"
19
+ },
20
+ {
21
+ "name": "runtime config",
22
+ "status": "PASS",
23
+ "detail": "Same-origin /api; no-store"
24
+ },
25
+ {
26
+ "name": "API auth boundary",
27
+ "status": "PASS",
28
+ "detail": "Anonymous planner request rejected with 401"
29
+ },
30
+ {
31
+ "name": "API round-trip",
32
+ "status": "PASS",
33
+ "detail": "Synthetic private homework created, independently read, and archived on server"
34
+ },
35
+ {
36
+ "name": "session cleanup",
37
+ "status": "PASS",
38
+ "detail": "Logout acknowledged; old access token rejected"
39
+ }
40
+ ]
41
+}
docs/audits/evidence/contentops-mother-after-nat-0.7.1-diagnostic.png
Binary files /dev/null and b/docs/audits/evidence/contentops-mother-after-nat-0.7.1-diagnostic.png differ
docs/audits/evidence/contentops-mother-planned.png
Binary files /dev/null and b/docs/audits/evidence/contentops-mother-planned.png differ
docs/audits/evidence/contentops-mother-recorded.png
Binary files /dev/null and b/docs/audits/evidence/contentops-mother-recorded.png differ
docs/audits/evidence/contentops-mother-reopened.png
Binary files /dev/null and b/docs/audits/evidence/contentops-mother-reopened.png differ
docs/audits/evidence/contentops-nat-https-2026-10-12.json
new
+24
@@ -0,0 +1,24 @@
1
+{
2
+ "at": "2026-10-12T03:40:13.185Z",
3
+ "origin": "https://127.0.0.1:8445",
4
+ "apiVersion": "0.7.1",
5
+ "mode": "actual local Compose HTTPS; normal verified TLS; restricted runtime API DB role; synthetic fixture only; no interception",
6
+ "status": "PASS",
7
+ "requests": 30,
8
+ "checks": [
9
+ "12 real HTTPS capabilities reads use bounded general budget",
10
+ "Three independent existing synthetic accounts log in from one IP without capability reads consuming sensitive budget",
11
+ "12 refreshes across three sessions rotate tokens in bounded60/600 budget",
12
+ "Independent child task and both permitted parent reports retain completed/version6/recorded4s after API image recreation; private note absent"
13
+ ],
14
+ "limits": {
15
+ "general": 120,
16
+ "session": 60,
17
+ "sensitiveAuth": 10
18
+ },
19
+ "limitations": [
20
+ "Boundary429 tests ran on isolated production entrypoint, not this shared stack",
21
+ "Real Android/Safari/Iran UNVERIFIED",
22
+ "Client source remains0.7.0+6"
23
+ ]
24
+}
docs/audits/evidence/contentops-parents-after-nat-2026-10-12.json
new
+131
@@ -0,0 +1,131 @@
1
+{
2
+ "verifiedAt": "2026-10-12T03:45:12.339004+00:00",
3
+ "origin": "https://127.0.0.1:8445",
4
+ "status": "PASS_WITH_INITIAL_ABORTS_RECORDED",
5
+ "apiScope": "Root rebuilt local API0.7.1 before this task; binary/source SHA verification and independent API/DB probe are root evidence, not performed by this browser runner.",
6
+ "transport": "Actual local HTTPS gateway, normal Chromium certificate/hostname trust, no intercepted responses or ignore-TLS option.",
7
+ "fixture": {
8
+ "taskId": "c44c110c-a0fb-477e-8992-800241bf13d8",
9
+ "sessionId": "34807baf-ab63-4709-8b18-7c9d4822a4cf",
10
+ "expectedStatus": "completed",
11
+ "recordedDurationSeconds": 4,
12
+ "plannedDurationSeconds": 1800
13
+ },
14
+ "manualOperations": "Resume existing saved parent profiles only; no new login or homework/study mutation. Ordinary app polling requests also execute.",
15
+ "passedBrowserRuns": [
16
+ {
17
+ "parent": "mother",
18
+ "log": "contentops-mother-after-nat-0.7.1-diagnostic.log",
19
+ "screenshot": "contentops-mother-after-nat-0.7.1-diagnostic.png",
20
+ "screenshotSha256": "900ab73544a0e5216650f03143a66da66200419daff40632724af6b809e0d43f",
21
+ "result": {
22
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
23
+ "browser": "151.0.7922.173",
24
+ "http": 200,
25
+ "requestCount": 23,
26
+ "externalRequests": [],
27
+ "failedRequests": [],
28
+ "browserErrors": [],
29
+ "httpErrors": [],
30
+ "syntheticParentLogin": false,
31
+ "syntheticParentAuthenticated": true,
32
+ "permittedChildReportRendered": true,
33
+ "serverReportBodyVerified": false,
34
+ "reportBodyLimit": "Restored-tab JSON body UNVERIFIED; fresh-login runs independently validate JSON",
35
+ "resumedPersistedParentSession": true,
36
+ "authResponses": [
37
+ {
38
+ "path": "/api/v1/auth/refresh",
39
+ "status": 200
40
+ }
41
+ ],
42
+ "reportedTask": null,
43
+ "fonts": [
44
+ "/assets/fonts/MaterialIcons-Regular.otf",
45
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
46
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
47
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
48
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
49
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
50
+ ],
51
+ "inputLabels": [],
52
+ "serviceWorkers": 1,
53
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
54
+ }
55
+ },
56
+ {
57
+ "parent": "father",
58
+ "log": "contentops-father-after-nat-0.7.1-diagnostic.log",
59
+ "screenshot": "contentops-father-after-nat-0.7.1-diagnostic.png",
60
+ "screenshotSha256": "900ab73544a0e5216650f03143a66da66200419daff40632724af6b809e0d43f",
61
+ "result": {
62
+ "mode": "actual local HTTPS gateway, normal browser trust, real API",
63
+ "browser": "151.0.7922.173",
64
+ "http": 200,
65
+ "requestCount": 23,
66
+ "externalRequests": [],
67
+ "failedRequests": [],
68
+ "browserErrors": [],
69
+ "httpErrors": [],
70
+ "syntheticParentLogin": false,
71
+ "syntheticParentAuthenticated": true,
72
+ "permittedChildReportRendered": true,
73
+ "serverReportBodyVerified": false,
74
+ "reportBodyLimit": "Restored-tab JSON body UNVERIFIED; fresh-login runs independently validate JSON",
75
+ "resumedPersistedParentSession": true,
76
+ "authResponses": [
77
+ {
78
+ "path": "/api/v1/auth/refresh",
79
+ "status": 200
80
+ }
81
+ ],
82
+ "reportedTask": null,
83
+ "fonts": [
84
+ "/assets/fonts/MaterialIcons-Regular.otf",
85
+ "/assets/assets/fonts/LifeGuidePersian.ttf",
86
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
87
+ "/assets/assets/fonts/LifeGuideLatin.ttf",
88
+ "/assets/assets/fonts/LifeGuideEmoji.ttf",
89
+ "/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf"
90
+ ],
91
+ "inputLabels": [],
92
+ "serviceWorkers": 1,
93
+ "limitations": "Safari install, Android, three physical devices and Iran reachability UNVERIFIED"
94
+ }
95
+ }
96
+ ],
97
+ "initialFailedRuns": [
98
+ {
99
+ "parent": "mother",
100
+ "log": "contentops-mother-after-nat-0.7.1.log",
101
+ "failure": "requestfailed net::ERR_ABORTED",
102
+ "paths": [
103
+ "/api/v1/me/content-capabilities",
104
+ "/api/v1/reminders/claim-due",
105
+ "/api/v1/families/a1000000-0000-4000-8000-000000000001/members"
106
+ ],
107
+ "outcome": "Failed helper run retained; not counted as PASS"
108
+ },
109
+ {
110
+ "parent": "father",
111
+ "log": "contentops-father-after-nat-0.7.1.log",
112
+ "failure": "requestfailed net::ERR_ABORTED",
113
+ "paths": [
114
+ "/api/v1/auth/refresh"
115
+ ],
116
+ "outcome": "Failed helper run retained; not counted as PASS"
117
+ }
118
+ ],
119
+ "retryHandling": "Reopened the same saved profiles; no source/server/config change, new login, token injection, interception or ignored network error. Diagnostic runner copies existing helper and adds failure-only snapshot reporting; its PASS criteria are unchanged.",
120
+ "initialAbortCause": "UNVERIFIED; subsequent runs passed. No claim of hardware update/BFCache certification.",
121
+ "limitations": [
122
+ "Safari install, Android, three physical devices and Iran reachability UNVERIFIED.",
123
+ "Restored-tab report JSON body UNVERIFIED by browser runner; it verifies refresh200, new report HTTP200 and rendered values. Independent API/DB assertions are root evidence.",
124
+ "Four recorded test seconds render as zero rounded minutes in the current PWA; timer data is not proof of real study.",
125
+ "DOM semantic activation and screenshots do not certify real touch or screen readers.",
126
+ "Client semantic version is not independently certified here; this record scopes API0.7.1 update and current locally served PWA."
127
+ ],
128
+ "priorReceiptSha256": "c5a6286c8fd049122687d557f58f6165feede068a698cc2cf428805e3be1eaec",
129
+ "passedRequestTotal": 46,
130
+ "visualInspection": "Mother current completed report image opened/inspected; father image is byte-identical while father independently refreshed its own profile. Completion100%, task retained, private note not rendered."
131
+}
docs/decisions/0009-provider-neutral-hosting.md
+1
-1
@@ -57,7 +57,7 @@
57
5. اسکریپت Stage 0 در اولین اجرا `.env` را از نمونه، با secretهای تصادفی محلی و origin انتخابشده میسازد؛ `.env` قبلی را خودکار بازنویسی نمیکند. origin/API runtime را روی `https://<LAN-IP>` بگذارید. دستور مورد انتظار بسته از ریشه مخزن:
58
59
```powershell
60
- ./scripts/local-deploy.ps1 -Origin https://192.168.1.10 -Certificate deployment/tls/server.pem -PrivateKey deployment/tls/server-key.pem -Project lifeguide-stage0
60
+ ./scripts/local-deploy.ps1 -Origin https://192.168.1.10 -Certificate deployment/tls/server.pem -PrivateKey deployment/tls/server-key.pem
61
```
62
63
IP مثال باید عوض شود. جزئیات build، migration و ایجاد `config.json` در [STAGE0.md](../operations/STAGE0.md) است. این دستور روی Windows مالک **UNVERIFIED** است؛ گزارش اجرای Linux/Compose جای آن را نمیگیرد. `docker compose config` خروجی secretدار میتواند داشته باشد؛ آن را عمومی یا در چت ارسال نکنید.
docs/history/2026-10-11-project-state-0.6.0.md
new
+72
@@ -0,0 +1,72 @@
1
+# LifeGuide / لایفگاید — وضعیت واقعی پروژه
2
+
3
+Updated: 2026-10-11. Backend version: **0.6.0**. Branch: **feat/aparat-learning-library**, stacked on **feat/online-family-stage0**, based on main `abdc9d9d032bc6746c8390b902a2e52d82991530`. Repository remains `davoodmehraban89/LifeMate`.
4
+
5
+**Status: shared online Stage 0 stack verified locally with synthetic data; hardware/release gates remain open. Not a complete operational product or public release.** Prior COMPLETE/READY claims are retained only in [historical checkpoint](../history/2026-10-05-project-state.md); they do not prove this candidate's acceptance. [Draft PR #10](https://github.com/davoodmehraban89/LifeMate/pull/10) is open; main is not merged.
6
+
7
+## Current education packet —0.6.0
8
+
9
+This feature branch preserves the online0.5.1 base and Feature1. [Draft PR #11](https://github.com/davoodmehraban89/LifeMate/pull/11) is open on the previous online feature branch; neither PR is merged. It adds migrations0013–0015, grade/three academic-track library, real owner-private progress, lesson-linked planner/timer, reviewed/versioned formative assessment and explicitly consented feedback. Android first-run connection is explained without a guessed public URL. Runtime DB credentials cannot write catalogue/review/question definitions; only the separate migrator/importer can. [Current0.6.0 handover](../operations/HANDOVER_0.6.0.md) supersedes the old artifact links for this feature.
10
+
11
+Research inventory is217 books/1373 units/1348 video candidates. **Real published fully reviewed videos:0; real published question banks:0.** Primary62 official1405–1406 editions were inspected; secondary155 edition years remain unknown/unverified. Book index/page/video fragments do not establish a complete school year. Technical iframe probe used a paused provider tutorial, not approved teaching. [Quality/operation guide](../operations/LEARNING_CONTENT.md), [evidence/acceptance limits](../audits/2026-10-11-learning-verification.md). Full item-by-item media/assessment review, specialist pedagogy and real device acceptance remain open; no claim of guaranteed understanding or complete school is made.
12
+
13
+Feedback is voluntarily written chosen text; no private chat/health extraction, admin/notification/export pipeline or autonomous AI/deploy is implemented. Adult/family education and age-appropriate support are documented future domains; AI/voice and sensitive health remain disabled. Minor safeguarding, consent/legal gates and in-country sensitive storage require separate review before implementation.
14
+
15
+The fresh APK asks for a full HTTPS API address because Android has no configured active shared endpoint. On2026-10-11 public read-only checks observed app.lifeguide.ir still serving the old product HTML; /config.json,/api/health,/api/ready also returned HTML, not usable current JSON. This does not prove every possible endpoint absent; it does not establish compatibility. [Connection audit](../audits/2026-10-11-apk-connection.md). No live deploy or DNS changes were made.
16
+
17
+Current0.6.0 execution: local151/151 backend and112/112 Flutter, analyzer clean, fresh Compose15 checksum migrations, runtime-family9/9 and learning15/15, separate-role synthetic dump/restore and trustedHTTPS7 checks passed. Actual compiledPWA/localHTTPS browser substitute10/10 passed: grade/profile selection, self-reported progress independently read byAPI/SQL, feedback consent+redaction and close/reopen session refresh;55 requests/zero external/errors. Root inspected both screenshots: same progress/server timestamp retained. Dynamic progress text was absent from the ChromiumARIA snapshot after update; accessibility and physical-touch acceptance remain unresolved, not certified by DOM-semantic clicks. [Browser receipt](../audits/evidence/learning-browser-2026-10-11.json).
18
+
19
+Initial featureCI38113435509 failed with143 backendpass/8 cancelled: fixture guard rejected the existing syntheticCI DB name. Root reproduced and fixed the exact-name/local-host gate; targeted10/10 and full151/151 passed. Corrected source **b3a62b76bf93697d050b896bc5f99ad6e8fb2f2f**, [CI38148788571](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571): **all three jobs SUCCESS**, including roles/restore,112 Flutter, web and debugAPK0.6.0/code5/ir.lifeguide.app binary manifest+v2signature. [Final receipt](../audits/evidence/ci-learning-final-2026-10-11.json), [debug APK](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706166986), [web](https://github.com/davoodmehraban89/LifeMate/actions/runs/38148788571/artifacts/11706251327). Debug certificate differs from historical builds; owner-device certificate/install/upgrade and release signing remain UNVERIFIED. Do not erase unsent data to resolve signing conflicts. Subsequent browser-test/docs evidence commits do not claim an additional latest-HEADCI or change the app source covered by the cited build.
20
+
21
+The following0.5.1 execution evidence is historical and does not certify this new source. Current0.6.0 test/build receipts are recorded separately in the learning verification packet.
22
+
23
+## Baseline and reuse
24
+
25
+[Main gap analysis](../audits/2026-10-08-online-gap-analysis.md) was written before new implementation. GitHub refs verified: local persistence `62e82ba`, backend safety `e5e3e41`, Cloudflare/Neon `7a83ca8`; only isolated backend safety commit reused. Login-free LocalOnlyApi and managed-host adapters were not merged into the online product. Main already contains family/guardian identity, planner/offline queue, authorization tests and **Feature 1** Iranian education/catalog/calendar/preferences; these are preserved. Feature 1 household persona is a preference, not a server grant of parental access. Health/cycle UI and external AI/voice remain disabled.
26
+
27
+## Current implementation
28
+
29
+- Shared Node/Express/Argon2id/PostgreSQL with migrations 0007–0012: optional email/phone identity, verification delivery recovery, rate-limited resend, opt-in HTTPS webhook SMS adapter, hashed tokens and refresh rotation. Test runner removes inherited live delivery/AI settings.
30
+- Current family/membership/guardian checks, private notes stripped from shared task views, report metrics scoped per visible task. Family archival and revoked membership/guardian relationships close access. Selected grants do not resurrect after rejoining.
31
+- Canonical plan creation version1, stable UUID offline mutations, request-hash idempotency, row/owner locks, expected-version conflicts, canonical server acknowledgement; edit and safe archive use real storage.
32
+- Study sessions/intervals/events survive backend restart; start/pause/resume/stop, corrections/archive, overlap/duplicate protection. Timer/self-reported durations are explicitly not proof of study. Guardian confirmation requires authorized evidence.
33
+- Persian RTL parent views, allowed learning reports, activity timestamps, last-refresh/error state and polling. Seven/thirty-day reports include all of today in Tehran, without changing server freshness timestamps. Android endpoint settings/fallback selection and web no-store config.json use one chosen HTTPS API; endpoint/account switch clears old credentials/cache. Forced session expiry instead quarantines the same account/endpoint namespace without deleting unsent work; only a fresh authenticated handle can recover it.
34
+- Client queue/cache scoped to endpoint+authenticated user, durable enqueue-before-send, FIFO chains, malformed-ack rejection, conflicts retained, logout generation invalidation. Explicit server conflict choice journals local payloads before removing their full pending chain. Storage failures are not mistaken for network outages.
35
+- Subject/class and private learning check-in CRUD/archive now use owner validation and retain linked homework/history. Profile category and editable display name remain independent of family permissions.
36
+- Self-hosted Compose API/Postgres/nginxTLS + backup cron/healthchecks; independent non-superuser migrator, runtime DML and read-only backup credentials. Explicit backup-validated existing-object adoption; unexpected ownership/privileges fail before mutation. Tested synthetic backup/restore uses existing scripts. Runtime web fonts/CanvasKit are bundled locally. Notification polling uses a replaceable delivery port; background push is not enabled.
37
+- Web bootstrap holds one exclusive origin/browser-profile Web Lock before engine/session/cache access. A second instance or unsupported browser shows a Persian retry screen. Page lifecycle invalidation guards delayed HTTP responses and stale cache handles. Actual Safari/BFCache acceptance remains UNVERIFIED.
38
+- Product rebrand **LifeGuide**, Android **ir.lifeguide.app**, release key required from secrets; automatic public publishing and unused fix workflow removed. Deployment and signed-APK workflows are manual and disabled by default.
39
+
40
+## Execution evidence so far
41
+
42
+Actual output and A–H limits are recorded in [online acceptance](../audits/2026-10-08-online-acceptance.md) and [Stage 0 verification](../audits/2026-10-08-stage0-verification.md). Root reran Node22.23.3 against a fresh PostgreSQL16 database: **130/130 passed, zero failures/skips**. All twelve migrations applied, four SQL matrices passed, syntax check covered 38 files and dependency audit reported zero vulnerabilities. The independent real-entrypoint/HTTP/DB eight-step substitute passed **9/9**. Flutter aggregate **64/64**, analyzer clean; final frozen-source release web build **57.5s**. Compiled browser request test observed 14 local requests, zero external/missing/error; its HTTPS responses are explicitly intercepted and do not prove real TLS.
43
+
44
+On 2026-10-08, local prebuilt Compose PostgreSQL/API/nginxTLS/backup were observed healthy. Real trusted HTTPS smoke passed create/read/archive/logout; synthetic family task and 1500-second paused session survived API image recreation. Mother/father browser rendering and session restart evidence are recorded separately from backend substitutes. Backup cron, two concurrent distinct archives and fresh synthetic restore/privacy/session drill passed. Complete SDK Dockerfile image build failed with disk/snapshot exhaustion; **UNVERIFIED**, while the checked host/CI web artifact has a lighter Compose packaging path. Historical checksum-less ledger entries are not retrospectively certified; fresh twelve-entry ledgers have checksums.
45
+
46
+The first source CI passed backend tests/SQL but failed backup due to non-executable scripts; file mode and PostgreSQL16 client/container invocation were fixed and local restore retained **12/12** ledger/checksum entries. Final source commit **`7d9366832adaaab4cc3f24ef4d928fddd307fdc9`**, [CI run 37810558847](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847): **all three jobs succeeded**, including 130 backend tests, 64 Flutter tests, PostgreSQL16 backup/restore, release web build and actual debug APK build/upload. [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11563914781) and [LifeGuide-debug-apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11565283053) are test artifacts; debug signing is not a release. Independent downloaded APK inspection/install and release signing remain **UNVERIFIED**. Subsequent handover documentation does not change the application source tested by that run. No live host, DNS, production deploy, real-data migration, merge, signup, purchase or public release ran.
47
+
48
+The subsequent handover-only commit `1c162a5` initially hit a GitHub account restriction before any runner started. After the owner reported it resolved, root actually requested rerun: [run37813595994 attempt2](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994/attempts/2) completed all three jobs successfully on the same source:130 backend tests,64 Flutter tests, web and debug APK upload. [Historical restriction and exact fresh artifact receipts](../audits/2026-10-09-ci-billing-block.md). No account/payment settings were changed. That CI success does not cover the new0.5.1 changes.
49
+
50
+The0.5.1 packet and its evidence are tracked in [isolation verification](../audits/2026-10-09-isolation-verification.md). Actual fresh client tests: **68/68 Flutter, zero failures/skips;3/3 Chrome Dart guards, zero skips; analyzer clean**. Forced401/403 expiry tests preserve stable mutation UUID/payloads, invalidate old stores, isolate another account and allow one replay after same-account authentication; deliberate logout/server switch still discards. Final frozen-source release web build passed in43.0s;14 local asset requests/zero external or errors,8 compiled instance cases and forced-expiry exact-byte preservation passed. PostgreSQL final role drill passed9/9 runtime family tests,17 denied SQL checks per source/restored DB and12 checksum migrations. Current Compose API really uses lifeguide_api without admin/DDL flags; the existing completed task and1500-second session stayed unchanged. Real trusted HTTPS smoke7/7 and fresh mother PWA login/report passed, with23 same-origin requests and no private note. [Screenshot and sanitized receipt](../audits/2026-10-09-isolation-verification.md). [New source CI](https://github.com/davoodmehraban89/LifeMate/actions/runs/37893432018) on7c4ca78 completed all three jobs successfully:130 backend,9 runtime-family,68 Flutter,3 Chrome guards, compiled gate8, expiry retention, web and debug APK. Actual APK binary manifest0.5.1/code4/ir.lifeguide.app and valid Android Debug v2 signature were inspected on the runner; this is not a signed release or device acceptance. [Artifact IDs, binary/ZIP digests and receipt](../audits/2026-10-09-isolation-verification.md). Final handover changes after that source are documentation only with[skip ci], not a claimed successful latest-head CI. Unrun checks remain UNVERIFIED. No live deploy, DNS, real-data migration, merge, signup, purchase or public release ran.
51
+
52
+## UNVERIFIED acceptance and remaining gates
53
+
54
+- Real Android three-device lifecycle/install/upgrade; iPhone/iPad Safari login, Add to Home Screen and safe PWA update.
55
+- Windows PowerShell/WSL2/mkcert owner-PC installation and trusted mobile TLS.
56
+- VPN-free API/PWA/APK reachability inside Iran; foreign VPS/payment/KYC eligibility. No suitable long-term free/no-card VPS was verified; Stage 0 LAN is the primary recommendation.
57
+- Real email/SMS delivery/provider/payment, timing-indistinguishability of registration, background push.
58
+- Owner release keystore/certificate, genuinely signed LifeGuide.apk and public availability.
59
+- Legal/consent/retention gates for minor wellbeing and cycle data; in-country sensitive storage policy. These gates are flagged, not implemented or certified.
60
+- Complete account contact/closure, active-member role/admin transfer, and legacy life-context/year/term lifecycle CRUD; richer school/check-in UI and detailed exam/grade reports. Subject/class/check-in API CRUD is now tested, but that does not complete every auxiliary entity or its UI.
61
+- Real-host credential/ownership transition and encrypted/off-PC backups. Local independent-role tests do not authorize changing live privileges. [Database role runbook](../operations/DATABASE_ROLES.md).
62
+- Fully offline cold PWA startup, browser eviction/storage quota and hardware accessibility/update behavior; real Safari and actual BFCache restore. Exclusive-instance tests use Chromium; close all old app versions once before upgrading. Pending study events must receive acknowledgement before another event is recorded.
63
+
64
+## Next and operator responsibilities
65
+
66
+Owner currently has no access to the home PC; no immediate owner action is required. Windows/mobile Stage0 acceptance stays pending until PC/LAN access returns. [Read-only public domain audit](../audits/2026-10-09-public-domain.md) at07:32:31UTC observed app.lifeguide.ir still serving0.1.0/build1 behind Arvan; the owner panel screenshot supports a Railway origin. This is the old public deployment, not the0.5.1 test endpoint; no DNS/origin change ran. Public GET results do not prove Iran VPN-free reachability or device acceptance.
67
+
68
+The independent [Stage0 readiness packet](../audits/2026-10-09-stage0-readiness.md) fixes a reproduced Windows-style Git checkout failure with a standard LF text/binary-preservation policy. Root actually ran RED/GREEN on Node22.23.3 using the unchanged real web artifact: Windows/LF checkout, three shell endings,13 binary inputs and source/artifact tamper rejection passed. No local Flutter rebuild/restamp or actual Windows run happened. The new regression then ran successfully after a fresh web build in [CI37900944165](https://github.com/davoodmehraban89/LifeMate/actions/runs/37900944165), source7d35ee6.
69
+
70
+The same packet fixes a reproduced false TLS PASS under inherited insecure Node settings. Node22.23.3 local HTTPS regression passed5/5 with zero failures/skips after explicit verified-TLS enforcement. Root's real existing Compose read-only smoke passed5 checks at07:43:47UTC; it did not opt into a new write round-trip. No task/session, live host or trust-store setting was changed. CI37900944165 completed all three jobs SUCCESS, including new TLS5/5 and checkout tests,130 backend,9 family,68 Flutter,3 Chrome guards, web and actual debug APK build/manifest/v2 signature. [Receipt and current artifacts](../audits/evidence/ci-stage0-readiness-2026-10-09.json). The official connector downloaded the ZIP for private delivery; local extraction returned403 and is UNVERIFIED. Actual device install/upgrade, owner-signed release and public hosting remain open. The new debug certificate differs from the earlier CI build; no uninstall/data erase was performed or recommended for unsent work. Documentation follow-up does not claim an additional latest-head CI run.
71
+
72
+Owner follows [exact0.5.1 handover steps](../operations/HANDOVER_0.5.1.md) and runs [Stage 0](../operations/STAGE0.md) using the checked prebuilt web artifact, synthetic accounts and A–H hardware acceptance; record real Android/Safari/Windows and VPN-free Iran results before operational use. Remaining engineering packets include account/membership lifecycle CRUD and detailed school UI/report gaps. Follow the explicit DB-role adoption runbook for an existing local fixture; never run it on a live database without approval. Owner chooses hosting, DNS, SMS/email provider and signing key outside chat; any live change needs its explicit approval. [Hosting ADR](../decisions/0009-provider-neutral-hosting.md), [naming ADR](../decisions/0010-lifeguide-naming.md), [migration/rollback](../operations/DOMESTIC_MIGRATION.md).
docs/operations/DOMESTIC_MIGRATION.md
+3
-1
@@ -10,10 +10,12 @@
10
bash scripts/restore-drill.sh --synthetic-only
11
```
12
13
-script از Docker محلی استفاده میکند و سناریوی [نقشهای محدود](DATABASE_ROLES.md) را اجرا میکند: دو نام DB تازه با prefix `lifeguide_roles_` میسازد، migrations موجود با migrator اجرا، fixture موجود `backend/scripts/restore-smoke.sql` و fixture خانواده ساختگی `deployment/restore-fixture.sql` را درج و scripts موجود `backup.sh`/`restore.sh` را با backup فقطخواندنی و restore migrator اجرا میکند. در مقصد، حساب/profile،12checksum ledger، مالکیت، SQL forbidden، guardian مجاز، تکلیف خصوصی/والد نامرتبط و مجموع۶۰۰ثانیه interval مطالعه با وقفه را بررسی و فقط همین دو DB تازه را با marker دقیق همان run پاک میکند. دیتابیس برنامه و volume آن restore/drop نمیشوند. خروجی `PASS local least-privilege ...` شاهد drill است؛ موفقیت syntax/build بهتنهایی شاهد restore نیست.
13
+script از Docker محلی استفاده میکند و سناریوی [نقشهای محدود](DATABASE_ROLES.md) را اجرا میکند: دو نام DB تازه با prefix `lifeguide_roles_` میسازد، migrations موجود با migrator اجرا، fixture موجود `backend/scripts/restore-smoke.sql` و fixture خانواده ساختگی `deployment/restore-fixture.sql` را درج و scripts موجود `backup.sh`/`restore.sh` را با backup فقطخواندنی و restore migrator اجرا میکند. در مقصد، حساب/profile،20checksum ledger بسته0.7.1، مالکیت،58منع SQL، guardian مجاز، تکلیف خصوصی/والد نامرتبط و مجموع۶۰۰ثانیه interval مطالعه با وقفه را بررسی و فقط همین دو DB تازه را با marker دقیق همان run پاک میکند. شمار migration از فایلهای همان checkout به دست میآید؛ عدد تاریخی12 وضعیت بسته فعلی نیست. دیتابیس برنامه و volume آن restore/drop نمیشوند. خروجی `PASS local least-privilege ...` شاهد drill است؛ موفقیت syntax/build بهتنهایی شاهد restore نیست.
14
15
اجرای قبلی محلی ۲۰۲۶-۱۰-۰۸،۱۶:۴۶UTC با PostgreSQL16، حفظ12migration را نشان داد. اجرای نهایی جدید ۲۰۲۶-۱۰-۰۹ با نقشهای جدا، **PASS** بود: runtime HTTP9/9،17منع SQL در source و restore،12checksum ledger و policy/intervalهای مقصد. query مستقل بعد از cleanup، تعداد DBهای role-test باقیمانده را صفر نشان داد. این شاهد، انتقال واقعی، DNS و سرور داخلی مالک را تأیید نمیکند.
16
17
+اجرای محلی تازه12اکتبر و [CI38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644) روی منبع `0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef`، **20checksum ledger،58منع SQL در source و restore،runtime خانواده9/9 و سناریوهای learning/family/school/report96/96** و حفظ نشست۶۰۰ثانیه را تأیید کردند. [رسید CI](../audits/evidence/ci-content-operations-final-2026-10-12.json) و [گزارش اجرای بسته](../audits/2026-10-12-content-operations-verification.md) حدود شواهد را ثبت میکنند. این drill ساختگی، migration یا cutover واقعی نیست و اجرای Windows/سرور داخلی مالک همچنان **UNVERIFIED** است.
18
+
19
## مراحل دستی انتقال واقعی، فقط پس از مجوز
20
21
1. origin/DNS و سرور داخلی را مالک تعیین کند. imageهای دقیق و versioned، PostgreSQL16 و ظرفیت دیسک مقصد را بررسی کنید. مقصد باید database تازه و خالی داشته باشد. پیش از اتصال کاربران، همان Compose روی مقصد با داده **ساختگی** آزمون شود.
docs/operations/HANDOVER_0.7.1.md
new
+102
@@ -0,0 +1,102 @@
1
+# LifeGuide / لایفگاید — تحویل بسته 0.7.1
2
+
3
+واقعاً اجرا شد: Backend **245/245**، Flutter **200/200**، build وب و APK debug و هر سه job در [CI38201011644](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644). منبع آن `0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef`، نسخه Backend **0.7.1** و برنامه **0.7.0+6** است. [رسید CI و فایلها](../audits/evidence/ci-content-operations-final-2026-10-12.json) و [گزارش آزمون و حدود پذیرش](../audits/2026-10-12-content-operations-verification.md) مرجعاند. [PR پیشنویس۱۲](https://github.com/davoodmehraban89/LifeMate/pull/12) ادغام نشده است؛ این خروجی نامزد آزمون با داده ساختگی است.
4
+
5
+## اکنون و کادر URL در APK
6
+
7
+تا وقتی به رایانه دسترسی ندارید، **اقدام فوری لازم نیست**. کادر اتصال، نشانی HTTPS **API مشترک خانواده** را میخواهد؛ نصب APK یا وارد کردن نشانی، سرور ایجاد نمیکند. API عمومی سازگار و فعال تأیید نشده است. [بررسی11اکتبر دامنه](../audits/2026-10-11-apk-connection.md) پاسخ قدیمی HTML را ثبت کرد؛ این بررسی تازه DNS نیست. `app.lifeguide.ir` یا مسیر آن را حدس نزنید و DNS را فعلاً تغییر ندهید.
8
+
9
+بعد از اجرای سالم Stage0 و اعتماد گواهی، PWA روی `https://OWNER-LAN-IP/` و نشانی مورد نیاز APK روی `https://OWNER-LAN-IP/api` است؛ `OWNER-LAN-IP` را با IP واقعی رایانه عوض کنید. `localhost` روی گوشی به خود گوشی اشاره میکند. این نشانی فقط در LAN و هنگام روشن بودن PC/Docker قابل استفاده است؛ لینک اینترنتی عمومی نیست.
10
+
11
+## فایل Android و امضا
12
+
13
+[دانلود APK همین run](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725931941) یک ZIP با فایل **LifeGuide-debug.apk** است. لینک artifact مخزن خصوصی به ورود حساب GitHub دارای دسترسی نیاز دارد؛ از صفحه run هم قابل دریافت است. لینک موقت فایل چت ممکن است منقضی شود. فایل APK روی iPhone نصب نمیشود؛ مسیر iPhone، PWA در Safari است.
14
+
15
+پس از استخراج، در PowerShell بررسی کنید:
16
+
17
+```powershell
18
+Get-FileHash ./LifeGuide-debug.apk -Algorithm SHA256
19
+```
20
+
21
+اندازه APK **168960414 بایت** و SHA256 آن **b9b8599de796986cf2800ce24782ee85bc87a7d97889d2d194465f0ad4f07915** است؛ هش ZIP متفاوت است. manifest واقعی `ir.lifeguide.app`، نسخه0.7.0/code6، label فارسی و منع cleartext را نشان داد. روی runner، امضای debug با v2 واقعاً تأیید شد؛ گواهی SHA256 آن `c1bf6ec0237985d9fadf7d12d614b2461e78dda64903dcff1009867b43a972e1` است و با گواهی debug اجرای قبلی تفاوت دارد. **نصب/ارتقای Android واقعی UNVERIFIED** است و تفاوت امضا میتواند ارتقای درجا را رد کند. برای رفع آن، برنامه یا داده دارای تغییر ارسالنشده را حذف نکنید. APK رسمی با کلید انتشار مالک هنوز ساخته نشده است.
22
+
23
+## Windows/LAN: دستورهای محلی پس از دسترسی به PC
24
+
25
+Docker Desktop با WSL2، Git، Node22 و mkcert لازماند. این فرمانها روی Windows مالک **UNVERIFIED** هستند؛ اجرای Linux/Compose تیم جای پذیرش Windows و گوشی را نمیگیرد. فقط داده ساختگی استفاده کنید. یک پوشه تازه آماده کنید؛ checkout یا داده قبلی را reset/force نکنید:
26
+
27
+```powershell
28
+git clone --branch feat/learning-content-operations --single-branch https://github.com/davoodmehraban89/LifeMate.git LifeGuide-test-0.7.1
29
+Set-Location LifeGuide-test-0.7.1
30
+git switch --detach 0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef
31
+ipconfig
32
+```
33
+
34
+[LifeGuide-web همین run](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928) را همراه تمام فایلها و `build-provenance.json` در `apps/lifemate/build/web` استخراج کنید؛ `index.html` باید مستقیم در همین پوشه باشد. artifact0.6 قدیمی با این منبع سازگار نیست. اگر checker رد کرد، provenance را برای معتبر جلوه دادن خروجی قدیمی stamp نکنید؛ build موفق همان منبع لازم است. روش build محلی در [STAGE0](STAGE0.md#بستهبندی-pwa-از-خروجی-build-بررسیشده) آمده است.
35
+
36
+PC و گوشیها روی LAN مورد اعتماد باشند؛ guest Wi-Fi/client isolation میتواند اتصال را قطع کند. IP مثال زیر را با IP واقعی PC عوض کنید و برایش DHCP reservation بگذارید:
37
+
38
+```powershell
39
+New-Item -ItemType Directory -Force deployment/tls | Out-Null
40
+mkcert -install
41
+mkcert -cert-file deployment/tls/server.pem -key-file deployment/tls/server-key.pem 192.168.1.10 localhost 127.0.0.1
42
+mkcert -CAROOT
43
+node scripts/prebuilt-web-check.mjs apps/lifemate
44
+./scripts/local-deploy.ps1 -Origin https://192.168.1.10 -PrebuiltWeb
45
+docker compose ps
46
+```
47
+
48
+اگر هر مرحله fail شد، قبل از ورود به برنامه آن را برطرف کنید. اسکریپت `.env` تازه را با secretهای تصادفی میسازد و env موجود را حفظ میکند؛ API، migrator و backup credential مستقل دارند. روی volume قدیمی، انتقال مالکیت خودکار انجام نمیشود؛ ابتدا [DATABASE_ROLES](DATABASE_ROLES.md) و backup/adoption صریح را بررسی کنید. `.env` و کلیدها خارج Git بمانند؛ خروجی کامل `docker compose config` را در چت نفرستید.
49
+
50
+فقط **rootCA.pem عمومی** را از مسیر `mkcert -CAROOT` به دستگاههای شخصی آزمون منتقل کنید. `rootCA-key.pem` و `server-key.pem` خصوصیاند. iPhone: profile گواهی را نصب، سپس Settings → General → About → Certificate Trust Settings، full trust همان CA را فعال کنید؛ Safari باید URL LAN را بدون هشدار گواهی باز کند. سپس Share → Add to Home Screen. این پذیرش واقعی **UNVERIFIED** است.
51
+
52
+APK عمومی CI، CA رایانه شما را ندارد. برای LAN، توسعهدهنده باید با Flutter3.47.6 و public CA همان رایانه، debug جدا بسازد؛ نصب CA روی گوشی بهتنهایی اعتماد transport برنامه را اثبات نمیکند:
53
+
54
+```powershell
55
+$caRoot = mkcert -CAROOT
56
+$publicCa = [Convert]::ToBase64String([IO.File]::ReadAllBytes((Join-Path $caRoot 'rootCA.pem')))
57
+Set-Location apps/lifemate
58
+flutter build apk --debug --dart-define="LIFEGUIDE_DEBUG_CA_BASE64=$publicCa"
59
+Set-Location ../..
60
+Remove-Variable publicCa
61
+```
62
+
63
+این build سفارشی/نصب دستگاه در این بسته **UNVERIFIED** است؛ define توسعه در release رد میشود و TLS نباید دور زده شود. تفاوت امضای این build با APK نصبشده نیز باید بررسی شود. در صورت نیاز به فایروال، فقط TCP443 در Private profile و `LocalSubnet` طبق [STAGE0](STAGE0.md#آمادهسازی-windows) باز شود؛ port-forward، tunnel یا DNS عمومی برای LAN لازم نیست.
64
+
65
+## حسابهای ساختگی، smoke و سناریوی خانواده
66
+
67
+فقط روی DB تازه Stage0، رمز تصادفی آزمایشی حداقل۱۰کاراکتر را **در محیط خصوصی رایانه خودتان** تنظیم کنید. آن را در چت یا Git قرار ندهید. seed با نقش migrator کوتاهمدت انجام میشود؛ runtime API همچنان نقش محدود دارد:
68
+
69
+```powershell
70
+$env:SYNTHETIC_PASSWORD = '<رمز تصادفی فقط آزمایشی روی رایانه خودتان>'
71
+docker compose run --rm --no-deps -e ALLOW_SYNTHETIC_SEED=yes -e SYNTHETIC_PASSWORD migrate node scripts/seed-compose-smoke.js
72
+docker compose run --rm --no-deps -e ALLOW_SYNTHETIC_SEED=yes -e SYNTHETIC_PASSWORD migrate node scripts/seed-stage0-family.js
73
+$env:SMOKE_EMAIL = 'compose-smoke@lifeguide.test'
74
+$env:SMOKE_PASSWORD = $env:SYNTHETIC_PASSWORD
75
+$env:SMOKE_ALLOW_SYNTHETIC_WRITE = 'yes'
76
+$env:ROOT_CA_FILE = Join-Path (mkcert -CAROOT) 'rootCA.pem'
77
+node scripts/reachability-smoke.mjs https://192.168.1.10
78
+Remove-Item Env:SYNTHETIC_PASSWORD, Env:SMOKE_PASSWORD
79
+```
80
+
81
+هر دستور seed باید موفق شود؛ ادامه پس از fail معتبر نیست. حسابهای `stage0-child@lifeguide.test`، `stage0-mother@lifeguide.test` و `stage0-father@lifeguide.test` با همان رمز محلی و دو guardian مجاز ساخته میشوند. verification مستقیم این fixture **آزمایشی** است؛ تحویل ایمیل/پیامک را اثبات نمیکند. برای هر عضو از دستگاه یا browser profile مستقل استفاده کنید؛ Web Lock عمداً یک تب/PWA فعال را در هر origin/profile میپذیرد.
82
+
83
+در JSON ابزار، TLS/health/PWA/config/auth boundary باید جدا **PASS** شوند. `API round-trip=PASS` یعنی ایجاد تکلیف خصوصی ساختگی، خواندن مستقل، بایگانی و logout روی API واقعی؛ بدون opt-in نوشتن، این بخش **UNVERIFIED** است. `PWA=PASS` نصب Safari را اثبات نمیکند. برای tester داخل ایران، تاریخ، شبکه/اپراتور، VPN خاموش و نتیجه هر check را ثبت کنید؛ password/token در گزارش نباشد.
84
+
85
+سناریوی دستگاهی: کودک تکلیف ریاضی اضافه کند؛ مادر در PWA همان تکلیف را ببیند؛ کودک تایمر را شروع، مکث، ادامه و تمام کند؛ زمان ثبتشده در گزارش مجاز مادر دیده شود؛ کودک تکلیف را تمام کند؛ پدر با حساب مستقل تازهسازی کند؛ هر سه برنامه بسته و باز شوند؛ تغییر آفلاین با اتصال دوباره فقط یک رسید سرور بگیرد. زمان تایمر/خوداظهاری اثبات مطالعه نیست. آزمایش محلی فعلی چهارثانیه ثبت کرد؛ UI دقیقهای آن را صفر دقیقه نشان میدهد، نه چهارثانیه دقیق. نصب/بستن Android، Safari و سه دستگاه واقعی همچنان **UNVERIFIED** هستند.
86
+
87
+در «مدرسه من»، سال/نیمسال با تاریخ واقعی و پایه را انتخاب کنید؛ هدف آموزشی، پیشرفت، تاریخچه مرور و بازخورد فقط با متن ساختگی آزموده شوند. پیش از logout عمدی، تغییر سرور یا ارتقا، pending و ACK آخرین sync را بررسی کنید؛ این اعمال و پاککردن storage میتوانند صف را حذف کنند. انقضای نشست بهتنهایی صف را برای ورود دوباره همان حساب/API حفظ میکند. cold-start آفلاین PWA فعلاً صفحه عمومی قطع اتصال است؛ برنامه احراز هویتشده آفلاینِ کامل نیست.
88
+
89
+## گیتهای انتشار، provider و سرور
90
+
91
+1. **کلید امضا:** اگر کلید انتشار پایدار دارید، همان را خارج مخزن حفظ کنید. در صورت نداشتن، با JDK در پوشه خصوصی خارج repo، `keytool -genkeypair -keystore LifeGuide-release.jks -alias lifeguide -keyalg RSA -keysize 4096 -validity 10000` را با password prompt محلی اجرا و backup امن جدا نگه دارید. این فرمان توسط تیم اجرا نشده است. secretهای `LIFEGUIDE_KEYSTORE_BASE64`، `LIFEGUIDE_KEYSTORE_PASSWORD`، `LIFEGUIDE_KEY_ALIAS`، `LIFEGUIDE_KEY_PASSWORD` فقط در محیط حفاظتشده GitHub `release-signing`/secret manager قرار بگیرند. [workflow](../../.github/workflows/release-build.yml) پیشفرض خاموش است؛ فعالسازی `LIFEGUIDE_RELEASE_SIGNING_CONFIGURED=true` و dispatch با `BUILD_SIGNED_TEST_ARTIFACT` فقط پس از تصمیم مالک، ساخت آزمایشی امضاشده را اجازه میدهد. انتشار عمومی مجوز جدا میخواهد. شناسه `ir.lifeguide.app` بعد از انتشار تغییر نمیکند؛ فایل رسمی **LifeGuide.apk** هنوز ساخته نشده است.
92
+2. **ایمیل/پیامک:** مالک provider قابل استفاده خود را انتخاب کند؛ خرید یا ساخت حساب توسط تیم انجام نشده است. email اختیاری و SMS پیشفرض disabled است. [نمونه env](../../.env.example) شامل SMTP و `SMS_PROVIDER=webhook`/`SMS_PROVIDER_URL`/`SMS_PROVIDER_TOKEN` است؛ token فقط محیط خصوصی، endpoint HTTPS و delivery با حساب/شماره ساختگی آزموده شود. پاسخ2xx adapter پذیرش webhook است، نه اثبات رسیدن SMS به گوشی. delivery واقعی **UNVERIFIED** است.
93
+3. **میزبانی و DNS:** پیشنهاد [ADR0009](../decisions/0009-provider-neutral-hosting.md)، Stage0 رایگان روی PC/LAN است؛ fallback فقط سرور تحت کنترل مالک، اگر در اختیار باشد. گزینه VPS رایگان بلندمدت بدون کارت تأیید نشده؛ پذیرش ایران/پرداخت/KYC/IP/reachability نامزد خارجی **UNVERIFIED** است. خرید سرویس پیشنهاد نشده است. انتخاب origin/IP، deploy زنده، تغییر DNS `app.lifeguide.ir` و انتشار فقط پس از مجوز صریح مالک و آزمون testerهای ایران بدون VPN انجام شوند. همه fallbackها باید به همان backend/DB مجاز برسند. هیچکدام اکنون اجرا نشدهاند.
94
+4. **backup/مهاجرت داخلی:** [DOMESTIC_MIGRATION](DOMESTIC_MIGRATION.md) دستورهای dump با backup فقطخواندنی، restore با migrator روی DB تازه و خالی،20checksum، grants، توقف نوشتن، cutover و rollback را دارد. drill ساختگی با **20checksum،58 منع SQL در source/restore و نشست۶۰۰ثانیه با وقفه** واقعاً گذشت؛ انتقال واقعی/DNS/rollback زنده **UNVERIFIED** است. فرمان محلی `bash scripts/restore-drill.sh --synthetic-only` از Git Bash/WSL با Docker محلی، دو DB موقت مختص drill میسازد؛ اجرای آن روی Windows مالک هنوز **UNVERIFIED** است. backup رمزگذاریشده خارج PC و پذیرش restore پیش از انتقال واقعی لازماند.
95
+
96
+برای توقف معمول، `docker compose stop` و `docker compose start` volume را حفظ میکنند؛ **`down -v` اجرا نکنید**. خواب/خاموشی PC سرویس LAN را قطع میکند. backup فعلی خودکار رمزگذاری یا خارج PC منتقل نمیشود.
97
+
98
+## حدود این تحویل
99
+
100
+اهداف، خانواده، مدرسه، گزارش مجاز والد، تاریخچه و عملیات رضایت بازخورد روی API/PostgreSQL پیادهسازی شدهاند. فهرست217کتاب/1373بخش/1348نامزد ویدیو، پوشش آماده یک سال مدرسه نیست: **ویدیوی واقعی با بازبینی کامل و منتشرشده صفر؛ بانک سؤال واقعی منتشرشده صفر**. [CONTENT_REVIEW](CONTENT_REVIEW.md) و [LEARNING_CONTENT](LEARNING_CONTENT.md) گیت چاپ رسمی، مشاهده کامل، تطبیق اهداف، صحت/تناسب، حقوق نمایش و بازبینی سؤال را مشخص میکنند؛ draft بررسینشده به کودک عرضه نمیشود.
101
+
102
+A–G فقط در دامنه دقیق آزمون API/SQL/Chromium محلی شواهد دارند؛ Android واقعی، Safari/A2HS/iPad، Windows مالک، شبکه ایران بدون VPN و H دستگاهی **UNVERIFIED** هستند. ریز محدودیتها و probeهای مرورگر در گزارش آزمون ثبت میشوند. AI/voice خارجی و سلامت/چرخه غیرفعالاند؛ رضایت/حقوق کودکان، نگهداری داخلی و safeguarding نیازمند کار و بررسی تخصصی جدا هستند. بازخورد رضایتدادهشده خودکار به AI/agent یا والد ارسال نمیشود. هیچ deploy زنده، DNS، انتقال داده واقعی، merge نهایی، انتشار عمومی، ثبتنام یا پرداخت انجام نشده است.
docs/operations/STAGE0.md
+4
-4
@@ -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» آماده کنید: برای شاخه آموزش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 نمونه را عوض کنید:
8
+2. ابتدا خروجی بررسیشده وب را طبق بخش «بستهبندی PWA» آماده کنید: برای source `0831ee6ba81a4811f819e8d8dbfe3f7b24a566ef`، artifact کامل [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/38201011644/artifacts/11725840928) را همراه provenance در `apps/lifemate/build/web` استخراج کنید، یا build واقعی محلی را انجام دهید. خروجی تاریخی0.5.1 با ورودیهای آموزش جدید سازگار نیست. سپس از ریشه مخزن، در PowerShell، IP نمونه را عوض کنید:
9
10
```powershell
11
New-Item -ItemType Directory -Force deployment/tls | Out-Null
@@ -56,11 +56,11 @@ Linux محلی، پس از همین build و بررسی: `bash scripts/local-dep
56
57
اگر شبکه توسعه از proxy با CA سازمانی استفاده میکند، فقط گواهی **عمومی** آن را در `BUILD_CA_FILE` تنظیم کنید. script از override اختیاری `docker-compose.build-proxy.yml` و BuildKit secret استفاده میکند؛ گواهی یا proxy URL داخل کلاینت نهایی قرار نمیگیرد. TLS verification خاموش نمیشود. این گزینه مخصوص build است؛ CA اعتماد Stage 0 روی گوشی، گواهی جداگانه mkcert است.
58
59
-این fixture، فقط برای دیتابیس تازه Stage 0 است؛ تحویل واقعی ایمیل/SMS را اثبات نمیکند. رمز را خودتان تولید و فقط در محیط محلی نگه دارید. ثبت/ورود کاربران محصول باید از API عادی بگذرد.
59
+این fixture با job محلی کوتاهمدت migrator ساخته میشود؛ API محدود حق bootstrap هویت ندارد. فقط برای دیتابیس تازه Stage 0 است؛ تحویل واقعی ایمیل/SMS را اثبات نمیکند. رمز را خودتان تولید و فقط در محیط محلی نگه دارید. ثبت/ورود کاربران محصول باید از API عادی بگذرد.
60
61
```powershell
62
$env:SYNTHETIC_PASSWORD = '<یک رمز آزمایشی تصادفی حداقل ۱۰ کاراکتر>'
63
-docker compose exec -e ALLOW_SYNTHETIC_SEED=yes -e SYNTHETIC_PASSWORD api node scripts/seed-compose-smoke.js
63
+docker compose run --rm --no-deps -e ALLOW_SYNTHETIC_SEED=yes -e SYNTHETIC_PASSWORD migrate node scripts/seed-compose-smoke.js
64
$env:SMOKE_EMAIL = 'compose-smoke@lifeguide.test'
65
$env:SMOKE_PASSWORD = $env:SYNTHETIC_PASSWORD
66
$env:SMOKE_ALLOW_SYNTHETIC_WRITE = 'yes'
@@ -71,7 +71,7 @@ node scripts/reachability-smoke.mjs https://192.168.1.10
71
برای پذیرش چندکاربره، روی **همین DB ساختگی Stage 0** میتوانید قبل از پاک کردن متغیر رمز، fixture خانواده را بسازید:
72
73
```powershell
74
-docker compose exec -e ALLOW_SYNTHETIC_SEED=yes -e SYNTHETIC_PASSWORD api node scripts/seed-stage0-family.js
74
+docker compose run --rm --no-deps -e ALLOW_SYNTHETIC_SEED=yes -e SYNTHETIC_PASSWORD migrate node scripts/seed-stage0-family.js
75
```
76
77
حسابهای `stage0-child@lifeguide.test`، `stage0-mother@lifeguide.test` و `stage0-father@lifeguide.test` با همان رمز آزمایشی ساخته میشوند؛ عضویت و دو رابطه guardian در DB مشترکاند. script حساب/family غیرfixture را تغییر نمیدهد. تأیید ایمیل این fixture مستقیم و صریحاً آزمایشی است؛ تحویل ایمیل/SMS محصول را اثبات نمیکند. Android فرزند و PWA هر والد باید با حساب مستقل وارد همان origin شوند. سناریوی واقعی تکلیف/مطالعه/تازهسازی را از API عادی انجام دهید؛ موفقیت seed جای پذیرش سه دستگاه نیست.