From e35ea479b5b307d1318272257b084d85eaec015a Mon Sep 17 00:00:00 2001 From: JianFeeeee Date: Mon, 14 Sep 2026 17:27:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BD=99=E9=A2=9D):=20=E5=AD=90=E9=9B=86?= =?UTF-8?q?=E5=85=B3=E7=B3=BB=E6=89=93=E8=BF=9B=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=9C=AC=E8=BA=AB=EF=BC=88=E8=AF=BB=E5=88=B0=209=E2=89=A05=20?= =?UTF-8?q?=E7=9A=84=E4=BA=BA=E4=B8=8D=E8=AF=A5=E9=9C=80=E8=A6=81=E8=AF=BB?= =?UTF-8?q?=E4=BF=A1=E6=89=8D=E7=9F=A5=E9=81=93=E4=B8=BA=E4=BB=80=E4=B9=88?= =?UTF-8?q?=EF=BC=89=EF=BC=9B=E6=98=A0=E5=B0=84=E6=AC=A0=E8=B4=A6=E5=8A=A0?= =?UTF-8?q?"=E4=B8=8D=E8=AE=B8=E7=BB=95=E8=BF=87=E6=98=A0=E5=B0=84"?= =?UTF-8?q?=E5=88=B0=E6=9C=9F=E5=89=8D=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pi 2026-09-14 两点。 1. `debts=9(registered) measured_static=5==登记 ✓` 让读的人先看到 9≠5,而 "本相位只有 static 有权威实测"只写在**信里**、不在那一行里 —— 那一行**没有一个字在判它可读**。 现在:`debts=9 (static-only=5==登记 ✓ / other=4 by go-test)(…)`。 理由与 §12 同源:**余额里任何需要靠注释才能读对的地方,就是下一个假绿。** 2. `blurStyleFor` 那笔欠账的到期前提再加一条:**调用点出现时**,判据要同时判 「调用点不许自己再换算一次 px→档」—— 否则调用点到位、消费侧计数转绿, 而换算被绕过(直接传算好的档位),映射那条行为判据照样全绿 —— 钉了个没人走的路。 --- client/electron/test/run-all.mjs | 17 ++++++++++++++--- docs/DEBTS.json | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/client/electron/test/run-all.mjs b/client/electron/test/run-all.mjs index 534df18..120cf77 100644 --- a/client/electron/test/run-all.mjs +++ b/client/electron/test/run-all.mjs @@ -533,9 +533,20 @@ try { const regStatic = led.debts.find(d => d.id === 'static-criteria'); debtRegStatic = regStatic ? regStatic.count : null; const measuredStatic = STATIC_ONLY.length; - debtsLine = ` debts=${total}(registered) measured_static=${measuredStatic}` + - `${debtRegStatic === null ? '(登记无此项)' : debtRegStatic === measuredStatic ? '==登记 ✓' : `≠登记${debtRegStatic} ✗`}` + - `(${items};本相位只有 static 有权威实测,其余由 go test 侧判据比对)`; + /* + * 子集关系必须**打进字符串本身**(pi 2026-09-14 裁定 §2)。 + * 上一版打的是 `debts=9(registered) measured_static=5==登记 ✓`:读的人先看到 9≠5, + * 而"本相位只有 static 有权威实测"只写在**信里**、不在那一行里 —— 于是那一行 + * **没有一个字在判它可读**。理由与我写进 §12 的那条同源: + * **余额里任何需要靠注释才能读对的地方,就是下一个假绿。** + */ + const other = total - (debtRegStatic || 0); + const staticNote = debtRegStatic === null + ? 'static=登记里没有这一项 ✗' + : debtRegStatic === measuredStatic + ? `static-only=${measuredStatic}==登记 ✓` + : `static-only=${measuredStatic}≠登记${debtRegStatic} ✗`; + debtsLine = ` debts=${total} (${staticNote} / other=${other} by go-test)(${items})`; } catch (e) { debtsLine = ` debts=登记读不到(${e.code || e.message})`; } diff --git a/docs/DEBTS.json b/docs/DEBTS.json index c2c9525..01e820f 100644 --- a/docs/DEBTS.json +++ b/docs/DEBTS.json @@ -10,7 +10,7 @@ { "id": "static-criteria", "count": 5, - "due": "本工作区能装、能点设备(探针三值转 true 时自动变红)", + "due": "本工作区能装、能点设备(探针三值转 true 时自动变红);**调用点出现时**判据要同时判「调用点不许自己再换算一次 px→档」——否则计数转绿而映射被绕过(直接传算好的档位),映射那条行为判据照样全绿、钉了个没人走的路(pi 2026-09-14 §3)", "where": "client/electron/test/run-all.mjs 的 STATIC_ONLY" }, {