From fd98ad6864e915d700413f0e0d9b2c7b3475a0c3 Mon Sep 17 00:00:00 2001 From: cbb <2625274797@qq.com> Date: Mon, 21 Sep 2026 02:30:04 +0800 Subject: [PATCH] =?UTF-8?q?docs(compose):=20host-code-quality=20delivered?= =?UTF-8?q?=E2=80=94=E2=80=94R1=E2=80=93R16=20=E6=95=B4=E6=94=B9=E4=B8=8E?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=8F=A3=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/compose/spec/host-code-quality.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/compose/spec/host-code-quality.md b/docs/compose/spec/host-code-quality.md index 5ddd8f5..0e09866 100644 --- a/docs/compose/spec/host-code-quality.md +++ b/docs/compose/spec/host-code-quality.md @@ -3,7 +3,7 @@ feature: host-code-quality status: delivered updated: 2026-09-23 branch: main -commits: 2c6235d..beeae8a(实施段 67dd170 / b70f5ed / 261caf5 / beeae8a) +commits: 2c6235d..0660506(实施段 67dd170 / b70f5ed / 261caf5 / beeae8a / d2b7877 / 2304ed6 / 0660506) --- # 上位机代码质量评估(冗余 / 复杂度 / 屎山风险) @@ -36,7 +36,7 @@ commits: 2c6235d..beeae8a(实施段 67dd170 / b70f5ed / 261caf5 / beeae8a) **Verification** — - `py_compile esp32_server.py ecat_client.py ecat_proc.py` PASS - `test_esf_pack.py` PASS;`test_app_lease.py` ALL PASS(7);`test_motor_refresh.mjs` 62/62 PASS -- `test_ecat_autostart.mjs` 24 通过 / **2 失败 PRE-EXISTING**(拆分前已存在,与 250µs 硬约束相关) +- `test_ecat_autostart.mjs` **26/26 PASS**(修复 `repairEcatDc`:health 缺 DC 字段时不再 `motor/start`;period 预期改为产品硬约束 0.25ms) - 全部新/改 JS `node --check` PASS - 真机 `e2e_web_send_latency.py` / APP 点发**未跑**(需设备;按仓库规则后续应补) @@ -44,7 +44,7 @@ commits: 2c6235d..beeae8a(实施段 67dd170 / b70f5ed / 261caf5 / beeae8a) - worktree add 被沙箱拦 → 用户授权 main - P1/P2 子代理中断后主会话接手,验证后补提交 - `Measure-Object -Line` 丢空行 → 用 `ReadAllLines().Length` -- autostart 2 失败标 PRE-EXISTING 而非回归 +- `repairEcatDc` 在 health 无 dc 字段时误调 motor/start,违反 healthCheck「只读」契约 → 已修 - 顺序:先止血(R1–R3)再拆文件,避免在坏边界上大搬家 ## [S1] Problem