对 main@39985f7(v0.2.3-beta.1,2026-10-29)和活跃分支 codex/temp-issue-2-icdb-recovery@29959e2(2026-11-04,领先 main 49 个提交、+13,173 行)做了全量扫描:逐模块阅读源码、两个分支跑完整 pytest、解析 32 位状态桥 PE 导入表并实机启动、对关键判定函数做行为探针。
main@39985f7
codex/temp-issue-2-icdb-recovery@29959e2
要回答的问题不是"代码写得好不好",而是:这个工具现在能否稳定地把一批 CBB 刷成绿?
结论:单 CBB / Win11 / 状态桥可用 / 无人占用 → 可以;批量、Win10、共享库并发、库损坏恢复四类场景仍被阻塞。 工具"失败即阻塞、不伪造绿色"的方向是对的,问题集中在判定链的部署完整性、现场弹窗/占用环境、以及批量的工程化。
测试机:Windows 11 x64,未安装 Mentor EE7.9.5,SysWOW64 无 x86 MFC/VC 运行时。上述失败均归因于环境(未 pip install -e .、无 Mentor、缺 x86 运行时、长路径/编码),不是断言暴露的产品逻辑失败。
pip install -e .
verify_runner.py:981-1000
ui/main_window.py:63-68
BRIDGE_UNAVAILABLE
mfc140/MSVCP140/VCRUNTIME140
packaging/CbbRefreshVerify.spec:4-14
0xC0000135
UNKNOWN_DIALOG
GXWND
Button
dialog_rules.py:216-236
dialog_supervisor.py:458-471
request_stop
cancel_path
desktop_worker.py:34-56,149-157
mentor_adapter.py:684-689,744-746,787-789
docs/releases/2026-11-03-field-feedback.md
2026-11-04-icdb-review-fixes.md
Local\
verify_runner.py:742-746
library_lock.py
sAddress.adr
icdb_ownership.py:13-16
mentor_adapter.py:619-621
docs/API-FINDINGS.md
.prj
verify_runner.py:30-31,128-141,157
PCB/pcb.prj
mentor_adapter.py:93-162,707-712
batch_status.py:95-122
ui/main_window.py:257-263
verify_runner.run_batch
ui/main_window.py:417-454
.\tools\status_bridge\bin\CbbStatusBridge32.exe --codec-test # 退出码 -1073741515 (0xC0000135);导入表含 mfc140.dll / MSVCP140.dll / VCRUNTIME140.dll
read_library_fast
UNAVAILABLE
verify_all
run_verify
apply_post_verify_status
classify_output(0, "Reuse Block's content checking completed successfully! 0 errors, 0 warnings") # -> 'FAIL'(ERROR_TEXT 正则命中 "errors")
dialog_rules.v1.json
decide()
safe_to_continue=False
DesktopWorker.request_stop()
Path(cancel).touch()
save helper
mentor_adapter.py:800-809
git clone https://git.simgreek.com/Skyworth_Digital_Hardware/cbb-refresh-verify-795.git cd cbb-refresh-verify-795 python -m pip install -e . python -m pip install pytest pytest-qt python -m pytest -q
VC_redist.x86
/MT
on_unknown: stop | record_continue | block_item
dialogs.jsonl
RESTORED_REVIEW_REQUIRED
CBB-Verify-全面扫描与阻塞分析.md
docs/diagnostics/
No dependencies set.
The note is not visible to the blocked user.
背景
对
main@39985f7(v0.2.3-beta.1,2026-10-29)和活跃分支codex/temp-issue-2-icdb-recovery@29959e2(2026-11-04,领先 main 49 个提交、+13,173 行)做了全量扫描:逐模块阅读源码、两个分支跑完整 pytest、解析 32 位状态桥 PE 导入表并实机启动、对关键判定函数做行为探针。要回答的问题不是"代码写得好不好",而是:这个工具现在能否稳定地把一批 CBB 刷成绿?
结论:单 CBB / Win11 / 状态桥可用 / 无人占用 → 可以;批量、Win10、共享库并发、库损坏恢复四类场景仍被阻塞。 工具"失败即阻塞、不伪造绿色"的方向是对的,问题集中在判定链的部署完整性、现场弹窗/占用环境、以及批量的工程化。
扫描数据
测试机:Windows 11 x64,未安装 Mentor EE7.9.5,SysWOW64 无 x86 MFC/VC 运行时。上述失败均归因于环境(未
pip install -e .、无 Mentor、缺 x86 运行时、长路径/编码),不是断言暴露的产品逻辑失败。阻塞点
P0 · 批量上线前必须解决
verify_runner.py:981-1000;ui/main_window.py:63-68BRIDGE_UNAVAILABLE;3000 项 = 3000 次无效写库mfc140/MSVCP140/VCRUNTIME140,打包清单只带 exe、未声明/检测运行时(发布 ZIP 不在仓库,需在发布包复核)packaging/CbbRefreshVerify.spec:4-14;PE 导入表;本机0xC0000135UNKNOWN_DIALOG= 当前项 FAIL + 整批停止;规则要求精确英文文本 +GXWND/Button类名dialog_rules.py:216-236;dialog_supervisor.py:458-471request_stop只 touch 取消文件,worker 仅在 3 处检查;看门狗在cancel_path存在时只写取消、不退出desktop_worker.py:34-56,149-157;mentor_adapter.py:684-689,744-746,787-789docs/releases/2026-11-03-field-feedback.md、2026-11-04-icdb-review-fixes.mdP1 · 批量可用性与数据安全
Local\命名互斥 + 本机 PCB 探测;分支新增 sidecar 文件锁,但属合作式,Mentor 不参与verify_runner.py:742-746;library_lock.py(分支)sAddress.adr永久阻断;本机任意 PCB 打开即拒跑icdb_ownership.py:13-16;mentor_adapter.py:619-621docs/API-FINDINGS.md§7.prjverify_runner.py:30-31,128-141,157PCB/pcb.prj的 CentralLibrary,网络库不做整工程备份mentor_adapter.py:93-162,707-712batch_status.py:95-122;ui/main_window.py:257-263verify_runner.run_batch;ui/main_window.py:417-454可复现的具体缺陷
read_library_fast返回UNAVAILABLE的条目仍进入verify_all;run_verify完成 PCB 刷新后才在apply_post_verify_status判BRIDGE_UNAVAILABLE。dialog_rules.v1.json不新增规则的前提下,任何新提示(如 "Reusable block already exists")都会走decide()的UNKNOWN_DIALOG分支并返回safe_to_continue=False。DesktopWorker.request_stop()仅Path(cancel).touch();worker 在save helper轮询循环(mentor_adapter.py:800-809)中不会读取取消状态,也没有超时。复现与环境
建议的修复顺序与验收
VC_redist.x86或桥改/MT;启动时桥自检;无桥时禁用"批量校验"并提示安装,而不是跑完整批。on_unknown: stop | record_continue | block_item;纯文本/IME/无按钮窗口仅记录并留证;数据库恢复/许可/保存失败仍阻断。dialogs.jsonl有证据。sAddress.adr在"不可达 + 非本机活进程 + 超时"时判定为陈旧并允许确认清理。需要平台/产品侧确认(无法靠改代码消除)
RESTORED_REVIEW_REQUIRED并人工复核版本。附
CBB-Verify-全面扫描与阻塞分析.md(F-01~F-27 缺陷清单、K1/K2/K3 阻塞分级、现场失败映射、路线图)。需要的话可整理为docs/diagnostics/下的正式文档提交 PR。main@39985f7、codex/temp-issue-2-icdb-recovery@29959e2。abaishu0730 referenced this issue2026-11-04 19:17:58 +08:00