LifeMate — Personal, Family & Learning Companion
docs: record pre-run CI billing block and no-payment fallback [skip ci]
Codex committed
Oct 9, 2026 at 05:29 UTC
b0bea0a526858609f997569e6f416a549719938f
4 files changed
+44
-3
PROJECT_STATE.md
+4
-2
@@ -1,6 +1,6 @@
1
# LifeGuide / لایفگاید — وضعیت واقعی پروژه
2
3
-Updated: 2026-10-08. Backend version: **0.5.0**. Branch: **feat/online-family-stage0**, based on main `abdc9d9d032bc6746c8390b902a2e52d82991530`. Repository remains `davoodmehraban89/LifeMate`.
3
+Updated: 2026-10-09. Backend version: **0.5.0**. Branch: **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](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.
6
@@ -24,10 +24,12 @@ Updated: 2026-10-08. Backend version: **0.5.0**. Branch: **feat/online-family-st
24
25
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.
26
27
-Local prebuilt Compose PostgreSQL/API/nginxTLS/backup are healthy. Real trusted HTTPS smoke passed create/read/archive/logout; synthetic family task and 1500-second paused session survive 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.
27
+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.
28
29
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.
30
31
+The subsequent handover-only commit `1c162a5` triggered [run 37813595994](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994), which **failed before any job started**. GitHub's annotation reports an account payment/spending-limit restriction; all three jobs have no runner and zero steps, not a failed application test. [Exact evidence and no-payment fallback](docs/audits/2026-10-09-ci-billing-block.md). CI on that head is **UNVERIFIED**; the earlier successful source run/artifacts remain valid. No account/billing settings were changed. The application/backend/deployment source diff against `7d93668` remains empty; final documentation-only changes use `[skip ci]` and are not represented as a successful latest-head CI run.
32
+
33
## UNVERIFIED acceptance and remaining gates
34
35
- Real Android three-device lifecycle/install/upgrade; iPhone/iPad Safari login, Add to Home Screen and safe PWA update.
docs/audits/2026-10-08-naming.md
+6
-1
@@ -16,9 +16,10 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
16
| .github/workflows/ci.yml:96 | 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} |
17
| .github/workflows/release-build.yml:16 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | run: {working-directory: apps/lifemate} |
18
| .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} |
19
-| PROJECT_STATE.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Updated: 2026-10-08. Backend version: **0.5.0**. Branch: **feat/online-family-stage0**, based on main 'abdc9d9d032bc6746c8390b902a2e52d82991530'. Repository remains 'davoodmehraban89/LifeMate'. |
19
+| PROJECT_STATE.md:3 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Updated: 2026-10-09. Backend version: **0.5.0**. Branch: **feat/online-family-stage0**, based on main 'abdc9d9d032bc6746c8390b902a2e52d82991530'. Repository remains 'davoodmehraban89/LifeMate'. |
20
| 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 |
21
| PROJECT_STATE.md:29 | 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 |
22
+| PROJECT_STATE.md:31 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | The subsequent handover-only commit '1c162a5' triggered [run 37813595994](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994), which **failed before any job started**. GitHub's annotation reports an ac |
23
| 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 تغییر نمیکنند. |
24
| README.md:9 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | Windows/LAN: [راهنمای Stage 0](docs/operations/STAGE0.md). Docker Desktop/Compose و گواهی HTTPS مورد اعتماد دستگاههای آزمون لازماند؛ حساب یا پرداخت میزبان لازم نیست. مسیر بررسیشده، بستهبندی وب از خروجی واقعی build اس |
25
| README.md:12 | protocol-sensitive/internal — keep | repository/path/package/resource or JWT/service/test compatibility | node scripts/prebuilt-web-check.mjs apps/lifemate |
@@ -114,6 +115,7 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
115
| docs/audits/2026-10-08-online-acceptance.md:22 | historical — keep | snapshot/previous decision; not current deployment evidence | **CI واقعی موفق:** [run 37810558847](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847)، commit **'7d9366832adaaab4cc3f24ef4d928fddd307fdc9'**. هر سه job Backend/security/Flutter موفق شدند: migration |
116
| docs/audits/2026-10-08-online-acceptance.md:24 | historical — keep | snapshot/previous decision; not current deployment evidence | - [LifeGuide-debug-apk](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11565283053): ZIP حدود۸۷MB، فایل 'LifeGuide-debug.apk'، **کلید debug و فقط آزمایشی**؛ ساخت واقعی در log '✓ Built ... |
117
| docs/audits/2026-10-08-online-acceptance.md:25 | historical — keep | snapshot/previous decision; not current deployment evidence | - [LifeGuide-web](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847/artifacts/11563914781): ZIP حدود۱۹MB، web کامل و provenance برای مسیر prebuilt. |
118
+| docs/audits/2026-10-08-online-acceptance.md:31 | historical — keep | snapshot/previous decision; not current deployment evidence | **بهروزرسانی ۲۰۲۶-۱۰-۰۹:** commit مستندات/helper '1c162a5' در [run 37813595994](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994) پیش از تخصیص runner/اجرای هر step با محدودیت پرداخت یا سقف هزینه حسا |
119
| docs/audits/2026-10-08-online-gap-analysis.md:3 | historical — keep | snapshot/previous decision; not current deployment evidence | تاریخ: ۲۰۲۶-۱۰-۰۸. این گزارش **پیش از پیادهسازی آنلاین جدید**، با خواندن source در 'main' تهیه شده است. هدف جدید، Android و PWA والدین متصل به یک Node/PostgreSQL مشترک است. بسته محلی بدون Login، شاهد اشتراک یا Sync آنلا |
120
| docs/audits/2026-10-08-online-gap-analysis.md:12 | historical — keep | snapshot/previous decision; not current deployment evidence | \| 'feat/online-family-stage0'، هنگام ایجاد \| 'abdc9d9d032bc6746c8390b902a2e52d82991530' \| worktree جدید '/workspace/LifeMate-online' از 'main'؛ این سند، عکس خط مبنای آغاز کار است. \| |
121
| docs/audits/2026-10-08-online-gap-analysis.md:16 | historical — keep | snapshot/previous decision; not current deployment evidence | \| 'final-feature-1/iran-family-school' \| '71ee193e4b5a6ef39a5a4b5e5a2abbed8756023d' \| diff فایلهای 'backend' و 'apps/lifemate/lib' نسبت به main خالی است؛ پیادهسازی runtime Feature 1 از قبل در main موجود است. تستهای |
@@ -121,6 +123,9 @@ Generated with `python3 scripts/audit-naming.py` from tracked source. Product di
123
| docs/audits/2026-10-08-online-gap-analysis.md:23 | historical — keep | snapshot/previous decision; not current deployment evidence | \| endpoint قابل تغییر در runtime \| 'HttpIdentityApi(baseUrl:)' قابلیت تزریق URL دارد؛ مقدار پیشفرض از 'LIFEMATE_API_URL' در زمان build و سپس 'http://localhost:8080' است ('apps/lifemate/lib/api.dart'). \| رابط انتخاب/ذ |
124
| docs/audits/2026-10-08-online-gap-analysis.md:24 | historical — keep | snapshot/previous decision; not current deployment evidence | \| Android رسمی \| 'applicationId = com.example.lifemate'، label قدیمی و 'release' با debug signing در 'android/app/build.gradle.kts'. manifest اصلی main اجازه INTERNET ندارد؛ فقط debug/profile آن را دارند. \| شناسه 'ir. |
125
| docs/audits/2026-10-08-online-gap-analysis.md:40 | historical — keep | snapshot/previous decision; not current deployment evidence | - 'apps/lifemate/lib/offline_store.dart' cache/queue را با user/server namespace تفکیک نمیکند؛ fallback UI همه exceptionها، از جمله خطای auth، را آفلاین تلقی میکند. این مرز باید پیش از استفاده چندحسابی/اشتراک دستگاه اص |
126
+| docs/audits/2026-10-09-ci-billing-block.md:7 | historical — keep | snapshot/previous decision; not current deployment evidence | - [run 37813595994](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994): آغاز ۲۰۲۶-۱۰-۰۸ ساعت۱۷:۰۳:۲۶، پایان۱۷:۰۳:۳۱ UTC، conclusion='failure'. |
127
+| docs/audits/2026-10-09-ci-billing-block.md:20 | historical — keep | snapshot/previous decision; not current deployment evidence | [run موفق 37810558847](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847) روی منبع '7d9366832adaaab4cc3f24ef4d928fddd307fdc9' هر سه job را اجرا کرد:۱۳۰ Backend،۶۴ Flutter، web و APK debug build/upload |
128
+| docs/audits/2026-10-09-ci-billing-block.md:25 | historical — keep | snapshot/previous decision; not current deployment evidence | git diff --exit-code 7d93668 HEAD -- backend apps/lifemate deployment docker-compose.yml docker-compose.prebuilt-web.yml Dockerfile |
129
| docs/decisions/0006-provider-neutral-postgresql-backend.md:9 | historical — keep | snapshot/previous decision; not current deployment evidence | Phase 2 originally treated Supabase as the likely combined database/auth/backend provider. Creation of an isolated LifeMate staging project was blocked by account-level project limits. More importantly, tying identity, a |
130
| docs/decisions/0006-provider-neutral-postgresql-backend.md:12 | historical — keep | snapshot/previous decision; not current deployment evidence | LifeMate will use PostgreSQL as its durable relational source of truth while exposing infrastructure through explicit application ports/adapters. |
131
| docs/decisions/0006-provider-neutral-postgresql-backend.md:18 | historical — keep | snapshot/previous decision; not current deployment evidence | - 'LifeMateApi': authenticated application boundary; clients do not receive privileged database credentials. |
docs/audits/2026-10-08-online-acceptance.md
+2
@@ -28,6 +28,8 @@
28
29
یک اجرای ابتدایی عامل هنگام افزودن جداسازی env با cwd نادرست، پیش از اصلاح runner انجام شد و شکست خورد؛ ممکن است یک درخواست احرازنشده با credential کاملاً مصنوعی به Resend فرستاده باشد. نبود ترافیک خارجی آن اجرا **UNVERIFIED** است؛ پیام/کلید واقعی استفاده نشده و ادعای تحویل ایمیل ندارد. runner نهایی EMAIL/SMS/AI ارثرسیده را حذف میکند؛ خروجی تمیز و بازاجرای مستقل ۱۳۰/۱۳۰ مرجع این تحویلاند.
30
31
+**بهروزرسانی ۲۰۲۶-۱۰-۰۹:** commit مستندات/helper `1c162a5` در [run 37813595994](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994) پیش از تخصیص runner/اجرای هر step با محدودیت پرداخت یا سقف هزینه حساب GitHub متوقف شد. تست/build روی این head **UNVERIFIED** است؛ این شکست، نتیجه آزمون کد نیست. [پیام دقیق و مسیر بدون پرداخت](2026-10-09-ci-billing-block.md). diff کد برنامه/Backend/deployment نسبت به `7d93668` خالی بررسی شد؛ CI موفق بالا شاهد همان منبع است. تنظیم حساب، پرداخت و افزایش سقف هزینه انجام نشدهاند. اصلاح نهایی فقط مستندات است و `[skip ci]` دارد، پس موفقیت CI روی آخرین head ادعا نمیشود.
32
+
33
## ماتریس A–H و سناریوی هشتمرحلهای
34
35
| معیار | شاهد اجراشده | آنچه هنوز UNVERIFIED است |
docs/audits/2026-10-09-ci-billing-block.md
new
+32
@@ -0,0 +1,32 @@
1
+# LifeGuide — توقف CI پیش از شروع job
2
+
3
+بررسی واقعی در ۲۰۲۶-۱۰-۰۹ UTC، با اتصال رسمی GitHub و CLI تنظیمشده محیط؛ مقدار credential خوانده یا چاپ نشد.
4
+
5
+- شاخه: `feat/online-family-stage0`، PR باز و Draft شماره۱۰؛ main تغییر نکرده است.
6
+- commit مستندات/helper: `1c162a50e1d9b7c0129205c46653f80d56d425ea`.
7
+- [run 37813595994](https://github.com/davoodmehraban89/LifeMate/actions/runs/37813595994): آغاز ۲۰۲۶-۱۰-۰۸ ساعت۱۷:۰۳:۲۶، پایان۱۷:۰۳:۳۱ UTC، conclusion=`failure`.
8
+- jobs Backend/security/Flutter: runner name خالی، `steps=[]`؛ هیچ تست یا build شروع نشده است. درخواست log نیز `404 BlobNotFound` داد.
9
+
10
+پیام واقعی annotation job Backend:
11
+
12
+```text
13
+The job was not started because recent account payments have failed or your spending limit needs to be increased. Please check the 'Billing & plans' section in your settings
14
+```
15
+
16
+این متن علت گزارششده GitHub است؛ مشخص نمیکند کدامیک از دو وضعیت حساب رخ داده. هزینه/سقف/وضعیت پرداخت حساب مستقلاً بررسی نشده و **UNVERIFIED** است. هیچ پرداخت، افزایش سقف، تغییر تنظیم حساب، signup یا rerun هزینهزا انجام نشد؛ خرید یا پرداخت راهکار پیشنهادی این بسته نیست.
17
+
18
+## شواهد معتبر و مسیر بدون هزینه میزبانی
19
+
20
+[run موفق 37810558847](https://github.com/davoodmehraban89/LifeMate/actions/runs/37810558847) روی منبع `7d9366832adaaab4cc3f24ef4d928fddd307fdc9` هر سه job را اجرا کرد:۱۳۰ Backend،۶۴ Flutter، web و APK debug build/upload. [گزارش A–H و artifactها](2026-10-08-online-acceptance.md) شامل نتایج محلی HTTPS، مرورگر والد و restore نیز هست. این شواهد، موفقیت CI آخرین head یا پذیرش Safari/Android واقعی را اثبات نمیکنند.
21
+
22
+فرمان زیر روی checkout تحویل واقعاً اجرا و diff خالی مشاهده شد:
23
+
24
+```bash
25
+git diff --exit-code 7d93668 HEAD -- backend apps/lifemate deployment docker-compose.yml docker-compose.prebuilt-web.yml Dockerfile
26
+```
27
+
28
+کد برنامه/Backend/بسته استقرار نسبت به منبع موفق تغییر ندارد؛ helper مرورگر مستقل روی HTTPS محلی آزموده و نحو آن بررسی شد. تغییر نهایی فقط مستندات است و با `[skip ci]` فرستاده میشود؛ این skip، نتیجه PASS برای CI نیست. PR تا پذیرش و رفع گیتها Draft میماند.
29
+
30
+برای آزمون بدون هزینه میزبانی، [Stage 0](../operations/STAGE0.md) و artifact وب prebuilt یا build واقعی Flutter3.47.6 محلی را استفاده کنید. دستورهای آزمون محلی در README و همان راهنما هستند. گوشیها روی LAN به یک origin/API/PostgreSQL وصل میشوند؛ هیچ حساب میزبان خارجی لازم نیست. فقط داده ساختگی و یک تب/PWA فعال در هر browser profile استفاده شود. راهاندازی Windows و پذیرش دستگاه مالک همچنان **UNVERIFIED** است. سرویس زنده، DNS و داده واقعی تغییر نکردند.
31
+
32
+پاکسازی محیط توسعه در۲۰۲۶-۱۰-۰۹: فقط گواهی عمومی آزمون `LifeGuide-Stage0-testCA-20261008` از NSS مرورگر محیط حذف و باقیماندن گواهیهای موجود تأیید شد؛ گواهی/تنظیم گوشی یا رایانه مالک تغییر نکرد. برای تکرار browser smoke، اعتماد عادی CA آزمون باید دوباره مطابق runbook آماده شود؛ TLS bypass وجود ندارد.