@davoodmehraban89 / LifeMate / commits / b43ee84
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: record synthetic local signing verification and remaining owner gates [skip ci]

Quinn White committed Oct 23, 2026 at 11:02 UTC b43ee84ca52ac829d6d9322369e9c1175ffebb20
4 files changed +268 -1
PROJECT_STATE.md
+8
@@ -1,5 +1,13 @@
1 # LifeGuide / لایف‌گاید — وضعیت واقعی پروژه
2
3 +## آماده‌سازی بررسی محلی امضا — ۲۰۲۶-۱۰-۲۳؛ APK تازه تحویل نشده
4 +
5 +[PR46](https://github.com/davoodmehraban89/LifeMate/pull/46)، شاخهٔ `feat/local-signing-preflight` بر PR45؛ منبع آزموده‌شده `62741da7861921517541efafedae5514912fefe4`. ابزار host فقط برای بررسی خواندنیِ آیندهٔ فایل انتخابی مالک آماده شد؛ اجرای این بسته فقط با کلیدهای موقت ساختگی بود. حالت پیش‌فرض هیچ کلیدی نمی‌خواند؛ inspect نیازمند انتخاب صریح، تأیید محلی و رمز پنهان است. خروجی فقط گواه عمومی و کد ثابت دارد؛ هیچ کلیدی جست‌وجو/ایجاد/صادر/آپلود یا APK امضا نمی‌شود. این ابزار کلید یا انتقال داده را فراهم نمی‌کند و قفل تحویل را باز نمی‌کند.
6 +
7 +**VERIFIED:** محلی91تست (55بازیابی،36امضا) و82کنترل host؛ JKS/RSA وPKCS12/EC واقعیِ موقت، ورود دوباره، کپی فقط ساختگی، hash مبدأ ثابت، رد رمز/entry عمومی/گواه نامرتبط/فایل غیرعادی و خطاهای بدون نشت. [CI اختصاصی39942133341](https://github.com/davoodmehraban89/LifeMate/actions/runs/39942133341) موفق: Ubuntu36تست و82host؛ Windows36تست با1موردِ اجرانشدهٔ POSIX (35اجرا). بازبین مستقل35تست را تکرار کرد؛ خطای CN چندمقداری با RED→GREEN و مجموعهٔ نهایی اصلاح شد. شکست اولیهٔ CI به‌دلیل وابستگی نصب‌نشده در گواه حفظ شده است. [دستور/خروجی](docs/audits/evidence/local-signing-preflight-2026-10-23.json)، [راهنمای فارسی](docs/operations/PERSONAL_SIGNING_PREFLIGHT.md).
8 +
9 +**BLOCKED/UNVERIFIED:** دسترسی به کلید واقعی APK نصب‌شده، custody، تعامل ترمینال/ACL واقعی Windows، گوشی و آپدیت حفظ داده، انتقال واقعی و اعلان‌ها هنوز آزموده/اجرا نشده‌اند. کد کلاینت/Backend/Gradle، package/version، baseline و workflow تحویل شخصی تغییر نکردند؛ خروجی ابزار همیشه `delivery: BLOCKED` دارد. CI عمومی39942133311 هنگام نگارش این بخش درحال اجراست (UNVERIFIED تا ثبت نتیجه در گواه). APK قابل آپدیت برای گوشی مالک عرضه نشد؛ نصب فعلی حذف/clear-data نشود. اقدام واقعی روی کلید یا داده، merge/deploy/DNS و انتشار نیازمند مجوز مرتبط‌اند و در این بسته اجرا نشدند.
10 +
11 ## B2 — بازیابی و ارتقای نصب آزمایشی در Android؛ ۲۰۲۶-۱۰-۲۳
12
13 [PR45](https://github.com/davoodmehraban89/LifeMate/pull/45)، شاخهٔ `test/personal-recovery-acceptance` بر PR44؛ منبع عملکردی `bdc97c8d95992385e91b40853d1c7a6c40c4c494`. فقط fixture خیالی در DB پیش‌فرض، exact APK اولیه روی AVD تازه و QA کناری آزموده شدند. داده/گوشی/کلید واقعی مالک، مجوز خانوادگی، AI و زیرساخت زنده تغییر نکردند.
docs/audits/evidence/local-signing-preflight-2026-10-23.json new
+251
@@ -0,0 +1,251 @@
1 +{
2 + "schemaVersion": 1,
3 + "dateUtc": "2026-10-23",
4 + "scope": "Preparation-only, owner-local read-only signing preflight; synthetic execution only",
5 + "repository": "davoodmehraban89/LifeMate",
6 + "pullRequest": 46,
7 + "branch": "feat/local-signing-preflight",
8 + "base": "5f0c4da505fc0cd03a36cb161361ca5bf588ea83",
9 + "testedFunctionalCommit": "62741da7861921517541efafedae5514912fefe4",
10 + "delivery": "BLOCKED",
11 + "ownerKeyInspection": "UNVERIFIED_NOT_PERFORMED",
12 + "toolchain": {
13 + "localPython": "3.12.14",
14 + "jdk": "Temurin 17.0.21+9",
15 + "temporaryPath": "/tmp/lifeguide-jdk17",
16 + "source": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.21%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.21_9.tar.gz",
17 + "vendorVerifiedArchiveSha256": "8b9b611d917e3dfd8419d3566b5949226f69b052fed7e109c1368add1dfe8711",
18 + "systemJdkUnchanged": true,
19 + "diagnosis": "System21 has jdk.compiler but no ct.sym/source17 support; empty-input fixed-helper probe now refuses this before any password/key read."
20 + },
21 + "localVerification": [
22 + {
23 + "command": "PATH=/tmp/lifeguide-jdk17/bin:$PATH python3 -m unittest discover -s scripts/tests -v",
24 + "status": "VERIFIED",
25 + "exitCode": 0,
26 + "output": "Ran 91 tests in 40.187s; OK",
27 + "counts": {
28 + "recovery": 55,
29 + "signingJava": 12,
30 + "signingPython": 24
31 + }
32 + },
33 + {
34 + "command": "python3 -m unittest discover -s apps/lifemate/tool -p '*_test.py' -v",
35 + "status": "VERIFIED",
36 + "exitCode": 0,
37 + "output": "Ran 82 tests in 0.197s; OK",
38 + "note": "One expected-refusal unit test prints FAIL/preflight JSON; unittest overall OK. Existing guard sources unchanged by final Java-only fix."
39 + },
40 + {
41 + "command": "PATH=/tmp/lifeguide-jdk17/bin:$PATH python3 scripts/signing_preflight.py check",
42 + "status": "VERIFIED",
43 + "exitCode": 0,
44 + "output": {
45 + "schemaVersion": 1,
46 + "status": "CHECKED",
47 + "java17OrNewer": true,
48 + "baselineVersionCode": 9,
49 + "keyInspection": "UNVERIFIED",
50 + "delivery": "BLOCKED",
51 + "releaseReadiness": "UNVERIFIED",
52 + "dataPreservation": "UNVERIFIED",
53 + "installedDeviceVerification": "UNVERIFIED"
54 + }
55 + },
56 + {
57 + "command": "python3 -m compileall -q scripts/signing_preflight.py scripts/tests/test_signing_preflight.py scripts/tests/test_signing_java.py scripts/tests/signing_test_support.py",
58 + "status": "VERIFIED",
59 + "exitCode": 0,
60 + "output": ""
61 + },
62 + {
63 + "command": "git diff --check",
64 + "status": "VERIFIED",
65 + "exitCode": 0,
66 + "output": ""
67 + },
68 + {
69 + "command": "python3 scripts/check-tracked-secrets.py",
70 + "status": "VERIFIED",
71 + "exitCode": 0,
72 + "output": "Tracked-file credential/artifact scan passed; this is not a complete secret audit."
73 + },
74 + {
75 + "command": "python3 scripts/audit-naming.py --check",
76 + "status": "VERIFIED",
77 + "exitCode": 0,
78 + "output": "Naming audit passed: 581 retained text occurrences classified; binary fonts/icons excluded."
79 + }
80 + ],
81 + "redGreenEvidence": [
82 + {
83 + "case": "Python module absent",
84 + "command": "python3 -m unittest scripts.tests.test_signing_preflight -v",
85 + "redOutput": "Ran 1 test; FAILED (errors=1); ImportError signing_preflight",
86 + "green": "covered by final 91 PASS"
87 + },
88 + {
89 + "case": "Java helper absent",
90 + "command": "python3 -m unittest scripts.tests.test_signing_java -v",
91 + "redOutput": "Ran 10 tests in 6.041s; FAILED (failures=21); fixture setup succeeded, source missing",
92 + "green": "covered by final 91 PASS"
93 + },
94 + {
95 + "case": "Compiler module without javac executable",
96 + "redOutput": "Ran 1 test; FAILED (failures=1); False != True",
97 + "green": "covered by final 91 PASS"
98 + },
99 + {
100 + "case": "Compiler module but no source17 support",
101 + "redOutput": "Ran 1 test; FAILED (failures=1); True is not false",
102 + "green": "covered by final 91 PASS"
103 + },
104 + {
105 + "case": "No password prompt on unsupported JDK",
106 + "redOutput": "Ran 1 test; FAILED (failures=1); password prompt assertion",
107 + "green": "covered by final 91 PASS"
108 + },
109 + {
110 + "case": "Actual mismatched RSA certificate proof mutation",
111 + "redOutput": "Temporary Java source copy with only proveKey invocation removed: 1 failure in3.980s; wrong keypair incorrectly INSPECTED",
112 + "green": "production source rejects key_proof_failed; covered by final 91 PASS"
113 + },
114 + {
115 + "case": "Independent review multi-valued RDN",
116 + "command": "PATH=/tmp/lifeguide-jdk17/bin:$PATH python3 -m unittest scripts.tests.test_signing_java.SigningJavaTests.test_debug_cn_in_multivalued_rdn_and_non_cn_value -v",
117 + "redOutput": "Ran 1 test in5.569s; FAILED (failures=1); debugCertificate False is not True",
118 + "greenOutput": "Ran 1 test in8.538s; OK; 3 subjects including negative non-CN Android Debug",
119 + "status": "VERIFIED"
120 + }
121 + ],
122 + "independentReview": {
123 + "range": "5f0c4da..3c69574",
124 + "signingTests": "35 tests in27.656s OK",
125 + "finding": "CN within multi-valued RDN misclassified as non-debug; delivery remained BLOCKED",
126 + "reviewerGrade": "Minor",
127 + "coordinatorGrade": "Important for accurate owner-facing certificate facts",
128 + "resolution": "All CN attributes enumerated; actual RED/GREEN and final 91 PASS; no open or deferred findings in scoped review",
129 + "reportSha256": "c6eb4f82cfb9eab1c898b2376cd366549453139b0231d554c680ca51fe07851a",
130 + "limitations": "Reviewer reran signing subset only on Linux/JDK17; fix verified by coordinator TDD, no second review claimed."
131 + },
132 + "ci": [
133 + {
134 + "runId": 39941563602,
135 + "commit": "3c695749941a1926b6b73a34219821cd1b9d0687",
136 + "conclusion": "FAILURE",
137 + "details": "Ubuntu signing35 PASS; inherited host import failed cryptography missing (65 tests/errors1). Windows signing35 OK skipped1 and job SUCCESS."
138 + },
139 + {
140 + "runId": 39941815472,
141 + "commit": "9df0c92ee8684fa3083c99a881f165547e56a3ab",
142 + "conclusion": "SUCCESS",
143 + "details": "Both Ubuntu and Windows jobs SUCCESS after pinned Ubuntu dependency installed; before final CN fix."
144 + },
145 + {
146 + "runId": 39942133341,
147 + "commit": "62741da7861921517541efafedae5514912fefe4",
148 + "conclusion": "SUCCESS",
149 + "status": "VERIFIED",
150 + "jobs": [
151 + {
152 + "jobId": 120375885059,
153 + "platform": "ubuntu-latest",
154 + "output": "Ran 36 tests in29.256s; OK. Ran 82 tests in0.264s; OK. check CHECKED; tracked scan/naming passed."
155 + },
156 + {
157 + "jobId": 120375886190,
158 + "platform": "windows-latest",
159 + "output": "Ran 36 tests in24.628s; OK (skipped=1, POSIX symlink/FIFO). check CHECKED; tracked scan/naming passed."
160 + }
161 + ],
162 + "evidenceMethod": "Official GitHub decoded job-log connector; both job conclusions read from run API"
163 + },
164 + {
165 + "runId": 39942133311,
166 + "commit": "62741da7861921517541efafedae5514912fefe4",
167 + "conclusion": "UNVERIFIED_PENDING",
168 + "name": "General LifeGuide CI",
169 + "status": "UNVERIFIED_PENDING",
170 + "verifiedCompletedJobs": [
171 + {
172 + "jobId": 120376129811,
173 + "name": "backend",
174 + "conclusion": "SUCCESS",
175 + "output": "TLS5/5, backend308/308, isolated-role41/41, runtime-regression96/96; zero audit vulnerabilities; synthetic dump/restore job step succeeded"
176 + },
177 + {
178 + "jobId": 120376130183,
179 + "name": "security",
180 + "conclusion": "SUCCESS",
181 + "output": "Tracked-file scan and naming passed"
182 + }
183 + ],
184 + "pendingJob": {
185 + "jobId": 120376130403,
186 + "name": "flutter",
187 + "observedStep": "Check compiled browser requests for local fonts and CanvasKit",
188 + "conclusion": "UNVERIFIED_PENDING"
189 + }
190 + }
191 + ],
192 + "safety": {
193 + "fixturesOnly": true,
194 + "privateArtifactsUploaded": false,
195 + "changedProductGradleBackendOrDeliveredBaseline": false,
196 + "actualOwnerKeyGeneratedReadExportedOrConfigured": false,
197 + "ownerPhoneOrRealChildDataAccessed": false,
198 + "mergeDeployDnsOrPersonalApkDelivery": false,
199 + "note": "New QA workflow uploads no artifacts. Generic inherited CI may produce existing debug test artifacts; no safe personal update is implied."
200 + },
201 + "rulings": [
202 + {
203 + "decision": "Read-only signing inspection preparation only, no key-generation/transfer feature",
204 + "reason": "Smallest authorized dependency; actual owner actions remain gated",
205 + "costIfWrong": "Usable transfer remains deferred"
206 + },
207 + {
208 + "decision": "Empty-input source17 helper probe rather than javac executable or version alone",
209 + "reason": "Observed stripped system JDK has compiler module but cannot launch source17",
210 + "costIfWrong": "Valid unusual JDK could be refused; no key is read during probe"
211 + },
212 + {
213 + "decision": "Inherited POSIX host82 Ubuntu-only; new signing suites on both CI platforms",
214 + "reason": "Existing host tests use sh/FIFO",
215 + "costIfWrong": "Legacy host behavior on Windows remains unverified"
216 + }
217 + ],
218 + "unverified": [
219 + "Actual owner signing key availability, identity and custody; no key-generation/read action authorized/executed",
220 + "Physical phone, Android same-install upgrade and actual child data preservation",
221 + "Real encrypted transfer/USB/local-machine acceptance and source notification deduplication",
222 + "Interactive Windows password masking, ACLs and owner backup recovery; CI is headless synthetic only",
223 + "Full-history secret audit (only tracked-file/high-confidence scan run)",
224 + "Memory zeroization, OS crash dumps, hostile administrator/JDK/filesystem and parent-directory symlink confinement",
225 + "Final docs-only head full rerun (test results are tied to testedFunctionalCommit)"
226 + ],
227 + "postDocumentationChecks": [
228 + {
229 + "command": "python3 scripts/check-tracked-secrets.py",
230 + "status": "VERIFIED",
231 + "exitCode": 0,
232 + "output": "Tracked-file credential/artifact scan passed; this is not a complete secret audit."
233 + },
234 + {
235 + "command": "python3 scripts/audit-naming.py --check",
236 + "status": "VERIFIED",
237 + "exitCode": 0,
238 + "output": "Naming audit passed: 586 retained text occurrences classified; binary fonts/icons excluded."
239 + },
240 + {
241 + "command": "git diff --cached --check",
242 + "status": "VERIFIED",
243 + "exitCode": 0,
244 + "output": ""
245 + },
246 + {
247 + "status": "VERIFIED",
248 + "output": "3 local design/plan/guide links exist; evidence JSON parsed"
249 + }
250 + ]
251 +}
docs/operations/PERSONAL_SIGNING_PREFLIGHT.md
+6
@@ -75,6 +75,12 @@ python -m unittest discover -s scripts/tests -p "test_signing*.py" -v
75 python3 -m unittest discover -s apps/lifemate/tool -p '*_test.py' -v
76 ```
77
78 +**VERIFIED برای منبع `62741da`:** محلی91تست Python (55بازیابی +36امضا) و82کنترل
79 +host پاس شدند. [CI اختصاصی39942133341](https://github.com/davoodmehraban89/LifeMate/actions/runs/39942133341)
80 +در Ubuntu36+82 و در Windows36تست با1skip مربوط به POSIX موفق شد. اجراهای
81 +headless با fixture اثبات تعامل واقعی صاحب کلید یا گوشی نیستند.
82 +[گزارش دستور/خروجی و شکست‌های قبلی](../audits/evidence/local-signing-preflight-2026-10-23.json).
83 +
84 آزمون‌ها کلید موقت RSA/EC، ورود دوباره، نسخهٔ کپی **ساختگی**، رمز اشتباه،
85 certificate-only، گواه debug، فایل خراب، خطای helper و حفظ hash ورودی را
86 می‌سنجند. نتیجهٔ واقعی اجرا در گزارش evidence همین بسته درج می‌شود؛ وجود
docs/superpowers/plans/2026-10-23-local-signing-preflight.md
+3 -1
@@ -82,7 +82,9 @@ PR45; no merge/release/deploy. Stop after handover.
82 - CI initial `39941563602`: signing35 PASS on Ubuntu and Windows (Windows one
83 POSIX skip); Ubuntu inherited guard import failed missing cryptography. Added
84 existing pinned requirement; `39941815472` then both jobs SUCCESS on `9df0c92`.
85 - Final CN-correction CI pending. Generic CI initial run superseded/cancelled by
85 + Final CN-correction `39942133341` SUCCESS on `62741da`: Ubuntu signing36+host82,
86 + Windows36 including1POSIXskip; exact outputs read via official job-log connector.
87 + Local final91/40.187s OK. Generic CI initial run superseded/cancelled by
88 normal branch concurrency; not treated as test success.
89 - No owner key/device/data inspection, signing/configuration, personal APK delivery,
90 merge/deploy/DNS performed. Generic CI may build existing debug test artifacts;