Compare commits
140
Commits
v1.0.0-r21
...
v1.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2ec2176cd | ||
|
|
95c7f9b775 | ||
|
|
54c41d4525 | ||
|
|
e6ec267a26 | ||
|
|
bbf9bffe32 | ||
|
|
e2f76c3387 | ||
|
|
d12478efd8 | ||
|
|
81a8547352 | ||
|
|
ec75445f44 | ||
|
|
4d1b825e4a | ||
|
|
27dec68fc2 | ||
|
|
cf671a1d3f | ||
|
|
d10356ee3d | ||
|
|
bb506a3550 | ||
|
|
976a72d572 | ||
|
|
ca8ac2a5d2 | ||
|
|
8723076cb6 | ||
|
|
5ad0c66732 | ||
|
|
911afdf1cc | ||
|
|
e74ec5bcbd | ||
|
|
81f34683ea | ||
|
|
2f6060dfe3 | ||
|
|
5b625b076e | ||
|
|
13b9ff48dd | ||
|
|
998d78dbc0 | ||
|
|
8fe82c3124 | ||
|
|
2ad36ba45d | ||
|
|
e5ebc5d14e | ||
|
|
5a0f62f0de | ||
|
|
0714c7753f | ||
|
|
196c84b0d3 | ||
|
|
11810eca4c | ||
|
|
b646a9a88a | ||
|
|
ba4c328b2f | ||
|
|
bc36289059 | ||
|
|
b9193dbb21 | ||
|
|
9803993d49 | ||
|
|
e13b4e295f | ||
|
|
ea024da325 | ||
|
|
2ad0a3c6c7 | ||
|
|
cf0ba739c6 | ||
|
|
4a5c5df0f5 | ||
|
|
bb2451d178 | ||
|
|
6fe07aa160 | ||
|
|
0415ecc73c | ||
|
|
72853900de | ||
|
|
fff39e0645 | ||
|
|
f3d2570e48 | ||
|
|
660bbe3736 | ||
|
|
d9f65a0ac7 | ||
|
|
032a80ac27 | ||
|
|
2ddfd1a0b2 | ||
|
|
b30712b117 | ||
|
|
c04957293c | ||
|
|
6b5f79b412 | ||
|
|
a16914bc72 | ||
|
|
0f8dde61bf | ||
|
|
ce574ddb44 | ||
|
|
84d8f9c7f5 | ||
|
|
b3883cfca1 | ||
|
|
224f4e7c1e | ||
|
|
45a9cc6e0c | ||
|
|
6c0ca95d84 | ||
|
|
136d7ffd67 | ||
|
|
159616ea4a | ||
|
|
d0125f8f59 | ||
|
|
2fdbe3acb3 | ||
|
|
65a72c6a3a | ||
|
|
9b2372e389 | ||
|
|
29ea67c35e | ||
|
|
d832a1c736 | ||
|
|
7f0ec29d31 | ||
|
|
ff06f86f62 | ||
|
|
e655797e32 | ||
|
|
b47059587a | ||
|
|
a1f924295c | ||
|
|
0f0d6a7103 | ||
|
|
1b39d802bd | ||
|
|
a332e7bd59 | ||
|
|
4d8ba4c5bb | ||
|
|
791b3854b3 | ||
|
|
8986ce1759 | ||
|
|
9f95b24067 | ||
|
|
75165f60de | ||
|
|
714ac0bfc6 | ||
|
|
fc67d403cb | ||
|
|
7610a0fd86 | ||
|
|
980198a987 | ||
|
|
579ecc38c4 | ||
|
|
48ad7b3592 | ||
|
|
fee1aff557 | ||
|
|
f26e868bfc | ||
|
|
5c0f6a3fd3 | ||
|
|
2a4e793d70 | ||
|
|
7d1574e748 | ||
|
|
dfe1f80f90 | ||
|
|
5817522ac0 | ||
|
|
2172d8faee | ||
|
|
4194c011e3 | ||
|
|
260e270be8 | ||
|
|
80f1cfd799 | ||
|
|
e265ca515d | ||
|
|
e3b0f8940c | ||
|
|
c0bf96f49d | ||
|
|
1df3f0cf30 | ||
|
|
42e5736ec6 | ||
|
|
bc6b726675 | ||
|
|
87ec3acc20 | ||
|
|
78f3b0c32a | ||
|
|
3e45040def | ||
|
|
44b4f5be48 | ||
|
|
1719683fc3 | ||
|
|
83ed50452b | ||
|
|
d79250b699 | ||
|
|
0225787084 | ||
|
|
20d8b81a34 | ||
|
|
10581df3e2 | ||
|
|
ae7e0e6a1b | ||
|
|
6c817de359 | ||
|
|
cffa845b11 | ||
|
|
f5d91e6216 | ||
|
|
6b52aa534e | ||
|
|
a18d4dbee6 | ||
|
|
b1a72bef29 | ||
|
|
fbc7ddd037 | ||
|
|
855af0bd12 | ||
|
|
4f457b1e88 | ||
|
|
a93e40ed2a | ||
|
|
62e7114211 | ||
|
|
dd6ab99a31 | ||
|
|
de2d48fbe0 | ||
|
|
157b99851a | ||
|
|
730c76081f | ||
|
|
f3d0d7a93d | ||
|
|
235a1005e9 | ||
|
|
a7e1b9bd33 | ||
|
|
210fae575d | ||
|
|
c9b38f15c0 | ||
|
|
5051a3b9d6 | ||
|
|
7dd7bc8d12 |
No files matched your search
@@ -16,3 +16,5 @@ __pycache__/
|
||||
*.rar
|
||||
.coverage
|
||||
coverage.xml
|
||||
/.worktrees/
|
||||
/.superpowers/
|
||||
@@ -0,0 +1,136 @@
|
||||
# DxDesigner 器件批量替换工具
|
||||
|
||||
<img src="docs/user/media/app-icon.png" width="64" height="64" alt="DxPartReplace 应用图标">
|
||||
|
||||
面向 **Windows + DxDesigner / Expedition Enterprise 7.9.5** 的器件批量替换工具。一个工程对应一个任务,可以只替换同料号下的部分位号;支持直接编辑和 Excel BOM 导入,同批工程按顺序执行。
|
||||
|
||||
**最新版本:V1.1.3** · [下载便携包](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/download/v1.1.3/DxPartReplace-1.1.3.zip) · [版本说明与附件](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/tag/v1.1.3) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
|
||||
本版提供[目标封装选择](docs/user/target-cell-selection.md):目标封装可留空,此时工具不主动覆写封装,可后续与中心库同步;需要指定时,在料号规则中读取并选择合法封装。BOM 保持原 11 列。
|
||||
|
||||
## 窗口操作教程
|
||||
|
||||
下面的 GIF 录制于 V1.1.2,操作步骤仍适用于 V1.1.3,图标与版本号以新版为准。包含创建任务、BOM 导入、错误行提示、保存、顺序执行、查看结果和开始新一轮。共 20 个步骤、47.5 秒;仅记录工具及其弹窗,CAD 等待已压缩,Excel 填表示例在录制之外完成。
|
||||
|
||||

|
||||
|
||||
如果图片没有自动播放,可以[单独打开 GIF](docs/user/media/v1.1.2-window-bom-tutorial.gif)。
|
||||
|
||||
## 开始使用
|
||||
|
||||
1. 下载并完整解压便携包,保留 `DxPartReplace.exe` 和 `_internal` 的相对位置。**便携包无需安装 Python**,本机仍需安装可用的 DxDesigner、许可证和中央库。
|
||||
2. 双击 `DxPartReplace.exe`。首次运行会自动创建同目录的 `data`,保存任务、日志和执行证据。
|
||||
3. 点击左侧 **新建**,在弹窗填写工程根目录,点击 **读取工程**,勾选需要处理的 `.prj`,再点击 **创建任务**。每个工程自动创建一个任务。
|
||||
|
||||
首次使用请在完整工程副本上验证映射与库配置。执行前保存并关闭待处理工程;工具会启动自己的后台 CAD,主桌面仍可查看其他文件。
|
||||
|
||||
## 方式一:通过 BOM 批量配置
|
||||
|
||||
### 1. 导出本批模板
|
||||
|
||||
选择任务,打开顶部 **本批位号计划**,点击 **BOM 模板**。只要已导入工程,就能导出同批所有工程的一张空白表,**不需要先采集位号或填写料号规则**。
|
||||
|
||||
工程名称、工程路径自动填写。工程路径用于唯一分配任务,请保持原样;同一工程有多条替换时,可以复制该工程行。
|
||||
|
||||
### 2. 在 Excel 填写替换项
|
||||
|
||||
保留原模板的 11 列表头,按需要填写:
|
||||
|
||||
| 列名 | 填写内容 |
|
||||
| --- | --- |
|
||||
| `old_part_number` | 工程当前的旧料号 |
|
||||
| `new_part_number` | 中央库中的目标新料号 |
|
||||
| `refdes` | 要处理的位号,例如 `RV05`;一行可以写多个位号,以逗号、分号、空格或顿号分隔 |
|
||||
| `enabled` | `TRUE` / `是` 表示替换,`FALSE` / `否` 表示保留 |
|
||||
| `sync_nc` | 是否同步 NC,默认开启,可逐行关闭 |
|
||||
| `custom_value` | 可选的自定义 Value;填写后优先写入,留空沿用任务的 Value 策略 |
|
||||
|
||||
例如,首次配置的旧料号同时对应 `RV05`、`RV11`,只想替换 `RV05`,可以只填写 `RV05` 的启用项;首次采集的其余位号默认不替换。
|
||||
|
||||
**再次导入时,BOM 中未列出的既有计划行会保留原勾选和编辑状态。** 如果这轮只想执行 BOM 列出的目标,请在预览中检查其他启用行,并明确取消勾选,或在 BOM 中填写对应的 `enabled=FALSE` 行。
|
||||
|
||||
同名位号分布在不同图页时,补填 `schematic_name`、`sheet_number` 或 `uid` 消除歧义。`enabled` 留空默认替换,`sync_nc` 留空默认开启;建议显式填写。料号按文本填写;导入不接受公式,也不接受旧新相同、链式或循环替换。
|
||||
|
||||
### 3. 导入并检查报告
|
||||
|
||||
点击 **导入 BOM**,选择填好的文件。工具先校验表格格式、工程归属,以及能从表中确定的重复声明和料号冲突;通过后,只核验本表涉及的工程。已有位号库存覆盖旧料号时直接匹配;缺少库存时优先通过原生 CLI 采集,不可用时才回退到后台 CAD 只读采集。
|
||||
|
||||
新一轮导入开始后,旧报告会清除,界面显示读表、获取库存、匹配位号等进度;取消选择文件则保留原报告。导入失败或取消会保留已有预览和手动编辑。保存和执行前仍会核验工程。
|
||||
|
||||
- 校验报告显示通过、失败、未检查的行数,并标明 Excel 行号及原因。
|
||||
- 有错误时,整批不会生成新的可保存预览,也不会部分写入计划。修正后重新导入。
|
||||
- 全部通过后,先得到预览;可以切换任务,检查或修改各工程的位号计划。
|
||||
|
||||
### 4. 保存并执行
|
||||
|
||||
确认预览后点击 **保存本批位号计划**;普通单工程编辑时按钮显示 **保存位号计划**。
|
||||
|
||||
点击 **执行当前任务** 处理当前工程,或点击左侧 **顺序执行本批任务** 处理同批工程。确认范围后,工具逐项执行原生 Replace Part、保存、关闭并重新打开核验。
|
||||
|
||||
**左侧搜索和显示排序只影响浏览,不改变本批执行范围。** 调整执行顺序请使用上移、下移任务按钮。
|
||||
|
||||
## 方式二:直接在界面编辑
|
||||
|
||||
1. 在 **本批料号规则** 添加旧、新料号,按需配置 Value 与同步 NC;规则提供采集条件和默认值。
|
||||
2. 切到 **本批位号计划**,点击 **采集所有匹配位号**。
|
||||
3. 勾选需要替换的行,逐行填写新料号、自定义 Value 和 NC。查找可按位号、UID、料号、图页或 Value 过滤;批量操作的范围会显示为当前工程或可见行。
|
||||
4. 保存计划后执行。位号计划模式以**已保存的每行计划**为准,手动覆盖的值不会因修改默认规则而被随意覆盖。
|
||||
|
||||
两种方式可以配合使用,不必为了编辑而先导出 Excel。切换任务会保留编辑草稿;关闭时有未保存内容会提示保存全部、放弃或取消。
|
||||
|
||||
## Value、暂停与执行结果
|
||||
|
||||
- 顶部 **Value 策略** 开关控制当前任务是否将替换后的 Part Label 写入 Value;逐行自定义 Value 优先。处理多个任务时,分别确认各任务的开关。
|
||||
- **同步 NC** 是逐行选项,默认开启,可以关闭。
|
||||
- 点击 **完成当前项后暂停** 后,工具在当前步骤安全收尾后停止,不会在原生写入中途强行中断。
|
||||
- 点击 **替换结果 / 日志** 查看图页、位号、旧料号、实际回读料号和核验状态。失败、未命中、未核验不会显示为已保存成功;完整日志支持翻页。
|
||||
- 日志和 BOM 详情按需打开,关闭后释放窗口;数据和证据仍保留。
|
||||
|
||||
## 完成后再执行一轮
|
||||
|
||||
已完成任务可以点击 **开始新一轮**。工具归档旧计划、命令、快照与执行证据,清空过期位号基线,将同批已完成任务恢复为待配置。
|
||||
|
||||
接着按工程**当前料号**重新填 BOM 或修改规则,重新采集、保存并执行。旧轮次可通过 **查看轮次证据** 打开。出现状态不确定或恢复提示时,先使用 **核验并恢复**,不要直接重复执行。
|
||||
|
||||
## 更新程序与保留数据
|
||||
|
||||
先关闭旧程序并备份 `data`。完整解压新包,用新 EXE 和 `_internal` 配合原 `data` 使用;不要混用不同版本的依赖目录,也不要删除原数据。
|
||||
|
||||
```text
|
||||
DxPartReplace/
|
||||
DxPartReplace.exe
|
||||
_internal/
|
||||
data/ 首次运行后创建,更新时保留
|
||||
task-center.db 任务数据库
|
||||
logs/application.log 应用日志
|
||||
tasks/<任务ID>/ 任务事件、备份、快照及轮次证据
|
||||
```
|
||||
|
||||
不同版本不要同时打开同一数据目录。排查失败时保留日志、原生报告和工程副本;不要手工删除锁文件、状态或恢复证据来强行续跑。
|
||||
|
||||
## 验证范围与已知限制
|
||||
|
||||
V1.1.3 的业务代码沿用本机已验收候选:两工程实际替换和独立回读、362 字符工程路径、BOM 失败/成功导入、Part Label 写入 Value、可选封装、旧版任务数据副本、新轮次和自有后台资源释放。新增图标及版本元数据另做冻结包检查。详见[验收报告](docs/testing/2026-10-19-release-preparation.md)。
|
||||
|
||||
当前按 **evaluation-only(评估试用)** 交付。不同机器、中央库和 CAD 版本仍需用工程副本确认兼容性;替换回读通过不代表已通过 Packager、ERC 或网表检查。
|
||||
|
||||
首次采集与 CAD 启动可能需要较长时间,存在已知的偶发 COM 启动阻塞;启动有等待上限和清理机制。验收候选的两工程执行为 167 秒;千步模拟队列为 21.09 秒,两者测量范围不同。长路径兼容已覆盖验证场景,不代表旧 CAD 或中央库支持任意路径。
|
||||
|
||||
## 开发与更多资料
|
||||
|
||||
源码运行需要 Python 3.12:
|
||||
|
||||
```powershell
|
||||
py -3.12 -m venv .venv
|
||||
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
|
||||
.\.venv\Scripts\python.exe -m dx_productivity.trial_task_center.application
|
||||
```
|
||||
|
||||
源码默认数据目录为 `%LOCALAPPDATA%\DxProductivity\trial-task-center`,可用 `DX_TASK_CENTER_HOME` 指定独立目录。运行回归:`python -m pytest -q`;构建使用 `packaging/Build-DxPartReplace.ps1`。
|
||||
|
||||
- [完整桌面使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
- [中断核验与恢复](docs/user/interrupted-recovery.md)
|
||||
- [Value 与属性继承](docs/user/value-copy-and-layout.md)
|
||||
- [历史流程和独立 CLI 说明](docs/user/trial-task-center.md)
|
||||
- [CLI 与原生批处理集成](docs/user/part-replacement.md)
|
||||
- [V1.1.3 版本说明](docs/releases/v1.1.3.md)
|
||||
@@ -0,0 +1,45 @@
|
||||
# BOM 导入状态机
|
||||
|
||||
用户反馈:失败后重新导入时,旧失败报告在新结果出来前仍显示。导入生命周期由 `bom_import_state.py` 的 `BomImportMachine` 管理;`ProjectPlanPanel` 按批次(无批次则按任务)保存状态机。界面不再分别保存报告缓存和状态文字缓存。
|
||||
|
||||
```mermaid
|
||||
stateDiagram-v2
|
||||
[*] --> 空闲
|
||||
空闲 --> 读取表格: 开始
|
||||
读取表格 --> 校验表格
|
||||
校验表格 --> 获取库存
|
||||
获取库存 --> 匹配位号
|
||||
匹配位号 --> 获取库存: 下一工程
|
||||
匹配位号 --> 预览就绪: 全部通过
|
||||
读取表格 --> 校验未通过: 文件错误
|
||||
校验表格 --> 校验未通过: 格式或规则错误
|
||||
匹配位号 --> 校验未通过: 匹配错误
|
||||
读取表格 --> 取消中: 请求取消
|
||||
校验表格 --> 取消中: 请求取消
|
||||
获取库存 --> 取消中: 请求取消
|
||||
匹配位号 --> 取消中: 请求取消
|
||||
取消中 --> 已取消: 后台收尾完成
|
||||
取消中 --> 异常: 收尾失败
|
||||
```
|
||||
|
||||
图示突出主路径。读取、校验、库存与匹配阶段均可因运行异常转入 `FAILED`,也可返回含错误行的 `REJECTED` 报告;完整转换规则以 `_NEXT`、`receive`、`finish` 为准。
|
||||
|
||||
## 约束
|
||||
|
||||
- `phase` 表示业务阶段;`settled` 表示后台工作线程是否完成收尾。收到最终报告后仍可能暂时 `busy=True`,此时禁止启动新导入;取消按钮只在仍接收阶段事件时可用。
|
||||
- `start()` 增加 `attempt`,同时清除本轮旧报告与提示。取消文件选择不会调用 `start()`。
|
||||
- 阶段事件由后端 `on_phase(phase, message)` 明确发出,不解析中文提示来判断阶段。普通 `on_progress(message)` 只更新当前合法阶段内的进度。
|
||||
- 所有转换在 GUI 线程处理。旧停止事件、被替换的状态机实例和旧 `attempt` 的回调都不能更新当前导入。
|
||||
- 取消请求先进入 `CANCELLING`,阻止后续进度和结果;真实异常优先于取消,工作线程结束才进入 `CANCELLED` 或 `FAILED`。
|
||||
- `report` 是状态的一部分,摘要和详情在显示时生成。保存、放弃预览只释放报告中的预览引用,保留 `PREVIEW_READY` 的成功含义并更新说明。
|
||||
- 替换计划草稿独立于导入状态。失败、取消、重试不会自动删除已有草稿。保存与执行前的工程核验保持原流程。
|
||||
|
||||
此状态机只负责 BOM 导入,不替代数据库中的任务执行状态,也不管理原生 CAD 会话资源本身。
|
||||
|
||||
## 验证
|
||||
|
||||
`tests/v1_1/test_bom_import_state.py` 验证轮次隔离、非法倒退、多工程往返、取消与异常优先级、成功报告释放预览后的语义。UI 回归验证阶段事件驱动提示和按钮、等待状态不会被普通摘要刷新覆盖,以及取消后的迟到事件不会恢复旧结果。服务回归验证两工程发出明确的阶段序列。
|
||||
|
||||
新增用例先确认失败,再接入实现。首轮 BOM、任务 UI、预览及懒加载定向回归:70 项通过,22.97 秒。测试使用 offscreen Qt 和模拟库存,不重复启动真实 CAD。
|
||||
|
||||
最终加入库存取消、界面响应与保存安全回归,合计 90 项通过,34.78 秒。只读代码复核未发现新增问题;两轮测试有重叠,不累加计数。
|
||||
@@ -0,0 +1,11 @@
|
||||
# BOM 真人流程与重复执行
|
||||
|
||||
沿用当前 1.1.2 开发版和 11 列模板;用户已授权实现与在副本上实际替换。原 CAD PID 18732、原工程及原始 BOM 不操作;及时提交推送,不打包发布。
|
||||
|
||||
1. 导入反馈:提供结构化校验报告,显示总行数、校验通过/失败/未检查行数、工程、Excel 行号和原因。严格原 API 保持拒绝整批部分写入;UI 走报告入口,有错误时不保存或默默执行部分替换,修正后重新导入。
|
||||
2. 完成任务:显式“开始新一轮”保留旧命令、快照、计划和日志,重置运行状态并清除已过期目标基线,重新采集当前工程再编辑和执行;不解除中断/不确定状态。批规则编辑需兼顾同批仍完成的成员,以明确的新一轮范围保证一致性。
|
||||
3. 长路径:分别核对证据目录、Excel 路径、实际工程路径;通过真实 WSH 检查和实际 CAD 试验发现限制后修复。身份验证始终使用原始工程身份,运行别名不得让工程串位。
|
||||
4. 原生真人流程脚本:Qt 弹窗选择创建任务、导出默认模板、修改模板实际单元格、失败导入报告、成功导入预览、保存、点击执行、原生 Replace Part 保存回读;开始新一轮后再次导入与替换;用独立原生读取核对选中与未选中位号,检查私有桌面及自有 CAD 释放。
|
||||
5. 自动回归覆盖报告、事务、重跑状态和长路径身份;真实验证记录步骤耗时、路径长度、日志、前后器件和截图,报告任何实际限制。
|
||||
|
||||
并行所有权:报告代理持有 bom_plan.py/bom_batch.py/new bom_import_report.py/ui/project_plan.py;重跑代理持有 service.py/store reset helper/ui/main_window.py/run_panel.py/execution_state.py;主代理持有路径兼容、VBS 与真实探针,并接入报告服务 API。不得并行启动 CAD。
|
||||
@@ -0,0 +1,26 @@
|
||||
# 2026-10-15 全流程审查修复
|
||||
|
||||
范围:修复当前审查确认的八项问题,沿用 1.1.2 开发版和现有 11 列 BOM 模板;提交并推送当前开发分支,不打包、不发布。不操作用户原 CAD 进程。
|
||||
|
||||
## 约束与决策
|
||||
|
||||
- 同批规则通过服务层事务同步到所有未删除成员。任一成员被冻结或已有不可编辑执行证据时,拒绝整个修改,不做部分成功;已有历史分歧须明确报错,避免选中任务决定执行结果。
|
||||
- 规则是位号计划的默认值。修改规则时仅更新仍与旧默认值一致的新料号、NC;Value 开关和内容作为一组比较并传播,保留用户的手动覆盖与启用选择;界面明确显示实际执行使用位号计划。规则新增可以补全空默认值;删除不清空用户位号计划。历史规则合并后统一检查链式替换及循环;显式编辑或删除冲突规则可以解除历史分歧。
|
||||
- 位号基线允许执行前添加,既有 UID、位号、旧料号与旧 Value 必须全部仍在且一致。采集时包含既有旧料号,防止以不完整清单掩盖工程变化。预览不落库,确认批量事务后才保存。
|
||||
- 新 BOM 预览取代重叠的过期范围,同范围保留未重新导入工程的编辑。关闭窗口检查所有任务草稿,提供保存全部、放弃、取消;保存失败保持打开和草稿。
|
||||
- 回收站使用独立入口,保留搜索、排序、恢复、永久删除,不恢复常驻状态下拉框。
|
||||
- 原生读取比较基于规范化内容,枚举顺序变化可接受,实际字段变化及重复身份仍拒绝。
|
||||
- 采集与 BOM 导入共用可取消操作控制,显示每工程进度;取消传至原生启动及监控,等待自有会话安全释放,不保存部分计划。
|
||||
- 回归额外发现 Windows 临时共享冲突会令工程会话的继续指令读取失败;在 VBS 的继续指令读取处增加有界重试,保留后续 token 和 checkpoint 严格校验。
|
||||
|
||||
## 工作项
|
||||
|
||||
1. 位号清单扩展与 BOM 事务:`bom_batch.py`、`store_target_plan.py`,针对增量、身份变化、回滚增加回归。
|
||||
2. 界面草稿、预览、回收站:`ui/project_plan.py`、`ui/main_window.py`、`ui/task_list.py`,含关闭保护和采集取消界面接入。
|
||||
3. 原生顺序比较、取消:`discovery_cache.py`、`quick_run.py`、`project_discovery.py`、`inventory.py`,保留缓存一致性与私有桌面释放约束。
|
||||
4. 服务层批规则与默认值传播:`service.py` 与新独立规则模块;服务采集 API 接入取消进度,并扩展采集旧料号范围。
|
||||
5. 集成回归:针对现有捕获的七工程真实库存复放导入,完整适用测试;审查修复后的变更,分批 Git 提交推送。
|
||||
|
||||
接口:`preview_bom_batch` / `preview_batch`、`collect_target_inventory` / preparer 的库存读取使用可选关键字 `stop_event=None, on_progress=None`。`on_progress(message: str)` 仅通知,UI 用线程信号回主线程;取消抛出 `TaskCenterError('operation_cancelled', ...)`。未传控制参数时兼容已有两参数测试替身。
|
||||
|
||||
任务交叉:工作项 1 生产库存扩展接口,由 4 调用;1、3 共用取消参数,由 4 接线;2 消费 4 的公开 API。各项代码分别持有,集成时统一检查。
|
||||
@@ -0,0 +1,12 @@
|
||||
# 1.1.2 界面与吞吐优化
|
||||
|
||||
沿用用户已认可的审查方案;本轮不打包、不发布。
|
||||
|
||||
1. 修复 BOM 报告跨批次残留:按导入发起批次存储,切换时恢复,支持折叠摘要。
|
||||
2. 修复 980×700 长路径场景位号表不可见:路径省略与复制、可调表格/执行区、有限日志高度。
|
||||
3. 明确当前工程与本批范围,集中 Value 策略、区分自定义内容和实际回读,修正私有桌面说明。
|
||||
4. 整理操作层级、任务选中态、表格排序和样式;保留默认 BOM 与原位号计划入口。
|
||||
5. 对千步队列做一次定位分析,优化确认的热点,保留文件身份与不确定状态保护。
|
||||
6. 按行为运行针对性 Qt/执行回归,复放真实证据副本,记录截图和性能;分批提交并推送。
|
||||
|
||||
已验证的 CAD 替换与 Part Label 证据继续有效。UI 和纯队列优化无需重复修改真实工程。
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"artifacts": {
|
||||
"version": "1.1.1",
|
||||
"code_commit": "7610a0fd86b98733b6e92234ba744ca5bcfc88d4",
|
||||
"build_checks": {
|
||||
"passed": 219,
|
||||
"seconds": 34.87
|
||||
},
|
||||
"exe_sha256": "f029d60fe808c7b5eb47adf9795d4733faa66f33c3f6e9f779fc2541268d1c70",
|
||||
"vbs_sha256": "212857251e3f42347720b21520836035fa467635ef47f4ca3f330f04cc5a2480",
|
||||
"private_cad_helper_probe": {
|
||||
"passed": true,
|
||||
"project_opened": false,
|
||||
"clean_released": true
|
||||
},
|
||||
"zip_sha256": "f42f656974cb5170dc4ed80a3e9eaabdedae45ecee229da46a57a178d867e532",
|
||||
"zip_bytes": 52514265,
|
||||
"file_count": 235,
|
||||
"unpacked_bytes": 128586142
|
||||
},
|
||||
"packaged_helpers": {
|
||||
"passed": true,
|
||||
"commands": [
|
||||
{
|
||||
"action": "probe",
|
||||
"executable": "F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\dist\\DxPartReplace\\DxPartReplace.exe"
|
||||
},
|
||||
{
|
||||
"action": "quit",
|
||||
"executable": "F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\dist\\DxPartReplace\\DxPartReplace.exe"
|
||||
}
|
||||
],
|
||||
"session": {
|
||||
"desktop": "dx-258535e794ca41598c912ae87fcdf92b",
|
||||
"token": "258535e794ca41598c912ae87fcdf92b",
|
||||
"state": "released",
|
||||
"cad_pid": 52248,
|
||||
"guid": "{449B3896xE3A2x469Ax9AEExE68DD21C4B67}",
|
||||
"startup_seconds": 31.484000000025844,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 4.60999999998603
|
||||
},
|
||||
"source_path_removed_from_child": true,
|
||||
"project_opened": false
|
||||
},
|
||||
"desktop_observation": {
|
||||
"samples": 166,
|
||||
"file_read_samples": 166,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"foreground_pids": [
|
||||
10104,
|
||||
13256
|
||||
],
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"baseline_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"observed_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"cad_exit_confirmed": {
|
||||
"52248": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-258535e794ca41598c912ae87fcdf92b": true
|
||||
},
|
||||
"sessions": {
|
||||
"dx-258535e794ca41598c912ae87fcdf92b": {
|
||||
"desktop": "dx-258535e794ca41598c912ae87fcdf92b",
|
||||
"token": "258535e794ca41598c912ae87fcdf92b",
|
||||
"state": "released",
|
||||
"cad_pid": 52248,
|
||||
"guid": "{449B3896xE3A2x469Ax9AEExE68DD21C4B67}",
|
||||
"startup_seconds": 31.484000000025844,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 4.60999999998603,
|
||||
"evidence_path": "data\\tasks\\packaged\\quick-run\\private-desktop.json"
|
||||
}
|
||||
},
|
||||
"observer_errors": []
|
||||
},
|
||||
"extracted_zip_smoke": {
|
||||
"extracted_zip_smoke": true,
|
||||
"version": "1.1.1",
|
||||
"exit_code": 0,
|
||||
"missing_helper_arguments_exit_code": 2,
|
||||
"data_directory_excluded_from_archive": true,
|
||||
"log": "2026-10-15T05:34:36Z INFO dx_productivity.trial_task_center.f2619d17fd50a1f1 logging configured root=F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\release-1.1.1-smoke-data application_log=F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\release-1.1.1-smoke-data\\logs\\application.log\n2026-10-15T05:34:36Z INFO dx_productivity.trial_task_center.f2619d17fd50a1f1 application_start version=1.1.1 executable=F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\release-1.1.1-extracted\\DxPartReplace\\DxPartReplace.exe os=Windows-11-10.0.26200-SP0 data_root=F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\release-1.1.1-smoke-data database=F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\release-1.1.1-smoke-data\\task-center.db application_log=F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\release-1.1.1-smoke-data\\logs\\application.log\n2026-10-15T05:34:36Z INFO dx_productivity.trial_task_center.f2619d17fd50a1f1 recovered_interrupted_projects=none\n2026-10-15T05:34:37Z INFO dx_productivity.trial_task_center.f2619d17fd50a1f1 operation_start=list_tasks task_id= at=2026-10-15T13:34:37.043664\n2026-10-15T05:34:37Z INFO dx_productivity.trial_task_center.f2619d17fd50a1f1 operation_complete=list_tasks task_id= at=2026-10-15T13:34:37.047016\n2026-10-15T05:34:37Z INFO dx_productivity.trial_task_center.f2619d17fd50a1f1 application_clean_shutdown exit_code=0\n"
|
||||
},
|
||||
"pre_release_fixes": [
|
||||
"Absolute package import for an application executed as the frozen entry script; regression reproduced before the fix.",
|
||||
"Bounded atomic state publication retry for Windows readers denying delete access; native transient and persistent sharing tests added."
|
||||
],
|
||||
"validation_boundary": "Real packaged EXE probe/quit helpers launched by the source supervisor; no project opened in this package smoke. Previous real replacement evidence is linked in the release notes. No new Packager/ERC qualification."
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
# 1.1.1 发布构建记录
|
||||
|
||||
日期:2026-10-15。程序源码提交:`7610a0fd86b98733b6e92234ba744ca5bcfc88d4`;后续发布文档及探针提交不改变成品程序代码。
|
||||
|
||||
- 标准构建脚本发布检查:219 passed,34.87 秒;没有跳过或放宽构建门槛。
|
||||
- PyInstaller 6.22.3 / Python 3.12.10 构建成功;构建自带的独立启动退出检查通过。
|
||||
- ZIP 解压到全新目录后,EXE 启动日志为 version=1.1.1,正常退出码 0;helper 缺少必要参数时退出码 2。
|
||||
- 成品 EXE 的真实后台 CAD probe/quit 通过,子进程移除源码 PYTHONPATH,没有打开工程;CAD 与桌面确认释放,主桌面没有被切换或抢占。
|
||||
- 本次私有 CAD 启动 31.484 秒,退出 4.610 秒;166 次主桌面采样和普通文件读取均完成。
|
||||
- ZIP CRC、文件清单、EXE 哈希及包内 VBS 与源码哈希一致性检查通过;包内不含 data、任务数据库、日志或工程备份。
|
||||
|
||||
产物:`dist/DxPartReplace-1.1.1.zip`,52,514,265 字节(50.08 MiB),235 个文件。
|
||||
|
||||
| 文件 | SHA-256 |
|
||||
| --- | --- |
|
||||
| ZIP | `f42f656974cb5170dc4ed80a3e9eaabdedae45ecee229da46a57a178d867e532` |
|
||||
| EXE | `f029d60fe808c7b5eb47adf9795d4733faa66f33c3f6e9f779fc2541268d1c70` |
|
||||
| QuickPartReplace.vbs | `212857251e3f42347720b21520836035fa467635ef47f4ca3f330f04cc5a2480` |
|
||||
|
||||
源码、验证探针和记录推送至 `codex/execution-responsiveness`,版本标签 `v1.1.1`。发行附件为 ZIP 与 `SHA256SUMS-1.1.1.txt`,发布页:[DxPartReplace 1.1.1](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/tag/v1.1.1)。附件上传后另行下载验证 SHA-256。
|
||||
|
||||
本次发版过程中复现并修复了两项:冻结脚本入口的相对导入失败,以及状态读者短暂占用导致 Windows 原子替换失败。第一轮成品 helper 实际已退出 CAD、释放桌面,但最终状态记录因占用失败;修复后重新运行标准构建与成品探针通过。
|
||||
|
||||
详细证据见 [JSON](v1.1.1-build.json)。本轮成品验证由源码监督器调用实际 EXE 的 probe/quit 入口,不代表又执行了成品整批替换。此前真实替换、恢复及异常清理证据见 [后端验证记录](../testing/2026-10-15-private-desktop-execution.md),没有新增 Packager/ERC 认证。
|
||||
@@ -0,0 +1,31 @@
|
||||
# DxPartReplace 1.1.1
|
||||
|
||||
发布日期:2026-10-15。
|
||||
|
||||
本版包含按工程创建任务、位号计划、可选 BOM/Excel 导入、任务顺序执行,以及后台 CAD 执行与完整退出清理。
|
||||
|
||||
## 更新内容
|
||||
|
||||
- 自动采集、替换和中断恢复默认使用私有桌面中的自有 CAD,主桌面可继续查看其他文件。
|
||||
- 完成、暂停和异常退出均检查自有进程及桌面释放;记录每次后台会话证据。
|
||||
- 单步替换同样执行备份、保存、关闭与重开核验;恢复成功后无需另行手动保存。
|
||||
- 界面显示后台 CAD 启动及退出阶段,保留位号、旧新物料号、执行阶段耗时和速率记录。
|
||||
- 保留同一工程的连续步骤会话复用、异步查询及取消、工程发现缓存等优化。
|
||||
- 修复冻结程序后台 helper 的脚本入口导入错误,版本号更新为 1.1.1。
|
||||
- 后台状态文件遇到短暂的 Windows 读取占用时进行有限重试,持续权限错误仍会明确报告。
|
||||
|
||||
## 下载与使用
|
||||
|
||||
下载 `DxPartReplace-1.1.1.zip` 并完整解压,运行 `DxPartReplace/DxPartReplace.exe`。保留同目录的 `_internal`,不能只复制 EXE。无需另外安装 Python,仍需本机可用的 DxDesigner EE 7.9.5、许可证和中央库。
|
||||
|
||||
升级前关闭旧工具并备份原 `data`;更新 EXE 和 `_internal`,保留原有 `data`。新包不含本机任务、日志或工程备份,不同版本不要同时使用同一数据目录。
|
||||
|
||||
目标工程开始前须保存关闭,运行时不要同时打开或修改它。其他工程不会被接管。后台 CAD 启动实测约 22~35 秒,许可证和系统资源仍共享。
|
||||
|
||||
`SHA256SUMS-1.1.1.txt` 提供 ZIP 的 SHA-256。便携目录同时包含使用说明和版本清单。
|
||||
|
||||
## 验证范围
|
||||
|
||||
发布构建运行功能和执行保护检查,再执行 PyInstaller 构建及独立 EXE 启动退出检查。成品另执行实际私有 CAD probe/quit 验证,不依赖源码 PYTHONPATH;确认主桌面不切换、自有 CAD 退出、私有桌面释放。发布记录保存测试结果、ZIP/EXE/脚本哈希及验证证据。
|
||||
|
||||
原生替换、保存回读、恢复、暂停和超时证据见 [私有桌面执行验证](../testing/2026-10-15-private-desktop-execution.md)。本次成品验证没有重新进行整批替换或 Packager/ERC 验收;现有现场验收边界不变。
|
||||
@@ -0,0 +1,261 @@
|
||||
{
|
||||
"version": "1.1.2",
|
||||
"release_date": "2026-10-16",
|
||||
"release_tag": "v1.1.2",
|
||||
"classification": "evaluation-only",
|
||||
"code_commit": "a16914bc7221dbc62c467b7a89e06ab0c40c1fbc",
|
||||
"accepted_exe_sha256": "73d6deb81d52ce34ce9c6d2958275a9b7376f316ae1872552882f0d65070ce75",
|
||||
"exe_sha256": "73d6deb81d52ce34ce9c6d2958275a9b7376f316ae1872552882f0d65070ce75",
|
||||
"vbs_sha256": "9997d8a41ad3820e7fd905c8024fc10c765c0e6218eb7f3c091301e3c73db9dc",
|
||||
"program_files": {
|
||||
"DxPartReplace.exe": "73d6deb81d52ce34ce9c6d2958275a9b7376f316ae1872552882f0d65070ce75",
|
||||
"_internal/api-ms-win-core-console-l1-1-0.dll": "015bd08815c7b934a8952c3a7578e9ce59f21136e8a880d42bbd414bec2c6058",
|
||||
"_internal/api-ms-win-core-datetime-l1-1-0.dll": "5534812cdbdae94ba45cb216e5eb9af686b853948df54365103555abbbaf9d9a",
|
||||
"_internal/api-ms-win-core-debug-l1-1-0.dll": "837d2b1b2cd03e03fc6ccb050698b6b5763af17c201304872342a5eae9e0a2d2",
|
||||
"_internal/api-ms-win-core-errorhandling-l1-1-0.dll": "de43b165f568c276c00e95acd454e3092f352a18e95874595f4f4658c06d2ec7",
|
||||
"_internal/api-ms-win-core-fibers-l1-1-0.dll": "3cebc45bf479ad74cfabf2c6bfd4994d7ad639ed1221025981d19cedf9ce0416",
|
||||
"_internal/api-ms-win-core-fibers-l1-1-1.dll": "5ef70308bcca628ce6b0e2856b15b1c7ae340c3f9bbbc4c1071d8c191a34a5c3",
|
||||
"_internal/api-ms-win-core-file-l1-1-0.dll": "250ac829f2617bcac1c6e5b8c4f630462e20765863ba573526a3e11bbfb94a9a",
|
||||
"_internal/api-ms-win-core-file-l1-2-0.dll": "ae14079a114733f60ce87b92cba42acd8083c2cd67594e53bc37dc0b97a4b465",
|
||||
"_internal/api-ms-win-core-file-l2-1-0.dll": "914bf26a298713119477ea0a8e7bd43171b91344ebe24fb47ad77c49686e3d87",
|
||||
"_internal/api-ms-win-core-handle-l1-1-0.dll": "ab5489955e371b15f77906c08ec3c7affe2c7a46a08c514ca628768b4478974b",
|
||||
"_internal/api-ms-win-core-heap-l1-1-0.dll": "c70f9644d8377fa39c5b71f2e9734c1400d7598904fdeb772e8502099982dcb7",
|
||||
"_internal/api-ms-win-core-interlocked-l1-1-0.dll": "f8129710188e407bb0e6f46d30aeba277d67b947ece5fe09e883fde2323f3ae6",
|
||||
"_internal/api-ms-win-core-kernel32-legacy-l1-1-1.dll": "5200b16cb2ddc61cfc07373a9a84aa85a3ab50806ca96c879c883275832944c1",
|
||||
"_internal/api-ms-win-core-libraryloader-l1-1-0.dll": "48786fb88b001dcd1f63acea903d3ca9cc0b3060d5a325e3f2f3cbc3bfd53166",
|
||||
"_internal/api-ms-win-core-localization-l1-2-0.dll": "9ec3898f7eba91faa28b51616c211a2689e3a13aeef8de6e13cb674e49d689eb",
|
||||
"_internal/api-ms-win-core-memory-l1-1-0.dll": "3a6cbc524c99e1cd80d5368f5601402a37ad602528b1ab628093573ef638eb3b",
|
||||
"_internal/api-ms-win-core-namedpipe-l1-1-0.dll": "97145ef89c44949fcf0f04ac834a8bc7d687ef49ee73ae9fc32f3c11136b7201",
|
||||
"_internal/api-ms-win-core-processenvironment-l1-1-0.dll": "8bc7c10b1851aea644e9c9f381cdb935e091fee6b0be3d3aedc6fffaac96adb7",
|
||||
"_internal/api-ms-win-core-processthreads-l1-1-0.dll": "d8030b777617c71f0f94564607699dbf7561487d779db9756aed378c5675213f",
|
||||
"_internal/api-ms-win-core-processthreads-l1-1-1.dll": "f5e676713340f73a03a3d41a6ec9883b431da7d16c7f07bd0a920fb80e6c0753",
|
||||
"_internal/api-ms-win-core-profile-l1-1-0.dll": "f023d47e44d3eea6b0743580f57e8c6ba81e79d5ebfa7da26250076c647b980e",
|
||||
"_internal/api-ms-win-core-rtlsupport-l1-1-0.dll": "9746d8930704153578a628c010638a5f818ffe5a927e25591b108e256dc6afca",
|
||||
"_internal/api-ms-win-core-string-l1-1-0.dll": "7c53ae24c982d16ffd1bf7f918d115b11b7f30e57bc7feaa18cb9781e4abb926",
|
||||
"_internal/api-ms-win-core-synch-l1-1-0.dll": "56d9d62ca5dba79a6581b8d574a7d8b2a64a5ecb71e47dcf06ed0285708b1859",
|
||||
"_internal/api-ms-win-core-synch-l1-2-0.dll": "f6482bbec5612c39ecb4822787a333f2b7570f7a5f922a4059be41ba957bb372",
|
||||
"_internal/api-ms-win-core-sysinfo-l1-1-0.dll": "272d02765fdd3582618236c2d309abba069642f9bc1062ede069d0c144e17007",
|
||||
"_internal/api-ms-win-core-sysinfo-l1-2-0.dll": "8a0900788859d0eb51c2f48f50cc6ed376a120b518100fa20e11d7702ccde260",
|
||||
"_internal/api-ms-win-core-timezone-l1-1-0.dll": "ff35de6c03812b332e140f17dade25c5dd4775156da9eeb1eaae3fddd27236ec",
|
||||
"_internal/api-ms-win-core-util-l1-1-0.dll": "191ef3e98641a57296f19d572d8eb62489470ff1ef6030d136af170c2f835173",
|
||||
"_internal/api-ms-win-crt-conio-l1-1-0.dll": "54ee5ec719a051496ff60aa00dbeaa94b9a7d2cdac27fe9b7317f1a666b6a2aa",
|
||||
"_internal/api-ms-win-crt-convert-l1-1-0.dll": "8b94662429171019fcd63c70bbf2095a075170599704a5e7dcdbe3da13f3a429",
|
||||
"_internal/api-ms-win-crt-environment-l1-1-0.dll": "39e5929593709e8af3bc9e0a75ec1155778d6f4a247f4cdfc58928ad6db88434",
|
||||
"_internal/api-ms-win-crt-filesystem-l1-1-0.dll": "5a8ecebac32edf4e1f3c5c6c1c8ea1a1add6cda4f9c9cb26f752fb295bea6865",
|
||||
"_internal/api-ms-win-crt-heap-l1-1-0.dll": "c71080cbcb43bf1f8f3e391deb12a582eb0abefc80946f340675a2c616e4feb4",
|
||||
"_internal/api-ms-win-crt-locale-l1-1-0.dll": "6c68648e524187e03c4ad9aaa4a99113c6ee9f29fb39cc0ed93f951975138e63",
|
||||
"_internal/api-ms-win-crt-math-l1-1-0.dll": "d4fbcccbe29371cbce431e43b2eb4f7ba9a6f04a3d740a071f02457a505e9dc8",
|
||||
"_internal/api-ms-win-crt-process-l1-1-0.dll": "47c1935942e3ac0812e4dcf18c0e265e565f0194a3349111c299712f5565f7ac",
|
||||
"_internal/api-ms-win-crt-runtime-l1-1-0.dll": "72adc1b3677e0814d9c4ebf0964000e84bb2acf67336c8963061665e44f78029",
|
||||
"_internal/api-ms-win-crt-stdio-l1-1-0.dll": "900afc3989673c9bb1a687ed38c192f46db9e6ba6d11a668898a539e7fc23798",
|
||||
"_internal/api-ms-win-crt-string-l1-1-0.dll": "fcf12466cc12fd3b73611fc0763a5a1f9d44e90349513c34a0c83b0f36421793",
|
||||
"_internal/api-ms-win-crt-time-l1-1-0.dll": "886e57c4a6adb299b38f02945369f590a67da4e79a798359fc60aaa067212d7c",
|
||||
"_internal/api-ms-win-crt-utility-l1-1-0.dll": "5f8f26b216ade615b67a41f6fbbb910972fc6153315a65bb8f09912be50215b1",
|
||||
"_internal/base_library.zip": "9524f278655c7799933d381bbcf061bcf5961e8541460c279083ae1c61da277b",
|
||||
"_internal/libcrypto-3-x64.dll": "deabf96c676dd3652b32da2cb38a7dcc2f2daa8197ad19aba3c7a99454933c1e",
|
||||
"_internal/libcrypto-3.dll": "ccfffddcd3defb8d899026298af9af43bc186130f8483d77e97c93233d5f27d7",
|
||||
"_internal/libffi-8.dll": "eff52743773eb550fcc6ce3efc37c85724502233b6b002a35496d828bd7b280a",
|
||||
"_internal/libssl-3-x64.dll": "e84dcc3caca7720b2b426cb408df3129406e3b4d4ce4e729632bab319013ef6c",
|
||||
"_internal/libssl-3.dll": "007142039f04d04e0ed607bda53de095e5bc6a8a10d26ecedde94ea7d2d7eefe",
|
||||
"_internal/pyexpat.pyd": "d615e193d1affcdbfe504e90d3621cbdcff94bf72b79d899126534507fd6d27a",
|
||||
"_internal/python3.dll": "fb975a606e7fbf74f64260e3f60c3490b4f74a183c0926fd6ed1ac4c52ac7b1c",
|
||||
"_internal/python312.dll": "9a0e3435aaa680d868150f87ab3e388ad2eebc22f87e036155c7b4eda8cd2120",
|
||||
"_internal/select.pyd": "d4d7181b11db0bd22a6cd5cda6f8583d1f5c77615fd0a6ca33350619d6e0438a",
|
||||
"_internal/sqlite3.dll": "8daa45684bf6688fca28d956b2e8942f2fa98f656675ce68e6d61dd869848a7a",
|
||||
"_internal/ucrtbase.dll": "3239227d27667ba20d10a880751924e5719de0078f9fce232d149d383f7681f6",
|
||||
"_internal/unicodedata.pyd": "208ee1cd3cbad0828433ca7246b05be2b1ff5569983d27d296c0b38888585488",
|
||||
"_internal/VCRUNTIME140.dll": "052ad6a20d375957e82aa6a3c441ea548d89be0981516ca7eb306e063d5027f4",
|
||||
"_internal/VCRUNTIME140_1.dll": "6a99bc0128e0c7d6cbbf615fcc26909565e17d4ca3451b97f8987f9c6acbc6c8",
|
||||
"_internal/_bz2.pyd": "65f610646d10d5babea080e060d244b546ec52c54012e5e937dc72dcc2e2e7bc",
|
||||
"_internal/_ctypes.pyd": "0e56107a891100535f2da79d85a5ae65ff1227b4765bd108f8593ac1a1110d81",
|
||||
"_internal/_decimal.pyd": "aeacfead2befcc0768063a037bb64bd32109ae09cb144e5f571b04dd7965db9d",
|
||||
"_internal/_elementtree.pyd": "5009a9a53c03ef8387443b5cf6ce08e5c3a79727466a0b931c5bbca915bf89ca",
|
||||
"_internal/_hashlib.pyd": "03d233dbace599168eaffec823de6ed7beec8c2a4ebfe9b8a3d8e042a59af3ba",
|
||||
"_internal/_lzma.pyd": "e3deecc1f59a3b811c608861decd84de1e8df8bafd5e2b39188861318c5a38cf",
|
||||
"_internal/_multiprocessing.pyd": "2c636df7059cb0dd7e978dd735c7c5c8ddb09cf94754cf9e232296b96c5c545a",
|
||||
"_internal/_queue.pyd": "48e76e0ad63f6932b4a77b5819f41c1e7595636ca8d9e824f0943a14b8bb5035",
|
||||
"_internal/_socket.pyd": "3efa4636cf9e350856f6927d67a4c2564bf9bd2758a00bbf17d3aece5b60016d",
|
||||
"_internal/_sqlite3.pyd": "64b51df2805c58b023a875e8ae3be7ac7f61ef664f32ca6c90f6315da47ef0bc",
|
||||
"_internal/_ssl.pyd": "0bc527d2dbc50009f43b2ed5d5982c4f63f4b647647ffa9eda612dcda80f6040",
|
||||
"_internal/_uuid.pyd": "acce4f281d7ffb2dec0997527faf25b1df62ad7bd3032c568ddcf65c90edc867",
|
||||
"_internal/_wmi.pyd": "a980f1e7a29842bd946863fc2693fbeb555a9dc0f9e1630dfed9a2fcdef3ece2",
|
||||
"_internal/PIL/_avif.cp312-win_amd64.pyd": "6731dce52baab0b96b0eeb3c664844b5b42c2168ea8668af2430e2fbdd2dfbd8",
|
||||
"_internal/PIL/_imaging.cp312-win_amd64.pyd": "c8c519ec72bf75b2945b4fc4afa854af2fca8b970a403134f9ddda3e164d85e9",
|
||||
"_internal/PIL/_imagingcms.cp312-win_amd64.pyd": "c89c633ae1bf3f26a327d14ff688db66628e19c9866ab925479f27dcb60a2d6f",
|
||||
"_internal/PIL/_imagingmath.cp312-win_amd64.pyd": "82ac45c41a008854d05f67deda298b65a7bed850d0d79a3af861ed583f6e7d62",
|
||||
"_internal/PIL/_imagingtk.cp312-win_amd64.pyd": "690cc1cae4a2dc8594a342b9241e691dcc89d81dad4cddcefdf285275365a2b1",
|
||||
"_internal/PIL/_webp.cp312-win_amd64.pyd": "9823cebb84f425af3ac1e7437259bc176e7ad7e25d7fa829b0e1a3e55c11be70",
|
||||
"_internal/PySide6/MSVCP140.dll": "4c667b706893593812cd111b369ba6a77f54d1f1b1ae87cf3bf37692663cfba2",
|
||||
"_internal/PySide6/MSVCP140_1.dll": "d419d24b0a76366f5c9d908b0e45fe70e9e9154bb8ad5f3de42070f2337f857b",
|
||||
"_internal/PySide6/MSVCP140_2.dll": "89917964abb6ca16a260cab258e180c3abc239b5af00eed659d0edf0efdd339c",
|
||||
"_internal/PySide6/opengl32sw.dll": "34b444c016289b560662ff896deceb7f4b2c0723aed3d319ae167c9186ce42b3",
|
||||
"_internal/PySide6/pyside6.abi3.dll": "d0b5c701fb3a8ea839e72b602058f3960935156ebeca084893c54c99e54dd707",
|
||||
"_internal/PySide6/Qt6Core.dll": "d6a3c37c5263c5d418fc0e80b722bc9fca7c0859e6f635f9624a2fde00bdc653",
|
||||
"_internal/PySide6/Qt6Gui.dll": "ae29b005f51b6850bf57fa06fced0dc8c7039fd6fafc3bfbcfe76e38adc7abf1",
|
||||
"_internal/PySide6/Qt6Network.dll": "dd3512d1c5ed062d30c98426cd0a850f13e0cf31437afb5b0b474132b9c52922",
|
||||
"_internal/PySide6/Qt6OpenGL.dll": "d51088f16db8c96dba7ef3c1474e611adb3ebdb211fea35b8e755d2a7407f7ad",
|
||||
"_internal/PySide6/Qt6Svg.dll": "1eac8f7415b311a88cb3cb4e25c3098d0e059c24c831fbbb13f43a80f0df06b7",
|
||||
"_internal/PySide6/Qt6VirtualKeyboard.dll": "a14fac89759569965dbeb45b2a13e592c0bce0cc559adaa32145fcb92de016f9",
|
||||
"_internal/PySide6/Qt6Widgets.dll": "ff0df9e2e6827e035f0731a4cedfc6333f4602bca00775e56346f27032406b74",
|
||||
"_internal/PySide6/QtCore.pyd": "74f96322c5e9cea73aefd2ed5870e5275336b31f552fcd32f12fc81d23f1bc6f",
|
||||
"_internal/PySide6/QtGui.pyd": "7bef20046045199c037b7cbfedaa1c5464730fa948b2c9ec8afbf718e63774d4",
|
||||
"_internal/PySide6/QtNetwork.pyd": "c5038bb71fc9d57330fa2d8eeec65aab69fcf02687cc8f54dbfb5995cfec6a71",
|
||||
"_internal/PySide6/QtWidgets.pyd": "f12f4ca641998e5706d5f7b0023147d573f0f2d2361e26dadf31bdbf05fbfd1d",
|
||||
"_internal/PySide6/VCRUNTIME140.dll": "f893ae75a1a24eea174d982f94bc80ce2448201eaa919a73c0653a5657685de4",
|
||||
"_internal/PySide6/VCRUNTIME140_1.dll": "48aa2783793ea18ab3c2c71d420d4fff9814e662a1ff810053c6e5250061a716",
|
||||
"_internal/pythonwin/win32ui.pyd": "1fc9f8875056b175077ed04e7d93599f58b3cff80bd2077f5f8c8aaa144ab833",
|
||||
"_internal/pywin32_system32/pythoncom312.dll": "18e5d69b62110f48da01842f9ddfd99d06cc561f0866371714ec6534fcb4e5ec",
|
||||
"_internal/pywin32_system32/pywintypes312.dll": "9bd7f8c39a84d7b1ea43bfcd33c04631c60f4ff28167e82bb21987cc1c353766",
|
||||
"_internal/shiboken6/MSVCP140.dll": "fd4a8c046fa3fea9ca6132f50cf8a56cf1e783b2d3093ba5c85fa063bc6b3845",
|
||||
"_internal/shiboken6/Shiboken.pyd": "2f6f3a694f675b1dafdae26903191613c02866ab48e02591ae34ca1a3b1284f1",
|
||||
"_internal/shiboken6/shiboken6.abi3.dll": "de3c6b2ed5f75c9ac0de4a6844b653b3b9d09263ce68c2b5fc25a96c5c3e8469",
|
||||
"_internal/shiboken6/VCRUNTIME140.dll": "de617641d82eac15595d2e39394163ac33e49bb032cf2c2ea0044ed39d3675e9",
|
||||
"_internal/shiboken6/VCRUNTIME140_1.dll": "fa577d54bd10a91e52472da784a619da6cf241af45f0a0c48b27e91fa0fe6104",
|
||||
"_internal/win32/win32api.pyd": "8e09d7aa57dc33b663afd219fab21b6a70e9d98cc74a044df4d6cd94799d98c2",
|
||||
"_internal/win32/win32event.pyd": "a6b896456443447a663fe25783dfa95929dc8ade8d7970fd78d3b4e65100371e",
|
||||
"_internal/win32/win32evtlog.pyd": "f6f8814147d3ca2761d351c0c86e7142b15b63605a502e5eb62d0bbd2b88e73f",
|
||||
"_internal/win32/win32file.pyd": "359ef2dc11546f619a9ac53c01a399d621c093b7cfc843fb9d7b211d0b15e103",
|
||||
"_internal/win32/win32gui.pyd": "f468a03be44633fdeabc08b4a9f8b135f9e31d74b935f85631c23c7fbb9367fa",
|
||||
"_internal/win32/win32job.pyd": "bfc31798ccf0bcf9b4453903918866abcfb546f5b1d6bd59e4691b83cbe44fa8",
|
||||
"_internal/win32/win32process.pyd": "6d02ff9b22afa97bdb26d99454462a612848efdc3d0beb54cea2b4912d07a14c",
|
||||
"_internal/win32/win32service.pyd": "5d159572b89146a13117f24ef0b232d6c24982d206c73189f4952259303de496",
|
||||
"_internal/win32/win32trace.pyd": "3dd640518a4fb1084cfc38a0e312b87ff1b0b0a74535e320bb9936441b9ed8ca",
|
||||
"_internal/win32/_win32sysloader.pyd": "db277aae2b8417dbd01435a8691cc74707f6699ae3199e1b205f609cefa5ad24",
|
||||
"_internal/legacy-runtime/dxdesigner795/QuickPartReplace.vbs": "9997d8a41ad3820e7fd905c8024fc10c765c0e6218eb7f3c091301e3c73db9dc",
|
||||
"_internal/PySide6/translations/qtbase_ar.qm": "e03fe68d83201543698fd7fe267dd5dfc5bfd195147e74ff2f19ac3491401263",
|
||||
"_internal/PySide6/translations/qtbase_bg.qm": "e448ac9e3f16c29eb27af3012efe21052daa78fabfb34cd6dff2f69ee3bd3cdb",
|
||||
"_internal/PySide6/translations/qtbase_ca.qm": "5298532fc52ffbc4e2c549f277151a61e741921c834286f7c04d3753677b6b04",
|
||||
"_internal/PySide6/translations/qtbase_cs.qm": "03028b42df5479270371e4c3bdc7df2f56cbbe6dda956a2864ac6f6415861fe8",
|
||||
"_internal/PySide6/translations/qtbase_da.qm": "7d1e5ca3310b54d104c19bf2abd402b38e584e87039a70e153c4a9af74b25c22",
|
||||
"_internal/PySide6/translations/qtbase_de.qm": "ed828a83dfaa51944f166c842155b48ab3bd7cb2c46dcd96269eb5d48af4f63f",
|
||||
"_internal/PySide6/translations/qtbase_en.qm": "494ac9a2b2cb2fdeced353f4a9f898ed8dcf616e9bc667438c62681e3f7f79cf",
|
||||
"_internal/PySide6/translations/qtbase_es.qm": "4ffda56ba3bb5414ab0482d1dde64a6f226e3488f6b7f3f11a150e01f53fa4c8",
|
||||
"_internal/PySide6/translations/qtbase_fa.qm": "f78e59b5bdd586181a999034ba418868ed17fe9c05707fb65e523f70e92253d2",
|
||||
"_internal/PySide6/translations/qtbase_fi.qm": "e47fe13713e184d07fa4495dde0c589b0e8f562e91574a3558a9363443a4fa72",
|
||||
"_internal/PySide6/translations/qtbase_fr.qm": "314243a55c32679ad473fdfe48dc7d66e973ad0fc8bf2164480c58dddb50c1a7",
|
||||
"_internal/PySide6/translations/qtbase_gd.qm": "63b439dd44139aa3aed54c2ebe03fa9bc77f22c14ed8fba8eff2608445bb233d",
|
||||
"_internal/PySide6/translations/qtbase_he.qm": "e1ebca16afe8994356f81ca007fbdb9ddf865842010fe908923d873b687cad3f",
|
||||
"_internal/PySide6/translations/qtbase_hr.qm": "bb9eec9a9a652c1340dc75eb2e749be50df00f885b3d6900dfc76799c45b244d",
|
||||
"_internal/PySide6/translations/qtbase_hu.qm": "98463295539d769c8645a0b7fb95ad38454cfd0b14f36af485513f036ddbbbc6",
|
||||
"_internal/PySide6/translations/qtbase_it.qm": "7808ed542a7833c4bd94ec8bdfbbca00bb4f2fe15979b9121ce3249323687300",
|
||||
"_internal/PySide6/translations/qtbase_ja.qm": "2b9581c69b975f59be505b127cd3c19d403ef3d12e0e8386fb97238223e9c1df",
|
||||
"_internal/PySide6/translations/qtbase_ka.qm": "e55e4b72fa620bebee5297ca59dfe2f49894a1e544f2b7485b1cfd8829289d6f",
|
||||
"_internal/PySide6/translations/qtbase_ko.qm": "0179ed1b136e1cb3f583351eaa2c545ba3d83a6ee3f82c32505926a1a5f5f183",
|
||||
"_internal/PySide6/translations/qtbase_lg.qm": "31c0cc4ce13b1d74fe0c19ed0b47638fb31e20c93ee08092533e884007aebfb5",
|
||||
"_internal/PySide6/translations/qtbase_lv.qm": "846e047573ae40c83671c3ba7f73e27efc24b98c82701da0df9973e574178bb2",
|
||||
"_internal/PySide6/translations/qtbase_nl.qm": "f61513bcdbb6ad800585f9437a95d018aab17fa12ee414aa31462ff279d8240e",
|
||||
"_internal/PySide6/translations/qtbase_nn.qm": "f9f2fb7c60e7fcb38bbd3c1314ef122145594265e20b0659ff00004baab13ac7",
|
||||
"_internal/PySide6/translations/qtbase_pl.qm": "3cf6b5c14d5eb0cf81e9af2066e66b3aa579a6b9b3c323ed670761f6254a8c54",
|
||||
"_internal/PySide6/translations/qtbase_pt_BR.qm": "3475d61604b938d459949801a906dbd34a8ca824ade94120015d676e208da859",
|
||||
"_internal/PySide6/translations/qtbase_ru.qm": "3da6605668f9178d11a838c4515478084dcfb4f9cf22f99d7a92b492db9c224b",
|
||||
"_internal/PySide6/translations/qtbase_sk.qm": "d586ae2c314074cf398417fdecb40709d5478dfeb0a67c2fe60d509ee9b59ed7",
|
||||
"_internal/PySide6/translations/qtbase_sv.qm": "5a2178dd2c03cc4516697f1fb0049649c9ed53f5cde6b937786733dae06aeda8",
|
||||
"_internal/PySide6/translations/qtbase_tr.qm": "353fdfd7165659a49212e7a25bf91c0a71588e52c836f7496640f26782414634",
|
||||
"_internal/PySide6/translations/qtbase_uk.qm": "51b8ff55b37dc5907d637a8ddda12fbe816852b0244c74eb4f0fb84867a786e0",
|
||||
"_internal/PySide6/translations/qtbase_zh_CN.qm": "0481a9b92a6f0578400e960a7d5ee70217a6a450eaf7f98b7d32b8dbd0d58616",
|
||||
"_internal/PySide6/translations/qtbase_zh_TW.qm": "21012b2b427f8d09d31ce9cae582ca27955b478ca3dc2ec18a3068d808638c6a",
|
||||
"_internal/PySide6/translations/qt_ar.qm": "b11333c520ccd8e375cde20985df402d586a1a95e0796313bbeb9f717d4db22e",
|
||||
"_internal/PySide6/translations/qt_bg.qm": "1e22ee126ec9f76031d880285a907b3a0c4510392319ff700dcdee964abbb1ad",
|
||||
"_internal/PySide6/translations/qt_ca.qm": "17ab2623c7f6e8def44b3dbcb517544185817d65f1298ddb10ef71136f232bdc",
|
||||
"_internal/PySide6/translations/qt_cs.qm": "c585918fb1d4821a054ea40bdcf279f275ca76c88a5793f433dac6a611ac7e8f",
|
||||
"_internal/PySide6/translations/qt_da.qm": "f6773c672acb73fdef6e092060d69d1e5dfee840012bac912d1e92de28714386",
|
||||
"_internal/PySide6/translations/qt_de.qm": "0401c316aa3b50a172eb44a4ff1ec384924073beec7c928ef888ec48e4612688",
|
||||
"_internal/PySide6/translations/qt_en.qm": "494ac9a2b2cb2fdeced353f4a9f898ed8dcf616e9bc667438c62681e3f7f79cf",
|
||||
"_internal/PySide6/translations/qt_es.qm": "648ed4519bc45d7a4779479a7626ea16cf9aa23e93a0b178546cc47bea0591ab",
|
||||
"_internal/PySide6/translations/qt_fa.qm": "3f4c989c6b2990d80cc6299408214b31698923b52f154483b3371875de91f88e",
|
||||
"_internal/PySide6/translations/qt_fi.qm": "342d01c7eeb234e431d0506821c4cd03c0433115d8d63fee3357be2331858879",
|
||||
"_internal/PySide6/translations/qt_fr.qm": "c896a38892a92346b033793d56440993236b23e47e06f3974afdb0552f628387",
|
||||
"_internal/PySide6/translations/qt_gd.qm": "49df855a004a17950338af3146466f6df4d5852410bd0b58ea80e0d0203a9d24",
|
||||
"_internal/PySide6/translations/qt_gl.qm": "204a01ac7deb6b5bae193afecbd1e50d18c73bf7d94badeb2bbfdf6123c4ed93",
|
||||
"_internal/PySide6/translations/qt_he.qm": "36f01fff2f25e116d4b7af78097b7e49520fd5b7fb6fb120e40be228c05c045f",
|
||||
"_internal/PySide6/translations/qt_help_ar.qm": "222088c9752d1cc3bab985ef2dc77e5ae78578dce18a61ec15b39f02e588163d",
|
||||
"_internal/PySide6/translations/qt_help_bg.qm": "cbcdd1e0bbae332d80ddb0a286056f17c824fa28d353d7fdf12fc97d9f6fe054",
|
||||
"_internal/PySide6/translations/qt_help_ca.qm": "fe40962c814a9f489e18d033e4aaabe435232c9bcf760830c6165af507cca80e",
|
||||
"_internal/PySide6/translations/qt_help_cs.qm": "4ac56fc63e400943bab13f1d4c418502138908e1d488c24aee6131d3d17552aa",
|
||||
"_internal/PySide6/translations/qt_help_da.qm": "6bb092552a398687119f6d52145f04bf8373977446d8f00c0dcbd56b96829f0f",
|
||||
"_internal/PySide6/translations/qt_help_de.qm": "037bc99abf98571ae9375c2513536c15b571d66406c36c1de447b547ff539c07",
|
||||
"_internal/PySide6/translations/qt_help_en.qm": "494ac9a2b2cb2fdeced353f4a9f898ed8dcf616e9bc667438c62681e3f7f79cf",
|
||||
"_internal/PySide6/translations/qt_help_es.qm": "fd16b279f8cf69077f75e94d90c9c07a2afff3948a579e3789f5ffb5e5f4202d",
|
||||
"_internal/PySide6/translations/qt_help_fr.qm": "875ee2dcdc64e3dea888d84048e382d3921a175f12847de2e6b1cb12ad9add50",
|
||||
"_internal/PySide6/translations/qt_help_gl.qm": "7399a248609974773f60866c87b78ea7dfbc4f750313d692f7886cd763883c9f",
|
||||
"_internal/PySide6/translations/qt_help_hr.qm": "8c8cc3c5b1ab2b074f82937001b896603420ef75592b3b78172177360dd7ea61",
|
||||
"_internal/PySide6/translations/qt_help_hu.qm": "7be32e015119c969453abb6e8f3fb377963a69fafb10c27b796737b5eb283eaf",
|
||||
"_internal/PySide6/translations/qt_help_it.qm": "316fe8d0815e2b4b396895beb38ef1a40431915b5e054df80f4c0cd556f26e4b",
|
||||
"_internal/PySide6/translations/qt_help_ja.qm": "ae603b2c0d434d40cde433ffcba65f9ee27978a9e19316007be7fe782a5b8b47",
|
||||
"_internal/PySide6/translations/qt_help_ka.qm": "159c74f94b384b5ee6afdf38b6cfc4806bc99ecf73be02d4a7021d4ceba7ec7e",
|
||||
"_internal/PySide6/translations/qt_help_ko.qm": "f11c64694e8e34e1d2c46c1a1d15d6ba9f2db7b61de4fdf54eca5ab977c3e052",
|
||||
"_internal/PySide6/translations/qt_help_nl.qm": "44a8a0daf775d14352180052d13f623814d7bdf98e2c5c80144b7bf74214e3b0",
|
||||
"_internal/PySide6/translations/qt_help_nn.qm": "4c8a7213942078e4f72f5babd26c41b77ace70189714a58b5504a7d5ad0193dc",
|
||||
"_internal/PySide6/translations/qt_help_pl.qm": "cc6cb4d8c54086224672f2e49e623c8cb7c0c1cd65b8d5ecd42fc9ba3a6065bd",
|
||||
"_internal/PySide6/translations/qt_help_pt_BR.qm": "b4015c5d519b4fe93c00bf734d1742e4f0094d89862664d548eb64a46a2feae7",
|
||||
"_internal/PySide6/translations/qt_help_ru.qm": "557b644e6da5f1ec720ef93965617087e4d1f40b2494cc5aa524cf3796108de7",
|
||||
"_internal/PySide6/translations/qt_help_sk.qm": "f41e33e1d790bd0d3eb180f1f875bc191fe74773628f25c2cad95e1402e66867",
|
||||
"_internal/PySide6/translations/qt_help_sl.qm": "2ec955e662407ebcd8dcdae5aaa21e4108e0b5b0aee0e9db712c27072943535f",
|
||||
"_internal/PySide6/translations/qt_help_sv.qm": "95bdb03dbaa6dbdfda46c249e9ccce9a353f71ddb8b112961e8b005b2c60b13c",
|
||||
"_internal/PySide6/translations/qt_help_tr.qm": "81da2f88cd624097581f2d29b10311796bcd9ab289e65883346d276110542d28",
|
||||
"_internal/PySide6/translations/qt_help_uk.qm": "497cfc473684692ee44d7a3795e8fb2270c57069fd9eb98a615dd29ab9be8a7c",
|
||||
"_internal/PySide6/translations/qt_help_zh_CN.qm": "e256d1f6034a5a5521c62f129f91731216e474f71e1d9caea3d3dcb11b670deb",
|
||||
"_internal/PySide6/translations/qt_help_zh_TW.qm": "40112812abb43853d678cc6d97729f21f21b3a7321c827fc9d18f6c936447d1e",
|
||||
"_internal/PySide6/translations/qt_hr.qm": "fc9e4146f33be3d09b234be01e56235d3037d8d82d64f0700b4d4a6e253a61a7",
|
||||
"_internal/PySide6/translations/qt_hu.qm": "c2fa649f167cdb801d1cc0cb69c1d93594fd5bf8c0b7e79b969935da5c3e19aa",
|
||||
"_internal/PySide6/translations/qt_it.qm": "9e7a18bc20ebeec54baaaf41c918a74534511271f796dffffd0f9b9ec31c68d3",
|
||||
"_internal/PySide6/translations/qt_ja.qm": "0f5fe50452947d1ee9755249d860354bff6977279b4c496a5bc77e5b89dd745e",
|
||||
"_internal/PySide6/translations/qt_ka.qm": "00b67c6dfc255079b5b98a5640f82519c96b2520a028682fba4078b39d743eaa",
|
||||
"_internal/PySide6/translations/qt_ko.qm": "1d254b535e1cb35cbcad8210b15b89f4488159826bf35b4504696263dd102fa3",
|
||||
"_internal/PySide6/translations/qt_lg.qm": "6ba668501f4c040c66da1bdc022362da3c8cf663da6aa484cbdb599028da98ed",
|
||||
"_internal/PySide6/translations/qt_lt.qm": "47eb5f97467df769261421d54a5bea1131c9fb9b6388791d38bb6574335b64bf",
|
||||
"_internal/PySide6/translations/qt_lv.qm": "addeca285282338294f24ca50d37d08a5f68d3785d0a94af86dd4ec8f2a3b449",
|
||||
"_internal/PySide6/translations/qt_nl.qm": "39e870cbd25c0f97fa9b1828d5ea1ed9849857a2e26c5321b3f13c76be8f0548",
|
||||
"_internal/PySide6/translations/qt_nn.qm": "4e544e23f75eafe1553dc896973db23b5795cd243786d5c653cc0f36a46ca74f",
|
||||
"_internal/PySide6/translations/qt_pl.qm": "e6890afa0caf0f6db0248e4c94f6016b8ec8bc266f1e0e9b8f01e8ea912cf968",
|
||||
"_internal/PySide6/translations/qt_pt_BR.qm": "0e24c58e35271853f8cdfb3f0f7b0741b5a9a588e43cdec62ae85a3842771e0a",
|
||||
"_internal/PySide6/translations/qt_pt_PT.qm": "2c1e7bbf5168a64b43752dd4c547601c0bde6d610f8671fa3e3af38597e84783",
|
||||
"_internal/PySide6/translations/qt_ru.qm": "1b388e2d6d1bd405603e794e498c6d7ec5f5a5ad819243546f6399181da36758",
|
||||
"_internal/PySide6/translations/qt_sk.qm": "840c3b01c89df976fc1d2e5bfc6fc84b65666b8a3ceb4cbf5aa0c22af3d2a383",
|
||||
"_internal/PySide6/translations/qt_sl.qm": "c44e0313a9414cc0e490b65b0c036fa11bca959353b228886547bc2c8492034f",
|
||||
"_internal/PySide6/translations/qt_sv.qm": "daaae448e0814b469ac3d7a91096fde15491600a6b8bc6c01508425fb5e8b3ec",
|
||||
"_internal/PySide6/translations/qt_tr.qm": "59e8a0c411be3b0802a68561b090f182099d6b75c4fe46f398e55f11528e11b9",
|
||||
"_internal/PySide6/translations/qt_uk.qm": "053ec1f677c4dba48c6a97eb28f4fc78c1511324d1843d7f4cec2c7c00a66145",
|
||||
"_internal/PySide6/translations/qt_zh_CN.qm": "c0e29d32c9540a7e78643b74214e633c56f6ab11f018e516629f2c11b1fb09fc",
|
||||
"_internal/PySide6/translations/qt_zh_TW.qm": "24e226954491689549a1a1990db3b8cb78888008d8163b2fd2442b772b6d1b5f",
|
||||
"_internal/PySide6/plugins/generic/qtuiotouchplugin.dll": "aa9080fa8b1c3cf4d3790c1eecf4a1f5c796ce58f31f80910357578f20fd80ac",
|
||||
"_internal/PySide6/plugins/iconengines/qsvgicon.dll": "5bb97b6f114682ae0b5f42b23b6818aece6499bad88dac80a138efa8a88c12bc",
|
||||
"_internal/PySide6/plugins/imageformats/qgif.dll": "d301d7e9a68327692e4c76faa6b125517730b22c68f4de7f09fda9d4ac0ddee1",
|
||||
"_internal/PySide6/plugins/imageformats/qicns.dll": "49db148fea9f01e9953fd0a771d16cfaf364599f07aab3634d4f5c7c25abd78a",
|
||||
"_internal/PySide6/plugins/imageformats/qico.dll": "1684fd56f1758167f7b3ac011264ae5859b3cf6113e381626ec3dc1d3122fe52",
|
||||
"_internal/PySide6/plugins/imageformats/qjpeg.dll": "6517345ac19f5c489daeadc029d0018bbdc09d8e1031c60d714557972f22c6d4",
|
||||
"_internal/PySide6/plugins/imageformats/qsvg.dll": "4b7d65ba39be58cb469b54b5fdee2987871d67e5050cd70724016e09966e54f6",
|
||||
"_internal/PySide6/plugins/imageformats/qtga.dll": "6b0381150070fcd4224597fe73c68b47055b30b418aa14794c94c5007d14ca5d",
|
||||
"_internal/PySide6/plugins/imageformats/qtiff.dll": "3d6ea04da215ee2a9459399fb9f6d73cad8787944b9d450399025bcd39d020b5",
|
||||
"_internal/PySide6/plugins/imageformats/qwbmp.dll": "1a4596509987e9557edda69ed13cdd0d33f4ebda72e464ddc00a566bec05f151",
|
||||
"_internal/PySide6/plugins/imageformats/qwebp.dll": "6b2c53cc4423140c29a6a1eb6dd908016e09d794b5739a05a3a39c8c49a0df8a",
|
||||
"_internal/PySide6/plugins/networkinformation/qnetworklistmanager.dll": "e571a4b4e582738cd1bc4889cb2896635c2543baff408442701b6706a1b4a86e",
|
||||
"_internal/PySide6/plugins/platforminputcontexts/qtvirtualkeyboardplugin.dll": "e10c64dd2ae4f9b756ec1ebe3950a05e345ba40834b7be2900af426623d85475",
|
||||
"_internal/PySide6/plugins/platforms/qdirect2d.dll": "56f41ad523d016fe2cf2c90fae158e21766d1fcd021bced1a3704c6da0f00c98",
|
||||
"_internal/PySide6/plugins/platforms/qminimal.dll": "768a9c6dbb1c86abbefa2ff9d7e98cdfb4fdc9292eb8d64195bb6d23939a5344",
|
||||
"_internal/PySide6/plugins/platforms/qoffscreen.dll": "e776251668440169ed18a2fe1b236762d514ef5244639cbb559b5a77ddd38954",
|
||||
"_internal/PySide6/plugins/platforms/qwindows.dll": "bf6dbc3009f386fa22f0ced560bea6bbf3e0e0b4442d2fb855db67cffce49dbf",
|
||||
"_internal/PySide6/plugins/styles/qmodernwindowsstyle.dll": "a7a6424c23bf371bd28a404a196b210971726f6f2a87b63aac185a5e6e40da71",
|
||||
"_internal/PySide6/plugins/tls/qcertonlybackend.dll": "67be4d333a0f489d02714169a6ec54eaa80efa649d733fcbeb81881ecb02b4f3",
|
||||
"_internal/PySide6/plugins/tls/qopensslbackend.dll": "7a0727417b8e21e64d9a7cf0f390bc85b3e337b4eef5ac977f49659d97e6b552",
|
||||
"_internal/PySide6/plugins/tls/qschannelbackend.dll": "14abc5b245c0f2e03f7bc0b474a8db2ecb441c7300a8a8b16fb865eaf2674619"
|
||||
},
|
||||
"program_files_equal_accepted": true,
|
||||
"data_directory_excluded": true,
|
||||
"gif_sha256": "4b3fed6694ab08d921ca88f92babb0af16380489533d9ed43b143e720d6e04d3",
|
||||
"bom_sha256": "13e0f1f45b117f3fd18db80790881e932842c4cabfe750f744fab8cb884f5589",
|
||||
"acceptance_report": "docs/testing/2026-10-15-packaged-acceptance.md",
|
||||
"build_checks": {
|
||||
"passed": 369,
|
||||
"seconds": 63.39
|
||||
},
|
||||
"final_source_checks": {
|
||||
"passed": 369,
|
||||
"seconds": 83.97
|
||||
},
|
||||
"zip_sha256": "2fc74a711e6c5876425d9ece3445ae322d67db9cb34260c4b8ed80f8bbd60f80",
|
||||
"zip_bytes": 55257821,
|
||||
"file_count": 238,
|
||||
"extracted_zip_smoke": true,
|
||||
"binary_unchanged_since_native_acceptance": true
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
# V1.1.2 发布构建记录
|
||||
|
||||
发布日期:2026-10-16。本次沿用 `a16914bc7221dbc62c467b7a89e06ab0c40c1fbc` 构建并完成实机验收的程序文件,更新中文 README、使用说明、恢复说明、版本说明、通用 BOM 空表和离线 GIF 后重新压缩。版本标签另包含后续文档与验收工具;`src`、`integration`、`packaging` 和 `pyproject.toml` 与该构建提交无差异。
|
||||
|
||||
- 原标准构建检查:369 passed,63.39 秒。
|
||||
- 本次发布前源码检查:369 passed,83.97 秒,1 条 pywinauto COM STA 提示。
|
||||
- 发布包:`DxPartReplace-1.1.2.zip`,55,257,821 字节,238 个文件,无本机 `data`、数据库、任务日志或工程备份。
|
||||
- ZIP SHA256:`2fc74a711e6c5876425d9ece3445ae322d67db9cb34260c4b8ed80f8bbd60f80`。
|
||||
- EXE SHA256:`73d6deb81d52ce34ce9c6d2958275a9b7376f316ae1872552882f0d65070ce75`。
|
||||
- VBS SHA256:`9997d8a41ad3820e7fd905c8024fc10c765c0e6218eb7f3c091301e3c73db9dc`。
|
||||
- 完整 EXE 与 `_internal` 文件清单逐一哈希核对,与实机验收版本一致。清单见 [JSON](v1.1.2-build.json)。
|
||||
- 最终 ZIP 再次解压,移除源码导入路径后运行 `--smoke-test`,退出码 0,启动版本和正常退出日志通过;离线 GIF 与仓库文件哈希相符,BOM 空表为原模板 11 列且不含工程数据。
|
||||
|
||||
本轮未重新执行 CAD 替换。真实两工程替换、独立读取、Part Label→Value、未选位号保留、新轮次、旧版元数据兼容及 10 个后台会话释放使用同一程序文件的 [成品验收证据](../testing/2026-10-15-packaged-acceptance.md)。程序身份不变,不能把此次启动检查描述成又完成一次实际替换。
|
||||
|
||||
附件为便携 ZIP、`SHA256SUMS-1.1.2.txt`、`release-manifest-1.1.2.json`、`BOM-template.xlsx`、`window-tutorial-1.1.2.gif`。仓库默认分支和版本标签均包含中文 README 及 GIF。发布时逐项回下载核对本地 SHA256,未通过时不解除草稿状态。
|
||||
@@ -0,0 +1,37 @@
|
||||
# DxPartReplace V1.1.2
|
||||
|
||||
发布日期:2026-10-16。交付级别:**evaluation-only(评估试用)**。
|
||||
|
||||
V1.1.2 完善工程任务、BOM 计划和结果查看流程,加入窗口 GIF 中文教程。沿用已完成本机实际替换验收的程序文件,发布包重新整理中文说明与离线 GIF,不包含本机任务数据库、日志或工程备份。
|
||||
|
||||
## 下载与上手
|
||||
|
||||
下载附件 `DxPartReplace-1.1.2.zip`,完整解压后运行 `DxPartReplace.exe`。无需安装 Python,本机需要可用的 DxDesigner / Expedition Enterprise 7.9.5、许可证和中央库。
|
||||
|
||||
[中文教程与 GIF](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.2/README.md) · [窗口 GIF](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/raw/tag/v1.1.2/docs/user/media/v1.1.2-window-bom-tutorial.gif)
|
||||
|
||||
## 主要更新
|
||||
|
||||
- 一工程一任务,同批工程顺序执行;左侧搜索和显示排序不改变执行范围。
|
||||
- 已导入工程即可导出默认 11 列 BOM,同批工程共用一张表,按工程路径分配至任务,无需先采集。
|
||||
- 一行支持多个位号,只替换启用目标;NC 默认开启,可逐行关闭,自定义 Value 优先。
|
||||
- BOM 先整批校验再预览,报告通过、失败、未检查数量及 Excel 行号;点击保存才原子写入计划,有错误不部分保存。
|
||||
- 规则表、位号表、结果表使用模型视图;详情按需创建,关闭释放,隐藏页不反复渲染,草稿独立保留。
|
||||
- 显示实际回读的位号、旧新料号和核验状态,日志支持分页;已完成任务可创建新轮次,旧证据归档保留。
|
||||
- 完善工程和证据长路径访问、受监督后台执行、清理与不确定状态保护。
|
||||
|
||||
## 本机验收
|
||||
|
||||
- 标准构建检查 369 项通过,冻结 EXE 启动与退出通过。
|
||||
- 两工程实际 BOM 流程、原生替换、保存重开和全新 CAD 独立回读通过;RV05 替换、RV11 保留,启用复制后 Value 与目标 Part Label 均回读为 0R。
|
||||
- 297 字符工程路径、错误/正确 BOM 导入、旧 1.1.1 元数据任务副本兼容、开始新一轮通过。
|
||||
- 原工程全文件哈希未变;10 个观察到的自有 CAD 和私有桌面均释放,主桌面及原 CAD 未被接管。
|
||||
- GIF 20 步、47.5 秒,仅含应用窗口与弹窗,实际等待压缩。详见[成品验收记录](../testing/2026-10-15-packaged-acceptance.md)。
|
||||
|
||||
## 更新与限制
|
||||
|
||||
更新前关闭旧程序并备份 `data`,保留旧数据,用新包中的 EXE 与 `_internal` 配套运行。不同版本不要同时打开同一数据目录。
|
||||
|
||||
本次验收不替代其他机器、库版本或 Packager/ERC 验收。已知 CAD COM 偶发启动阻塞根因仍待定位;程序保留有界等待、取消检查与清理保护。首次采集可能需要数分钟。出现不确定状态时先核验恢复,避免重复执行。
|
||||
|
||||
程序构建及验收提交为 `a16914bc7221dbc62c467b7a89e06ab0c40c1fbc`;版本标签另包含后续文档与验收工具,产品运行代码未改变。附件 `release-manifest-1.1.2.json` 记录 EXE、VBS、GIF 和完整程序文件清单;`SHA256SUMS-1.1.2.txt` 可校验下载附件。
|
||||
@@ -0,0 +1,412 @@
|
||||
{
|
||||
"version": "1.1.3",
|
||||
"release_date": "2026-10-19",
|
||||
"release_tag": "v1.1.3",
|
||||
"classification": "evaluation-only",
|
||||
"code_commit": "95c7f9b775af2f7f220c349f897144cf745027b4",
|
||||
"exe_sha256": "12e299042dd5ecd5d7bd02cf4dd80f72b31a425c5e1702a2f717999fb132a05e",
|
||||
"icon_sha256": "53bdd393d1db3d101474846fc89e04c010db320766a4b4a4c4222128bad91e98",
|
||||
"accepted_business_commit": "e6ec267a26efedbab796207b8044533d02222350",
|
||||
"business_modules_equal_accepted": {
|
||||
"dx_productivity": true,
|
||||
"dx_productivity.part_replace": true,
|
||||
"dx_productivity.part_replace.compatibility_profile": true,
|
||||
"dx_productivity.part_replace.inputs": true,
|
||||
"dx_productivity.part_replace.models": true,
|
||||
"dx_productivity.trial_task_center": true,
|
||||
"dx_productivity.trial_task_center.batch": true,
|
||||
"dx_productivity.trial_task_center.batch_backup": true,
|
||||
"dx_productivity.trial_task_center.batch_rules": true,
|
||||
"dx_productivity.trial_task_center.bom_batch": true,
|
||||
"dx_productivity.trial_task_center.bom_import_report": true,
|
||||
"dx_productivity.trial_task_center.bom_import_state": true,
|
||||
"dx_productivity.trial_task_center.bom_plan": true,
|
||||
"dx_productivity.trial_task_center.cad_identity": true,
|
||||
"dx_productivity.trial_task_center.cell_catalog": true,
|
||||
"dx_productivity.trial_task_center.cell_catalog_worker": true,
|
||||
"dx_productivity.trial_task_center.comparison": true,
|
||||
"dx_productivity.trial_task_center.discovery_cache": true,
|
||||
"dx_productivity.trial_task_center.errors": true,
|
||||
"dx_productivity.trial_task_center.evidence": true,
|
||||
"dx_productivity.trial_task_center.execution_feedback": true,
|
||||
"dx_productivity.trial_task_center.execution_metrics": true,
|
||||
"dx_productivity.trial_task_center.inventory": true,
|
||||
"dx_productivity.trial_task_center.isolated_cad": true,
|
||||
"dx_productivity.trial_task_center.isolated_desktop": true,
|
||||
"dx_productivity.trial_task_center.legacy_paths": true,
|
||||
"dx_productivity.trial_task_center.logging_setup": true,
|
||||
"dx_productivity.trial_task_center.models": true,
|
||||
"dx_productivity.trial_task_center.native_helper": true,
|
||||
"dx_productivity.trial_task_center.native_inventory": true,
|
||||
"dx_productivity.trial_task_center.native_inventory_protocol": true,
|
||||
"dx_productivity.trial_task_center.new_round": true,
|
||||
"dx_productivity.trial_task_center.operation_control": true,
|
||||
"dx_productivity.trial_task_center.project_context": true,
|
||||
"dx_productivity.trial_task_center.project_discovery": true,
|
||||
"dx_productivity.trial_task_center.project_session": true,
|
||||
"dx_productivity.trial_task_center.project_tasks": true,
|
||||
"dx_productivity.trial_task_center.quick_run": true,
|
||||
"dx_productivity.trial_task_center.quick_run_protocol": true,
|
||||
"dx_productivity.trial_task_center.quick_run_snapshot": true,
|
||||
"dx_productivity.trial_task_center.read_control": true,
|
||||
"dx_productivity.trial_task_center.recovery": true,
|
||||
"dx_productivity.trial_task_center.retention": true,
|
||||
"dx_productivity.trial_task_center.rule_validation": true,
|
||||
"dx_productivity.trial_task_center.runner": true,
|
||||
"dx_productivity.trial_task_center.scanner": true,
|
||||
"dx_productivity.trial_task_center.sceneos_cli": true,
|
||||
"dx_productivity.trial_task_center.schematic_backup": true,
|
||||
"dx_productivity.trial_task_center.service": true,
|
||||
"dx_productivity.trial_task_center.single_step": true,
|
||||
"dx_productivity.trial_task_center.spreadsheet_plan": true,
|
||||
"dx_productivity.trial_task_center.store": true,
|
||||
"dx_productivity.trial_task_center.store_read_model": true,
|
||||
"dx_productivity.trial_task_center.store_schema": true,
|
||||
"dx_productivity.trial_task_center.store_target_plan": true,
|
||||
"dx_productivity.trial_task_center.target_plan": true,
|
||||
"dx_productivity.trial_task_center.task_logs": true,
|
||||
"dx_productivity.trial_task_center.task_queue": true,
|
||||
"dx_productivity.trial_task_center.ui": true,
|
||||
"dx_productivity.trial_task_center.ui.detail_windows": true,
|
||||
"dx_productivity.trial_task_center.ui.dialogs": true,
|
||||
"dx_productivity.trial_task_center.ui.execution_feedback": true,
|
||||
"dx_productivity.trial_task_center.ui.execution_state": true,
|
||||
"dx_productivity.trial_task_center.ui.main_window": true,
|
||||
"dx_productivity.trial_task_center.ui.mapping_table": true,
|
||||
"dx_productivity.trial_task_center.ui.messages": true,
|
||||
"dx_productivity.trial_task_center.ui.operation_state": true,
|
||||
"dx_productivity.trial_task_center.ui.project_plan": true,
|
||||
"dx_productivity.trial_task_center.ui.project_summary": true,
|
||||
"dx_productivity.trial_task_center.ui.queries": true,
|
||||
"dx_productivity.trial_task_center.ui.run_panel": true,
|
||||
"dx_productivity.trial_task_center.ui.styles": true,
|
||||
"dx_productivity.trial_task_center.ui.target_table": true,
|
||||
"dx_productivity.trial_task_center.ui.task_list": true,
|
||||
"dx_productivity.trial_task_center.ui.task_log": true,
|
||||
"dx_productivity.trial_task_center.ui.workers": true,
|
||||
"dx_productivity.trial_task_center.worker_monitor": true,
|
||||
"dx_productivity.trial_task_center.worker_runtime": true
|
||||
},
|
||||
"vbs_equal_accepted": true,
|
||||
"native_replacement_rerun_for_icon_release": false,
|
||||
"program_files": {
|
||||
"DxPartReplace.exe": "12e299042dd5ecd5d7bd02cf4dd80f72b31a425c5e1702a2f717999fb132a05e",
|
||||
"_internal/api-ms-win-core-console-l1-1-0.dll": "015bd08815c7b934a8952c3a7578e9ce59f21136e8a880d42bbd414bec2c6058",
|
||||
"_internal/api-ms-win-core-datetime-l1-1-0.dll": "5534812cdbdae94ba45cb216e5eb9af686b853948df54365103555abbbaf9d9a",
|
||||
"_internal/api-ms-win-core-debug-l1-1-0.dll": "837d2b1b2cd03e03fc6ccb050698b6b5763af17c201304872342a5eae9e0a2d2",
|
||||
"_internal/api-ms-win-core-errorhandling-l1-1-0.dll": "de43b165f568c276c00e95acd454e3092f352a18e95874595f4f4658c06d2ec7",
|
||||
"_internal/api-ms-win-core-fibers-l1-1-0.dll": "3cebc45bf479ad74cfabf2c6bfd4994d7ad639ed1221025981d19cedf9ce0416",
|
||||
"_internal/api-ms-win-core-fibers-l1-1-1.dll": "5ef70308bcca628ce6b0e2856b15b1c7ae340c3f9bbbc4c1071d8c191a34a5c3",
|
||||
"_internal/api-ms-win-core-file-l1-1-0.dll": "250ac829f2617bcac1c6e5b8c4f630462e20765863ba573526a3e11bbfb94a9a",
|
||||
"_internal/api-ms-win-core-file-l1-2-0.dll": "ae14079a114733f60ce87b92cba42acd8083c2cd67594e53bc37dc0b97a4b465",
|
||||
"_internal/api-ms-win-core-file-l2-1-0.dll": "914bf26a298713119477ea0a8e7bd43171b91344ebe24fb47ad77c49686e3d87",
|
||||
"_internal/api-ms-win-core-handle-l1-1-0.dll": "ab5489955e371b15f77906c08ec3c7affe2c7a46a08c514ca628768b4478974b",
|
||||
"_internal/api-ms-win-core-heap-l1-1-0.dll": "c70f9644d8377fa39c5b71f2e9734c1400d7598904fdeb772e8502099982dcb7",
|
||||
"_internal/api-ms-win-core-interlocked-l1-1-0.dll": "f8129710188e407bb0e6f46d30aeba277d67b947ece5fe09e883fde2323f3ae6",
|
||||
"_internal/api-ms-win-core-kernel32-legacy-l1-1-1.dll": "5200b16cb2ddc61cfc07373a9a84aa85a3ab50806ca96c879c883275832944c1",
|
||||
"_internal/api-ms-win-core-libraryloader-l1-1-0.dll": "48786fb88b001dcd1f63acea903d3ca9cc0b3060d5a325e3f2f3cbc3bfd53166",
|
||||
"_internal/api-ms-win-core-localization-l1-2-0.dll": "9ec3898f7eba91faa28b51616c211a2689e3a13aeef8de6e13cb674e49d689eb",
|
||||
"_internal/api-ms-win-core-memory-l1-1-0.dll": "3a6cbc524c99e1cd80d5368f5601402a37ad602528b1ab628093573ef638eb3b",
|
||||
"_internal/api-ms-win-core-namedpipe-l1-1-0.dll": "97145ef89c44949fcf0f04ac834a8bc7d687ef49ee73ae9fc32f3c11136b7201",
|
||||
"_internal/api-ms-win-core-processenvironment-l1-1-0.dll": "8bc7c10b1851aea644e9c9f381cdb935e091fee6b0be3d3aedc6fffaac96adb7",
|
||||
"_internal/api-ms-win-core-processthreads-l1-1-0.dll": "d8030b777617c71f0f94564607699dbf7561487d779db9756aed378c5675213f",
|
||||
"_internal/api-ms-win-core-processthreads-l1-1-1.dll": "f5e676713340f73a03a3d41a6ec9883b431da7d16c7f07bd0a920fb80e6c0753",
|
||||
"_internal/api-ms-win-core-profile-l1-1-0.dll": "f023d47e44d3eea6b0743580f57e8c6ba81e79d5ebfa7da26250076c647b980e",
|
||||
"_internal/api-ms-win-core-rtlsupport-l1-1-0.dll": "9746d8930704153578a628c010638a5f818ffe5a927e25591b108e256dc6afca",
|
||||
"_internal/api-ms-win-core-string-l1-1-0.dll": "7c53ae24c982d16ffd1bf7f918d115b11b7f30e57bc7feaa18cb9781e4abb926",
|
||||
"_internal/api-ms-win-core-synch-l1-1-0.dll": "56d9d62ca5dba79a6581b8d574a7d8b2a64a5ecb71e47dcf06ed0285708b1859",
|
||||
"_internal/api-ms-win-core-synch-l1-2-0.dll": "f6482bbec5612c39ecb4822787a333f2b7570f7a5f922a4059be41ba957bb372",
|
||||
"_internal/api-ms-win-core-sysinfo-l1-1-0.dll": "272d02765fdd3582618236c2d309abba069642f9bc1062ede069d0c144e17007",
|
||||
"_internal/api-ms-win-core-sysinfo-l1-2-0.dll": "8a0900788859d0eb51c2f48f50cc6ed376a120b518100fa20e11d7702ccde260",
|
||||
"_internal/api-ms-win-core-timezone-l1-1-0.dll": "ff35de6c03812b332e140f17dade25c5dd4775156da9eeb1eaae3fddd27236ec",
|
||||
"_internal/api-ms-win-core-util-l1-1-0.dll": "191ef3e98641a57296f19d572d8eb62489470ff1ef6030d136af170c2f835173",
|
||||
"_internal/api-ms-win-crt-conio-l1-1-0.dll": "54ee5ec719a051496ff60aa00dbeaa94b9a7d2cdac27fe9b7317f1a666b6a2aa",
|
||||
"_internal/api-ms-win-crt-convert-l1-1-0.dll": "8b94662429171019fcd63c70bbf2095a075170599704a5e7dcdbe3da13f3a429",
|
||||
"_internal/api-ms-win-crt-environment-l1-1-0.dll": "39e5929593709e8af3bc9e0a75ec1155778d6f4a247f4cdfc58928ad6db88434",
|
||||
"_internal/api-ms-win-crt-filesystem-l1-1-0.dll": "5a8ecebac32edf4e1f3c5c6c1c8ea1a1add6cda4f9c9cb26f752fb295bea6865",
|
||||
"_internal/api-ms-win-crt-heap-l1-1-0.dll": "c71080cbcb43bf1f8f3e391deb12a582eb0abefc80946f340675a2c616e4feb4",
|
||||
"_internal/api-ms-win-crt-locale-l1-1-0.dll": "6c68648e524187e03c4ad9aaa4a99113c6ee9f29fb39cc0ed93f951975138e63",
|
||||
"_internal/api-ms-win-crt-math-l1-1-0.dll": "d4fbcccbe29371cbce431e43b2eb4f7ba9a6f04a3d740a071f02457a505e9dc8",
|
||||
"_internal/api-ms-win-crt-process-l1-1-0.dll": "47c1935942e3ac0812e4dcf18c0e265e565f0194a3349111c299712f5565f7ac",
|
||||
"_internal/api-ms-win-crt-runtime-l1-1-0.dll": "72adc1b3677e0814d9c4ebf0964000e84bb2acf67336c8963061665e44f78029",
|
||||
"_internal/api-ms-win-crt-stdio-l1-1-0.dll": "900afc3989673c9bb1a687ed38c192f46db9e6ba6d11a668898a539e7fc23798",
|
||||
"_internal/api-ms-win-crt-string-l1-1-0.dll": "fcf12466cc12fd3b73611fc0763a5a1f9d44e90349513c34a0c83b0f36421793",
|
||||
"_internal/api-ms-win-crt-time-l1-1-0.dll": "886e57c4a6adb299b38f02945369f590a67da4e79a798359fc60aaa067212d7c",
|
||||
"_internal/api-ms-win-crt-utility-l1-1-0.dll": "5f8f26b216ade615b67a41f6fbbb910972fc6153315a65bb8f09912be50215b1",
|
||||
"_internal/base_library.zip": "e96cff223d84ae5804115c3f2e3622601fee1a18125f71ba74e4c9e4f521c05c",
|
||||
"_internal/libcrypto-3-x64.dll": "deabf96c676dd3652b32da2cb38a7dcc2f2daa8197ad19aba3c7a99454933c1e",
|
||||
"_internal/libcrypto-3.dll": "ccfffddcd3defb8d899026298af9af43bc186130f8483d77e97c93233d5f27d7",
|
||||
"_internal/libffi-8.dll": "eff52743773eb550fcc6ce3efc37c85724502233b6b002a35496d828bd7b280a",
|
||||
"_internal/libssl-3-x64.dll": "e84dcc3caca7720b2b426cb408df3129406e3b4d4ce4e729632bab319013ef6c",
|
||||
"_internal/libssl-3.dll": "007142039f04d04e0ed607bda53de095e5bc6a8a10d26ecedde94ea7d2d7eefe",
|
||||
"_internal/pyexpat.pyd": "d615e193d1affcdbfe504e90d3621cbdcff94bf72b79d899126534507fd6d27a",
|
||||
"_internal/python3.dll": "fb975a606e7fbf74f64260e3f60c3490b4f74a183c0926fd6ed1ac4c52ac7b1c",
|
||||
"_internal/python312.dll": "9a0e3435aaa680d868150f87ab3e388ad2eebc22f87e036155c7b4eda8cd2120",
|
||||
"_internal/select.pyd": "d4d7181b11db0bd22a6cd5cda6f8583d1f5c77615fd0a6ca33350619d6e0438a",
|
||||
"_internal/sqlite3.dll": "8daa45684bf6688fca28d956b2e8942f2fa98f656675ce68e6d61dd869848a7a",
|
||||
"_internal/ucrtbase.dll": "3239227d27667ba20d10a880751924e5719de0078f9fce232d149d383f7681f6",
|
||||
"_internal/unicodedata.pyd": "208ee1cd3cbad0828433ca7246b05be2b1ff5569983d27d296c0b38888585488",
|
||||
"_internal/VCRUNTIME140.dll": "052ad6a20d375957e82aa6a3c441ea548d89be0981516ca7eb306e063d5027f4",
|
||||
"_internal/VCRUNTIME140_1.dll": "6a99bc0128e0c7d6cbbf615fcc26909565e17d4ca3451b97f8987f9c6acbc6c8",
|
||||
"_internal/_bz2.pyd": "65f610646d10d5babea080e060d244b546ec52c54012e5e937dc72dcc2e2e7bc",
|
||||
"_internal/_ctypes.pyd": "0e56107a891100535f2da79d85a5ae65ff1227b4765bd108f8593ac1a1110d81",
|
||||
"_internal/_decimal.pyd": "aeacfead2befcc0768063a037bb64bd32109ae09cb144e5f571b04dd7965db9d",
|
||||
"_internal/_elementtree.pyd": "5009a9a53c03ef8387443b5cf6ce08e5c3a79727466a0b931c5bbca915bf89ca",
|
||||
"_internal/_hashlib.pyd": "03d233dbace599168eaffec823de6ed7beec8c2a4ebfe9b8a3d8e042a59af3ba",
|
||||
"_internal/_lzma.pyd": "e3deecc1f59a3b811c608861decd84de1e8df8bafd5e2b39188861318c5a38cf",
|
||||
"_internal/_multiprocessing.pyd": "2c636df7059cb0dd7e978dd735c7c5c8ddb09cf94754cf9e232296b96c5c545a",
|
||||
"_internal/_queue.pyd": "48e76e0ad63f6932b4a77b5819f41c1e7595636ca8d9e824f0943a14b8bb5035",
|
||||
"_internal/_socket.pyd": "3efa4636cf9e350856f6927d67a4c2564bf9bd2758a00bbf17d3aece5b60016d",
|
||||
"_internal/_sqlite3.pyd": "64b51df2805c58b023a875e8ae3be7ac7f61ef664f32ca6c90f6315da47ef0bc",
|
||||
"_internal/_ssl.pyd": "0bc527d2dbc50009f43b2ed5d5982c4f63f4b647647ffa9eda612dcda80f6040",
|
||||
"_internal/_uuid.pyd": "acce4f281d7ffb2dec0997527faf25b1df62ad7bd3032c568ddcf65c90edc867",
|
||||
"_internal/_wmi.pyd": "a980f1e7a29842bd946863fc2693fbeb555a9dc0f9e1630dfed9a2fcdef3ece2",
|
||||
"_internal/PIL/_avif.cp312-win_amd64.pyd": "6731dce52baab0b96b0eeb3c664844b5b42c2168ea8668af2430e2fbdd2dfbd8",
|
||||
"_internal/PIL/_imaging.cp312-win_amd64.pyd": "c8c519ec72bf75b2945b4fc4afa854af2fca8b970a403134f9ddda3e164d85e9",
|
||||
"_internal/PIL/_imagingcms.cp312-win_amd64.pyd": "c89c633ae1bf3f26a327d14ff688db66628e19c9866ab925479f27dcb60a2d6f",
|
||||
"_internal/PIL/_imagingmath.cp312-win_amd64.pyd": "82ac45c41a008854d05f67deda298b65a7bed850d0d79a3af861ed583f6e7d62",
|
||||
"_internal/PIL/_imagingtk.cp312-win_amd64.pyd": "690cc1cae4a2dc8594a342b9241e691dcc89d81dad4cddcefdf285275365a2b1",
|
||||
"_internal/PIL/_webp.cp312-win_amd64.pyd": "9823cebb84f425af3ac1e7437259bc176e7ad7e25d7fa829b0e1a3e55c11be70",
|
||||
"_internal/PySide6/MSVCP140.dll": "4c667b706893593812cd111b369ba6a77f54d1f1b1ae87cf3bf37692663cfba2",
|
||||
"_internal/PySide6/MSVCP140_1.dll": "d419d24b0a76366f5c9d908b0e45fe70e9e9154bb8ad5f3de42070f2337f857b",
|
||||
"_internal/PySide6/MSVCP140_2.dll": "89917964abb6ca16a260cab258e180c3abc239b5af00eed659d0edf0efdd339c",
|
||||
"_internal/PySide6/opengl32sw.dll": "34b444c016289b560662ff896deceb7f4b2c0723aed3d319ae167c9186ce42b3",
|
||||
"_internal/PySide6/pyside6.abi3.dll": "d0b5c701fb3a8ea839e72b602058f3960935156ebeca084893c54c99e54dd707",
|
||||
"_internal/PySide6/Qt6Core.dll": "d6a3c37c5263c5d418fc0e80b722bc9fca7c0859e6f635f9624a2fde00bdc653",
|
||||
"_internal/PySide6/Qt6Gui.dll": "ae29b005f51b6850bf57fa06fced0dc8c7039fd6fafc3bfbcfe76e38adc7abf1",
|
||||
"_internal/PySide6/Qt6Network.dll": "dd3512d1c5ed062d30c98426cd0a850f13e0cf31437afb5b0b474132b9c52922",
|
||||
"_internal/PySide6/Qt6OpenGL.dll": "d51088f16db8c96dba7ef3c1474e611adb3ebdb211fea35b8e755d2a7407f7ad",
|
||||
"_internal/PySide6/Qt6Svg.dll": "1eac8f7415b311a88cb3cb4e25c3098d0e059c24c831fbbb13f43a80f0df06b7",
|
||||
"_internal/PySide6/Qt6VirtualKeyboard.dll": "a14fac89759569965dbeb45b2a13e592c0bce0cc559adaa32145fcb92de016f9",
|
||||
"_internal/PySide6/Qt6Widgets.dll": "ff0df9e2e6827e035f0731a4cedfc6333f4602bca00775e56346f27032406b74",
|
||||
"_internal/PySide6/QtCore.pyd": "74f96322c5e9cea73aefd2ed5870e5275336b31f552fcd32f12fc81d23f1bc6f",
|
||||
"_internal/PySide6/QtGui.pyd": "7bef20046045199c037b7cbfedaa1c5464730fa948b2c9ec8afbf718e63774d4",
|
||||
"_internal/PySide6/QtNetwork.pyd": "c5038bb71fc9d57330fa2d8eeec65aab69fcf02687cc8f54dbfb5995cfec6a71",
|
||||
"_internal/PySide6/QtWidgets.pyd": "f12f4ca641998e5706d5f7b0023147d573f0f2d2361e26dadf31bdbf05fbfd1d",
|
||||
"_internal/PySide6/VCRUNTIME140.dll": "f893ae75a1a24eea174d982f94bc80ce2448201eaa919a73c0653a5657685de4",
|
||||
"_internal/PySide6/VCRUNTIME140_1.dll": "48aa2783793ea18ab3c2c71d420d4fff9814e662a1ff810053c6e5250061a716",
|
||||
"_internal/pythonwin/win32ui.pyd": "1fc9f8875056b175077ed04e7d93599f58b3cff80bd2077f5f8c8aaa144ab833",
|
||||
"_internal/pywin32_system32/pythoncom312.dll": "18e5d69b62110f48da01842f9ddfd99d06cc561f0866371714ec6534fcb4e5ec",
|
||||
"_internal/pywin32_system32/pywintypes312.dll": "9bd7f8c39a84d7b1ea43bfcd33c04631c60f4ff28167e82bb21987cc1c353766",
|
||||
"_internal/shiboken6/MSVCP140.dll": "fd4a8c046fa3fea9ca6132f50cf8a56cf1e783b2d3093ba5c85fa063bc6b3845",
|
||||
"_internal/shiboken6/Shiboken.pyd": "2f6f3a694f675b1dafdae26903191613c02866ab48e02591ae34ca1a3b1284f1",
|
||||
"_internal/shiboken6/shiboken6.abi3.dll": "de3c6b2ed5f75c9ac0de4a6844b653b3b9d09263ce68c2b5fc25a96c5c3e8469",
|
||||
"_internal/shiboken6/VCRUNTIME140.dll": "de617641d82eac15595d2e39394163ac33e49bb032cf2c2ea0044ed39d3675e9",
|
||||
"_internal/shiboken6/VCRUNTIME140_1.dll": "fa577d54bd10a91e52472da784a619da6cf241af45f0a0c48b27e91fa0fe6104",
|
||||
"_internal/win32/win32api.pyd": "8e09d7aa57dc33b663afd219fab21b6a70e9d98cc74a044df4d6cd94799d98c2",
|
||||
"_internal/win32/win32event.pyd": "a6b896456443447a663fe25783dfa95929dc8ade8d7970fd78d3b4e65100371e",
|
||||
"_internal/win32/win32evtlog.pyd": "f6f8814147d3ca2761d351c0c86e7142b15b63605a502e5eb62d0bbd2b88e73f",
|
||||
"_internal/win32/win32file.pyd": "359ef2dc11546f619a9ac53c01a399d621c093b7cfc843fb9d7b211d0b15e103",
|
||||
"_internal/win32/win32gui.pyd": "f468a03be44633fdeabc08b4a9f8b135f9e31d74b935f85631c23c7fbb9367fa",
|
||||
"_internal/win32/win32job.pyd": "bfc31798ccf0bcf9b4453903918866abcfb546f5b1d6bd59e4691b83cbe44fa8",
|
||||
"_internal/win32/win32process.pyd": "6d02ff9b22afa97bdb26d99454462a612848efdc3d0beb54cea2b4912d07a14c",
|
||||
"_internal/win32/win32service.pyd": "5d159572b89146a13117f24ef0b232d6c24982d206c73189f4952259303de496",
|
||||
"_internal/win32/win32trace.pyd": "3dd640518a4fb1084cfc38a0e312b87ff1b0b0a74535e320bb9936441b9ed8ca",
|
||||
"_internal/win32/_win32sysloader.pyd": "db277aae2b8417dbd01435a8691cc74707f6699ae3199e1b205f609cefa5ad24",
|
||||
"_internal/dx_productivity/trial_task_center/assets/app.ico": "53bdd393d1db3d101474846fc89e04c010db320766a4b4a4c4222128bad91e98",
|
||||
"_internal/legacy-runtime/dxdesigner795/NativeSnapshotReader.vbs": "1756026bae2626c1ffc2195dbd3bccbede30445b18dc8b3d9064fe5d0da6b646",
|
||||
"_internal/legacy-runtime/dxdesigner795/QuickPartReplace.vbs": "024b2859d10566d9df3d96f3f98a6ba6bf3b4b94dfc577e7132f0570e23cd48e",
|
||||
"_internal/PySide6/translations/qtbase_ar.qm": "e03fe68d83201543698fd7fe267dd5dfc5bfd195147e74ff2f19ac3491401263",
|
||||
"_internal/PySide6/translations/qtbase_bg.qm": "e448ac9e3f16c29eb27af3012efe21052daa78fabfb34cd6dff2f69ee3bd3cdb",
|
||||
"_internal/PySide6/translations/qtbase_ca.qm": "5298532fc52ffbc4e2c549f277151a61e741921c834286f7c04d3753677b6b04",
|
||||
"_internal/PySide6/translations/qtbase_cs.qm": "03028b42df5479270371e4c3bdc7df2f56cbbe6dda956a2864ac6f6415861fe8",
|
||||
"_internal/PySide6/translations/qtbase_da.qm": "7d1e5ca3310b54d104c19bf2abd402b38e584e87039a70e153c4a9af74b25c22",
|
||||
"_internal/PySide6/translations/qtbase_de.qm": "ed828a83dfaa51944f166c842155b48ab3bd7cb2c46dcd96269eb5d48af4f63f",
|
||||
"_internal/PySide6/translations/qtbase_en.qm": "494ac9a2b2cb2fdeced353f4a9f898ed8dcf616e9bc667438c62681e3f7f79cf",
|
||||
"_internal/PySide6/translations/qtbase_es.qm": "4ffda56ba3bb5414ab0482d1dde64a6f226e3488f6b7f3f11a150e01f53fa4c8",
|
||||
"_internal/PySide6/translations/qtbase_fa.qm": "f78e59b5bdd586181a999034ba418868ed17fe9c05707fb65e523f70e92253d2",
|
||||
"_internal/PySide6/translations/qtbase_fi.qm": "e47fe13713e184d07fa4495dde0c589b0e8f562e91574a3558a9363443a4fa72",
|
||||
"_internal/PySide6/translations/qtbase_fr.qm": "314243a55c32679ad473fdfe48dc7d66e973ad0fc8bf2164480c58dddb50c1a7",
|
||||
"_internal/PySide6/translations/qtbase_gd.qm": "63b439dd44139aa3aed54c2ebe03fa9bc77f22c14ed8fba8eff2608445bb233d",
|
||||
"_internal/PySide6/translations/qtbase_he.qm": "e1ebca16afe8994356f81ca007fbdb9ddf865842010fe908923d873b687cad3f",
|
||||
"_internal/PySide6/translations/qtbase_hr.qm": "bb9eec9a9a652c1340dc75eb2e749be50df00f885b3d6900dfc76799c45b244d",
|
||||
"_internal/PySide6/translations/qtbase_hu.qm": "98463295539d769c8645a0b7fb95ad38454cfd0b14f36af485513f036ddbbbc6",
|
||||
"_internal/PySide6/translations/qtbase_it.qm": "7808ed542a7833c4bd94ec8bdfbbca00bb4f2fe15979b9121ce3249323687300",
|
||||
"_internal/PySide6/translations/qtbase_ja.qm": "2b9581c69b975f59be505b127cd3c19d403ef3d12e0e8386fb97238223e9c1df",
|
||||
"_internal/PySide6/translations/qtbase_ka.qm": "e55e4b72fa620bebee5297ca59dfe2f49894a1e544f2b7485b1cfd8829289d6f",
|
||||
"_internal/PySide6/translations/qtbase_ko.qm": "0179ed1b136e1cb3f583351eaa2c545ba3d83a6ee3f82c32505926a1a5f5f183",
|
||||
"_internal/PySide6/translations/qtbase_lg.qm": "31c0cc4ce13b1d74fe0c19ed0b47638fb31e20c93ee08092533e884007aebfb5",
|
||||
"_internal/PySide6/translations/qtbase_lv.qm": "846e047573ae40c83671c3ba7f73e27efc24b98c82701da0df9973e574178bb2",
|
||||
"_internal/PySide6/translations/qtbase_nl.qm": "f61513bcdbb6ad800585f9437a95d018aab17fa12ee414aa31462ff279d8240e",
|
||||
"_internal/PySide6/translations/qtbase_nn.qm": "f9f2fb7c60e7fcb38bbd3c1314ef122145594265e20b0659ff00004baab13ac7",
|
||||
"_internal/PySide6/translations/qtbase_pl.qm": "3cf6b5c14d5eb0cf81e9af2066e66b3aa579a6b9b3c323ed670761f6254a8c54",
|
||||
"_internal/PySide6/translations/qtbase_pt_BR.qm": "3475d61604b938d459949801a906dbd34a8ca824ade94120015d676e208da859",
|
||||
"_internal/PySide6/translations/qtbase_ru.qm": "3da6605668f9178d11a838c4515478084dcfb4f9cf22f99d7a92b492db9c224b",
|
||||
"_internal/PySide6/translations/qtbase_sk.qm": "d586ae2c314074cf398417fdecb40709d5478dfeb0a67c2fe60d509ee9b59ed7",
|
||||
"_internal/PySide6/translations/qtbase_sv.qm": "5a2178dd2c03cc4516697f1fb0049649c9ed53f5cde6b937786733dae06aeda8",
|
||||
"_internal/PySide6/translations/qtbase_tr.qm": "353fdfd7165659a49212e7a25bf91c0a71588e52c836f7496640f26782414634",
|
||||
"_internal/PySide6/translations/qtbase_uk.qm": "51b8ff55b37dc5907d637a8ddda12fbe816852b0244c74eb4f0fb84867a786e0",
|
||||
"_internal/PySide6/translations/qtbase_zh_CN.qm": "0481a9b92a6f0578400e960a7d5ee70217a6a450eaf7f98b7d32b8dbd0d58616",
|
||||
"_internal/PySide6/translations/qtbase_zh_TW.qm": "21012b2b427f8d09d31ce9cae582ca27955b478ca3dc2ec18a3068d808638c6a",
|
||||
"_internal/PySide6/translations/qt_ar.qm": "b11333c520ccd8e375cde20985df402d586a1a95e0796313bbeb9f717d4db22e",
|
||||
"_internal/PySide6/translations/qt_bg.qm": "1e22ee126ec9f76031d880285a907b3a0c4510392319ff700dcdee964abbb1ad",
|
||||
"_internal/PySide6/translations/qt_ca.qm": "17ab2623c7f6e8def44b3dbcb517544185817d65f1298ddb10ef71136f232bdc",
|
||||
"_internal/PySide6/translations/qt_cs.qm": "c585918fb1d4821a054ea40bdcf279f275ca76c88a5793f433dac6a611ac7e8f",
|
||||
"_internal/PySide6/translations/qt_da.qm": "f6773c672acb73fdef6e092060d69d1e5dfee840012bac912d1e92de28714386",
|
||||
"_internal/PySide6/translations/qt_de.qm": "0401c316aa3b50a172eb44a4ff1ec384924073beec7c928ef888ec48e4612688",
|
||||
"_internal/PySide6/translations/qt_en.qm": "494ac9a2b2cb2fdeced353f4a9f898ed8dcf616e9bc667438c62681e3f7f79cf",
|
||||
"_internal/PySide6/translations/qt_es.qm": "648ed4519bc45d7a4779479a7626ea16cf9aa23e93a0b178546cc47bea0591ab",
|
||||
"_internal/PySide6/translations/qt_fa.qm": "3f4c989c6b2990d80cc6299408214b31698923b52f154483b3371875de91f88e",
|
||||
"_internal/PySide6/translations/qt_fi.qm": "342d01c7eeb234e431d0506821c4cd03c0433115d8d63fee3357be2331858879",
|
||||
"_internal/PySide6/translations/qt_fr.qm": "c896a38892a92346b033793d56440993236b23e47e06f3974afdb0552f628387",
|
||||
"_internal/PySide6/translations/qt_gd.qm": "49df855a004a17950338af3146466f6df4d5852410bd0b58ea80e0d0203a9d24",
|
||||
"_internal/PySide6/translations/qt_gl.qm": "204a01ac7deb6b5bae193afecbd1e50d18c73bf7d94badeb2bbfdf6123c4ed93",
|
||||
"_internal/PySide6/translations/qt_he.qm": "36f01fff2f25e116d4b7af78097b7e49520fd5b7fb6fb120e40be228c05c045f",
|
||||
"_internal/PySide6/translations/qt_help_ar.qm": "222088c9752d1cc3bab985ef2dc77e5ae78578dce18a61ec15b39f02e588163d",
|
||||
"_internal/PySide6/translations/qt_help_bg.qm": "cbcdd1e0bbae332d80ddb0a286056f17c824fa28d353d7fdf12fc97d9f6fe054",
|
||||
"_internal/PySide6/translations/qt_help_ca.qm": "fe40962c814a9f489e18d033e4aaabe435232c9bcf760830c6165af507cca80e",
|
||||
"_internal/PySide6/translations/qt_help_cs.qm": "4ac56fc63e400943bab13f1d4c418502138908e1d488c24aee6131d3d17552aa",
|
||||
"_internal/PySide6/translations/qt_help_da.qm": "6bb092552a398687119f6d52145f04bf8373977446d8f00c0dcbd56b96829f0f",
|
||||
"_internal/PySide6/translations/qt_help_de.qm": "037bc99abf98571ae9375c2513536c15b571d66406c36c1de447b547ff539c07",
|
||||
"_internal/PySide6/translations/qt_help_en.qm": "494ac9a2b2cb2fdeced353f4a9f898ed8dcf616e9bc667438c62681e3f7f79cf",
|
||||
"_internal/PySide6/translations/qt_help_es.qm": "fd16b279f8cf69077f75e94d90c9c07a2afff3948a579e3789f5ffb5e5f4202d",
|
||||
"_internal/PySide6/translations/qt_help_fr.qm": "875ee2dcdc64e3dea888d84048e382d3921a175f12847de2e6b1cb12ad9add50",
|
||||
"_internal/PySide6/translations/qt_help_gl.qm": "7399a248609974773f60866c87b78ea7dfbc4f750313d692f7886cd763883c9f",
|
||||
"_internal/PySide6/translations/qt_help_hr.qm": "8c8cc3c5b1ab2b074f82937001b896603420ef75592b3b78172177360dd7ea61",
|
||||
"_internal/PySide6/translations/qt_help_hu.qm": "7be32e015119c969453abb6e8f3fb377963a69fafb10c27b796737b5eb283eaf",
|
||||
"_internal/PySide6/translations/qt_help_it.qm": "316fe8d0815e2b4b396895beb38ef1a40431915b5e054df80f4c0cd556f26e4b",
|
||||
"_internal/PySide6/translations/qt_help_ja.qm": "ae603b2c0d434d40cde433ffcba65f9ee27978a9e19316007be7fe782a5b8b47",
|
||||
"_internal/PySide6/translations/qt_help_ka.qm": "159c74f94b384b5ee6afdf38b6cfc4806bc99ecf73be02d4a7021d4ceba7ec7e",
|
||||
"_internal/PySide6/translations/qt_help_ko.qm": "f11c64694e8e34e1d2c46c1a1d15d6ba9f2db7b61de4fdf54eca5ab977c3e052",
|
||||
"_internal/PySide6/translations/qt_help_nl.qm": "44a8a0daf775d14352180052d13f623814d7bdf98e2c5c80144b7bf74214e3b0",
|
||||
"_internal/PySide6/translations/qt_help_nn.qm": "4c8a7213942078e4f72f5babd26c41b77ace70189714a58b5504a7d5ad0193dc",
|
||||
"_internal/PySide6/translations/qt_help_pl.qm": "cc6cb4d8c54086224672f2e49e623c8cb7c0c1cd65b8d5ecd42fc9ba3a6065bd",
|
||||
"_internal/PySide6/translations/qt_help_pt_BR.qm": "b4015c5d519b4fe93c00bf734d1742e4f0094d89862664d548eb64a46a2feae7",
|
||||
"_internal/PySide6/translations/qt_help_ru.qm": "557b644e6da5f1ec720ef93965617087e4d1f40b2494cc5aa524cf3796108de7",
|
||||
"_internal/PySide6/translations/qt_help_sk.qm": "f41e33e1d790bd0d3eb180f1f875bc191fe74773628f25c2cad95e1402e66867",
|
||||
"_internal/PySide6/translations/qt_help_sl.qm": "2ec955e662407ebcd8dcdae5aaa21e4108e0b5b0aee0e9db712c27072943535f",
|
||||
"_internal/PySide6/translations/qt_help_sv.qm": "95bdb03dbaa6dbdfda46c249e9ccce9a353f71ddb8b112961e8b005b2c60b13c",
|
||||
"_internal/PySide6/translations/qt_help_tr.qm": "81da2f88cd624097581f2d29b10311796bcd9ab289e65883346d276110542d28",
|
||||
"_internal/PySide6/translations/qt_help_uk.qm": "497cfc473684692ee44d7a3795e8fb2270c57069fd9eb98a615dd29ab9be8a7c",
|
||||
"_internal/PySide6/translations/qt_help_zh_CN.qm": "e256d1f6034a5a5521c62f129f91731216e474f71e1d9caea3d3dcb11b670deb",
|
||||
"_internal/PySide6/translations/qt_help_zh_TW.qm": "40112812abb43853d678cc6d97729f21f21b3a7321c827fc9d18f6c936447d1e",
|
||||
"_internal/PySide6/translations/qt_hr.qm": "fc9e4146f33be3d09b234be01e56235d3037d8d82d64f0700b4d4a6e253a61a7",
|
||||
"_internal/PySide6/translations/qt_hu.qm": "c2fa649f167cdb801d1cc0cb69c1d93594fd5bf8c0b7e79b969935da5c3e19aa",
|
||||
"_internal/PySide6/translations/qt_it.qm": "9e7a18bc20ebeec54baaaf41c918a74534511271f796dffffd0f9b9ec31c68d3",
|
||||
"_internal/PySide6/translations/qt_ja.qm": "0f5fe50452947d1ee9755249d860354bff6977279b4c496a5bc77e5b89dd745e",
|
||||
"_internal/PySide6/translations/qt_ka.qm": "00b67c6dfc255079b5b98a5640f82519c96b2520a028682fba4078b39d743eaa",
|
||||
"_internal/PySide6/translations/qt_ko.qm": "1d254b535e1cb35cbcad8210b15b89f4488159826bf35b4504696263dd102fa3",
|
||||
"_internal/PySide6/translations/qt_lg.qm": "6ba668501f4c040c66da1bdc022362da3c8cf663da6aa484cbdb599028da98ed",
|
||||
"_internal/PySide6/translations/qt_lt.qm": "47eb5f97467df769261421d54a5bea1131c9fb9b6388791d38bb6574335b64bf",
|
||||
"_internal/PySide6/translations/qt_lv.qm": "addeca285282338294f24ca50d37d08a5f68d3785d0a94af86dd4ec8f2a3b449",
|
||||
"_internal/PySide6/translations/qt_nl.qm": "39e870cbd25c0f97fa9b1828d5ea1ed9849857a2e26c5321b3f13c76be8f0548",
|
||||
"_internal/PySide6/translations/qt_nn.qm": "4e544e23f75eafe1553dc896973db23b5795cd243786d5c653cc0f36a46ca74f",
|
||||
"_internal/PySide6/translations/qt_pl.qm": "e6890afa0caf0f6db0248e4c94f6016b8ec8bc266f1e0e9b8f01e8ea912cf968",
|
||||
"_internal/PySide6/translations/qt_pt_BR.qm": "0e24c58e35271853f8cdfb3f0f7b0741b5a9a588e43cdec62ae85a3842771e0a",
|
||||
"_internal/PySide6/translations/qt_pt_PT.qm": "2c1e7bbf5168a64b43752dd4c547601c0bde6d610f8671fa3e3af38597e84783",
|
||||
"_internal/PySide6/translations/qt_ru.qm": "1b388e2d6d1bd405603e794e498c6d7ec5f5a5ad819243546f6399181da36758",
|
||||
"_internal/PySide6/translations/qt_sk.qm": "840c3b01c89df976fc1d2e5bfc6fc84b65666b8a3ceb4cbf5aa0c22af3d2a383",
|
||||
"_internal/PySide6/translations/qt_sl.qm": "c44e0313a9414cc0e490b65b0c036fa11bca959353b228886547bc2c8492034f",
|
||||
"_internal/PySide6/translations/qt_sv.qm": "daaae448e0814b469ac3d7a91096fde15491600a6b8bc6c01508425fb5e8b3ec",
|
||||
"_internal/PySide6/translations/qt_tr.qm": "59e8a0c411be3b0802a68561b090f182099d6b75c4fe46f398e55f11528e11b9",
|
||||
"_internal/PySide6/translations/qt_uk.qm": "053ec1f677c4dba48c6a97eb28f4fc78c1511324d1843d7f4cec2c7c00a66145",
|
||||
"_internal/PySide6/translations/qt_zh_CN.qm": "c0e29d32c9540a7e78643b74214e633c56f6ab11f018e516629f2c11b1fb09fc",
|
||||
"_internal/PySide6/translations/qt_zh_TW.qm": "24e226954491689549a1a1990db3b8cb78888008d8163b2fd2442b772b6d1b5f",
|
||||
"_internal/PySide6/plugins/generic/qtuiotouchplugin.dll": "aa9080fa8b1c3cf4d3790c1eecf4a1f5c796ce58f31f80910357578f20fd80ac",
|
||||
"_internal/PySide6/plugins/iconengines/qsvgicon.dll": "5bb97b6f114682ae0b5f42b23b6818aece6499bad88dac80a138efa8a88c12bc",
|
||||
"_internal/PySide6/plugins/imageformats/qgif.dll": "d301d7e9a68327692e4c76faa6b125517730b22c68f4de7f09fda9d4ac0ddee1",
|
||||
"_internal/PySide6/plugins/imageformats/qicns.dll": "49db148fea9f01e9953fd0a771d16cfaf364599f07aab3634d4f5c7c25abd78a",
|
||||
"_internal/PySide6/plugins/imageformats/qico.dll": "1684fd56f1758167f7b3ac011264ae5859b3cf6113e381626ec3dc1d3122fe52",
|
||||
"_internal/PySide6/plugins/imageformats/qjpeg.dll": "6517345ac19f5c489daeadc029d0018bbdc09d8e1031c60d714557972f22c6d4",
|
||||
"_internal/PySide6/plugins/imageformats/qsvg.dll": "4b7d65ba39be58cb469b54b5fdee2987871d67e5050cd70724016e09966e54f6",
|
||||
"_internal/PySide6/plugins/imageformats/qtga.dll": "6b0381150070fcd4224597fe73c68b47055b30b418aa14794c94c5007d14ca5d",
|
||||
"_internal/PySide6/plugins/imageformats/qtiff.dll": "3d6ea04da215ee2a9459399fb9f6d73cad8787944b9d450399025bcd39d020b5",
|
||||
"_internal/PySide6/plugins/imageformats/qwbmp.dll": "1a4596509987e9557edda69ed13cdd0d33f4ebda72e464ddc00a566bec05f151",
|
||||
"_internal/PySide6/plugins/imageformats/qwebp.dll": "6b2c53cc4423140c29a6a1eb6dd908016e09d794b5739a05a3a39c8c49a0df8a",
|
||||
"_internal/PySide6/plugins/networkinformation/qnetworklistmanager.dll": "e571a4b4e582738cd1bc4889cb2896635c2543baff408442701b6706a1b4a86e",
|
||||
"_internal/PySide6/plugins/platforminputcontexts/qtvirtualkeyboardplugin.dll": "e10c64dd2ae4f9b756ec1ebe3950a05e345ba40834b7be2900af426623d85475",
|
||||
"_internal/PySide6/plugins/platforms/qdirect2d.dll": "56f41ad523d016fe2cf2c90fae158e21766d1fcd021bced1a3704c6da0f00c98",
|
||||
"_internal/PySide6/plugins/platforms/qminimal.dll": "768a9c6dbb1c86abbefa2ff9d7e98cdfb4fdc9292eb8d64195bb6d23939a5344",
|
||||
"_internal/PySide6/plugins/platforms/qoffscreen.dll": "e776251668440169ed18a2fe1b236762d514ef5244639cbb559b5a77ddd38954",
|
||||
"_internal/PySide6/plugins/platforms/qwindows.dll": "bf6dbc3009f386fa22f0ced560bea6bbf3e0e0b4442d2fb855db67cffce49dbf",
|
||||
"_internal/PySide6/plugins/styles/qmodernwindowsstyle.dll": "a7a6424c23bf371bd28a404a196b210971726f6f2a87b63aac185a5e6e40da71",
|
||||
"_internal/PySide6/plugins/tls/qcertonlybackend.dll": "67be4d333a0f489d02714169a6ec54eaa80efa649d733fcbeb81881ecb02b4f3",
|
||||
"_internal/PySide6/plugins/tls/qopensslbackend.dll": "7a0727417b8e21e64d9a7cf0f390bc85b3e337b4eef5ac977f49659d97e6b552",
|
||||
"_internal/PySide6/plugins/tls/qschannelbackend.dll": "14abc5b245c0f2e03f7bc0b474a8db2ecb441c7300a8a8b16fb865eaf2674619"
|
||||
},
|
||||
"data_directory_excluded": true,
|
||||
"gif_sha256": "4b3fed6694ab08d921ca88f92babb0af16380489533d9ed43b143e720d6e04d3",
|
||||
"gif_recorded_version": "1.1.2",
|
||||
"bom_sha256": "877c9164e5230219a43c4c3df0b204be7fa08419e95080ffe782fbb8311761a8",
|
||||
"acceptance_report": "docs/testing/2026-10-19-release-preparation.md",
|
||||
"build_log": "build/release-113-build-final.log",
|
||||
"zip_sha256": "f1fe7d7f2eb8fe83928f0fa7a3ab59638032b05bc66f89c92c00dd428ccf3fcd",
|
||||
"zip_bytes": 58119736,
|
||||
"file_count": 256,
|
||||
"extracted_zip_smoke": true,
|
||||
"build_checks": {
|
||||
"passed": 701,
|
||||
"seconds": 101.11,
|
||||
"warning_count": 1
|
||||
},
|
||||
"icon_verification": {
|
||||
"passed": true,
|
||||
"file_version": "1.1.3.0",
|
||||
"embedded_icon_sizes": [
|
||||
[
|
||||
16,
|
||||
16
|
||||
],
|
||||
[
|
||||
20,
|
||||
20
|
||||
],
|
||||
[
|
||||
24,
|
||||
24
|
||||
],
|
||||
[
|
||||
32,
|
||||
32
|
||||
],
|
||||
[
|
||||
40,
|
||||
40
|
||||
],
|
||||
[
|
||||
48,
|
||||
48
|
||||
],
|
||||
[
|
||||
64,
|
||||
64
|
||||
],
|
||||
[
|
||||
96,
|
||||
96
|
||||
],
|
||||
[
|
||||
128,
|
||||
128
|
||||
],
|
||||
[
|
||||
256,
|
||||
256
|
||||
]
|
||||
],
|
||||
"window_icons": [
|
||||
{
|
||||
"kind": 0,
|
||||
"size": [
|
||||
20,
|
||||
20
|
||||
],
|
||||
"max_rgb_difference": 1,
|
||||
"matches_source": true
|
||||
},
|
||||
{
|
||||
"kind": 1,
|
||||
"size": [
|
||||
40,
|
||||
40
|
||||
],
|
||||
"max_rgb_difference": 1,
|
||||
"matches_source": true
|
||||
}
|
||||
],
|
||||
"exit_code": 0
|
||||
},
|
||||
"initial_packaging_probe": {
|
||||
"blank_bom_check_updated": "Styled empty Excel editing row is valid; verify all data cells empty rather than max_row==1. Original staging evidence retained."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
# V1.1.3 发布构建记录
|
||||
|
||||
发布日期:2026-10-19。产品源码提交:95c7f9b775af2f7f220c349f897144cf745027b4。版本标签另包含发布文档,产品代码无后续变化。
|
||||
|
||||
本次增加可编辑 SVG、PNG 和十尺寸 Windows ICO,统一源码与冻结包窗口图标、稳定的任务栏 AppID 和 Windows 文件版本。应用程序版本 1.1.3,文件版本 1.1.3.0。
|
||||
|
||||
- 标准构建检查:701 passed,101.11 秒,1 条 pywinauto COM STA 提示;冻结包构建与启动退出正常。
|
||||
- 资源路径回归保留失败反例及修复后 9 项通过记录;重启恢复夹具保留全部业务断言,仅隔离新增外观初始化。初次构建失败日志未覆盖,最终构建单独记录。
|
||||
- 最终 ZIP 解压后运行 EXE,移除源码导入路径,启动版本与正常退出日志通过。
|
||||
- EXE 实际嵌入 16、20、24、32、40、48、64、96、128、256 像素图标;运行窗口实际返回 20 / 40 像素大小图标,与源图逐像素比较的最大 RGB 差为 1(透明度舍入),均匹配。
|
||||
- 78 个业务模块编译码与已验收 e6ec267 候选一致,两份 VBS 哈希一致。只有应用入口外观初始化、版本模块与资源发生预期变化。
|
||||
- 本次未重新做 CAD 替换,业务流程沿用[本机冻结候选验收](../testing/2026-10-19-release-preparation.md)。
|
||||
|
||||
便携包 58,119,736 字节,256 个文件,不含本机任务、数据库、日志或工程备份。默认 BOM 保持 11 列,格式化的空白编辑行不含工程或替换数据。GIF 沿用 V1.1.2 录制,README 明确说明适用范围,未伪称新录制。
|
||||
|
||||
- ZIP SHA256:f1fe7d7f2eb8fe83928f0fa7a3ab59638032b05bc66f89c92c00dd428ccf3fcd
|
||||
- EXE SHA256:12e299042dd5ecd5d7bd02cf4dd80f72b31a425c5e1702a2f717999fb132a05e
|
||||
- ICO SHA256:53bdd393d1db3d101474846fc89e04c010db320766a4b4a4c4222128bad91e98
|
||||
|
||||
程序文件逐项哈希、模块对照与图标验证见[构建清单](v1.1.3-build.json)。本地完整构建及图标证据在 build/release-1.1.3-20261019-final;本版使用新的发布标签及附件,旧 V1.1.2 附件保持不变。
|
||||
|
||||
发布附件:DxPartReplace-1.1.3.zip、SHA256SUMS-1.1.3.txt、release-manifest-1.1.3.json、BOM-template.xlsx、window-tutorial-1.1.3.gif。先建立草稿,附件上传后逐项回下载核对 SHA256,通过后公开。
|
||||
@@ -0,0 +1,33 @@
|
||||
# DxPartReplace V1.1.3
|
||||
|
||||
发布日期:2026-10-19。交付级别:评估试用,与既有版本一致。
|
||||
|
||||
新增应用图标,统一 EXE、窗口、任务栏和切换窗口显示,补充 Windows 文件版本信息。本版同时发布此前已验收的可选目标封装、原生 CLI 位号采集、执行保护及队列性能优化。
|
||||
|
||||
## 下载与使用
|
||||
|
||||
完整解压 `DxPartReplace-1.1.3.zip`,运行 `DxPartReplace.exe`。无需安装 Python,本机需要可用的 DxDesigner / Expedition Enterprise 7.9.5、许可证和已配置的中央库。
|
||||
|
||||
[中文教程及 GIF](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/src/tag/v1.1.3/README.md)。包内包含离线教程、默认 11 列 BOM 空表及封装使用说明。GIF 录制于 V1.1.2,步骤适用于本版,图标与版本号以本版为准。
|
||||
|
||||
## 本版变化
|
||||
|
||||
- 应用图标支持 16~256 像素,EXE 属性显示 1.1.3 版本。
|
||||
- 目标封装可留空;留空时不主动覆写 Cell Name,可后续与中心库同步。明确选择时仍核验合法性、写入和保存重开结果。
|
||||
- BOM 保持 11 列,优先使用原生 CLI 采集位号;导入报告区分通过、失败、未检查,保存前不写入计划。
|
||||
- 修复窗口销毁后后台结果回调访问已释放控件的问题;保留退出等待后台安全收尾。
|
||||
- 去掉队列中重复的路径解析与日志文件检查,保留逐步证据、fsync、原子发布和实时身份核验。
|
||||
|
||||
## 验证范围
|
||||
|
||||
业务流程沿用提交 e6ec267 的冻结候选验收:两个工程顺序替换、362 字符路径、错误及正确 BOM、保存重开、独立新 CAD 回读、层次及展开网络比对、日志窗口、新一轮、1.1.1 元数据升级和私有桌面释放均通过。仅目标 RV05 属性变化,其余 56 个器件及全部引脚、网络连接不变;原工程和中央库跟踪的 1033 个文件哈希未变。双工程执行 167 秒,千步模拟 21.09 秒,两者测量范围不同。
|
||||
|
||||
本次仅增加图标、应用身份和版本信息,另做源码构建检查、最终 ZIP 解压启动、图标与 Windows 版本资源检查。未把这些外观检查计作新一轮真实 CAD 替换。发布清单核对除 application/version 外的全部业务模块编译码及 VBS 与已验收候选一致。
|
||||
|
||||
详见[验收报告](../testing/2026-10-19-release-preparation.md)及[本版构建记录](v1.1.3-build.md)。
|
||||
|
||||
## 升级
|
||||
|
||||
关闭旧程序并备份 `data`,用本版配套的 EXE 与 `_internal` 运行,保留原数据。不同版本不要同时打开同一数据目录。中断且尚未核验的旧任务先按原流程恢复,保留日志和原始证据。
|
||||
|
||||
旧版本发布附件保持可下载。附件含 ZIP、BOM 空表、GIF、构建清单与 SHA256 校验文件;发布前逐项上传并回下载核对。
|
||||
@@ -0,0 +1,89 @@
|
||||
# CBB Verify 与后台原生后端借鉴调研
|
||||
|
||||
调研日期:2026-10-14。读取 `cbb-refresh-verify-795`、`mentor_PDF_output` 源码、已有离线证据和本机 EE7.9.5 安装目录静态文件;没有启动 Mentor、没有附着 COM、没有修改工程或中心库。
|
||||
|
||||
## CBB Verify 的真正原理
|
||||
|
||||
CBB Verify 当前代码使用有界的原生进程监督器:
|
||||
|
||||
```text
|
||||
单个 CBB
|
||||
-> 固定目标 LMC/CBB/PCB 身份
|
||||
-> 创建独立 Windows desktop
|
||||
-> CreateProcess + Job Object 管理 worker 和子进程
|
||||
-> 启动 common\\win32\\bin\\ExpeditionPCB.exe <PCB> -ReusableCircuit
|
||||
-> 通过 PID、命令行和父子关系绑定本次 wg PCB worker
|
||||
-> COM 获取 MGCPCB.Application / ActiveDocument
|
||||
-> ProjectIntegration 状态机逐项执行并重新读取状态
|
||||
-> 保存、关闭、退出证据
|
||||
-> x86 状态桥调用 IsVerifiedReuseBlock
|
||||
-> 只有本次执行后的 READY/raw=1 才算成功
|
||||
```
|
||||
|
||||
其中 `Library Manager` 的原生 Verify 菜单路线只是兼容/诊断路线。已有现场记录表明,在 7.9.5 上它依赖物理光标命中树节点;私有 desktop 中光标位置不可用,消息投递会落到停靠面板菜单。真实输入可以成功,但会切换用户输入桌面,因此没有作为默认后台路径。
|
||||
|
||||
`reusable_circuit_direct` 路线的价值在于:窗口可以存在于私有桌面,用户前台不被切走;进程树可被 Job Object 收回;COM 操作不靠屏幕坐标;成功判定依赖执行后的权威状态,而不是“窗口关闭”或某个中间灯变绿。
|
||||
|
||||
本轮核对的源码依据:
|
||||
|
||||
- `cbb-refresh-verify-795/src/cbb_refresh_verify/desktop_worker.py:26-45`:CreateDesktop、STARTUPINFO.lpDesktop、CreateProcess、Job Object。
|
||||
- `src/cbb_refresh_verify/mentor_adapter.py:178-192,651-706`:优先 common 启动器、生产 direct 路线、实际 PCB worker 绑定和 COM 文档身份检查。
|
||||
- `src/cbb_refresh_verify/integration.py:10-15,57-96`:ForwardAnnotate/SynchCES/LoadCES/BackAnnotate 状态机,每次执行后重读状态;初始四绿时只做一次 ForwardAnnotate,再按实际 Required 修复。
|
||||
- `tools/status_bridge/CbbStatusBridge32.cpp:19,187-205`:x86/MFC 桥动态读取 LMCDLL70.dll 的 IsVerifiedReuseBlock 导出。它是 CBB 状态读取接口,不能作为替换执行接口。
|
||||
- `docs/diagnostics/2026-09-29-r4-field-log-review.md:9-27`:已有现场报告记载 direct 路线、9 个本次 READY/raw=1 成功项和 8 个失败项。本轮未重新运行这些工程。
|
||||
|
||||
旧 README、API-FINDINGS 和研究计划中存在不同历史路线,不能只按其中一句话判断当前实现。上述结论优先依据当前 mentor_adapter 的实际分支以及有日期的现场记录。
|
||||
|
||||
## 可借鉴到 Part Replace 的部分
|
||||
|
||||
可以直接借鉴以下架构:
|
||||
|
||||
1. 把一个工程任务封装成独立 native worker,会话绑定工程路径、任务 ID、目标 UID 集合、旧料号、新料号和计划哈希。
|
||||
2. 用 `CreateProcess`、私有 desktop 和 Job Object 管理 DxDesigner 及其脚本/辅助进程。超时只终止本次创建的进程树。
|
||||
3. 通过进程 PID、命令行和父子关系绑定本次 DxDesigner/worker,禁止附着到用户已有的同名进程。
|
||||
4. 将“打开工程、选中 UID、调用 Replace Part、Library Wins、保存、关闭、重新打开”拆成状态机,每个阶段写结构化事件和快照。
|
||||
5. 把最终判断改成后置不变量:目标 UID 已变成新料号、RefDes/网络/引脚/受保护属性保持、未选中同旧料号器件未变、保存后重开仍成立。任一状态不确定就阻断后续任务。
|
||||
6. 沿用 CBB 的单项证据目录、串行队列、失败后继续/不确定后停止、最终报告和可恢复检查点。
|
||||
|
||||
不能直接照搬 CBB 的内容检查接口。CBB 的 `ProjectIntegration`、ReusableCircuit 保存和 `IsVerifiedReuseBlock` 是 CBB 中心库认证语义,与原理图器件替换不是同一对象。
|
||||
|
||||
## “像 MentorPDF 一样”的原生接口调查
|
||||
|
||||
MentorPDF 使用的是官方命令行:
|
||||
|
||||
```text
|
||||
sch2pdf.exe -project <project.prj> -a <output.pdf> -c <color> ...
|
||||
```
|
||||
|
||||
它没有 UID、RefDes、旧料号、新料号或 Library Wins 参数,所以只能借鉴其进程管理、串行队列、Job Object、前后指纹、日志目录和原子提交,不能作为替换后端。
|
||||
|
||||
本机安装目录静态检索到的候选如下:
|
||||
|
||||
| 候选 | 证据 | 判断 |
|
||||
| --- | --- | --- |
|
||||
| `sch2pdf.exe` | 官方 CLI;输入工程,输出 PDF | PDF 导出,可能更新 iCDB/日志;没有已证明的替换合同 |
|
||||
| `DxPDF.exe` | PDF GUI 前端字符串 | 不含替换合同 |
|
||||
| `icdbPartsLister.exe` | 字符串包含 `Part Number`、`REFDES`、`cComp`、`Component` | 只能作为只读库存候选,尚无输出协议或写入证据 |
|
||||
| `IVdApp.ExecuteCommand` / `ccomp` | TypeLib 有 ExecuteCommand;安装样例只证明 `component 74ls01` 放置元件 | `ccomp` 语法、范围、Library Wins 均未证实 |
|
||||
| `IVdBlock.ChangeComponentPreserveRefdes` | 当前 7.9.5 TypeLib 确有 DISPID 42 | 没有 Library Wins 参数,未证明选中范围、网络/引脚和中心库语义 |
|
||||
| `IVdApp.ReplacePart` | 只在工作区保存的 119.0 wrapper 中出现 | 当前安装版 TypeLib 1.0 不含,不能盲调 |
|
||||
| `CLibServer::VerifyRCCells(int)` | CBB 研究计划中的内部 ABI 候选 | 只与 CBB Verify 相关,ABI 尚未验证,不能用于 Part Replace |
|
||||
|
||||
补充搜索范围:四个相关安装 bin 目录中的 91 个 PE 文件导出表,只找到两个 iCDB::String::Replace 字符串处理符号,没有发现设计替换导出。这个结果不能排除未导出内部函数、资源命令或其他版本能力。详细路径、符号和边界见 `2026-10-14-mentorpdf-native-interface-followup.md`。
|
||||
|
||||
另外,本轮用 7-Zip 成功解开本机 `automate.chm`、`viewdraw.chm`、`dxdesigner.chm`。`viewdraw/command/ccomp.htm`、`getst/Replacing_Components_.htm` 和 `refer2/HID_COMP_REPLACE.htm` 实际为跳转至 InfoHub 的占位页面,没有命令参数说明。安装 `docs` 只包含系统管理手册,没有找到对应的完整原理图命令参考。提取内容仅保存在忽略目录 `build/native-help-20261014`,没有提交厂商帮助内容。
|
||||
|
||||
## 建议的下一步
|
||||
|
||||
建议新增一个 **research-only `private_desktop_backend`**,不改变当前生产后端:
|
||||
|
||||
1. 先用可丢弃工程副本验证 `viewdraw.exe`/Viewdraw COM 是否能在私有 desktop 启动、打开单工程并通过 UID 选中;只读确认 COM 身份,不执行替换。
|
||||
2. 再验证原生 Replace Part 对话框能否通过窗口消息在私有 desktop 完成一次单 UID 替换。若依赖物理光标或真实输入,立即判定该路线不适合后台。
|
||||
3. 只有在目标选择、Library Wins、保存回读、未选中件保护和进程清理全部有证据后,才把它提升为可选后端。
|
||||
4. `icdbPartsLister.exe` 先做命令行 `--help`/版本和只读输出探针;如果没有稳定输入输出合同,就不接入库存采集。
|
||||
|
||||
当前推荐:保留 V1.1.0 的原生对话框后端作为现行写入路径;借鉴 CBB Verify 的私有 desktop、Job Object、PID 绑定和权威后置验证,先做独立探针,不把未证实候选接口接入正式替换流程。任务、位号计划和 Excel 继续由现有架构管理,后台适配只改变执行器。
|
||||
|
||||
已有串行调度、任务证据、输入冻结和保存回读不需要再重写。新增工作的重点是桌面隔离、自己启动的 CAD 进程身份、跨进程 COM 绑定以及对话框是否依赖真实输入。Job Object 强制回收也不能照搬为所有阶段的取消策略:在 CAD/iCDB 写入或保存期间,应先完成收尾或标记不确定,再决定清理,避免中断数据库写回。
|
||||
|
||||
证据等级:源码调用链为 A;安装文件名和 PE 字符串为 B;`icdbPartsLister`、`ccomp`、`ChangeComponentPreserveRefdes` 的实际语义和私有 desktop Replace Part 行为为 C,必须现场验证。
|
||||
@@ -0,0 +1,100 @@
|
||||
# MentorPDF 原生接口链路补充调研
|
||||
|
||||
后续 [2026-10-17 动态取证](2026-10-17-native-replacement-process-trace.md) 补充了实际替换进程树,并在实际加载的 `common/win32/lib/ICE70.dll` 中发现内部 `replaceSymbols` 导出;该目录不在下文原先四个 `bin` 目录的扫描范围内。导出存在已确认,运行时调用及可用替换语义仍待验证。
|
||||
|
||||
调研日期:2026-10-14。此次只读取 `mentor_PDF_output` 源码、本机 EE7.9.5 安装目录文件名/PE 字符串和已存在的 Viewdraw 脚本样例;没有启动 `sch2pdf`、`DxPDF`、DxDesigner,也没有附着 COM 或写入工程。
|
||||
|
||||
## MentorPDF 的实际原生链路
|
||||
|
||||
MentorPDF 不是 COM 自动化器,也没有向 Viewdraw 发送替换命令。它是一个 Python UI/CLI 外壳,发现并串行启动 Mentor 安装提供的独立 `sch2pdf.exe`:
|
||||
|
||||
- `src/mentor_pdf_export/engine.py:6-23` 从 `SDD_HOME` 或有限的 `CDEFG:\Mentor*` 路径寻找 `wv/win32/bin/sch2pdf.exe`。
|
||||
- `src/mentor_pdf_export/profiles.py:56-74` 只组装 `sch2pdf.exe -project <project> -a <pdf> -c <color>` 以及 `-p/-e/-i2s/-uAll/-udx/-l/-schematic` 选项;没有组件 UID、RefDes、料号或替换参数。
|
||||
- `src/mentor_pdf_export/engine.py:82-120,148-205` 用 Windows `CreateProcess`/Job Object 启动子进程,捕获 stdout/stderr,支持取消、超时和后台 iCDB 写回等待。Linux/非 Windows 才退回 `subprocess.Popen`。
|
||||
- `src/mentor_pdf_export/exporter.py:72-124,144-170` 在启动前保存源指纹和 `command.json`,原生输出先写 staging PDF,验证 PDF 和源工程指纹后再原子发布。
|
||||
- `src/mentor_pdf_export/workers.py:28-100` 用一个 `BatchWorker` 串行执行多个工程,禁止同一 `Exporter` 并行运行;每个项目有独立结果和可重试运行目录。
|
||||
- `src/mentor_pdf_export/scanner.py:34-65` 扫描 `.prj`,只读工程头部中的 `FrontEndSnapshot`、`iCDBDir`、`RootBlock`,拒绝链接和受保护目录。
|
||||
|
||||
因此可借鉴的是**原生进程适配器、批次队列、证据目录、源指纹与原子提交**,不能借鉴为替换 API。PDF 工具输入的是工程路径和打印参数,实际设计读取/数据库行为留给 `sch2pdf` 内部,源码没有提供“按位号选择组件”的可复用协议。
|
||||
|
||||
## 本机官方工具和候选
|
||||
|
||||
在 `D:\Mentor\7.9.5EE\SDD_HOME\wv\win32\bin` 中,受限检索得到三个相关可执行文件:
|
||||
|
||||
| 文件 | SHA-256 | 静态线索 | 判断 |
|
||||
| --- | --- | --- | --- |
|
||||
| `sch2pdf.exe` | `EF246E3AA2F1CD46BF41F1C89393EED362E8DC8540ADD49F489D9BDEED5A51A6` | PE 字符串含 `-project`、`Schematic`、`Component`、`RefDes`、`Part Number` | 原生 PDF 导出器;没有证据表明它接受替换/写入参数。 |
|
||||
| `DxPDF.exe` | `F9F7F63FE1C1C85004F020118775728CE6D407352CCA8008D25110504595F112` | PE 字符串含 `DxPDF (Version 4.00)`、`-project`、`CDxPdfMainDialog::setProjectFile`,依赖 `dxpdfgui70.dll` | GUI PDF 前端;没有发现替换接口。 |
|
||||
| `icdbPartsLister.exe` | `B227796564C59AAAF6DF19939A559DF1FF180C0E3D26173F043CC44B5919DA8D` | PE 字符串含 `Part Number`、`REFDES`、`cComp`、`Component`、`refdes` | 可能是只读部品/数据库列表器;静态字符串不能证明筛选、导出格式或写入能力,不能当替换后端。 |
|
||||
|
||||
安装目录的 Viewdraw 样例只有 `D:\Mentor\7.9.5EE\SDD_HOME\wv\samples\viewdraw\scripting\ToolbarButton.vbs`、`menu.vbs` 和 `readme.txt`。`ToolbarButton.vbs:30-34` 示例为 `Application.ExecuteCommand "component 74ls01"` 或 `ActiveView.ActiveBlock.AddComponentMoveMode`,语义是放置新元件,不是替换现有元件,也没有 `Library Wins` 或目标 RefDes 参数。安装样例没有 `ccomp`、`ReplacePart` 或 `Library Wins` 示例。
|
||||
|
||||
现有安装版 TypeLib 的真实成员仍以 `docs/research/v1.1.0-native-typelib-evidence.json` 为准:有 `ExecuteCommand`、`SelectComponent`、`Selected` 和 `ChangeComponentPreserveRefdes`,没有直接 `ReplacePart`。因此 MentorPDF 的独立进程模式不能绕过这一接口事实。
|
||||
|
||||
## 对 V1.1.0 的借鉴
|
||||
|
||||
可以把替换工具的单工程任务执行器做成类似 MentorPDF 的独立 backend runner:
|
||||
|
||||
```text
|
||||
task -> preflight/inventory -> frozen target UID set
|
||||
-> backend process/COM bridge
|
||||
-> before/after snapshot -> verify
|
||||
-> saved/reopened readback -> atomic evidence/result
|
||||
```
|
||||
|
||||
可直接借鉴的设计点:
|
||||
|
||||
1. 用 `request.json`、`command.json`、`stdout/stderr`、前后快照和 `result.json` 建立每任务证据目录(MentorPDF `exporter.py:120-165`)。
|
||||
2. 任务按工程串行执行,禁止同一原生工具并行(`exporter.py:72-78`、`workers.py:28-100`)。
|
||||
3. 子进程必须创建后立即纳入 Job Object,超时只终止本工具创建的进程树(`engine.py:82-120`)。
|
||||
4. 执行前后保存工程指纹;外部原生程序可能写 iCDB/log,即使可接受也必须单独标为 warning,不能伪称源工程字节不变(`exporter.py:120-152`、`docs/testing/2026-10-10-v032-native-policy.md:5-7,30-41`)。
|
||||
5. 输出/报告写到独立运行目录,成功结果才原子提交,失败/不确定保留证据(`exporter.py:122-170,186-213`)。
|
||||
|
||||
替换工具的差异是:替换会写设计,必须先做备份/冻结 UID,再验证未选中的同旧料号位号没有变化;不能照搬 MentorPDF “直接读取原工程”的策略。MentorPDF 的 `sch2pdf` 子进程也不适合作为替换代理,因为它的 CLI 合同没有组件选择或新料号字段,且其内部可能更新 iCDB。
|
||||
|
||||
## 建议的接口代理边界
|
||||
|
||||
为 V1.1.0 保留三个明确后端类别:
|
||||
|
||||
- `native_dialog_backend`:当前已实现的精确选中 + 原生 Replace Part 操作,仍需现场验证控件/完成观察;
|
||||
- `viewdraw_component_backend`:仅研究 `SelectComponent`、`ChangeComponentPreserveRefdes`,必须标记 `research_only`,不宣称 Library Wins;
|
||||
- `native_process_backend`:未来若发现带明确输入合同的官方替换 CLI,可借鉴 MentorPDF 的 Job Object/日志/证据框架接入。当前安装目录未发现该工具。
|
||||
|
||||
任何代理都必须接收 `project_path + sheet + target_uids + expected_old_part + new_part + evidence_dir`,在写入前核对工程指纹和选中集合;接口没有目标 UID、范围和库策略时不得自动扩大范围。`icdbPartsLister.exe` 只有在单独验证输出字段、只读性质和与当前工程身份绑定后,才可作为 inventory 辅助,不可直接成为 replacement backend。
|
||||
|
||||
## 证据等级
|
||||
|
||||
- **A:源码直接证据**:MentorPDF 的 `engine.py`、`profiles.py`、`exporter.py`、`workers.py`、`scanner.py` 调用链和行号。
|
||||
- **B:安装文件静态证据**:可执行文件名、哈希、PE 字符串、Viewdraw 样例脚本。只能证明存在和字符串/示例,不证明完整运行语义。
|
||||
- **C:待现场验证**:`icdbPartsLister.exe` 的实际输出协议、任何 `ccomp` 命令行为、`ChangeComponentPreserveRefdes` 的写入结果,以及未来版本可能存在的直接 `ReplacePart` API。
|
||||
|
||||
本报告没有运行任何官方工具,也没有把 PE 字符串或 MentorPDF 的导出命令解释成“支持按位号替换”的证据。
|
||||
|
||||
## 有界 PE 导出检索补充
|
||||
|
||||
为检查是否存在类似 `sch2pdf.exe` 的原生替换进程,我对以下已安装目录做了静态 PE 导出扫描,没有加载 DLL 或执行 EXE:
|
||||
|
||||
```text
|
||||
D:\Mentor\7.9.5EE\SDD_HOME\wv\win32\bin
|
||||
D:\Mentor\7.9.5EE\SDD_HOME\dx\win32\bin
|
||||
D:\Mentor\7.9.5EE\SDD_HOME\iCDB\win32\bin
|
||||
D:\Mentor\7.9.5EE\SDD_HOME\lm\win32\bin
|
||||
```
|
||||
|
||||
扫描了上述目录中 91 个 PE 文件(`.dll`/`.exe`),按导出名称筛选 `replace`、`ccomp`、`ChangeComponent`、`LibraryWins`、`Library_Wins`,结果只有两条内部 C++ 修饰导出:
|
||||
|
||||
```text
|
||||
iCDBNetLauncher.exe
|
||||
?Replace@String@iCDB@@QAE?AV12@ABV12@0ABV?$BitContainerT@W4ESearchParams@iCDB@@$00@2@@Z
|
||||
ordinal 4101, RVA 0x486e0
|
||||
|
||||
iCDBRSCMConfigurator.exe
|
||||
?Replace@String@iCDB@@QAE?AV12@ABV12@0ABV?$BitContainerT@W4ESearchParams@iCDB@@$00@2@@Z
|
||||
ordinal 4101, RVA 0x15ccc0
|
||||
```
|
||||
|
||||
这两个符号是 `iCDB::String::Replace` 风格的字符串/搜索参数函数,不是设计元件替换;导出对象是 EXE 而非稳定 SDK DLL,名称包含编译器修饰、C++ 类 ABI、内部类型和固定 ordinal,不能从外部安全调用。没有发现名称含 `ccomp`、`ChangeComponent`、`LibraryWins` 或设计 `ReplacePart` 的导出。这个阴性结果只覆盖上述四个目录的 PE 导出表,不能证明所有资源、未导出内部函数、脚本命令或其他安装版本不存在相关能力。
|
||||
|
||||
官方启动脚本也没有隐藏替换参数:`D:\Mentor\7.9.5EE\SDD_HOME\common\win32\bin\viewdraw.bat:1-14` 只收集 `%*` 并执行 `%SDD_START% ...\\viewdraw.exe %epdarglist%`;`icdbPartsLister.bat:1-14` 以同样方式执行 `icdbPartsLister.exe`。这些脚本提供进程环境/参数转发,不定义 `ccomp`、料号、位号或 Library Wins 合同。
|
||||
|
||||
因此,当前安装中没有静态证据显示存在可像 `sch2pdf` 一样、以独立 CLI/导出函数实现精确库料号替换的官方原生进程。后端仍应使用已知的 Viewdraw COM 选择能力加原生替换交互;任何内部 C++ 导出都应标为 `unsupported`,不应作为 V1.1.0 代理。
|
||||
@@ -0,0 +1,81 @@
|
||||
# 原生器件采集接入与替换接口续查
|
||||
|
||||
## 接入结果(开发版,未打包)
|
||||
|
||||
位号采集和 BOM 库存校验优先使用本机官方 `icdb2ascii.exe`,完整身份沿用现有工程、原理图、图页、UID、位号、旧料号和原 Value 模型。不构造假 UID,不修改模板或替换策略。
|
||||
|
||||
本机安装路径:`D:/Mentor/7.9.5EE/SDD_HOME/iCDB/win32/bin/icdb2ascii.exe`。程序从已安装 Designer 路径定位同套 iCDB 工具,不随应用分发厂商二进制。
|
||||
|
||||
```text
|
||||
icdb2ascii.exe -project=<临时 input.prj> -icdb=<临时 database>
|
||||
-snap=DxD -h -t -offline -file=<临时 output/scope.txt>
|
||||
```
|
||||
|
||||
不传 `-blks`,读取报告内的全部原理图块,包括不连通的块。验证报告是未筛选的 FREEFORM / HIER BLOCKS,且包含文本属性。逐器件读取真实 UID、图页及属性;引脚属性不能覆盖器件属性。筛选请求的旧料号后交给原计划校验、BOM 错误报告和缓存。
|
||||
|
||||
器件报告不枚举空图页,因此返回 `complete_sheet_manifest=False`。它可以缓存组件库存,但不能作为完整图页查询的缓存命中;完整图页枚举仍使用原 CAD 接口。
|
||||
|
||||
## 工程隔离、取消及回退
|
||||
|
||||
官方导出工具可能更新运行数据库。本实现先将 `.prj` 与 `database/icdb.dat` 复制到短路径临时目录,改写临时工程的数据库目录并清除专用服务器名称,不复制运行服务器地址文件。CLI 只访问副本,源工程与源数据库在调用前后核对 SHA256。
|
||||
|
||||
每次调用使用自有私有桌面及 Job,工具等待上限 30 秒,等待期间检查取消;确认进程和桌面释放后才解析结果或回退。工具缺失、不支持的工程/报告、超时或非零退出码在安全收尾后使用原 COM 采集。取消、源工程变化和清理不确定均阻断,不继续回退。
|
||||
|
||||
诊断保存在 `data/quick-run-history/native-inventory-*/native-inventory.json` 和对应 `output`,含状态、退出码、分段耗时、清理记录及原生输出。正常收尾删除临时数据库;清理不确定时保留副本和诊断。
|
||||
|
||||
运行前保存并关闭本次目标工程,避免采集到未保存编辑以外的磁盘状态。此后端不执行替换;替换前的目标核验、备份、Library Wins、属性恢复、保存及重开回读继续使用已有执行链。
|
||||
|
||||
## 两工程 BOM 实测
|
||||
|
||||
在已有测试工程的另一份副本中完成:创建两任务 → 导出默认同批模板 → 填入有效替换和一个不存在的位号 → 导入报错 → 修正后重导入 → 保存计划。
|
||||
|
||||
| 项目 | 结果 |
|
||||
| --- | --- |
|
||||
| 首次导入 | 5.281 秒;通过 2 行、失败 1 行;未保存预览 |
|
||||
| 修正后重导入 | 1.093 秒;通过 2 行、失败 0 行;保存成功 |
|
||||
| 工程一器件采集 | 1.360 秒,4 个目标位号;CLI 本身 0.891 秒 |
|
||||
| 工程二器件采集 | 0.797 秒,2 个目标位号;CLI 本身 0.734 秒 |
|
||||
| 工程路径长度 | 141、296 字符 |
|
||||
| 导入时启动 CAD | 无;两次均使用单个 `icdb2ascii`,未回退 COM |
|
||||
| 来源工程 | `.prj` 与 `icdb.dat` 哈希未变 |
|
||||
|
||||
本地证据:`build/native-cli-bom-offline-final-20261016/report.json`。这只是两个工程的数据,不能据此承诺 400 个工程或 400 条规则的吞吐量。重导入收益包含库存缓存,并非第二次完整 CLI 采集。
|
||||
|
||||
原生协议、运行监管、取消、超时、源身份变化、清理失败、图页缓存边界,以及原有 BOM/桌面隔离的针对性回归:128 项通过(26.52 秒)。只读复核另跑原生与缓存测试:56 项通过;未发现未解决的 P1/P2。
|
||||
|
||||
## 接入后实际替换回归
|
||||
|
||||
只执行上述长路径 Audio 副本:将 `RV05` 从 `4100-CA0000-T7` 替换到 `4100-CA0000-T0`,`RV11` 保持旧料号。任务完成 1 步、保存并重开核验 1 步、失败 0 步。独立 CLI 和另起 COM 会话读取的 UID、位号、料号及 Value 完全相同,来源工程哈希未变。
|
||||
|
||||
| 执行阶段 | 耗时 |
|
||||
| --- | --- |
|
||||
| 队列准备(包含原 COM 图页枚举与稳定性重读) | 186.393 秒 |
|
||||
| 工程备份 | 0.677 秒 |
|
||||
| 进度持久化 | 0.141 秒 |
|
||||
| 执行接口总耗时(包含上述阶段及 CAD 替换、重开核验、释放) | 372.219 秒 |
|
||||
|
||||
CLI 改进的是导入与组件采集;当前执行准备仍有多次 CAD 启动,执行耗时没有同等降低。后续可单独研究从精确位号计划建立执行页范围,不能在此直接取消原有工程稳定性与目标核验。
|
||||
|
||||
本轮关闭了 PartLabel 复制:旧 `RV05.Value=0R`,新库件的 Value 为空,最终仍为空;`RV11.Value=0R` 不变。原执行逻辑中的 `preserve` 指保留原生替换后的库件 Value,而不是保留旧器件 Value。初版探针错误地要求选中件 Value 不变,断言失败;补充独立 COM 读取及代码核对后修正测试预期,未修改生产策略,也未以 PartLabel 代填原生清单。
|
||||
|
||||
五个 CAD 私有桌面均有正常退出及释放记录,并通过另一个进程枚举桌面确认已消失。初版前台观察器因测试输出目录嵌套,未采集到自有进程句柄,因此不能宣称完成了整轮自有 PID 的独立前台跟踪;该限制保留在验证报告中。
|
||||
|
||||
本地证据:`build/native-cli-bom-offline-final-20261016/replacement-acceptance/verified-report.json`、`com-readback.json`,以及任务的 `events.jsonl`、`quick-run/private-desktop.json`。初版失败断言记录仍保留。
|
||||
|
||||
## 直接替换 CLI 续查
|
||||
|
||||
2026-10-17 补充:已实际跟踪替换时的进程树和模块加载,确认多进程辅助服务,并发现 DataBook ActiveX、中央库类型库及 `ICE70.dll` 的内部符号替换方法。见 [动态取证记录](2026-10-17-native-replacement-process-trace.md)。下文为前一轮的检索结论。
|
||||
|
||||
尚未找到本机 7.9.5 可验证的独立替换 CLI,不能把下面线索当作已可用的后端。
|
||||
|
||||
- `icdb2ascii`、`icdb2csv`、`icdb2bom`、`icdb2wir` 的本机帮助确认的是导出用途;`icdbPartsLister` 也只验证了清单导出。
|
||||
- `icscript.bat`、`mgcscript.bat` 是脚本启动/环境转发入口,脚本自身没有定义料号替换、位号范围或 Library Wins 参数合同。
|
||||
- 在自有桌面对 `viewdraw.exe --help` 做有界探针,未取得可用文本帮助;退出及桌面清理已确认。不能据此证明程序不存在其他命令行能力。
|
||||
- 再次离线读取本机 `viewdraw.tlb`:版本 1.0,SHA256 `09323c8940f1acf3f469d887dcfdf7bcd114164a29b01ebeb9a7f978fa1a0df7`,没有直接 `ReplacePart`。工作区版本 119.0 wrapper 的同名方法不能证明实装版本支持。
|
||||
- `viewdraw.exe` 中存在 `ccomp`、`Change Component`、`Preserve REFDES Value` 字符串;已有 TypeLib 包含 `ChangeComponentPreserveRefdes`。这些只证明内部线索,没有验证参数、目标范围、中央库、引脚网络及 Library Wins 语义。
|
||||
- 本机 CHM 中 `ccomp` 等页仍是跳转 InfoHub 的占位页。对安装样例及 `standard/ee_utils` 的脚本检索未找到可靠替换调用样例。
|
||||
- 公开搜索没有取得可复核的命令合同;Siemens 社区链接只返回动态通用页面,未获取正文,不能作为替换语义证据。
|
||||
|
||||
后续最有价值的方向仍是匹配本机版本的命令/API 手册,或在独立可丢弃工程验证 `ccomp` / `ChangeComponentPreserveRefdes` 的实际语义。在这些证据齐备前,保留当前已验证的原生对话框替换链。
|
||||
|
||||
相关证据:`build/native-replacement-cli-20261016/`、`build/native-cli-integration-20261016/current-capabilities.json`;厂商帮助内容和工程数据库不加入 Git。
|
||||
@@ -0,0 +1,61 @@
|
||||
# 原生器件清单 CLI:首次运行验证
|
||||
|
||||
后续已找到能同时导出 UID 与器件属性的 `icdb2ascii.exe`,并接入开发版正式采集入口。见 [接入与验证记录](2026-10-16-native-cli-integration.md)。下文保留 PartsLister 首次探查结论,不能代表后续后端仍受同样限制。
|
||||
|
||||
本次针对大量工程首次 BOM 校验的耗时,继续验证此前仅有静态线索的 `icdbPartsLister.exe`。没有修改正式导入/替换流程,没有打包;所有原生调用在自建私有桌面和 Job 中运行,只使用既有测试工程的另一份副本。
|
||||
|
||||
## 已验证的命令入口
|
||||
|
||||
安装文件:`D:/Mentor/7.9.5EE/SDD_HOME/wv/win32/bin/icdbPartsLister.exe`。
|
||||
|
||||
`--help` 不是它支持的参数,实际返回码为 1,报 Unknown command,同时打印了完整选项:
|
||||
|
||||
```text
|
||||
[-p|-prj]=file.prj project file (with path)
|
||||
[-b|-board]=name board name
|
||||
[-s|-block]=name block name
|
||||
[-a|-architecture]=name architecture name
|
||||
[-f|-function]=name function name
|
||||
[-c|-cfg]=file.ipl configuration file
|
||||
[-o|-out]=file output file
|
||||
[-v|-variant]=name variant name
|
||||
[-l|-level]=name custom LEVEL value
|
||||
```
|
||||
|
||||
因此这里不是一次成功的 help 请求,而是由程序自己的参数错误输出确认调用格式。随后以正确参数完成两次真实导出,退出码均为 0:
|
||||
|
||||
```text
|
||||
icdbPartsLister.exe "-prj=<project.prj>" "-block=<root_block>" "-cfg=<config.ipl>" "-out=<output.txt>"
|
||||
```
|
||||
|
||||
安装自带 `standard/PartListerDefaults.ipl` 为 XML 配置。默认按料号合并且按列宽换行,位号可能压缩成区间,不能直接当成逐器件输入。
|
||||
|
||||
## 单工程结果
|
||||
|
||||
工程为此前已完成真实 COM 库存核对的测试副本,根块为 `1000_PHY`。
|
||||
|
||||
| 调用 | 结果 | 进程等待及调用阶段耗时 |
|
||||
| --- | --- | --- |
|
||||
| 默认 IPL 导出 | 料号、Value、位号和数量,存在合并/换行 | 3.125 秒 |
|
||||
| 自定义 IPL 导出 | 93 行器件记录,完整位号、料号、Value | 8.671 秒 |
|
||||
|
||||
自定义 IPL 使用 PLAIN 输出,关闭列宽限制,用 `|` 分隔,以 `Ref Designator` 为 PRIMARY,属性列设为 FULL。与既有 COM 快照的 5 个已知目标逐一比对:位号唯一、料号和 Value 全部一致。该比对仅覆盖这 5 个目标,没有宣称核验了全部 93 行、多图页或层级重名场景。
|
||||
|
||||
作为耗时参照,同日 QApplication/QThreadPool 中的完整 CAD 启动、工程读取、正常退出与桌面释放用了 56.89 秒,其中启动约 34.89 秒。两种调用的数据字段和生命周期不同,这不是等价的批量性能测试;不能据单工程结果承诺 400 工程吞吐量。
|
||||
|
||||
## 尚不能替代正式库存的原因
|
||||
|
||||
- 尝试把 `UID` 作为普通属性列导出,93 行均为空。这只证明该属性名写法无效,不能据此断言原生工具完全不支持 UID。
|
||||
- 尚未验证图页身份、层级实例、同名位号、多单元器件、排除项、变体、长路径及异常后的逐工程恢复。
|
||||
- CLI 会更新测试工程的 `database/icdb.dat` 以及数据库、CES 运行日志;不能称为对工程字节严格只读。来源测试副本未被调用,首次探针确认其哈希未变。
|
||||
- 两次导出的自有 Job/进程及私有桌面均正常释放。没有执行器件替换。
|
||||
|
||||
## 对后续架构的意义
|
||||
|
||||
现在已确认存在能独立调用的本机原生器件清单 CLI,证据强于此前的静态字符串。它适合继续研究作为 BOM 快速预检与清单来源;尚未确认可输出精确目标所需的完整身份,因此还不能直接替换正式库存采集。
|
||||
|
||||
可考虑:Excel 本地导入与格式预检 → 仅对有效行涉及的工程调用原生清单工具 → 报告料号/位号匹配结果 → 执行前通过受控 COM 冻结并核验 UID/图页身份。候选 CLI 与现有缓存、指纹规则的衔接还需设计,不能把数据库发生变化后的旧快照视为永久有效。
|
||||
|
||||
这不是原生替换 CLI,也没有证据改变此前关于当前安装版没有已确认直接 ReplacePart 接口的结论。
|
||||
|
||||
本地证据:`build/native-cli-inventory-20261016/` 下的 `help-result.json`、`export-result.json`、`fields-result.json`、`comparison-result.json` 与输出文件。厂商帮助、IPL 原件和工程内容均未加入 Git。
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"source_hashes_unchanged": true,
|
||||
"cases": [
|
||||
{
|
||||
"case": "add-part-plain",
|
||||
"error": "com_error(-2147352567, '发生意外。', (6055, 'DxDesigner', 'Symbol RESISTOR:res01.1 not found, empty or a block.', None, 0, 0), None)",
|
||||
"returned": null,
|
||||
"changed_count": 0,
|
||||
"dialogs": [],
|
||||
"call_seconds": null,
|
||||
"changed_refdes": []
|
||||
},
|
||||
{
|
||||
"case": "add-part-qualified",
|
||||
"error": "com_error(-2147352567, '发生意外。', (6055, 'DxDesigner', 'Symbol RESISTOR:skyworth:res01.1 not found, empty or a block.', None, 0, 0), None)",
|
||||
"returned": null,
|
||||
"changed_count": 0,
|
||||
"dialogs": [],
|
||||
"call_seconds": null,
|
||||
"changed_refdes": []
|
||||
},
|
||||
{
|
||||
"case": "add-part-full",
|
||||
"error": null,
|
||||
"returned": null,
|
||||
"changed_count": 1,
|
||||
"dialogs": [],
|
||||
"call_seconds": 0.9060000000026776,
|
||||
"changed_refdes": [],
|
||||
"native_part_created": {
|
||||
"uid": "$2I2277",
|
||||
"refdes": "R?",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "",
|
||||
"cell": "RESC1608N",
|
||||
"location": [
|
||||
5000,
|
||||
5000
|
||||
],
|
||||
"orientation": 0,
|
||||
"name_query_result": "$2I2277"
|
||||
}
|
||||
},
|
||||
{
|
||||
"case": "change-uid-symbol",
|
||||
"error": "com_error(-2147352567, '发生意外。', (1186, 'DxDesigner', 'No components found to change', None, 0, 0), None)",
|
||||
"returned": null,
|
||||
"changed_count": 0,
|
||||
"dialogs": [],
|
||||
"call_seconds": null,
|
||||
"changed_refdes": []
|
||||
},
|
||||
{
|
||||
"case": "change-uid-part",
|
||||
"error": "com_error(-2147352567, '发生意外。', (1186, 'DxDesigner', 'No components found to change', None, 0, 0), None)",
|
||||
"returned": null,
|
||||
"changed_count": 0,
|
||||
"dialogs": [],
|
||||
"call_seconds": null,
|
||||
"changed_refdes": []
|
||||
},
|
||||
{
|
||||
"case": "change-symbol-qualified",
|
||||
"error": null,
|
||||
"returned": true,
|
||||
"changed_count": 19,
|
||||
"dialogs": [],
|
||||
"call_seconds": 2.8439999999973224,
|
||||
"changed_refdes": [
|
||||
"RV19",
|
||||
"RV08",
|
||||
"RV16",
|
||||
"RV05",
|
||||
"RV02",
|
||||
"RV11",
|
||||
"RV09",
|
||||
"RV03",
|
||||
"RV13",
|
||||
"RV12",
|
||||
"RV06",
|
||||
"RV07",
|
||||
"RV17",
|
||||
"RV10",
|
||||
"RV14",
|
||||
"RV04",
|
||||
"RV15",
|
||||
"RV18",
|
||||
"RV01"
|
||||
]
|
||||
},
|
||||
{
|
||||
"case": "ccomp-symbol",
|
||||
"error": null,
|
||||
"returned": false,
|
||||
"changed_count": 0,
|
||||
"dialogs": [
|
||||
{
|
||||
"title": "Change Component",
|
||||
"text": [
|
||||
"自定义 2",
|
||||
"确定(&O)",
|
||||
"取消(&C)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"call_seconds": 0.15600000000267755,
|
||||
"changed_refdes": []
|
||||
},
|
||||
{
|
||||
"case": "ccomp-part",
|
||||
"error": null,
|
||||
"returned": false,
|
||||
"changed_count": 0,
|
||||
"dialogs": [
|
||||
{
|
||||
"title": "Change Component",
|
||||
"text": [
|
||||
"自定义 2",
|
||||
"确定(&O)",
|
||||
"取消(&C)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"call_seconds": 0.375,
|
||||
"changed_refdes": []
|
||||
}
|
||||
],
|
||||
"notes": [
|
||||
"name_query_result is an instance-name query from the initial probe, not a library-symbol identity.",
|
||||
"ChangeComponentPreserveRefdes was tested with only RV05 selected, but changed 19 same-symbol page components."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,358 @@
|
||||
{
|
||||
"research_only": true,
|
||||
"production_backend_changed": false,
|
||||
"native_query": {
|
||||
"dll": "PartsDB40.dll",
|
||||
"sha256": "f24d44eaa13f28550317711df6a6241e227ae56805baa73c8f3020bde513ad0d",
|
||||
"bitness": 32,
|
||||
"factory_calling_convention": "cdecl, HRESULT(void**)",
|
||||
"member_calling_convention": "stdcall, explicit interface pointer first",
|
||||
"loader_mode": 0,
|
||||
"queries": [
|
||||
{
|
||||
"part": "4100-CA0000-T0",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.29699999999138527,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"requested": "4100-CA0000-T0",
|
||||
"matches": [
|
||||
{
|
||||
"index": 1783,
|
||||
"number": "4100-CA0000-T0",
|
||||
"name": "RESC1608N",
|
||||
"label": "0R",
|
||||
"symbols_hr": 0,
|
||||
"symbols": [
|
||||
"skyworth:res01"
|
||||
]
|
||||
}
|
||||
],
|
||||
"enumerated": 1021,
|
||||
"last_hr": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"part": "DX_RESEARCH_PART_DOES_NOT_EXIST",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.32800000000861473,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"requested": "DX_RESEARCH_PART_DOES_NOT_EXIST",
|
||||
"matches": [],
|
||||
"enumerated": 1021,
|
||||
"last_hr": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"part": "4300-CC1040-7100",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.3129999999946449,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"requested": "4300-CC1040-7100",
|
||||
"matches": [
|
||||
{
|
||||
"index": 1336,
|
||||
"number": "4300-CC1040-7100",
|
||||
"name": "CAPC0603X30N",
|
||||
"label": "C/100NF/16V +/-10% X5R",
|
||||
"symbols_hr": 0,
|
||||
"symbols": [
|
||||
"skyworth:cap01"
|
||||
]
|
||||
}
|
||||
],
|
||||
"enumerated": 885,
|
||||
"last_hr": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"part": "中文料号测试",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.375,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"requested": "中文料号测试",
|
||||
"matches": [],
|
||||
"enumerated": 1021,
|
||||
"last_hr": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"initial_query_samples": [
|
||||
{
|
||||
"part": "4100-CA0000-T0",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.3129999999946449,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"matches": [
|
||||
{
|
||||
"index": 1783,
|
||||
"number": "4100-CA0000-T0",
|
||||
"name": "RESC1608N",
|
||||
"label": "0R",
|
||||
"symbols_hr": 0,
|
||||
"symbols": [
|
||||
"skyworth:res01"
|
||||
]
|
||||
}
|
||||
],
|
||||
"enumerated": 1021,
|
||||
"last_hr": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"part": "DX_RESEARCH_PART_DOES_NOT_EXIST",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.35899999999674037,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"matches": [],
|
||||
"enumerated": 1021,
|
||||
"last_hr": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"part": "4300-CC1040-7100",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.39100000000325963,
|
||||
"copy_database_unchanged": true,
|
||||
"result": {
|
||||
"matches": [
|
||||
{
|
||||
"index": 1336,
|
||||
"number": "4300-CC1040-7100",
|
||||
"name": "CAPC0603X30N",
|
||||
"label": "C/100NF/16V +/-10% X5R",
|
||||
"symbols_hr": 0,
|
||||
"symbols": [
|
||||
"skyworth:cap01"
|
||||
]
|
||||
}
|
||||
],
|
||||
"enumerated": 885,
|
||||
"last_hr": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"negative_module_test": {
|
||||
"exit_code": 2,
|
||||
"rejected_missing_module": true,
|
||||
"result": {
|
||||
"load_error": 126
|
||||
}
|
||||
},
|
||||
"source": "tools/research/native_parts_query.cpp",
|
||||
"source_sha256": "01da76c3101461687e514dc30694cace634e81487b56b571fe9ea7ca4e163caf",
|
||||
"reviewed_fixes": [
|
||||
"Propagate metadata HRESULT failures and validate symbol pointer/count.",
|
||||
"Encode native ANSI metadata to UTF-8, releasing enum/database/module through RAII.",
|
||||
"Assert runner exit status, PDB copy hashes, parsed JSON and expected query data."
|
||||
],
|
||||
"encoding_scope": "Chinese requested-name roundtrip passed; actual non-ASCII PDB metadata code-page assumption is not independently certified."
|
||||
},
|
||||
"installed_list_cli": {
|
||||
"exe": "ListWGLib.exe",
|
||||
"arguments": "<library-copy.lmc> PDB <output.txt>",
|
||||
"exit_code": 0,
|
||||
"catalog_rows": 9436,
|
||||
"partitions": 20,
|
||||
"source_hashes_unchanged": true
|
||||
},
|
||||
"replacement": {
|
||||
"scope": "Audio test copy; same skyworth:res01 symbol; one gate; matching per-label pin-number map",
|
||||
"verified": true,
|
||||
"source_hashes_unchanged": true,
|
||||
"changed_refdes": [
|
||||
"RV05",
|
||||
"RV14",
|
||||
"RV02"
|
||||
],
|
||||
"readback": {
|
||||
"RV02": {
|
||||
"uid": "$2I1428",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "2.2K"
|
||||
},
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
}
|
||||
},
|
||||
"geometry_before": {
|
||||
"RV02": {
|
||||
"location": [
|
||||
1090,
|
||||
1490
|
||||
],
|
||||
"orientation": 3,
|
||||
"scale": 1.0
|
||||
},
|
||||
"RV14": {
|
||||
"location": [
|
||||
1540,
|
||||
1000
|
||||
],
|
||||
"orientation": 1,
|
||||
"scale": 1.0
|
||||
},
|
||||
"RV05": {
|
||||
"location": [
|
||||
1230,
|
||||
1320
|
||||
],
|
||||
"orientation": 0,
|
||||
"scale": 1.0
|
||||
}
|
||||
},
|
||||
"attribute_styles_saved_and_reopened_verified": true,
|
||||
"target_pin_connections_saved_and_reopened_verified": true,
|
||||
"graph_comparison": {
|
||||
"hier": {
|
||||
"verified": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"unchanged_components": 54,
|
||||
"rv05_exactly_matches_native_gui": true,
|
||||
"other_targets_change_only_expected_material_value_and_base_pin_fields": true,
|
||||
"all_connections_match_native_baseline": true
|
||||
},
|
||||
"flat": {
|
||||
"verified": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"unchanged_components": 54,
|
||||
"rv05_exactly_matches_native_gui": true,
|
||||
"other_targets_change_only_expected_material_value_and_base_pin_fields": true,
|
||||
"all_connections_match_native_baseline": true
|
||||
}
|
||||
},
|
||||
"worker_phase_seconds": [
|
||||
{
|
||||
"phase": "open",
|
||||
"seconds": 44.187
|
||||
},
|
||||
{
|
||||
"phase": "validate_native_library_metadata",
|
||||
"seconds": 0.11
|
||||
},
|
||||
{
|
||||
"phase": "create_target_template",
|
||||
"seconds": 16.797
|
||||
},
|
||||
{
|
||||
"phase": "replace_selected_in_place",
|
||||
"seconds": 14.625
|
||||
},
|
||||
{
|
||||
"phase": "synchronize_pin_properties",
|
||||
"seconds": 10.172
|
||||
},
|
||||
{
|
||||
"phase": "delete_template_and_verify",
|
||||
"seconds": 11.031
|
||||
},
|
||||
{
|
||||
"phase": "save_close",
|
||||
"seconds": 3.875
|
||||
},
|
||||
{
|
||||
"phase": "reopen_and_verify",
|
||||
"seconds": 38.922
|
||||
}
|
||||
],
|
||||
"cad_startup_seconds": 66.89100000000326,
|
||||
"cad_exit_code": 0,
|
||||
"quit_helper_exit_code": 0,
|
||||
"cleanup": {
|
||||
"desktop": "dx-f1e65335ec1a4b369275b1a4d73d1db0",
|
||||
"processes": [
|
||||
{
|
||||
"pid": 48148,
|
||||
"job_active_processes": 0,
|
||||
"exit_code": 0,
|
||||
"descendant_pids": [],
|
||||
"unconfirmed_descendant_handles": 0,
|
||||
"process_handle_closed": true,
|
||||
"job_handle_closed": true,
|
||||
"errors": []
|
||||
},
|
||||
{
|
||||
"pid": 32732,
|
||||
"job_active_processes": 0,
|
||||
"exit_code": 0,
|
||||
"descendant_pids": [],
|
||||
"unconfirmed_descendant_handles": 0,
|
||||
"process_handle_closed": true,
|
||||
"job_handle_closed": true,
|
||||
"errors": []
|
||||
},
|
||||
{
|
||||
"pid": 50964,
|
||||
"job_active_processes": 0,
|
||||
"exit_code": 0,
|
||||
"descendant_pids": [],
|
||||
"unconfirmed_descendant_handles": 0,
|
||||
"process_handle_closed": true,
|
||||
"job_handle_closed": true,
|
||||
"errors": []
|
||||
},
|
||||
{
|
||||
"pid": 50144,
|
||||
"job_active_processes": 0,
|
||||
"exit_code": 0,
|
||||
"descendant_pids": [
|
||||
42508
|
||||
],
|
||||
"unconfirmed_descendant_handles": 0,
|
||||
"process_handle_closed": true,
|
||||
"job_handle_closed": true,
|
||||
"errors": []
|
||||
}
|
||||
],
|
||||
"desktop_handle_closed": true,
|
||||
"desktop_confirmation": {
|
||||
"desktop": "dx-f1e65335ec1a4b369275b1a4d73d1db0",
|
||||
"released": true,
|
||||
"elapsed_seconds": 0.014999999999417923,
|
||||
"budget_seconds": 5.0,
|
||||
"caller_pid": 50324,
|
||||
"caller_thread_id": 46800
|
||||
},
|
||||
"errors": []
|
||||
},
|
||||
"clean": true,
|
||||
"cleanup_errors": []
|
||||
},
|
||||
"limitations": [
|
||||
"RV05 has an exact GUI baseline; RV14/RV02 have expected-field and topology checks, not separate full GUI baselines.",
|
||||
"Packager/PCB synchronization was not executed.",
|
||||
"No arbitrary-symbol, multi-gate, hierarchy-occurrence, multi-project, cancellation or production throughput claim.",
|
||||
"The existing hierarchical inventory misses some instance overrides; this must be handled before promoting the new backend."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
{
|
||||
"date": "2026-10-17",
|
||||
"scope": "Research probes only; no production backend change",
|
||||
"registered_classes": [
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "DxDbSearch",
|
||||
"clsid": "{7D295F82-86B7-4199-89BF-F16D432731EE}",
|
||||
"registry": {
|
||||
"InprocServer32": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\dxdatabook.ocx",
|
||||
"ProgID": "DxDataBook.AddinCtrl.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "SearchWnd",
|
||||
"clsid": "{5E02EA46-981F-413A-A976-2807CE734661}",
|
||||
"registry": {}
|
||||
},
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "TreeRoot",
|
||||
"clsid": "{60BC62D3-4A75-43D6-A07D-1D6982A52FD3}",
|
||||
"registry": {}
|
||||
},
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "TreeLibraryNode",
|
||||
"clsid": "{DFE283B6-4296-4030-B3A9-806B492526D4}",
|
||||
"registry": {}
|
||||
},
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "SymbolWnd",
|
||||
"clsid": "{B6AB18AD-0BD7-4F72-86DF-8898DEF4A61B}",
|
||||
"registry": {}
|
||||
},
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "Search",
|
||||
"clsid": "{0673DF93-F981-4795-A0FB-0E638D1E40C1}",
|
||||
"registry": {}
|
||||
},
|
||||
{
|
||||
"module": "dxdatabook.ocx",
|
||||
"class": "SearchData",
|
||||
"clsid": "{2AF5C98B-F140-4781-94AE-5D7B9542DBCB}",
|
||||
"registry": {}
|
||||
},
|
||||
{
|
||||
"module": "CentralLibSvr.dll",
|
||||
"class": "LibPart",
|
||||
"clsid": "{91F63192-E31C-4634-A22A-7C5D75BF7D25}",
|
||||
"registry": {
|
||||
"InprocServer32": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\CentralLibSvr.dll",
|
||||
"ProgID": "CentralLibSvr.LibPart.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"module": "CentralLibSvr.dll",
|
||||
"class": "PinMap",
|
||||
"clsid": "{A2A0076F-5A52-4B7B-9299-FFEE783FE9CD}",
|
||||
"registry": {
|
||||
"InprocServer32": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\CentralLibSvr.dll",
|
||||
"ProgID": "CentralLibSvr.PinMap.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"module": "CentralLibSvr.dll",
|
||||
"class": "PinMaps",
|
||||
"clsid": "{CBEF1EE2-B5F0-4388-B81C-B1F6778DAD72}",
|
||||
"registry": {
|
||||
"InprocServer32": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\CentralLibSvr.dll",
|
||||
"ProgID": "CentralLibSvr.PinMaps.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"module": "CentralLibSvr.dll",
|
||||
"class": "ExpProjEditor",
|
||||
"clsid": "{37CB51B8-7705-47B3-81CA-B26284D59B92}",
|
||||
"registry": {
|
||||
"InprocServer32": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\CentralLibSvr.dll",
|
||||
"ProgID": "CentralLibSvr.ExpProjEditor.1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"vendor_cli_com_calls": [
|
||||
{
|
||||
"host": "icscript",
|
||||
"seconds": 1.1720000000059372,
|
||||
"exit_code": 0,
|
||||
"output": "PART=4100-CA0000-T0\nHAS_PINS=1\nMAP_COUNT=2\n",
|
||||
"desktop_released": true
|
||||
},
|
||||
{
|
||||
"host": "mgcscript",
|
||||
"seconds": 0.8439999999973224,
|
||||
"exit_code": 0,
|
||||
"output": "PART=4100-CA0000-T0\nHAS_PINS=1\nMAP_COUNT=2\n",
|
||||
"desktop_released": true
|
||||
}
|
||||
],
|
||||
"standard_cscript_output": "PART=4100-CA0000-T0\r\nLIBRARY=F:\\Sync Tool Skyworth\\Work Maps\\Skyworth_CBB_Lib\\Mentor_lib_EE7.9\\mentor_lib.lmc\r\nHAS_PINS=1\r\nMAP_COUNT=skyworth:res01:2\r\nPIN=1:1\r\nPIN=2:2\r\nMAP_COUNT=skyworth:res01.1:0\r\nMAP_COUNT=res01:0\r\n",
|
||||
"queried_symbol": "skyworth:res01",
|
||||
"slot": 1,
|
||||
"library_hash_unchanged": true,
|
||||
"invalid_part_control": {
|
||||
"result": "4100-CA0000-T0 ERROR=0 HAS_PINS=1\nDX_RESEARCH_PART_DOES_NOT_EXIST ERROR=0 HAS_PINS=1\n",
|
||||
"HasPins_is_part_existence_check": false
|
||||
},
|
||||
"breakpoint_control": {
|
||||
"self_test_verified": true,
|
||||
"symbol": "KernelBase!GetCurrentProcessId",
|
||||
"original_byte_and_EIP_restored": true
|
||||
},
|
||||
"replacement_breakpoint": {
|
||||
"module": "ICE70.dll",
|
||||
"export_rva": "0x17c800",
|
||||
"armed_events": [
|
||||
{
|
||||
"pid": 44384,
|
||||
"address": "0x215c800",
|
||||
"seconds": 7.062999999994645
|
||||
},
|
||||
{
|
||||
"pid": 44384,
|
||||
"address": "0x413c800",
|
||||
"seconds": 8.89100000000326
|
||||
}
|
||||
],
|
||||
"hit_events": 0,
|
||||
"map_check": [
|
||||
{
|
||||
"address": "0x215c800",
|
||||
"mapped_file": "\\Device\\HarddiskVolume6\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\BusContents.dll"
|
||||
},
|
||||
{
|
||||
"address": "0x413c800",
|
||||
"mapped_file": "\\Device\\HarddiskVolume6\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\ICE70.dll"
|
||||
}
|
||||
],
|
||||
"export_thunk": {
|
||||
"export_rva": "0x17c800",
|
||||
"bytes": "8b4904e978f5ffff",
|
||||
"disassembly": [
|
||||
"mov ecx, [ecx+4]",
|
||||
"jmp 0x17bd80"
|
||||
],
|
||||
"direct_jump_target_rva": "0x17bd80",
|
||||
"target_breakpoint_tested": false
|
||||
},
|
||||
"scope_note": "Same skyworth:res01 symbol, different part number; no conclusion about internal implementation or other replacement modes.",
|
||||
"debug_events": 7021,
|
||||
"workload_verified": true,
|
||||
"source_hashes_unchanged": true,
|
||||
"CAD_exited": {
|
||||
"44384": true
|
||||
},
|
||||
"desktops_absent": {
|
||||
"dx-da8f3b8af97d49fdad9a1a7e2ef6c184": true
|
||||
}
|
||||
},
|
||||
"artifacts": {
|
||||
"build\\internal-module-script-hosts-20261017\\report.json": "48c3cc5ef088b1a3d9cc0473937d7876d9d23af41c6f0bb27024a0ce7166353c",
|
||||
"build\\internal-module-script-hosts-20261017\\vendor-cli-com-report.json": "dea9f29a6d655c4a1de5b22ea16595df348f8850931d1774bab47375dc018208",
|
||||
"build\\internal-module-script-hosts-20261017\\part-validation\\report.json": "e986071ad3e1974c5bc79788f97c6a863b59495263121a6f072c921b0fad7a83",
|
||||
"build\\native-internal-breakpoint-20261017\\debug-events.jsonl": "a46fa61692b1e4f548973d91285d549a3f7e446d7ef5e02a995dbc7c42431f51",
|
||||
"build\\native-internal-breakpoint-20261017\\debug-summary.json": "0069eeeb9da8318c01fbad93979614e65b28cf34762432be030aefd4902c407c",
|
||||
"build\\native-internal-breakpoint-20261017\\workload-report.json": "00f81cd84ae3607f743e455eae4a5914ae4be5819135c46d4d5b1f8909f96871",
|
||||
"build\\debug_internal_replace.py": "a3237db7b915a8650f043188d9a9c2d231fa558fa8b8a0ae0feff6d808965316",
|
||||
"build\\oneshot_native_breakpoint.py": "67a0c7253d9507b5598337e9e0f69aec4cdba0872b24f27bdd725734a1cb3e38"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
# 内部模块能否通过 CLI 调用
|
||||
|
||||
已验证本机存在可工作的 **厂商脚本 CLI → VBS → 内部 COM DLL** 调用链。当前跑通的是指定符号的库引脚映射查询,尚未取得可直接完成精确料号替换的调用合同。
|
||||
|
||||
## 已跑通的入口
|
||||
|
||||
安装的两个脚本宿主都支持并实际执行了 VBS:
|
||||
|
||||
```text
|
||||
D:\Mentor\7.9.5EE\SDD_HOME\wv\win32\bin\icscript.exe "<library-query.vbs>"
|
||||
D:\Mentor\7.9.5EE\SDD_HOME\common\win32\_bin\mgcscript.exe "<library-query.vbs>"
|
||||
```
|
||||
|
||||
脚本的核心调用为:
|
||||
|
||||
```vbscript
|
||||
Set part = CreateObject("CentralLibSvr.LibPart.1")
|
||||
part.CentralLibraryPath = "<中央库完整路径.lmc>"
|
||||
part.PartNumber = "4100-CA0000-T0"
|
||||
Set maps = part.PinMaps("skyworth:res01", 1)
|
||||
```
|
||||
|
||||
脚本通过 FSO 把查询结果写到任务输出目录,不依赖厂商脚本宿主提供 `WScript.Echo`。测试环境设置了 `SDD_HOME`、`SDD_PLATFORM=win32`,并把本套安装的 `common/win32/lib`、`common/win32/bin` 加入该子进程的 PATH;没有修改用户环境变量。
|
||||
|
||||
| 实际宿主 | 退出码 | 完整启动、查询与收尾耗时 | 结果 |
|
||||
| --- | ---: | ---: | --- |
|
||||
| `icscript.exe` | 0 | 1.172 秒 | 指定符号返回 2 个引脚映射 |
|
||||
| `mgcscript.exe` | 0 | 0.844 秒 | 指定符号返回 2 个引脚映射 |
|
||||
| 32 位 `cscript.exe` | 0 | 1.016 秒 | 同一 COM 类可创建,读取映射 `1→1`、`2→2` |
|
||||
|
||||
它们不需要启动 CAD。本次每个调用都在自有私有桌面与 Job 中运行,15 秒有界等待;本轮均正常退出并释放。两个厂商宿主查询前后的中央库 `.lmc` SHA256 未变。
|
||||
|
||||
同一个库对象中,`PinMaps("skyworth:res01", 1)` 返回 2 项;`skyworth:res01.1` 和 `res01` 返回 0 项。这说明已经验证的名称合同是带分区、不带 `.1` 的形式,不能混用。
|
||||
|
||||
**这还不是料号存在性校验。** 独立对照发现,合法料号和不存在的 `DX_RESEARCH_PART_DOES_NOT_EXIST` 都得到 `HasPins=1` 且无错误;`PartNumber` 的回读也不能排除只是返回刚设置的属性。不能用它替代 DataBook 的精确料号匹配。这里确认的是 COM 调用和指定符号的引脚映射读取。
|
||||
|
||||
## 注册的内部 COM 类
|
||||
|
||||
32 位注册表与文件内类型库一致,关键类为:
|
||||
|
||||
| 模块 | ProgID | 已确认的暴露方式 |
|
||||
| --- | --- | --- |
|
||||
| `dxdatabook.ocx` | `DxDataBook.AddinCtrl.1` | 进程内 ActiveX;本轮只检查注册与接口,未独立实例化运行中的 CAD 控件 |
|
||||
| `CentralLibSvr.dll` | `CentralLibSvr.LibPart.1` | 进程内 COM;上述脚本已实际调用 |
|
||||
| `CentralLibSvr.dll` | `CentralLibSvr.PinMaps.1`、`CentralLibSvr.PinMap.1` | 注册的映射对象;本轮从 LibPart 的返回对象读取 |
|
||||
| `CentralLibSvr.dll` | `CentralLibSvr.ExpProjEditor.1` | 注册的工程编辑器对象;未调用其打开工程方法 |
|
||||
|
||||
这些类使用 `InprocServer32`,不是各自带参数的替换 EXE。可以用支持对应位数的脚本宿主封装调用;本机 32 位 `cscript.exe` 的路径是 `C:\Windows\SysWOW64\cscript.exe`。普通 `rundll32` 的回调合同与内部 COM / C++ 方法不同,不能据 DLL 导出存在就直接调用。
|
||||
|
||||
## 对替换核心候选的断点验证
|
||||
|
||||
针对上一轮发现的 `ICE70!CICEController::replaceSymbols`,在新的可丢弃工程副本上设置一次性导出入口断点。先在独立 32 位 PowerShell 测试进程中显式调用 `KernelBase!GetCurrentProcessId`,验证断点命中、读取寄存器、恢复原指令字节及 EIP、继续执行并正常退出。该控制探针验证通过后才用于 CAD。
|
||||
|
||||
本轮 CAD 验证完成:`RV05` 从 `4100-CA0000-T7` 换为 `4100-CA0000-T0`,`RV11` 保持旧料号;开启 PartLabel 复制,两者 Value 均为 `0R`。保存、重开核验、独立磁盘读回均通过,来源工程哈希不变,CAD 和私有桌面均已释放。调试器记录 7,021 个事件,所有跟踪进程正常退出。
|
||||
|
||||
**导出入口的断点命中次数为 0。** 运行中对地址映射做了补充检查:临时加载的第一处 ICE 地址后来已被 `BusContents.dll` 使用;当前有效 ICE 映射仍保留所设断点。因此不能把临时模块地址当作始终有效的调用地址。
|
||||
|
||||
还有两个必须保留的范围限制:
|
||||
|
||||
- 此次新旧料号使用相同的 `skyworth:res01` 符号,不能推断更换不同符号时也不经过该入口。
|
||||
- 导出 RVA `0x17c800` 起始指令为 `mov ecx,[ecx+4]`,随后直接跳转至 RVA `0x17bd80`。本轮只在导出入口设断点,未在后者设断点;内部调用可能直接进入后者或其他实现,不能用入口零命中证明内部方法未参与。
|
||||
|
||||
因此,当前不能把这个候选发布为可调用替换 CLI,也不能从几个布尔参数推断 Library Wins。继续研究应优先核对内部跳转目标的调用栈,以及原生替换窗口如何从 DataBook 的选中事件取得库件对象和映射。
|
||||
|
||||
## 对工具的意义
|
||||
|
||||
内部模块并非无法调用:**库查询已经存在实际可用的脚本 CLI 路径**,可以继续研究批量读取中央库符号和引脚映射。执行替换的精确范围、Library Wins、连接保持、Undo 和保存回读仍需要单独证明;本轮没有修改正式替换后端,也没有打包。
|
||||
|
||||
取证摘要:[内部模块 CLI 证据](2026-10-17-internal-module-cli-evidence.json)。一次性探针和原始输出保存在 `build/internal-module-script-hosts-20261017/`、`build/native-internal-breakpoint-20261017/`;脚本为 `build/probe_library_module.vbs`、`build/debug_internal_replace.py`、`build/oneshot_native_breakpoint.py`。早期断点控制探针的失败记录也保留,后续复用探针时需继续核对模块卸载、重载及实际地址。
|
||||
@@ -0,0 +1,96 @@
|
||||
# 替换时的多进程与进程内组件跟踪
|
||||
|
||||
后续已实际跑通 `icscript / mgcscript → VBS → CentralLibSvr` 查询,并完成导出入口断点探针。见 [内部模块 CLI 调用验证](2026-10-17-internal-module-cli.md)。断点仅覆盖导出入口,尚未证明其内部跳转目标的调用情况。
|
||||
|
||||
在本机 Mentor 7.9.5EE 上实际跟踪了一次完整替换。观察结果是多个原生进程与 CAD 内组件共同参与;没有捕获到选料或确认替换时新启动的独立替换 EXE。新线索在进程内 ActiveX 和 C++ 符号替换方法。
|
||||
|
||||
## 实测范围与取证方式
|
||||
|
||||
- 使用已有 Audio 测试工程的全新副本,只选中 `RV05`,将 `4100-CA0000-T7` 换为已验证库件 `4100-CA0000-T0`,保留 `RV11`;开启 PartLabel 复制到 Value。
|
||||
- 从新鲜原生库存中指定已知的单页范围,调用正式单步替换接口,完成备份、替换、保存、重开核验及关闭。此探针没有重复执行生产队列的完整图页发现,不用于和此前队列总耗时作比较。
|
||||
- 用 Windows `DEBUG_PROCESS` 启动自有研究进程,捕获其后代的进程创建、退出及 DLL 加载事件;在进程创建事件暂停期间读取父 PID 和完整命令行,能够捕获仅存在很短时间的子进程。使用 `cmd /c exit 0` 的独立探针先验证了捕获与参数读取。
|
||||
- 补充约每 100 毫秒的进程快照,只保留可访问的 Mentor 进程信息,检查可能由其他代理启动的进程。该快照不能保证捕获树外的短命进程或权限不足的服务。
|
||||
- 现有 WPR 未在记录;当前权限下 `Win32_ProcessStartTrace` 订阅被拒绝,因此没有使用系统级 ETW/WMI 事件覆盖。没有开启提权采集、接管用户 CAD 或修改正式执行代码。
|
||||
|
||||
## 进程数量
|
||||
|
||||
调试器记录 6,634 个事件、17 个进程实例,所有记录到的进程退出码均为 0,没有未退出的跟踪进程。厂商 EXE 共 5 种、8 次启动。
|
||||
|
||||
| 厂商程序 | 启动次数 | 触发位置与观察到的用途 |
|
||||
| --- | ---: | --- |
|
||||
| `viewdraw.exe` | 1 | CAD 主进程;承接原生替换窗口和 COM 对象 |
|
||||
| `vnsd.exe` | 1 | 由 CAD 在初始化时启动,命令为 `vnsd.exe -idle 1`;二进制含 `License Server Daemon` 标识 |
|
||||
| `iCDBNetServer.exe` | 2 | 由 CAD 打开工程时启动;保存后重开工程再次启动;参数包含数据库目录、工程、dbid、客户端与 `-autoclose` |
|
||||
| `xprobSvr.exe` | 2 | 由 CAD 打开工程时启动;重开时再次启动;参数包含数据库、快照 `DxD` 和端口;二进制自述为 `Cross Probing Server` |
|
||||
| `icdb2ascii.exe` | 2 | 本工具显式进行替换前采集和替换后独立磁盘读回;没有参与替换写入 |
|
||||
|
||||
只统计替换执行阶段,是 **4 种厂商 EXE、6 个实例**。其中 3 种是许可证、数据库和交叉探查辅助服务,不能把进程数量直接理解为 4 个可组合的批量替换 CLI。另有本工具的 4 个 Python 实例、1 个 `cscript.exe` 和 4 个系统 `conhost.exe`,合计 9 个,不计为 Mentor 原生接口。
|
||||
|
||||
辅助进程启动形式如下,省略仅用于本次会话的具体 ID:
|
||||
|
||||
```text
|
||||
vnsd.exe -idle 1
|
||||
iCDBNetServer.exe -db <database> -prj <project.prj>
|
||||
-dbid <session-db-id> -autoclose -client <host:user:cad-pid>
|
||||
xprobSvr.exe -db <host:database> -sn DxD -port <port>
|
||||
```
|
||||
|
||||
这些是本次观察到的启动参数,不是替换参数合同。本轮进程快照没有发现可访问的新 Mentor 进程位于调试树外;不能据此证明所有配置都不存在其他代理服务。
|
||||
|
||||
## 实际触发关系
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
Supervisor[工具 Python 调度] --> CAD[viewdraw.exe]
|
||||
Supervisor --> VBS[cscript.exe / 原执行 VBS]
|
||||
VBS --> Helper[工具 Python 原生窗口助手]
|
||||
Helper -->|WM_COMMAND 33977| CAD
|
||||
CAD --> License[vnsd.exe]
|
||||
CAD --> Database[iCDBNetServer.exe]
|
||||
CAD --> CrossProbe[xprobSvr.exe]
|
||||
CAD -. 加载 .-> DataBook[dxdatabook.ocx / dxodbci32.dll]
|
||||
CAD -. 加载 .-> Parts[ThinPartsDB.dll / PartsDB40.dll]
|
||||
CAD -. 加载 .-> Library[CentralLibSvr.dll / EditProj.dll]
|
||||
```
|
||||
|
||||
实线表示本次进程创建或源码及窗口助手证据确认的触发关系;虚线只表示模块加载,不能代替函数调用跟踪。具体原生窗口命令 ID 来自本机资源,本次为 `33977`,不应作为跨版本常量。
|
||||
|
||||
相对研究进程启动的时间:CAD 在 9.844 秒创建,许可证辅助进程在 23.547 秒创建;第一轮数据库服务和交叉探查服务分别在 63.266、73.109 秒创建。原生窗口助手在 120.797 秒启动。选料及替换区间中没有新增厂商 EXE;新的厂商活动表现为 CAD 内部 DLL 加载。
|
||||
|
||||
## 新的进程内接口线索
|
||||
|
||||
本次观察到 155 个不同路径的厂商 DLL/OCX。对实际加载模块的取证补齐了此前只扫描几个 `bin` 目录的不足。
|
||||
|
||||
| 模块 | 首次加载时间 | 已确认的内容 |
|
||||
| --- | ---: | --- |
|
||||
| `ICE70.dll` | 10.219 秒 | 导出内部 C++ 方法 `ICE::ICECTRL::CICEController::replaceSymbols(...)` |
|
||||
| `dxdatabook.ocx` | 33.906 秒 | 存在 `DXDBSEARCHLib` 类型库,属于进程内 ActiveX 组件 |
|
||||
| `dxodbci32.dll` | 34.250 秒 | 与 DataBook 同在 CAD 内加载;未证明具体查询调用 |
|
||||
| `ThinPartsDB.dll` | 145.594 秒 | 原生窗口助手等待期间加载,存在物料属性相关 C++ 导出 |
|
||||
| `PartsDB40.dll` | 145.656 秒 | 同一区间加载,存在 `GetPart`、`GetPartProperties` 等导出 |
|
||||
| `CentralLibSvr.dll` | 165.906 秒 | 类型库包含 `ILibPart`、`IPinMaps`、`IPinMap` 等接口 |
|
||||
| `EditProj.dll` | 165.984 秒 | 同一区间加载;没有取得可用类型库 |
|
||||
|
||||
`dxdatabook.ocx` 的本机类型库确认:
|
||||
|
||||
- `_DDxDbSearch` 有 `LoadConfiguration`、`NewSearch`、`AddSelectionObserver`、`SelectLibrarySymbol(Partition, Name, bReuse)` 等方法。
|
||||
- `_DDxDbSearchEvents` 有 `SelectComponent(Attributes)`、`AddComponent(Component)`、`AnnotateComponent(Component)`、`LoadComponent(Components)` 等事件。
|
||||
- `ISearch` 有 `Execute`、`Annotate`、`GetResults` 等方法。
|
||||
|
||||
这提供了继续研究选料与事件传递的具体入口,但事件存在不等于可以直接向 CAD 提交替换,当前尚未验证如何取得运行中的正确控件实例及其数据对象。
|
||||
|
||||
`CentralLibSvr.dll` 类型库确认:`ILibPart` 暴露 `PartNumber`、`CentralLibraryPath`、`HasPins` 和 `PinMaps(SymbolName, Slot)`;`IPinMap` 暴露引脚 `Label`、`Number`。这些是料号和引脚映射线索,没有直接 `ReplacePart` 方法。
|
||||
|
||||
`ICE70.dll` 的候选导出为 x86 `__thiscall`,ordinal `1767`、RVA `0x17c800`。解码后的签名包含一组内部对象 UID、另一个 UID、3 个字符串、4 个布尔开关及返回 UID 向量。不能从参数类型推断哪个是 Library Wins,也不能把 UID 集合假定为已经验证的当前位号集合。它需要有效的 `CICEController` 实例、厂商 UID 类型及匹配的 C++ 标准库 ABI。
|
||||
|
||||
**本轮没有观察该方法的运行时调用,也没有调用它。** 单独检查 `viewdraw.exe` 和 `ForeignDatabase70.dll` 的静态导入表,未命中该完整符号;其是否参与当前替换,仍需断点或调用栈验证。完整修饰名、解码签名及模块哈希保存在 [取证摘要](2026-10-17-native-replacement-trace-evidence.json)。
|
||||
|
||||
## 验证结果及下一步
|
||||
|
||||
最终保存并重开核验成功;独立 CLI 磁盘读回确认:`RV05=4100-CA0000-T0`、`RV11=4100-CA0000-T7`,两者 UID 不变、Value 均为 `0R`。来源测试工程的 `.prj` 与 `icdb.dat` 哈希未变。自有 CAD 退出、私有桌面消失均由观察器独立确认,期间没有成为主桌面前台窗口。
|
||||
|
||||
调试器会改变进程调度和启动行为;本次替换执行耗时 388 秒、整轮跟踪约 400 秒,只用于关联事件,不作为吞吐量或性能回归数据。
|
||||
|
||||
优先继续:对 `ICE70!CICEController::replaceSymbols` 做一次只记录命中与调用栈的断点探针,确认当前原生替换是否经过它;同时研究 DataBook 控件如何把选中料号与引脚映射交给 CAD。相比直接重放数据库服务启动命令,这两处更接近已观察到的替换行为。当前正式执行仍使用原已验证路径。
|
||||
|
||||
原始事件、命令行、类型库扫描、测试工程及一次性探针保存在忽略目录 `build/native-replace-process-trace-20261017/`;探针脚本为 `build/debug_process_trace.py`、`build/trace_native_replacement_workload.py`。没有提交厂商二进制、数据库或完整厂商日志。
|
||||
@@ -0,0 +1,272 @@
|
||||
{
|
||||
"date": "2026-10-17",
|
||||
"installed_version": "Mentor 7.9.5EE",
|
||||
"method": "Windows DEBUG_PROCESS on a self-owned disposable workload and descendants; DLL load events; supplementary accessible vendor process snapshots",
|
||||
"scope": "One page, one selected RefDes, source test project copied to build; no production change",
|
||||
"process_instances": 17,
|
||||
"counts": {
|
||||
"python.exe": 4,
|
||||
"conhost.exe": 4,
|
||||
"icdb2ascii.exe": 2,
|
||||
"viewdraw.exe": 1,
|
||||
"vnsd.exe": 1,
|
||||
"cscript.exe": 1,
|
||||
"iCDBNetServer.exe": 2,
|
||||
"xprobSvr.exe": 2
|
||||
},
|
||||
"debug_event_count": 6634,
|
||||
"vendor_execution_types": {
|
||||
"viewdraw.exe": 1,
|
||||
"vnsd.exe": 1,
|
||||
"iCDBNetServer.exe": 2,
|
||||
"xprobSvr.exe": 2
|
||||
},
|
||||
"native_inventory_invocations": 2,
|
||||
"unmatched_new_accessible_vendor_processes": 0,
|
||||
"process_timeline": [
|
||||
{
|
||||
"seconds": 0.297,
|
||||
"pid": 46648,
|
||||
"ppid": 40216,
|
||||
"name": "python.exe",
|
||||
"phase": "bootstrap",
|
||||
"exit_seconds": 400.172,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 0.547,
|
||||
"pid": 32748,
|
||||
"ppid": 46648,
|
||||
"name": "conhost.exe",
|
||||
"phase": "bootstrap",
|
||||
"exit_seconds": 400.359,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 6.25,
|
||||
"pid": 43548,
|
||||
"ppid": 46648,
|
||||
"name": "icdb2ascii.exe",
|
||||
"phase": "native_inventory",
|
||||
"exit_seconds": 8.047,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 9.844,
|
||||
"pid": 24216,
|
||||
"ppid": 46648,
|
||||
"name": "viewdraw.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 397.187,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 9.984,
|
||||
"pid": 21152,
|
||||
"ppid": 46648,
|
||||
"name": "python.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 60.844,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 10.031,
|
||||
"pid": 47224,
|
||||
"ppid": 21152,
|
||||
"name": "conhost.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 60.859,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 23.547,
|
||||
"pid": 29412,
|
||||
"ppid": 24216,
|
||||
"name": "vnsd.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 396.437,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 60.937,
|
||||
"pid": 20104,
|
||||
"ppid": 46648,
|
||||
"name": "cscript.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 389.656,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 63.266,
|
||||
"pid": 47528,
|
||||
"ppid": 24216,
|
||||
"name": "iCDBNetServer.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 273.969,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 73.109,
|
||||
"pid": 47128,
|
||||
"ppid": 24216,
|
||||
"name": "xprobSvr.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 274.656,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 120.797,
|
||||
"pid": 48152,
|
||||
"ppid": 20104,
|
||||
"name": "python.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 176.125,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 120.812,
|
||||
"pid": 48768,
|
||||
"ppid": 48152,
|
||||
"name": "conhost.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 176.234,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 276.172,
|
||||
"pid": 20420,
|
||||
"ppid": 24216,
|
||||
"name": "iCDBNetServer.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 386.625,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 287.281,
|
||||
"pid": 5336,
|
||||
"ppid": 24216,
|
||||
"name": "xprobSvr.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 387.531,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 389.844,
|
||||
"pid": 45888,
|
||||
"ppid": 46648,
|
||||
"name": "python.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 395.422,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 389.875,
|
||||
"pid": 46140,
|
||||
"ppid": 45888,
|
||||
"name": "conhost.exe",
|
||||
"phase": "replacement_save_reopen",
|
||||
"exit_seconds": 395.469,
|
||||
"exit_code": 0
|
||||
},
|
||||
{
|
||||
"seconds": 397.578,
|
||||
"pid": 2420,
|
||||
"ppid": 46648,
|
||||
"name": "icdb2ascii.exe",
|
||||
"phase": "independent_native_readback",
|
||||
"exit_seconds": 399.703,
|
||||
"exit_code": 0
|
||||
}
|
||||
],
|
||||
"first_module_loads": [
|
||||
{
|
||||
"name": "dxdatabook.ocx",
|
||||
"seconds": 33.906,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "quick_run_prepared task_id=93d136ba-a5b9-44a9-94a7-6006f1e8b6cd run_token=f0e2d18090e0487bab7c6e783adbe6c1"
|
||||
},
|
||||
{
|
||||
"name": "dxodbci32.dll",
|
||||
"seconds": 34.25,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "quick_run_prepared task_id=93d136ba-a5b9-44a9-94a7-6006f1e8b6cd run_token=f0e2d18090e0487bab7c6e783adbe6c1"
|
||||
},
|
||||
{
|
||||
"name": "ThinPartsDB.dll",
|
||||
"seconds": 145.594,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "2026/10/17 9:32:19\tINFO\tawaiting_native_replace count=1"
|
||||
},
|
||||
{
|
||||
"name": "PartsDB40.dll",
|
||||
"seconds": 145.656,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "2026/10/17 9:32:19\tINFO\tawaiting_native_replace count=1"
|
||||
},
|
||||
{
|
||||
"name": "CentralLibSvr.dll",
|
||||
"seconds": 165.906,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "2026/10/17 9:32:19\tINFO\tawaiting_native_replace count=1"
|
||||
},
|
||||
{
|
||||
"name": "EditProj.dll",
|
||||
"seconds": 165.984,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "2026/10/17 9:32:19\tINFO\tawaiting_native_replace count=1"
|
||||
},
|
||||
{
|
||||
"name": "ICE70.dll",
|
||||
"seconds": 10.219,
|
||||
"pid": 24216,
|
||||
"cad_last_log": "quick_run_prepared task_id=93d136ba-a5b9-44a9-94a7-6006f1e8b6cd run_token=f0e2d18090e0487bab7c6e783adbe6c1"
|
||||
}
|
||||
],
|
||||
"internal_export_candidate": {
|
||||
"export": {
|
||||
"name": "?replaceSymbols@CICEController@ICECTRL@ICE@@QAE_NABV?$set@VCICEObjectUID@ICEDATALAYER@ICE@@U?$less@VCICEObjectUID@ICEDATALAYER@ICE@@@std@@V?$allocator@VCICEObjectUID@ICEDATALAYER@ICE@@@5@@std@@ABVCICEObjectUID@ICEDATALAYER@3@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@22_N333AAV?$vector@VCICEObjectUID@ICEDATALAYER@ICE@@V?$allocator@VCICEObjectUID@ICEDATALAYER@ICE@@@std@@@5@@Z",
|
||||
"ordinal": 1767,
|
||||
"demangled": "public: bool __thiscall ICE::ICECTRL::CICEController::replaceSymbols(class std::set<class ICE::ICEDATALAYER::CICEObjectUID,struct std::less<class ICE::ICEDATALAYER::CICEObjectUID>,class std::allocator<class ICE::ICEDATALAYER::CICEObjectUID> > const &,class ICE::ICEDATALAYER::CICEObjectUID const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool,bool,bool,bool,class std::vector<class ICE::ICEDATALAYER::CICEObjectUID,class std::allocator<class ICE::ICEDATALAYER::CICEObjectUID> > &)",
|
||||
"sha256": "83f696cc3a7b75ed926f7b6150a05e318fbbe62336ff43e5b202abe5e12fa297",
|
||||
"machine": "0x14c",
|
||||
"rva": "0x17c800",
|
||||
"module": "ICE70.dll"
|
||||
},
|
||||
"static_importers_checked": [
|
||||
"D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.exe",
|
||||
"D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\ForeignDatabase70.dll"
|
||||
],
|
||||
"static_import_matches": [],
|
||||
"runtime_call_observed": false
|
||||
},
|
||||
"verified": true,
|
||||
"replacement": {
|
||||
"refdes": "RV05",
|
||||
"old": "4100-CA0000-T7",
|
||||
"new": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
"unchanged": {
|
||||
"refdes": "RV11",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"source_hashes_unchanged": true,
|
||||
"cad_exit_confirmed": {
|
||||
"24216": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-399f1eec8de94541bb71e34fb6de69b8": true
|
||||
},
|
||||
"owned_cad_became_foreground": false,
|
||||
"observed_execution_seconds": 388.0,
|
||||
"performance_benchmark": false,
|
||||
"artifacts": {
|
||||
"debug-events.jsonl": "16e6937c83df52e711bb57369b2c60fa052f971696a3f061f6036d4366d7023b",
|
||||
"debug-summary.json": "3f3665c870fd0a4168ad1ada190fe021d6ba1547bf20767b33c3ce109653c55c",
|
||||
"workload-report.json": "e78efe0418aa41568810dafc5d0bdbb5e52f0c973269044078bcbe1fd136a1f8",
|
||||
"desktop-observation.json": "e64da8c1b6d22ab43ab4619de26164d15e5acfad696b5e6634def930de889cef",
|
||||
"debug_process_trace.py": "4b4028317da8440345f0ffb57ca11ad30463bd9e60db9017d54d36efcb05b723",
|
||||
"trace_native_replacement_workload.py": "0a7296ba9d8b83a8d47a945b4dd74e79b9885877b81c14110fb46c1f8811a429"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,363 @@
|
||||
{
|
||||
"date": "2026-10-17",
|
||||
"baseline": "2ad0a3c",
|
||||
"production_backend_changed": false,
|
||||
"scope": "effective inventory, native target readiness, targeted queue preparation, session control sharing violations",
|
||||
"source_sha256": {
|
||||
"src\\dx_productivity\\trial_task_center\\native_inventory.py": "892876a777f0045238a19cd8c7fe3a84dbda404366c53801eeacd68ceb92d0fd",
|
||||
"src\\dx_productivity\\trial_task_center\\native_inventory_protocol.py": "5f74effae184205955f3dd5af5f74c5674b5f968f6f6ca9cf856e6ef13363f55",
|
||||
"src\\dx_productivity\\trial_task_center\\native_helper.py": "b83845da53ee822145ba5c68d7abeb50e5b34d6061c5499e3765c777341ae65e",
|
||||
"src\\dx_productivity\\trial_task_center\\quick_run.py": "8baeca57b29954f4ba9326b7e84ddab684cb08d436e61348ba057406971e2bc8",
|
||||
"src\\dx_productivity\\trial_task_center\\inventory.py": "5234a4c33b4d78aa096e105aba54c073e64b9091e031d5caa0ed5f0194dcccde",
|
||||
"src\\dx_productivity\\trial_task_center\\project_session.py": "ef1896a3796ea019aae8279e9de450fef108fcdb34dc79905dc4eddec62bcc61"
|
||||
},
|
||||
"effective_inventory_live_cases": [
|
||||
{
|
||||
"project": "build\\headless-inplace-20261017-a\\project\\Audio_D2128.prj",
|
||||
"seconds": 1.4069999999919673,
|
||||
"components": {
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"project": "build\\speed-final-20261017-gui-many\\project\\Audio_D2128.prj",
|
||||
"seconds": 1.25,
|
||||
"components": {
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"project": "build\\speed-final-20261017-headless-rules\\project\\Audio_D2128.prj",
|
||||
"seconds": 1.0310000000026776,
|
||||
"components": {
|
||||
"RV02": {
|
||||
"uid": "$2I1428",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "2.2K"
|
||||
},
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"formal_queue": {
|
||||
"verified": true,
|
||||
"source_hashes_unchanged": true,
|
||||
"selected_refs": [
|
||||
"RV05",
|
||||
"RV14"
|
||||
],
|
||||
"unchanged_refs": [
|
||||
"RV11",
|
||||
"RV08",
|
||||
"RV19"
|
||||
],
|
||||
"native_results": [
|
||||
{
|
||||
"stage": "native_replace_verified",
|
||||
"ok": true,
|
||||
"target_text": "4100-CA0000-T0",
|
||||
"symbol_text": "skyworth:res01.1",
|
||||
"target_submit_enabled": true,
|
||||
"replaced_uids": [
|
||||
"$2I2014"
|
||||
]
|
||||
},
|
||||
{
|
||||
"stage": "native_replace_verified",
|
||||
"ok": true,
|
||||
"target_text": "4100-CA0000-T0",
|
||||
"symbol_text": "skyworth:res01.1",
|
||||
"target_submit_enabled": true,
|
||||
"replaced_uids": [
|
||||
"$2I1766"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metrics": [
|
||||
{
|
||||
"phase": "collect_inventory",
|
||||
"unit": "component",
|
||||
"completed_units": 5,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 2.37478139999439,
|
||||
"units_per_minute": 126.32741691538796
|
||||
},
|
||||
{
|
||||
"phase": "prepare_queue",
|
||||
"unit": "step",
|
||||
"completed_units": 2,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 232.9237998000026,
|
||||
"units_per_minute": 0.5151899466822911
|
||||
},
|
||||
{
|
||||
"phase": "backup_project",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 1.530766299998504,
|
||||
"units_per_minute": 39.19605494323897
|
||||
},
|
||||
{
|
||||
"phase": "persist_progress",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"job_id": "759dda6d24bc4fcfafb1d23fe09ac188_0",
|
||||
"elapsed_seconds": 0.02788229999714531,
|
||||
"units_per_minute": 2151.9028202889654
|
||||
},
|
||||
{
|
||||
"phase": "execute_step",
|
||||
"unit": "step",
|
||||
"completed_units": 1,
|
||||
"state": "saved_ok",
|
||||
"schematic_name": "Audio-D2128",
|
||||
"sheet_number": "S905L CVBS-LR",
|
||||
"old_part_number": "4100-CA0000-T7",
|
||||
"new_part_number": "4100-CA0000-T0",
|
||||
"job_id": "759dda6d24bc4fcfafb1d23fe09ac188_0",
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.9689999999973224,
|
||||
"session_startup": 4.3439999999973224,
|
||||
"check_project": 0.09399999999732245,
|
||||
"open_project": 38.60900000001129,
|
||||
"open_sheet": 23.577999999994063,
|
||||
"session_ready": 0.15599999998812564,
|
||||
"query_components": 2.4530000000086147,
|
||||
"index_components": 10.408000000010361,
|
||||
"find_components": 2.5780000000086147,
|
||||
"index_pins": 14.515999999988708,
|
||||
"snapshot_attributes": 1.4369999999908032,
|
||||
"capture": 7.282000000006519,
|
||||
"before_native": 0.20299999999406282,
|
||||
"native_replace": 30.187000000005355,
|
||||
"restore_preflight": 13.139999999984866,
|
||||
"before_restore_transaction": 2.625,
|
||||
"restore_attribute_fields": 7.094000000011874,
|
||||
"restore_attributes": 0.030999999988125637,
|
||||
"verify_restoration": 0.8599999999860302,
|
||||
"verify_attribute_fields": 1.9060000000172295,
|
||||
"finished": 14.218000000008033,
|
||||
"save_and_close": 5.046999999991385,
|
||||
"verify_saved_project": 0.04700000000593718
|
||||
},
|
||||
"elapsed_seconds": 232.98710869999195,
|
||||
"units_per_minute": 0.2575249778186636
|
||||
},
|
||||
{
|
||||
"phase": "persist_progress",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"job_id": "759dda6d24bc4fcfafb1d23fe09ac188_1",
|
||||
"elapsed_seconds": 0.011202500012586825,
|
||||
"units_per_minute": 5355.94732716676
|
||||
},
|
||||
{
|
||||
"phase": "execute_step",
|
||||
"unit": "step",
|
||||
"completed_units": 1,
|
||||
"state": "saved_ok",
|
||||
"schematic_name": "Audio-D2128",
|
||||
"sheet_number": "S905L CVBS-LR",
|
||||
"old_part_number": "4100-CA1030-T7",
|
||||
"new_part_number": "4100-CA0000-T0",
|
||||
"job_id": "759dda6d24bc4fcfafb1d23fe09ac188_1",
|
||||
"worker_stage_seconds": {
|
||||
"check_project": 0.09399999999732245,
|
||||
"open_sheet": 13.625,
|
||||
"query_components": 3.2809999999881256,
|
||||
"index_components": 10.828000000023167,
|
||||
"find_components": 2.75,
|
||||
"index_pins": 12.98399999999674,
|
||||
"snapshot_attributes": 1.6720000000059372,
|
||||
"capture": 14.389999999999418,
|
||||
"before_native": 0.40699999999196734,
|
||||
"native_replace": 28.389999999999418,
|
||||
"restore_preflight": 11.501000000003842,
|
||||
"before_restore_transaction": 2.389999999999418,
|
||||
"restore_attribute_fields": 8.078999999997905,
|
||||
"restore_attributes": 0.07799999999406282,
|
||||
"verify_restoration": 0.6720000000059372,
|
||||
"verify_attribute_fields": 1.4219999999913853,
|
||||
"finished": 13.906000000002678,
|
||||
"save_and_close": 3.610000000000582,
|
||||
"verify_saved_project": 0.014999999999417923,
|
||||
"open_project": 13.577999999994063
|
||||
},
|
||||
"elapsed_seconds": 144.9269440000062,
|
||||
"units_per_minute": 0.4140016917764956
|
||||
},
|
||||
{
|
||||
"phase": "task_total",
|
||||
"unit": "task",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"completed_steps": 2,
|
||||
"saved_steps": 2,
|
||||
"failed_steps": 0,
|
||||
"elapsed_seconds": 623.6726321000024,
|
||||
"units_per_minute": 0.09620431763691586
|
||||
}
|
||||
],
|
||||
"owners": [
|
||||
{
|
||||
"stage": "quick-run",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"desktop_released": true,
|
||||
"startup_seconds": 50.828000000008615,
|
||||
"shutdown_seconds": 5.360000000000582
|
||||
},
|
||||
{
|
||||
"stage": "sheet-discovery-2432783abf1d4597b6f3ee4207b455cb",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"desktop_released": true,
|
||||
"startup_seconds": 44.85899999999674,
|
||||
"shutdown_seconds": 7.0939999999973224
|
||||
},
|
||||
{
|
||||
"stage": "sheet-discovery-b1479e2de99e48dabbc60e7f03578aac",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"desktop_released": true,
|
||||
"startup_seconds": 37.38999999999942,
|
||||
"shutdown_seconds": 4.202999999994063
|
||||
},
|
||||
{
|
||||
"stage": "sheet-discovery-b3fcfc662ce144cda2f4b33bf6040a02",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"desktop_released": true,
|
||||
"startup_seconds": 34.375,
|
||||
"shutdown_seconds": 6.01600000000326
|
||||
}
|
||||
],
|
||||
"independent_read": {
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
}
|
||||
},
|
||||
"input_desktop_unchanged": true,
|
||||
"no_owned_cad_on_input_desktop": true,
|
||||
"no_owned_cad_foreground": true,
|
||||
"all_owned_desktops_released": true,
|
||||
"limits": "Formal queue completed after target-readiness change but before queue-preparation optimization was loaded. This is correctness evidence, not a final end-to-end speed comparison. Final context guard and control-file retry added afterward have separate targeted regression checks."
|
||||
},
|
||||
"optimized_preparation_live": {
|
||||
"verified": true,
|
||||
"inventory_seconds": 2.6410000000032596,
|
||||
"prepare_seconds": 0.375,
|
||||
"cad_startups": 0,
|
||||
"native_inventory_sessions": 1,
|
||||
"native_exports": 2,
|
||||
"selected_refs": [
|
||||
"RV05",
|
||||
"RV14"
|
||||
],
|
||||
"queue_items": 2,
|
||||
"source_hashes_unchanged": true
|
||||
},
|
||||
"limits": [
|
||||
"single-machine samples, OS/library caches not reset",
|
||||
"paired CLI inventory rejects nested/repeated/missing UID mapping and falls back to CAD; no universal native inventory coverage claim",
|
||||
"optimized prepare timing excludes inventory, replacement, backup and save/reopen",
|
||||
"no headless replacement backend promotion, packaging or release"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
# 原生采集与执行流程巡检修复
|
||||
|
||||
本轮从 `2ad0a3c` 继续巡检,修复现有正式流程,不切换无弹窗替换后端,不打包发布。原始实测保存在本机 `build` 副本目录,精简结果见 [证据 JSON](2026-10-17-patrol-remediation-evidence.json)。
|
||||
|
||||
## 已修复
|
||||
|
||||
| 问题 | 原因与影响 | 修复 |
|
||||
| --- | --- | --- |
|
||||
| 原生采集可能返回旧料号/旧 Value | `icdb2ascii -h` 只有基础属性,实例层覆盖不一定生效;按旧料号过滤会静默漏项 | 同一数据库副本依次导出分层与展开报告,先按完整 UID 范围一一核对,再按展开后的生效料号过滤,保留分层中的工程、图页和 UID |
|
||||
| 同一新料号被重复选择时,就绪判断过早 | 只等料号文本;符号/gate 和提交按钮可能尚未就绪 | 料号、合法符号/gate、提交按钮同时满足并稳定 0.45 秒;上下文校验后再次核对,若需要重新等待则重验工程、图页、选中 UID 和旧属性 |
|
||||
| 位号队列准备重复启动 CAD 枚举全工程 | 已有精确位号清单,却按需要包含空白页的全图页发现流程准备队列 | 位号模式复用受内容指纹约束的器件清单,并逐目标检查 UID、位号、旧料号及旧 Value;普通全工程料号规则保留完整枚举 |
|
||||
| 会话续执行指令写入可能被短时文件占用打断 | VBS 正在读取时,Windows 可能拒绝替换控制文件;原写入无重试 | 原子发布失败时最多重试 1 秒,成功或失败均清理本次临时文件;原控制内容在成功发布前保持完整 |
|
||||
|
||||
替换结果等待超时还会保存目标器件实际料号、封装、Part Label 和 Value,以及选料控件读数;两类诊断独立捕获,窗口失效不再连带丢掉器件诊断。不会自动重复执行可能已经发生的替换。
|
||||
|
||||
## 核验
|
||||
|
||||
原生采集在三个已有真实工程副本上验证:实例覆盖实验中的 RV05 正确返回新料号,RV11 保持旧料号;一对多及多规则副本中的目标、NC 和未选中位号读回正确。缺少展开报告、重复/嵌套 UID、配置不唯一、范围不一致、必需属性缺失时拒绝原生结果,安全回退 CAD;明确空属性与缺少属性行分开处理。两次 CLI 导出共用一个临时数据库副本和私有桌面,各自日志分别保留。
|
||||
|
||||
正式服务队列连续执行两个不同旧料号、相同新料号的规则:
|
||||
|
||||
| 位号 | 新料号 | 保存后 Value | 结果 |
|
||||
| --- | --- | --- | --- |
|
||||
| RV05 | 4100-CA0000-T0 | 0R | `saved_ok / session_verified` |
|
||||
| RV14 | 4100-CA0000-T0 | 0R/NC | `saved_ok / session_verified` |
|
||||
|
||||
每条规则都由正式 VBS 保存关闭、重开核验;独立原生清单再次读回通过,RV11、RV08、RV19 保持原料号和 Value。源工程 `.prj`、`icdb.dat` 哈希未变。观察到的四个自有 CAD 会话全部正常退出,Job 清空、句柄关闭、私有桌面释放;主输入桌面未切换,自有 CAD 未占用主桌面或前台。
|
||||
|
||||
这次正式队列在队列准备优化载入前启动,用于验证新选料等待和正式多规则执行。它不能作为全部最终改动的完整执行测速。随后新增的提交前上下文守门和控制文件占用重试由针对性回归核验;本轮没有重跑一遍整批替换来制造速度对照。
|
||||
|
||||
另在全新测试副本单独核验优化后的准备路径:
|
||||
|
||||
| 指标 | 本次耗时/次数 |
|
||||
| --- | ---: |
|
||||
| 采集 5 个相关位号,分层及展开各导出一次 | 2.641 秒 |
|
||||
| 生成 RV05、RV14 两项精确位号队列 | 0.375 秒 |
|
||||
| CAD 启动 | 0 次 |
|
||||
| 原生采集会话 | 1 次,2 份导出 |
|
||||
|
||||
较早的正式实跑中,准备队列耗时 232.924 秒,包含三次 CAD 读取;随后两步执行分别为 232.987、144.927 秒,任务总计 623.673 秒。优化后的 0.375 秒只对应队列准备,不含采集、备份、替换和保存重开;两次不是完整执行的重复对照,不计算整批加速百分比。
|
||||
|
||||
自动回归:涉及原生清单、BOM 导入结果、精确位号队列、发现缓存、多工程、失败恢复、会话控制和 Value 策略的 250 项检查通过;最后的选料守门增量另以 22 项针对性检查复核。Windows 文件共享拒绝和实例覆盖读取均在修复前复现失败,再验证修复后通过;独立代码复核未留下阻断项。
|
||||
|
||||
## 当前仍需改进
|
||||
|
||||
- CAD 启动、图页打开、全页属性/引脚快照和逐规则重开仍耗时明显。当前保留每条规则的保存校验,尚未做合并提交;跨任务复用 CAD 也未引入。
|
||||
- 重复或嵌套层级实例无法用本轮简单 UID 一一对应方案认证,仍回退 CAD,不能承诺所有工程都使用原生快速采集。
|
||||
- 无弹窗替换仍是研究原型,只验证同符号、单 gate、相同引脚映射;不同符号、多 gate、PCB 打包同步和任意库的覆盖尚未完成。
|
||||
- `quick_run.py`、`service.py`、`store.py` 仍偏大。本轮将新增目标库存校验放在 `inventory.py`,没有进行大规模文件搬迁;后续可按队列协议、持久化、执行监督逐步拆分,并保持现有回归边界。
|
||||
|
||||
本轮针对读取正确性、精确目标校验、选料等待、文件共享、正式多规则流程和资源释放进行验证;不等于重新完成所有 UI 页面及发布包验收。
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"source_hashes_unchanged": true,
|
||||
"cases": [
|
||||
{
|
||||
"case": "add-part-invalid",
|
||||
"error": null,
|
||||
"returned": null,
|
||||
"changed_count": 1,
|
||||
"dialogs": [],
|
||||
"call_seconds": 1.110000000000582,
|
||||
"changed_count_certified": true
|
||||
},
|
||||
{
|
||||
"case": "ccomp-colon",
|
||||
"error": null,
|
||||
"returned": false,
|
||||
"changed_count": 0,
|
||||
"dialogs": [
|
||||
{
|
||||
"title": "Change Component",
|
||||
"text": [
|
||||
"自定义 2",
|
||||
"确定(&O)",
|
||||
"取消(&C)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"call_seconds": 0.3600000000005821,
|
||||
"changed_count_certified": true
|
||||
},
|
||||
{
|
||||
"case": "ccomp-colon-preserve",
|
||||
"error": "AttributeError(\"'NoneType' object has no attribute 'Query'\")",
|
||||
"returned": true,
|
||||
"changed_count": null,
|
||||
"dialogs": [
|
||||
{
|
||||
"title": "DxDesigner",
|
||||
"text": [
|
||||
"确定",
|
||||
"提交数据库事务被拒。\n正在重新导入项目。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"call_seconds": 0.6879999999946449,
|
||||
"changed_count_certified": false,
|
||||
"note": "Active view disappeared after transaction-rejected dialog. Final component state of the disposable copy is not certified."
|
||||
}
|
||||
],
|
||||
"invalid_part_creation": {
|
||||
"$2I2277": {
|
||||
"uid": "$2I2277",
|
||||
"refdes": "R?",
|
||||
"part": "DX_RESEARCH_PART_DOES_NOT_EXIST",
|
||||
"label": "",
|
||||
"value": "",
|
||||
"cell": "",
|
||||
"symbol": "res01",
|
||||
"location": [
|
||||
5000,
|
||||
5000
|
||||
],
|
||||
"orientation": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
# 替换 CLI 替代:核心调用与无弹窗实验
|
||||
|
||||
这份记录继续验证本机 Mentor 7.9.5EE 的实际替换路径。**同符号、单 gate、相同引脚映射的无弹窗替换已有真实验证路径**:原生 DLL 查询物料 → COM 在原 UID 上应用库属性和引脚号 → 保存重开 → 原生 CLI 独立读回。它需要 CAD 进程,并非独立编辑数据库的替换 EXE。正式替换后端未切换,没有打包或发布。
|
||||
|
||||
## 已确认的原生提交链
|
||||
|
||||
在全新 Audio 测试副本中,只替换 RV05,保留同料号 RV11。多断点跟踪完成原生替换、保存重开和独立磁盘读回,全部跟踪进程退出,私有桌面释放,来源工程哈希未变。
|
||||
|
||||
实际命中顺序(均为本机二进制 RVA):
|
||||
|
||||
| 阶段 | 模块与入口 | 证据 |
|
||||
| --- | --- | --- |
|
||||
| 打开替换窗口 | viewdraw.exe `0x207bd0 → 0x167880` | WM_COMMAND 33977 的 MFC handler 与委托函数均命中 |
|
||||
| 接收选料 | viewdraw.exe `0x168190` | 返回地址位于 PlaceDevice.dll `0x1e67b` |
|
||||
| 提交替换 | viewdraw.exe `0x432f90` | 返回地址为 viewdraw.exe `0x262676`,对应调用点 `0x262671` |
|
||||
|
||||
`0x432f90` 也是旧 `ccomp` 命令静态引用的核心。命令 handler 传入多个空字符串,原生选料提交路径传入目标数据;存在共同核心不代表 `ccomp` 已提供完整的料号替换参数。
|
||||
|
||||
本次提交栈的 flags 为 9。提交后只读检查相关内存,取得目标料号 `4100-CA0000-T0`、Part Name `RESC1608N`、Part Label `0R`,与实际读回一致。该检查发生在函数返回之后,仅作辅助证据,不能用于认定完整参数类型或对象生命周期。
|
||||
|
||||
ICE70.dll 的 `replaceSymbols` 导出入口 `0x17c800` 及内部跳转目标 `0x17bd80` 均未命中。调试器跟踪了模块卸载和重载;结论仅适用于这次同符号替换,不能推广到所有替换。
|
||||
|
||||
PlaceDevice.dll 有 `NotifySelectionObservers`、`SelectLibrarySymbol`、`CreatePDController` 等 C++ 导出,当前没有取得可用类型库。它传递选择事件并需要已初始化的 CAD、库服务及回调对象,不能作为独立替换 EXE 调用。
|
||||
|
||||
## 公开 API 的实际边界
|
||||
|
||||
- `AddPartInstance("skyworth", "4100-CA0000-T0", "res01.1", x, y)` 已无弹窗创建库件,取得真实 Part Name 和 Part Label。第一个参数在此安装中需要符号分区。
|
||||
- `ChangeComponentPreserveRefdes` 的两个参数均为字符串。传精确 UID 报未找到器件;传符号名时,即使只选择 RV05,也实际改变页内 19 个同符号器件,包含 RV11,并清空部分物料属性,不能用作精确位号替换。
|
||||
- 创建新器件后删除旧器件,即使坐标与方向一致,也会失去旧引脚网络连接;零长度 AddNet 未能恢复。这条实验路径已排除。
|
||||
|
||||
直接接口的范围证据见 [JSON](2026-10-17-direct-api-scope-evidence.json)。
|
||||
|
||||
## 同符号原位实验与属性层级
|
||||
|
||||
原型通过 `AddPartInstance` 创建远处未连接的目标模板,从库模板取得属性,再应用到原器件;删除模板,保留原器件 UID、坐标、方向和连接。仅覆盖单 gate、同符号、同引脚编号集合。
|
||||
|
||||
首个原型只写 `InstanceValue`。CAD 保存重开核验通过;当前工具的分层清单却仍返回旧料号。进一步用 `icdb2ascii` 的 flat 和 instance 报告核实:新料号和封装已写到实例属性,基础属性仍旧。不能把该现象误判为完全没有保存,也不能忽略分层采集与有效实例值的差别。
|
||||
|
||||
该原型与原生替换的 flat 输出已逐器件、逐引脚比较:57 个器件、103 个引脚、22 个网络一致。比较保留引脚对应的连接,仅忽略同层属性顺序。分层输出仍有差别,因此尚未将它认定为等价的正式后端。
|
||||
|
||||
只改 `Value` 的对照实验在 Part Name 的有效值断言处失败,说明已有实例值会覆盖基础值。同时写基础与实例属性后,料号独立读回通过;再把目标引脚的 `Pin Number` 基础值和实例值一起同步,才补齐原生替换在分层输出中的引脚号。
|
||||
|
||||
最终批量实验只修改三个目标,使用同一个真实库模板,覆盖旋转及 Value/NC 选项:
|
||||
|
||||
| 位号 | 原方向枚举 | 新料号 | 最终 Value | 核验 |
|
||||
| --- | ---: | --- | --- | --- |
|
||||
| RV05 | 0 | 4100-CA0000-T0 | 0R | 与原生 GUI 基准完整比较 |
|
||||
| RV14 | 1 | 4100-CA0000-T0 | 0R/NC | 保留旧 NC、检查预期字段变化 |
|
||||
| RV02 | 3 | 4100-CA0000-T0 | 2.2K | 保留旧 Value、检查预期字段变化 |
|
||||
|
||||
保存重开后,三个 UID、位置、方向、比例、属性显示样式与引脚网络均通过核验,独立清单返回上述结果,RV11、RV08、RV19 等未选中同料号器件不变。分层和展开的完整输出均核验 57 个器件、103 个引脚、22 个网络:54 个未选中器件不变,所有连接保持一致;RV05 与原生 GUI 基准相同。RV14/RV02 没有各自再跑一轮 GUI 对照,不能宣称所有选项均已证明与 GUI 等价。
|
||||
|
||||
实际研究命令为 `python build/probe_headless_batch.py build/<新的输出目录>`,会复制固定 Audio 测试工程,在自有私有桌面打开新副本;不是面向任意生产工程的正式命令。来源测试工程的 `.prj` 与 `icdb.dat` 哈希核验通过,CAD 正常退出,桌面释放。
|
||||
|
||||
## 料号有效性与真实库接口
|
||||
|
||||
负例证实:`AddPartInstance` 接受不存在的 `DX_RESEARCH_PART_DOES_NOT_EXIST`,生成空 Part Name/Part Label 的器件。因此必须先查真实库,不能靠设置 PartNumber 后回读、HasPins、GetSlotsCount 或创建模板成功判断料号有效。
|
||||
|
||||
已验证安装自带命令:
|
||||
|
||||
```text
|
||||
ListWGLib.exe <中央库副本.lmc> PDB <输出.txt>
|
||||
```
|
||||
|
||||
本次在只含中央库文件及 PartsDBLibs 的副本上执行,退出码 0,列出 20 个分区、9,436 条料号,来源库哈希未变。它返回 `分区:料号`,可以精确匹配料号,不能单独证明料号关联哪个符号。
|
||||
|
||||
进一步将 **PartsDB40.dll 实际导出**封装成 32 位研究 CLI,已成功读取关联符号。可复用查询源码保留在 [native_parts_query.cpp](../../tools/research/native_parts_query.cpp),编译说明见 [README](../../tools/research/README.md):
|
||||
|
||||
```text
|
||||
native_parts_query.exe <原生DLL目录> <分区副本.pdb> <料号>
|
||||
```
|
||||
|
||||
调用 `GetPartsDBPtr` 创建对象,再调用导出的 Loader、GetPartEnum、GetPartNumber、GetPartName、GetPartLabel、GetSymDfnList、GetSymDfnName;枚举与数据库对象均 Release。使用简单指针和整数参数,没有构造厂商 STL/MFC 对象,也没有调用未导出的进程地址。
|
||||
|
||||
| 查询 | 真实返回 | 单次子进程调用耗时 |
|
||||
| --- | --- | ---: |
|
||||
| 4100-CA0000-T0 | RESC1608N / 0R / skyworth:res01 | 0.313 秒 |
|
||||
| 不存在料号 | matches 为空 | 0.359 秒 |
|
||||
| 4300-CC1040-7100 | CAPC0603X30N / C/100NF/16V +/-10% X5R / skyworth:cap01 | 0.391 秒 |
|
||||
|
||||
这三个进程退出码为 0,PDB 副本字节不变。`matches=[]` 是未找到料号,调用方必须处理,退出码 0 只表示查询完成。以上是库查询耗时,不能当作替换或全流程耗时。接口 ABI 只在本机 x86 DLL 上验证,不是厂商承诺的公开接口。
|
||||
|
||||
复核后补齐属性读取失败返回、符号指针/数量校验、UTF-8 输出及对象/模块释放。最终源码重新编译,前三种实际查询及中文请求名回传均通过,耗时 0.297~0.375 秒;缺少 DLL 的负例返回非零退出码 2。中文回传验证的是参数与序列化,不等于已验证所有中文 PDB 元数据的实际代码页。
|
||||
|
||||
## 命令边界与后续接入条件
|
||||
|
||||
带前导冒号的 `ccomp :skyworth:cap01.1` 仍弹出 Change Component。附加 `1` 的实验返回 True,却触发“提交数据库事务被拒,正在重新导入项目”,当前视图丢失。因此 ExecuteCommand 的 True 也不是替换成功证据;这两种写法均排除。该实验未主动保存,视图丢失后不能认证副本的最终器件状态;来源测试工程哈希未变。见 [边界证据](2026-10-17-replacement-boundaries-evidence.json)。
|
||||
|
||||
适合接入的受限路线是:精确验证料号存在及关联符号 → 冻结工程/图页/UID → 拒绝多 gate 或符号、引脚映射不一致 → 在原 UID 上应用模板属性,同时同步基础值和实例值、引脚号 → 按现有策略处理 Value/NC、显示样式 → 删除未连接模板 → 验证范围、连接、保存重开和独立读回。可按目标料号复用一个模板。
|
||||
|
||||
后续 [性能评估](2026-10-17-replacement-speed-evaluation.md) 已取得一对多的有效 GUI 对照:本次完成替换阶段缩短 32.2%,含 CAD 启停、复核及独立读回的总耗时反而增加 7.2%。分层与展开图完整一致;多规则 GUI 基准未完成且仍有逐项保存重开流程差异,不能计算多规则加速倍数。该单次结果不能外推到任意 BOM。
|
||||
|
||||
正式切换前仍需要补齐:
|
||||
|
||||
- 原生采集对实例覆盖值的读取已在[本轮巡检](2026-10-17-patrol-remediation.md)补齐:分层与展开清单按完整 UID 范围核对,读取生效值;嵌套、重复或范围无法对应时回退 CAD。复杂层级实例仍未覆盖。
|
||||
- 不同符号、多 gate、不同引脚映射、重复层级实例及任意库的属性策略。这些不能直接使用此次受限路径。
|
||||
- 打包/PCB 同步、Undo/取消恢复、连续多工程和重复执行的正式回归。完整原生图数据一致并不代替 PCB 打包实测。
|
||||
|
||||
对不同符号等范围,当前可用路径仍是已有原生替换窗口;没有确认可安全直调的通用替换 CLI。内部核心已定位,但其对象生命周期与完整 ABI 尚不具备正式封装条件。替换实验脚本、工程副本与原始报告保存在忽略目录 build 中,均为研究原型。保留的查询源码不参与应用构建或发布。
|
||||
|
||||
核心调用证据见 [JSON](2026-10-17-replacement-core-trace-evidence.json),批量与库查询结果见 [JSON](2026-10-17-headless-replacement-evidence.json)。所有内部地址都需要匹配模块哈希,不能写成跨版本正式接口。
|
||||
@@ -0,0 +1,297 @@
|
||||
{
|
||||
"installation": "Mentor 7.9.5EE",
|
||||
"scope": "Fresh Audio test-project copy, RV05 only; same skyworth:res01 symbol; PartLabel copied to Value",
|
||||
"verified": true,
|
||||
"source_hashes_unchanged": true,
|
||||
"process_count": 17,
|
||||
"debug_event_count": 7888,
|
||||
"all_process_exit_codes": [
|
||||
0,
|
||||
1
|
||||
],
|
||||
"still_alive": {},
|
||||
"errors": [],
|
||||
"hits": [
|
||||
{
|
||||
"seconds": 253.14100000000326,
|
||||
"label": "wm_command_handler_A",
|
||||
"module": "viewdraw.exe",
|
||||
"rva": 2128848,
|
||||
"stack_words": [
|
||||
1558943379,
|
||||
218711080,
|
||||
24049612,
|
||||
1558943861,
|
||||
33977,
|
||||
57,
|
||||
219817104,
|
||||
218711080,
|
||||
0,
|
||||
24049676,
|
||||
1558960284,
|
||||
33977,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2524577804
|
||||
],
|
||||
"resolved_return_addresses": [
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x89693",
|
||||
"address": "0x5ceb9693"
|
||||
},
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x89875",
|
||||
"address": "0x5ceb9875"
|
||||
},
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x8d89c",
|
||||
"address": "0x5cebd89c"
|
||||
},
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x61670",
|
||||
"address": "0x5ce91670"
|
||||
},
|
||||
{
|
||||
"module": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.exe",
|
||||
"rva": "0x1b6d61",
|
||||
"address": "0x5b6d61"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"seconds": 253.23500000000058,
|
||||
"label": "replace_dialog_entry",
|
||||
"module": "viewdraw.exe",
|
||||
"rva": 1472640,
|
||||
"stack_words": [
|
||||
1558943379,
|
||||
218711080,
|
||||
24049612,
|
||||
1558943861,
|
||||
33977,
|
||||
57,
|
||||
219817104,
|
||||
218711080,
|
||||
0,
|
||||
24049676,
|
||||
1558960284,
|
||||
33977,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2524577804
|
||||
],
|
||||
"resolved_return_addresses": [
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x89693",
|
||||
"address": "0x5ceb9693"
|
||||
},
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x89875",
|
||||
"address": "0x5ceb9875"
|
||||
},
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x8d89c",
|
||||
"address": "0x5cebd89c"
|
||||
},
|
||||
{
|
||||
"module": "C:\\Windows\\WinSxS\\Fusion\\x86_microsoft.vc90.mfc_1fc8b3b9a1e18e3b_none_eaa49612b1f5b2ea\\9.0\\9.0.30729.6161\\mfc90.dll",
|
||||
"rva": "0x61670",
|
||||
"address": "0x5ce91670"
|
||||
},
|
||||
{
|
||||
"module": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.exe",
|
||||
"rva": "0x1b6d61",
|
||||
"address": "0x5b6d61"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"seconds": 263.8439999999973,
|
||||
"label": "replace_dialog_impl_A",
|
||||
"module": "viewdraw.exe",
|
||||
"rva": 1474960,
|
||||
"stack_words": [
|
||||
234350203,
|
||||
470834792,
|
||||
24049844,
|
||||
24049900,
|
||||
24049956,
|
||||
24049928,
|
||||
217320392,
|
||||
64396220,
|
||||
554450416,
|
||||
554450416,
|
||||
554687208,
|
||||
1958530064,
|
||||
216733504,
|
||||
24049700,
|
||||
0,
|
||||
470834792
|
||||
],
|
||||
"resolved_return_addresses": [
|
||||
{
|
||||
"module": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\common\\win32\\lib\\PlaceDevice.dll",
|
||||
"rva": "0x1e67b",
|
||||
"address": "0xdf7e67b"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"seconds": 269.5,
|
||||
"label": "legacy_change_core",
|
||||
"module": "viewdraw.exe",
|
||||
"rva": 4403088,
|
||||
"stack_words": [
|
||||
6694518,
|
||||
435566232,
|
||||
523421360,
|
||||
554450456,
|
||||
554450224,
|
||||
470833488,
|
||||
0,
|
||||
9,
|
||||
2390341880,
|
||||
10882096,
|
||||
162418352,
|
||||
24048864,
|
||||
0,
|
||||
9,
|
||||
16777217,
|
||||
523421360
|
||||
],
|
||||
"resolved_return_addresses": [
|
||||
{
|
||||
"module": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.exe",
|
||||
"rva": "0x262676",
|
||||
"address": "0x662676"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"seconds": 425.8289999999979,
|
||||
"label": "replace_query_factory",
|
||||
"module": "viewdraw.exe",
|
||||
"rva": 2017440,
|
||||
"stack_words": [
|
||||
6664601,
|
||||
1,
|
||||
2390340768,
|
||||
0,
|
||||
12331056,
|
||||
24051408,
|
||||
27089544,
|
||||
27089544,
|
||||
216441600,
|
||||
24051408,
|
||||
1559013441,
|
||||
27089544,
|
||||
0,
|
||||
15,
|
||||
24051556,
|
||||
10348040
|
||||
],
|
||||
"resolved_return_addresses": [
|
||||
{
|
||||
"module": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.exe",
|
||||
"rva": "0x25b199",
|
||||
"address": "0x65b199"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"seconds": 425.8600000000006,
|
||||
"label": "replace_dialog_impl_B",
|
||||
"module": "viewdraw.exe",
|
||||
"rva": 1475872,
|
||||
"stack_words": [
|
||||
5666157,
|
||||
1,
|
||||
2390340752,
|
||||
162417904,
|
||||
162417904,
|
||||
24051340,
|
||||
10214643,
|
||||
1,
|
||||
5666520,
|
||||
12331056,
|
||||
6814637,
|
||||
1,
|
||||
2390340776,
|
||||
10615712,
|
||||
162519336,
|
||||
24051420
|
||||
],
|
||||
"resolved_return_addresses": [
|
||||
{
|
||||
"module": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.exe",
|
||||
"rva": "0x16756d",
|
||||
"address": "0x56756d"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"negative_points": [
|
||||
{
|
||||
"module": "viewdraw.exe",
|
||||
"label": "wm_command_handler_B",
|
||||
"rva": 2133696
|
||||
},
|
||||
{
|
||||
"module": "viewdraw.exe",
|
||||
"label": "ccomp_handler",
|
||||
"rva": 630032
|
||||
},
|
||||
{
|
||||
"module": "ICE70.dll",
|
||||
"label": "ice_replace_export",
|
||||
"rva": 1558528
|
||||
},
|
||||
{
|
||||
"module": "ICE70.dll",
|
||||
"label": "ice_replace_body",
|
||||
"rva": 1555840
|
||||
}
|
||||
],
|
||||
"readback": [
|
||||
{
|
||||
"uid": "$2I2014",
|
||||
"refdes": "RV05",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
{
|
||||
"uid": "$2I2022",
|
||||
"refdes": "RV11",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
}
|
||||
],
|
||||
"limitations": [
|
||||
"One same-symbol replacement; no inference for other symbols or installations.",
|
||||
"Observed flags value 9 is not decoded as Library Wins.",
|
||||
"Runtime addresses and internal ABI are not public CLI contracts.",
|
||||
"Debugger timing is not a performance benchmark."
|
||||
],
|
||||
"module_identities": [
|
||||
{
|
||||
"module": "viewdraw.exe",
|
||||
"process": "viewdraw.exe",
|
||||
"sha256": "80f7350dbfd283f637df15e513d1a0657b5ac908f30e9a0e540ca3d8c978e07a"
|
||||
},
|
||||
{
|
||||
"module": "ICE70.dll",
|
||||
"process": "viewdraw.exe",
|
||||
"sha256": "83f696cc3a7b75ed926f7b6150a05e318fbbe62336ff43e5b202abe5e12fa297"
|
||||
}
|
||||
],
|
||||
"nonzero_exit_notes": "A startup conhost.exe exited with code 1. All tracked vendor processes and workload exited 0; CAD/desktop cleanup was independently confirmed."
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
# 替换加速评估:原生窗口与无弹窗原型
|
||||
|
||||
评估日期:2026-10-17。环境:本机 Windows、Mentor 7.9.5EE、Python 3.12;工具代码基线 `cf0ba73`。
|
||||
|
||||
## 测量范围
|
||||
|
||||
比较现有原生替换窗口适配器与同符号、单 gate、相同引脚映射的无弹窗研究原型。旧路径使用正式 `native_helper` 独立进程;新路径由 32 位研究 CLI 查询真实 PartsDB,再通过 COM 创建一个未连接库模板,在原 UID 上更新库属性及引脚号,删除模板。**替换仍通过 COM,需要启动 CAD;查询 CLI 不是通用替换 CLI。正式后端未切换,本轮未打包或发布。**
|
||||
|
||||
只在 `build` 下新复制的 Audio_D2128 工程运行,图页为 `Audio-D2128 / S905L CVBS-LR`。两条路径都恢复坐标、方向、比例、Refdes、Value/NC 和属性显示样式,检查未选中器件、引脚网络、保存重开,并在 CAD 退出后用原生清单独立读回。
|
||||
|
||||
| 场景 | 选中对象 | 保留对象与选项 |
|
||||
| --- | --- | --- |
|
||||
| 一对多 | RV14、RV08:`4100-CA1030-T7 → 4100-CA0000-T0` | 同一旧料号 RV19 不改;两个目标 Value 为 `0R/NC` |
|
||||
| 多规则共用目标料号 | RV05、RV14、RV02,三个不同旧料号统一换为 `4100-CA0000-T0` | 最终 Value 分别为 `0R`、`0R/NC`、`2.2K`;覆盖 Part Label、保留旧 Value、NC 同步和不同方向 |
|
||||
|
||||
旧路径在一对多场景只调用一次批量替换,不人为拆成逐位号点击。多规则场景逐规则替换并恢复属性;新路径复用一个目标料号模板。两者比较的是当前适配器与受限原型的实际工作负载,收益不能全部归因于 DLL/COM 调用方式;旧适配器包含逐组遍历、选择、检查及助手开销。
|
||||
|
||||
每个场景、每条路径各尝试一次,三次完成,GUI 多规则失败。运行顺序为 GUI 一对多 → 原型一对多 → 原型多规则 → GUI 多规则;没有同时运行其他研究 CAD/CLI。每次创建新 CAD 会话,但未清空操作系统、DLL 或库缓存,不能称为冷缓存测试,也不能给出稳定均值、显著性或 400 项 BOM 的吞吐量。
|
||||
|
||||
## 计时定义
|
||||
|
||||
- **完成替换阶段**:`save_close` stage 时间减 `backend_start` stage 时间,包含替换、Value/样式恢复、保存前校验和 Undo 事务结束;保存从该阶段之后开始。
|
||||
- **CAD 会话**:私有桌面 CAD 启动前至会话退出后,包含打开工程、初始快照、完成替换、保存关闭、重开验证、退出和清理。
|
||||
- **含独立读回总耗时**:CAD 会话 + CAD 退出后的原生清单独立读回。它不包含副本克隆、Excel 导入、创建任务、队列调度和额外的 ASCII 全图对照导出,不是产品点击执行到完成的全链路计时。
|
||||
- 各阶段还单列启动、打开及初始读取、保存关闭、重开验证、退出。阶段和与会话可能有少量差异,来自进程创建、导入和阶段外收尾。
|
||||
|
||||
原始 `replace_and_restore_seconds` 在新路径的 Undo 提交之前停止,存在边界不对齐,因此不用于性能主比较。所有比例以统一完成边界计算:耗时缩短率 = `100 × (1 − 新/旧)`;速度比 = `旧/新`。负缩短率表示变慢。
|
||||
|
||||
## 结果
|
||||
|
||||
**本次一对多样本:完成替换阶段缩短 32.2%,但含启停和独立读回的总耗时增加 7.2%。当前只能证明受限替换阶段有收益,尚未证明总流程提速。**
|
||||
|
||||
| 一对多对照 | 现有 GUI 适配器 | 无弹窗原型 | 本次变化 |
|
||||
| --- | ---: | ---: | --- |
|
||||
| 完成替换阶段 | 39.578 秒 | 26.844 秒 | 节省 12.734 秒,缩短 32.17%,速度比 1.474× |
|
||||
| CAD 会话 | 149.547 秒 | 160.156 秒 | 增加 10.609 秒 |
|
||||
| 会话后独立读回 | 0.828 秒 | 1.015 秒 | 增加 0.187 秒 |
|
||||
| 含独立读回总耗时 | 150.375 秒 | 161.171 秒 | 增加 10.796 秒,变慢 7.18% |
|
||||
|
||||
分阶段实测如下。打开包含初始全页读取;重开包含重新打开、读取及核验,不能据此认定某一个 API 单独变慢。
|
||||
|
||||
| 阶段 | GUI 一对多 | 原型一对多 | 原型多规则 |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| CAD 启动与身份绑定 | 50.750 秒 | 48.890 秒 | 51.000 秒 |
|
||||
| 打开工程、图页及初始快照 | 26.063 秒 | 29.734 秒 | 27.938 秒 |
|
||||
| 完成替换、恢复及校验 | 39.578 秒 | 26.844 秒 | 32.562 秒 |
|
||||
| 保存关闭 | 3.172 秒 | 3.703 秒 | 6.891 秒 |
|
||||
| 重开验证 | 23.718 秒 | 40.156 秒 | 31.359 秒 |
|
||||
| 退出与私有桌面清理 | 3.578 秒 | 7.296 秒 | 4.109 秒 |
|
||||
| 会话后独立读回 | 0.828 秒 | 1.015 秒 | 0.813 秒 |
|
||||
| 含独立读回总耗时 | 150.375 秒 | 161.171 秒 | 157.375 秒 |
|
||||
|
||||
一对多原型的库查询阶段约 0.578 秒,模板创建及映射检查约 6.266 秒,库属性应用约 1.219 秒,引脚同步约 6.734 秒,模板删除约 0.141 秒,Value/样式恢复约 6.219 秒,保存前检查及 Undo 完成约 5.687 秒。这些是阶段区间,包含区间内的断言和记录开销,不能当成孤立 API 调用时间。
|
||||
|
||||
一对多样本中,重开验证增加约 16.4 秒、退出增加约 3.7 秒,抵消了替换阶段节省的约 12.7 秒。单次测量不能判断这些差值是路径引起还是会话/系统波动,因此不能从本次数据认定原型稳定地更慢或更快。
|
||||
|
||||
多规则原型的三个目标已通过保存重开及独立读回,完成替换 32.562 秒,含独立读回 157.375 秒。GUI 基准在第一组 RV05 成功后,第二组 RV14 的 `Native replacement did not complete` 等待超时;**没有有效 GUI 多规则对照,不计算加速倍数,也不宣称这个场景与 GUI 完全等价。**
|
||||
|
||||
只读复核确认,多规则基准仍漏了正式 VBS `QPFinishBatchItem` 的逐项保存关闭、重开检查点(`integration/dxdesigner795/QuickPartReplace.vbs:912-929`),基准只在所有组完成后重开。该差异尚未补齐,不能将超时归为产品故障。重复选同一新料号时,GUI 目标字段可能尚在更新,也是未证实的时序线索。失败试验耗时不作为成功执行时间。
|
||||
|
||||
## 核验结果
|
||||
|
||||
- 有效一对多两条路径的初始/最终器件记录、初始目标引脚、几何、样式及最终独立读回逐项相等。
|
||||
- 一对多的分层与展开图均完整一致:57 个器件/符号实例、103 个引脚、22 个网络。清单字段只有 RV14、RV08 改变;55 个其他实例的清单字段不变,包括同料号 RV19。
|
||||
- 多规则原型的清单字段只有 RV05、RV14、RV02 改变,54 个其他实例的清单字段不变;目标 UID、坐标、方向、比例、属性样式、引脚网络通过保存前及重开后的检查。
|
||||
- 三次成功及一次失败试验的来源工程 `.prj`、`icdb.dat` 哈希均未变;四次 CAD 正常退出、所属 Job 清空、句柄关闭,私有桌面释放确认通过。
|
||||
- 四次试验使用同一冻结脚本,SHA-256 为 `c6b70769bc4a1ec1e7e1806fac6d8ba60caee269f29a6237fae9dd636fecd89d`。
|
||||
|
||||
## 后续优化优先级
|
||||
|
||||
1. **先处理会话固定开销。** 本次启动与首次打开合计约 77~79 秒。可研究同一批任务复用自有 CAD 会话的收益,同时保留工程隔离、取消、异常重启和最终释放;这只是优化方向,尚未实现或测出收益。
|
||||
2. **按图页和目标料号批处理。** 复用目标库模板、合并重复的全页属性/引脚读取,保留未选中器件和连线校验。库查询已不足一秒,继续只优化查询无法解决主要耗时。
|
||||
3. **先补齐基准的逐项检查点,再评估合并策略。** 正式流程每条规则保存重开有额外代价,也可能承担提交稳定性与故障恢复职责,不能为追求速度直接删除。补齐后测同一工程多规则、多个工程,以及不同目标料号;重复测量后再决定正式接入范围。
|
||||
|
||||
现阶段保留正式后端。受限原型可继续研究,不具备据此宣称所有料号、不同符号、多 gate、PCB 打包同步或 400 项任务统一提速的证据。
|
||||
|
||||
## 有效性与排除项
|
||||
|
||||
只有替换结果、来源哈希和私有桌面清理均通过的样本才能纳入。有效一对多场景比较了 GUI 与原型的初始/最终器件记录、引脚记录、几何、样式及独立读回,并用安装自带 `icdb2ascii` 导出分层和展开图逐器件、逐引脚、逐网络比较;多规则缺少成功 GUI 结果,不满足成对比较条件。图比较忽略同层属性及网络连接行的排列顺序,保留连接内容。这是导出图数据一致,不是工程数据库字节相同。
|
||||
|
||||
前期调试试验不纳入计时:同进程直接调用 GUI 适配器导致 COM 代理断连;基准漏掉每条规则后的正式恢复事务,后续规则超时;一对多替换成功后,基准错误假设 Value 属性仍存在,恢复阶段失败。冻结基准已补齐逐规则属性恢复及缺失 Value 重建,重新尝试四次,但仍存在上述多规则逐项保存重开差异。上述失败不能用来认定正式工具存在相应缺陷。
|
||||
|
||||
之前带调试器的核心跟踪和较早的无弹窗实验边界不同,均不与本轮数据相除。
|
||||
|
||||
## 证据
|
||||
|
||||
本轮原始报告、工程副本、固定基准脚本保留在本机忽略目录 `build/speed-final-20261017-*`,导出结果位于 `build/speed-final-ascii-20261017-*`;固定脚本为 `build/benchmark_replacement_backends-final.py`。精简计时、各阶段间隔、脚本/原始报告/初始与最终记录哈希、目标变化、独立读回和清理结果已保留在 [评估证据 JSON](2026-10-17-replacement-speed-evidence.json)。原生接口范围及尚未覆盖的替换类型见 [接口研究](2026-10-17-replacement-cli-alternative.md)。
|
||||
@@ -0,0 +1,612 @@
|
||||
{
|
||||
"date": "2026-10-17",
|
||||
"production_backend_changed": false,
|
||||
"metrics": {
|
||||
"replacement_completed_seconds": "stage(save_close) - stage(backend_start); includes restoration, pre-save verification and undo completion; excludes saving",
|
||||
"guarded_total_seconds": "session_seconds + independent_seconds; excludes cloning, Excel/task/queue preparation and additional ASCII comparison exports",
|
||||
"reduction_percent": "100 * (1 - headless/gui); negative means slower",
|
||||
"speed_ratio": "gui/headless"
|
||||
},
|
||||
"limits": [
|
||||
"one sample per backend per workload",
|
||||
"new CAD session, OS and library caches not reset",
|
||||
"same symbol, single gate, equal pin mapping only",
|
||||
"shared destination part template; no extrapolation to arbitrary BOM or 400 items",
|
||||
"replacement uses COM and requires CAD; query CLI only"
|
||||
],
|
||||
"workloads": {
|
||||
"one_to_many": {
|
||||
"targets": [
|
||||
"RV14",
|
||||
"RV08"
|
||||
],
|
||||
"runs": {
|
||||
"gui": {
|
||||
"verified": true,
|
||||
"report_path": "build/speed-final-20261017-gui-many/report.json",
|
||||
"raw_report_sha256": "cb29ab1e4363c56960bb65f94d411363616466558e609aa21237af1333b6bb15",
|
||||
"harness_sha256": "c6b70769bc4a1ec1e7e1806fac6d8ba60caee269f29a6237fae9dd636fecd89d",
|
||||
"samples": 1,
|
||||
"replacement_completed_seconds": 39.57799999999406,
|
||||
"session_seconds": 149.54700000000594,
|
||||
"independent_seconds": 0.8279999999940628,
|
||||
"guarded_total_seconds": 150.375,
|
||||
"phase_seconds": {
|
||||
"startup": 50.75,
|
||||
"open_and_initial_snapshot": 26.062999999994645,
|
||||
"replacement_restoration_verification_undo": 39.57799999999406,
|
||||
"save_close": 3.172000000005937,
|
||||
"reopen_and_verify": 23.71799999999348,
|
||||
"shutdown": 3.577999999994063,
|
||||
"independent_read": 0.8279999999940628
|
||||
},
|
||||
"native_library_query_seconds": null,
|
||||
"stage_offsets_seconds": {
|
||||
"open": 0.0,
|
||||
"backend_start": 26.062999999994645,
|
||||
"gui_replace_RV14_RV08": 26.062999999994645,
|
||||
"restore_value_display": 55.187999999994645,
|
||||
"verify_before_save": 60.280999999988126,
|
||||
"save_close": 65.64099999998871,
|
||||
"reopen_and_verify": 68.81299999999464,
|
||||
"verified": 92.53099999998813
|
||||
},
|
||||
"stage_interval_seconds": [
|
||||
{
|
||||
"from": "open",
|
||||
"to": "backend_start",
|
||||
"seconds": 26.062999999994645
|
||||
},
|
||||
{
|
||||
"from": "backend_start",
|
||||
"to": "gui_replace_RV14_RV08",
|
||||
"seconds": 0.0
|
||||
},
|
||||
{
|
||||
"from": "gui_replace_RV14_RV08",
|
||||
"to": "restore_value_display",
|
||||
"seconds": 29.125
|
||||
},
|
||||
{
|
||||
"from": "restore_value_display",
|
||||
"to": "verify_before_save",
|
||||
"seconds": 5.092999999993481
|
||||
},
|
||||
{
|
||||
"from": "verify_before_save",
|
||||
"to": "save_close",
|
||||
"seconds": 5.360000000000582
|
||||
},
|
||||
{
|
||||
"from": "save_close",
|
||||
"to": "reopen_and_verify",
|
||||
"seconds": 3.172000000005937
|
||||
},
|
||||
{
|
||||
"from": "reopen_and_verify",
|
||||
"to": "verified",
|
||||
"seconds": 23.71799999999348
|
||||
}
|
||||
],
|
||||
"before_sha256": "3cdbf2ee6af01826cca545fe02a4c0bd55d39ff795cf006f922a959807a9977e",
|
||||
"after_sha256": "d0ab69d75239b17f54f90669df88d20ef194799b734a02f76ec93b9a35847550",
|
||||
"changed_components": [
|
||||
{
|
||||
"uid": "$2I1766",
|
||||
"before": {
|
||||
"refdes": "RV14",
|
||||
"part": "4100-CA1030-T7",
|
||||
"label": "10K",
|
||||
"value": "10K/NC",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV14",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "0R/NC",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "$2I820",
|
||||
"before": {
|
||||
"refdes": "RV08",
|
||||
"part": "4100-CA1030-T7",
|
||||
"label": "10K",
|
||||
"value": "10K/NC",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV08",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "0R/NC",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
}
|
||||
],
|
||||
"unchanged_component_count": 55,
|
||||
"independent_read": {
|
||||
"RV02": {
|
||||
"uid": "$2I1428",
|
||||
"part": "4100-CA2220-T7",
|
||||
"value": "2.2K"
|
||||
},
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
}
|
||||
},
|
||||
"source_hashes_unchanged": true,
|
||||
"cleanup": {
|
||||
"state": "released",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"quit_helper_exit_code": 0,
|
||||
"cleanup_errors": [],
|
||||
"desktop_handle_closed": true,
|
||||
"desktop_release_confirmed": true,
|
||||
"owned_process_records": 4,
|
||||
"all_owned_jobs_empty_and_handles_closed": true
|
||||
}
|
||||
},
|
||||
"headless": {
|
||||
"verified": true,
|
||||
"report_path": "build/speed-final-20261017-headless-many/report.json",
|
||||
"raw_report_sha256": "d4deb2a8f6a7c2e8f0b0cdb4cb173c2e213cd17ffb7d49e8c33775961cd84ac6",
|
||||
"harness_sha256": "c6b70769bc4a1ec1e7e1806fac6d8ba60caee269f29a6237fae9dd636fecd89d",
|
||||
"samples": 1,
|
||||
"replacement_completed_seconds": 26.844000000011874,
|
||||
"session_seconds": 160.15600000000268,
|
||||
"independent_seconds": 1.014999999999418,
|
||||
"guarded_total_seconds": 161.1710000000021,
|
||||
"phase_seconds": {
|
||||
"startup": 48.88999999999942,
|
||||
"open_and_initial_snapshot": 29.73399999999674,
|
||||
"replacement_restoration_verification_undo": 26.844000000011874,
|
||||
"save_close": 3.702999999994063,
|
||||
"reopen_and_verify": 40.15600000000268,
|
||||
"shutdown": 7.2960000000020955,
|
||||
"independent_read": 1.014999999999418
|
||||
},
|
||||
"native_library_query_seconds": 0.4850000000005821,
|
||||
"stage_offsets_seconds": {
|
||||
"open": 0.0,
|
||||
"backend_start": 29.73399999999674,
|
||||
"native_library_query": 29.73399999999674,
|
||||
"create_target_template": 30.312000000005355,
|
||||
"apply_library_attributes": 36.578000000008615,
|
||||
"synchronize_pin_properties": 37.79700000000594,
|
||||
"delete_template": 44.53100000000268,
|
||||
"restore_value_display": 44.67200000000594,
|
||||
"verify_before_save": 50.89100000000326,
|
||||
"save_close": 56.578000000008615,
|
||||
"reopen_and_verify": 60.28100000000268,
|
||||
"verified": 100.43700000000536
|
||||
},
|
||||
"stage_interval_seconds": [
|
||||
{
|
||||
"from": "open",
|
||||
"to": "backend_start",
|
||||
"seconds": 29.73399999999674
|
||||
},
|
||||
{
|
||||
"from": "backend_start",
|
||||
"to": "native_library_query",
|
||||
"seconds": 0.0
|
||||
},
|
||||
{
|
||||
"from": "native_library_query",
|
||||
"to": "create_target_template",
|
||||
"seconds": 0.5780000000086147
|
||||
},
|
||||
{
|
||||
"from": "create_target_template",
|
||||
"to": "apply_library_attributes",
|
||||
"seconds": 6.26600000000326
|
||||
},
|
||||
{
|
||||
"from": "apply_library_attributes",
|
||||
"to": "synchronize_pin_properties",
|
||||
"seconds": 1.2189999999973224
|
||||
},
|
||||
{
|
||||
"from": "synchronize_pin_properties",
|
||||
"to": "delete_template",
|
||||
"seconds": 6.73399999999674
|
||||
},
|
||||
{
|
||||
"from": "delete_template",
|
||||
"to": "restore_value_display",
|
||||
"seconds": 0.14100000000325963
|
||||
},
|
||||
{
|
||||
"from": "restore_value_display",
|
||||
"to": "verify_before_save",
|
||||
"seconds": 6.2189999999973224
|
||||
},
|
||||
{
|
||||
"from": "verify_before_save",
|
||||
"to": "save_close",
|
||||
"seconds": 5.687000000005355
|
||||
},
|
||||
{
|
||||
"from": "save_close",
|
||||
"to": "reopen_and_verify",
|
||||
"seconds": 3.702999999994063
|
||||
},
|
||||
{
|
||||
"from": "reopen_and_verify",
|
||||
"to": "verified",
|
||||
"seconds": 40.15600000000268
|
||||
}
|
||||
],
|
||||
"before_sha256": "3cdbf2ee6af01826cca545fe02a4c0bd55d39ff795cf006f922a959807a9977e",
|
||||
"after_sha256": "d0ab69d75239b17f54f90669df88d20ef194799b734a02f76ec93b9a35847550",
|
||||
"changed_components": [
|
||||
{
|
||||
"uid": "$2I1766",
|
||||
"before": {
|
||||
"refdes": "RV14",
|
||||
"part": "4100-CA1030-T7",
|
||||
"label": "10K",
|
||||
"value": "10K/NC",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV14",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "0R/NC",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "$2I820",
|
||||
"before": {
|
||||
"refdes": "RV08",
|
||||
"part": "4100-CA1030-T7",
|
||||
"label": "10K",
|
||||
"value": "10K/NC",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV08",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "0R/NC",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
}
|
||||
],
|
||||
"unchanged_component_count": 55,
|
||||
"independent_read": {
|
||||
"RV02": {
|
||||
"uid": "$2I1428",
|
||||
"part": "4100-CA2220-T7",
|
||||
"value": "2.2K"
|
||||
},
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
}
|
||||
},
|
||||
"source_hashes_unchanged": true,
|
||||
"cleanup": {
|
||||
"state": "released",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"quit_helper_exit_code": 0,
|
||||
"cleanup_errors": [],
|
||||
"desktop_handle_closed": true,
|
||||
"desktop_release_confirmed": true,
|
||||
"owned_process_records": 4,
|
||||
"all_owned_jobs_empty_and_handles_closed": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"comparisons": {
|
||||
"replacement_completed_seconds": {
|
||||
"gui": 39.57799999999406,
|
||||
"headless": 26.844000000011874,
|
||||
"seconds_saved": 12.733999999982188,
|
||||
"reduction_percent": 32.17444034560639,
|
||||
"speed_ratio": 1.474370436595759
|
||||
},
|
||||
"guarded_total_seconds": {
|
||||
"gui": 150.375,
|
||||
"headless": 161.1710000000021,
|
||||
"seconds_saved": -10.796000000002095,
|
||||
"reduction_percent": -7.179384871156835,
|
||||
"speed_ratio": 0.9330152446780007
|
||||
}
|
||||
},
|
||||
"paired_records_equal": {
|
||||
"before": true,
|
||||
"after": true,
|
||||
"pins_before": true,
|
||||
"styles_before": true,
|
||||
"geometry_before": true,
|
||||
"independent_read": true
|
||||
},
|
||||
"graph_comparison": {
|
||||
"hier": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "686bbd1bff29832fa073ce5a56838a8ed6ab83ecf73ee91a2c8aa5f4758470e0"
|
||||
},
|
||||
"flat": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "72f929f06aadfa2cd4224e652b2d0613263da95a58796255f76e317a1c13de53"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multi_rule": {
|
||||
"targets": [
|
||||
"RV05",
|
||||
"RV14",
|
||||
"RV02"
|
||||
],
|
||||
"runs": {
|
||||
"gui": {
|
||||
"verified": false,
|
||||
"included_in_speed_comparison": false,
|
||||
"report_path": "build/speed-final-20261017-gui-rules/report.json",
|
||||
"raw_report_sha256": "7f162995170c93715b55252b559222291a3a033c4ad1806680521ca53c1689dd",
|
||||
"harness_sha256": "c6b70769bc4a1ec1e7e1806fac6d8ba60caee269f29a6237fae9dd636fecd89d",
|
||||
"failure": "Second group RV14: native_helper wait_for selected_replaced timed out (Native replacement did not complete); first group RV05 passed",
|
||||
"source_hashes_unchanged": true,
|
||||
"cleanup": {
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"desktop_release_confirmed": true
|
||||
},
|
||||
"root_cause": "unresolved; confirmed harness difference: production QPFinishBatchItem saves/closes/reopens each item, benchmark only reopens after all groups; failure cannot be attributed to product"
|
||||
},
|
||||
"headless": {
|
||||
"verified": true,
|
||||
"report_path": "build/speed-final-20261017-headless-rules/report.json",
|
||||
"raw_report_sha256": "4e85fa75f9c95412033f86827634c82b76228950f4e8a9d544b3488b3c85e8ef",
|
||||
"harness_sha256": "c6b70769bc4a1ec1e7e1806fac6d8ba60caee269f29a6237fae9dd636fecd89d",
|
||||
"samples": 1,
|
||||
"replacement_completed_seconds": 32.562000000005355,
|
||||
"session_seconds": 156.56200000000536,
|
||||
"independent_seconds": 0.8129999999946449,
|
||||
"guarded_total_seconds": 157.375,
|
||||
"phase_seconds": {
|
||||
"startup": 51.0,
|
||||
"open_and_initial_snapshot": 27.937999999994645,
|
||||
"replacement_restoration_verification_undo": 32.562000000005355,
|
||||
"save_close": 6.89100000000326,
|
||||
"reopen_and_verify": 31.35899999999674,
|
||||
"shutdown": 4.10899999999674,
|
||||
"independent_read": 0.8129999999946449
|
||||
},
|
||||
"native_library_query_seconds": 0.34399999999732245,
|
||||
"stage_offsets_seconds": {
|
||||
"open": 0.0,
|
||||
"backend_start": 27.937999999994645,
|
||||
"native_library_query": 27.937999999994645,
|
||||
"create_target_template": 28.421999999991385,
|
||||
"apply_library_attributes": 35.046999999991385,
|
||||
"synchronize_pin_properties": 37.11000000000058,
|
||||
"delete_template": 44.78199999999197,
|
||||
"restore_value_display": 44.937999999994645,
|
||||
"verify_before_save": 52.01600000000326,
|
||||
"save_close": 60.5,
|
||||
"reopen_and_verify": 67.39100000000326,
|
||||
"verified": 98.75
|
||||
},
|
||||
"stage_interval_seconds": [
|
||||
{
|
||||
"from": "open",
|
||||
"to": "backend_start",
|
||||
"seconds": 27.937999999994645
|
||||
},
|
||||
{
|
||||
"from": "backend_start",
|
||||
"to": "native_library_query",
|
||||
"seconds": 0.0
|
||||
},
|
||||
{
|
||||
"from": "native_library_query",
|
||||
"to": "create_target_template",
|
||||
"seconds": 0.48399999999674037
|
||||
},
|
||||
{
|
||||
"from": "create_target_template",
|
||||
"to": "apply_library_attributes",
|
||||
"seconds": 6.625
|
||||
},
|
||||
{
|
||||
"from": "apply_library_attributes",
|
||||
"to": "synchronize_pin_properties",
|
||||
"seconds": 2.063000000009197
|
||||
},
|
||||
{
|
||||
"from": "synchronize_pin_properties",
|
||||
"to": "delete_template",
|
||||
"seconds": 7.671999999991385
|
||||
},
|
||||
{
|
||||
"from": "delete_template",
|
||||
"to": "restore_value_display",
|
||||
"seconds": 0.15600000000267755
|
||||
},
|
||||
{
|
||||
"from": "restore_value_display",
|
||||
"to": "verify_before_save",
|
||||
"seconds": 7.078000000008615
|
||||
},
|
||||
{
|
||||
"from": "verify_before_save",
|
||||
"to": "save_close",
|
||||
"seconds": 8.48399999999674
|
||||
},
|
||||
{
|
||||
"from": "save_close",
|
||||
"to": "reopen_and_verify",
|
||||
"seconds": 6.89100000000326
|
||||
},
|
||||
{
|
||||
"from": "reopen_and_verify",
|
||||
"to": "verified",
|
||||
"seconds": 31.35899999999674
|
||||
}
|
||||
],
|
||||
"before_sha256": "3cdbf2ee6af01826cca545fe02a4c0bd55d39ff795cf006f922a959807a9977e",
|
||||
"after_sha256": "9d3f8f180378aa750d4fd1da196bc40030dd543009389759398127c1a929aa08",
|
||||
"changed_components": [
|
||||
{
|
||||
"uid": "$2I1428",
|
||||
"before": {
|
||||
"refdes": "RV02",
|
||||
"part": "4100-CA2220-T7",
|
||||
"label": "2.2K",
|
||||
"value": "2.2K",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV02",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "2.2K",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "$2I1766",
|
||||
"before": {
|
||||
"refdes": "RV14",
|
||||
"part": "4100-CA1030-T7",
|
||||
"label": "10K",
|
||||
"value": "10K/NC",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV14",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "0R/NC",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "$2I2014",
|
||||
"before": {
|
||||
"refdes": "RV05",
|
||||
"part": "4100-CA0000-T7",
|
||||
"label": "0R",
|
||||
"value": "0R",
|
||||
"footprint": "RESC1005N"
|
||||
},
|
||||
"after": {
|
||||
"refdes": "RV05",
|
||||
"part": "4100-CA0000-T0",
|
||||
"label": "0R",
|
||||
"value": "0R",
|
||||
"footprint": "RESC1608N"
|
||||
}
|
||||
}
|
||||
],
|
||||
"unchanged_component_count": 54,
|
||||
"independent_read": {
|
||||
"RV02": {
|
||||
"uid": "$2I1428",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "2.2K"
|
||||
},
|
||||
"RV14": {
|
||||
"uid": "$2I1766",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R/NC"
|
||||
},
|
||||
"RV19": {
|
||||
"uid": "$2I1885",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
},
|
||||
"RV05": {
|
||||
"uid": "$2I2014",
|
||||
"part": "4100-CA0000-T0",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV11": {
|
||||
"uid": "$2I2022",
|
||||
"part": "4100-CA0000-T7",
|
||||
"value": "0R"
|
||||
},
|
||||
"RV08": {
|
||||
"uid": "$2I820",
|
||||
"part": "4100-CA1030-T7",
|
||||
"value": "10K/NC"
|
||||
}
|
||||
},
|
||||
"source_hashes_unchanged": true,
|
||||
"cleanup": {
|
||||
"state": "released",
|
||||
"clean": true,
|
||||
"cad_exit_code": 0,
|
||||
"quit_helper_exit_code": 0,
|
||||
"cleanup_errors": [],
|
||||
"desktop_handle_closed": true,
|
||||
"desktop_release_confirmed": true,
|
||||
"owned_process_records": 4,
|
||||
"all_owned_jobs_empty_and_handles_closed": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"comparisons": null,
|
||||
"reason": "No successful GUI multi-rule baseline; prototype absolute times only, no speed ratio or GUI equivalence claim"
|
||||
}
|
||||
},
|
||||
"all_four_harness_hashes_equal": true
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
# V1.1.0 DxDesigner 7.9.5 原生替换接口调研
|
||||
|
||||
调研日期:2026-10-14。范围为现有工作区源码、已有测试、本机注册的 7.9.5 COM TypeLib 与安装帮助;本次没有附着、启动或修改任何 CAD 工程,也没有做写入式 live probe。
|
||||
|
||||
**安装版 TypeLib 复核更正:** 本机实际注册的 `viewdraw.tlb` 是版本 `1.0`,不含 `ReplacePart`、`OpenReplacePartDialog`、`ReplacePartCompleted` 或 `SelectExactSet`。工作区保存的一份同名 `designer_ifc.py` 是声明版本 `119.0` 的 makepy wrapper,虽然含 `IVdApp.ReplacePart(SourcePart, Scope, DestinationPart, PinMapping, PropertyMapping)`、`SRP_Selection=5` 和 `PropMT_LibraryWins=3`,但**不能用于证明本机 7.9.5 有这些成员**。下文旧桥中的这些名称应按候选/模拟接口理解。本机真实接口结果以 [离线 TypeLib 证据](v1.1.0-native-typelib-evidence.json) 为准。
|
||||
|
||||
## 结论
|
||||
|
||||
现有的 `Viewdraw.Application` COM 接口足以读取工程/图页/器件,按 UID 精确选中指定器件,并在替换前后核对选中集合。V1.1.0 的“一个旧料号只替换部分位号”可沿用这条选择链路。**写入路径仍应调用原生 Replace Symbol / Replace Part 并明确核验 Library Wins**。目前没有证据表明 `Block.ChangeComponentPreserveRefdes` 或 `ExecuteCommand("ccomp ...")` 能完整实现中央库选件、Library Wins、引脚及网络保持、Undo 和 Packager 通过。两者只适合作为可丢弃工程上的隔离探针,不能注册为默认执行后端。
|
||||
|
||||
这里的“原生接口”需要分清层次:现行自动执行使用 COM 读写选中状态,再从 `viewdraw.exe` 菜单资源识别 Replace Symbol 命令并发送 `WM_COMMAND`,随后通过 DxDesigner 原生对话框选择库行及选项。这是**原生 UI 工作流的自动化**,不是已证明存在的“传入旧件、新料号、Library Wins 参数的一次性 COM API”。
|
||||
|
||||
## 现有证据
|
||||
|
||||
| 路线 | 已有证据 | 当前判断 |
|
||||
| --- | --- | --- |
|
||||
| `Viewdraw.Application` | `QuickPartReplace.vbs:184,402,416` 附着/创建对象;`native_helper.py:196-204` 从活动对象取得 `IVdApp`;一叶知秋 `integration/dxdesigner795/CompatibilityProbe.vbs:122-132` 使用 `GetProjectData` 和 `DesignComponents` 枚举全工程。 | 可用作工程上下文、清单和选中控制;实际环境、精确 build 和 32/64 位组合仍需现场验收。 |
|
||||
| 按器件精确选择 | `native_helper.py:214-249` 以 UID 设置 `Selected` 并重新读取选中 UID;本机 TypeLib 有 `IVdComp.Selected/_SetSelected` 和 `IVdApp.SelectComponent`;旧桥 `PartReplaceBridge.vbs:2097-2150` 所用的 `SelectExactSet` 不在安装版 TypeLib。一叶知秋 `core/Mailbox.vbs:365-375` 已用 `SelectByName` 定位单件。 | 位号应在扫描阶段绑定项目、图页、UID、旧料号;执行前重查完整身份和选中集合。仅用 RefDes 文本不能跨图页唯一定位。 |
|
||||
| 原生 Replace Part + Library Wins | `native_helper.py:165-193,437-445` 从 Viewdraw 菜单资源识别 Replace Symbol;`:450-517` 打开原生对话框、选择精确库行、检查目标 Part Number/符号、确认原生选项,再执行;`:519-553` 验证结果及未选中件未变。`QuickPartReplace.vbs:780-815` 调用 helper;`:837-865` 对未保存失败做原生 Undo 和快照验证。 | 是已有的自动写入路线;需在现场 build/中央库上回归,并以证据确认每个控件 ID 对应的选项,不能只依赖 ID。 |
|
||||
| `Application.OpenReplacePartDialog` | 旧桥 `PartReplaceBridge.vbs:2260-2261,2341-2384` 调用该名称并读 `ReplacePartCompleted`;旧 probe `PartReplaceProbe.vbs:951-985` 将其列为候选,`ccomp_research` 明确 `production_enabled=false`。本机 7.9.5 `IVdApp` TypeLib 没有这两个成员。 | 旧桥属于未证实候选/模拟路径;不能注册为本机可调用 COM 接口。 |
|
||||
| `Block.ChangeComponentPreserveRefdes` | 本机 7.9.5 TypeLib 的 `IVdBlock` 确有 DISPID `42`,参数 `OldComp, NewComp`,返回 `VARIANT_BOOL`;保存的 wrapper `designer_ifc.py:5005,9943` 也有相同名称。现有设计 `docs/superpowers/specs/2026-09-01-dxdesigner-795-part-replacement-design.md:50-61` 记录符号原点及 Packager 失败的社区线索。 | 存在方法不等于可用于库料号替换;签名没有 Library Wins 参数,也未说明只作用于选中位号、如何选库及连接语义。 |
|
||||
| `ExecuteCommand("ccomp ...")` | 类型库包装 `designer_ifc.py:1385,2974,3926` 暴露 `ExecuteCommand(CommandString)`;现有脚本只在 `QuickPartReplace.vbs:845,1143` 对 `undo` 使用它。旧设计 `...part-replacement-design.md:50-60` 仅记载 `ccomp :component_name` 候选,旧 probe 将 `Application.CComp` 标为研究项。全工作区未找到执行 `ExecuteCommand("ccomp ...")` 的生产调用或成功报告。 | 命令存在性、准确语法、选择范围及 Library Wins 行为均未证实。不能用 `undo` 可执行推断 `ccomp` 可执行。 |
|
||||
|
||||
已有文档 `docs/user/part-replacement.md:5,129-142` 对生产边界、精确选择与硬不变量作了明确约束。旧设计 `...part-replacement-design.md:37` 曾写“Python 不直接附着 COM”,但当前 `native_helper.py:196-204` 已直接附着。V1.1.0 文档应以当前实现和 live 证据为准,修正这处历史差异;不要把旧设计中的未验证候选当作生产能力。模拟测试 `tests/integration/test_part_replace_probe.py:498-562` 与 `test_part_replace_bridge.py:336-355` 只能证明协议和错误处理,不构成真实 7.9.5 行为证据。
|
||||
|
||||
## 本机安装版 TypeLib 细查
|
||||
|
||||
注册表 `HKLM\SOFTWARE\Classes\TypeLib\{4ADEF4E1-690A-11CE-9261-0020C5E26659}\1.0\0\win32` 指向 `D:\Mentor\7.9.5EE\SDD_HOME\wv\win32\bin\viewdraw.tlb`,SHA-256 为 `09323c8940f1acf3f469d887dcfdf7bcd114164a29b01ebeb9a7f978fa1a0df7`,共 223 个 TypeInfo。离线脚本 `tools/research/probe-native-capabilities.py` 直接调用 `pythoncom.LoadTypeLib(path)` 读这个文件,并与保存的 wrapper 比较;它不调用 `GetActiveObject` 或 `CreateObject`。输出 `docs/research/v1.1.0-native-typelib-evidence.json` 的 `wrapper_matches_installed_version=false`。
|
||||
|
||||
安装版真实可见成员包括 `IVdApp.ExecuteCommand(CommandString)` DISPID 29、`SelectComponent(sSchName, sSheetName, sCompUID)` DISPID 266、`QueryPages` DISPID 46、`DesignComponents` DISPID 59、`GetProjectData` DISPID 228;`IVdComp.Selected` 和 `_SetSelected`;`IVdBlock.DeSelectAll`、`ChangeComponent` DISPID 24、`ChangeComponentPreserveRefdes` DISPID 42。**没有任何名称含 Replace 的 TypeLib 函数**。旧桥引用的 `SelectExactSet`、`OpenReplacePartDialog`、`ReplacePartCompleted` 在安装版各接口中均未出现;目前测试里的同名 mock 不能当作原生接口。
|
||||
|
||||
外部 wrapper 的 `IVdApp.ReplacePart` 确有 DISPID 300、两个 BSTR、三个 32 位整数/枚举、布尔返回,以及 `SRP_Selection=5`、`PinMT_ByPinNumber=2`、`PropMT_LibraryWins=3`。它的声明版本是 `119.0`,与安装版 `1.0` 不同。因此可作为**未来版本接口线索**,但本机 V1.1.0 后端 capability 必须返回 `unavailable`,不能尝试按 DISPID 300 盲调。只有安装的 TypeLib 与运行时真实包含该方法,且 Selection + 精确 UID 选中 + Library Wins 的现场语义全部验证,才能为对应 build 启用直接 API 后端。
|
||||
|
||||
安装版 `automate.chm` 尝试用系统 `hh.exe -decompile` 提取,但没有得到可读文件;工作区的 `designer_auto_ref.pdf` 为较新 Xpedition Designer Automation Reference,页 696-697 解释 PinMapping/PropertyMapping 枚举,却不能代表本机 7.9.5 的接口集。故本结论优先依据安装版二进制 TypeLib,帮助材料只用于理解候选语义。
|
||||
|
||||
## 建议的 live probe
|
||||
|
||||
1. 准备已关闭、可丢弃的完整工程副本,记录 DxDesigner 版本/build、中央库身份、工程树哈希;选择同一旧料号的两个以上器件,其中仅一个目标位号需要替换。另选一个多单元或引脚较多的代表件。
|
||||
2. 先只读探测 `ProjectPath`、`QueryPages`、`DesignComponents`、每个器件的 UID/RefDes/层级/图页/旧料号/Value/引脚/网络;在不同图页和同页重复位号场景验证身份是否唯一。记录 COM 调用返回值与错误号。
|
||||
3. 在副本上单独验证 `IVdComp.Selected` 与 `IVdApp.SelectComponent`:只选目标 UID,重新枚举选中集合。若集合不一致则停止。记录目标与同旧料号未选中器件的完整前快照。`SelectExactSet` 不作为本机 7.9.5 探针调用。
|
||||
4. 建立基准:使用现行原生对话框路线对目标位号执行一次 Replace Part + Library Wins,记录库行、目标符号、控件文本/状态、替换后全图页快照、Undo、保存关闭再打开回读、Packager/ERC/网表结果。
|
||||
5. 对 `ChangeComponentPreserveRefdes` 和 `ccomp` **分别使用新的副本**做最小写入探针。先只读确认签名和命令语法;确认可恢复后仅改一个目标件。记录实际作用范围、库控制字段、RefDes/位置/方向、引脚号与网络、非目标件、Undo、保存回读和 Packager。任一步不确定就关闭副本且不保存,并留证;不能把属性值或 Part Number 单字段变化视为通过。
|
||||
6. 只有候选路线在多类器件、多图页、现场中央库上满足与基准相同的硬不变量,且有可重复证据和精确 build 绑定,才考虑提升为可选后端。选择一组目标位号后,必须证明未选中的同料号位号保持原样。
|
||||
|
||||
现行代码核验目标及未选中件料号(`native_helper.py:519-547`),但后端晋级标准还要使用 `docs/user/part-replacement.md:140` 的完整保护字段,并核对 NC/Value 策略、保存回读和独立 Packager/ERC/网表结果。现场报告应保存命令、参数、返回值/错误、前后快照、差异及文件 SHA-256,而不是只保存“成功”布尔值。
|
||||
|
||||
## V1.1.0 后端边界建议
|
||||
|
||||
将**计划和身份验证**留在任务层;替换后端只负责一组已冻结的目标 UID。在单工程任务内按图页、旧料号、新料号及 Value/NC 策略分组,后端逐组处理。最小契约可表达为:
|
||||
|
||||
```text
|
||||
ReplacementRequest:
|
||||
project_path, project_fingerprint, sheet_identity
|
||||
targets: [{uid, refdes, old_part_number, baseline_fingerprint}]
|
||||
new_part_number, library_identity, policy, command_id
|
||||
|
||||
ReplacementBackend:
|
||||
capability(build, library_identity) -> supported / research_only / unavailable
|
||||
inspect(request) -> current target identities and full-sheet baseline
|
||||
replace(request, evidence_dir) -> result with attempted/committed/uncertain status
|
||||
verify(request, result) -> selected and unselected differences
|
||||
recover(request, result) -> verified undo or close_without_save evidence
|
||||
```
|
||||
|
||||
生产后端先封装当前 native dialog/helper 路线。`ChangeComponentPreserveRefdes` 与 `ccomp` 应放入独立研究适配器,并强制 `research_only`、可丢弃副本和显式试验入口。后端不能自行扩大目标集合;命令中无 UID、旧料号或工程指纹匹配失败时,必须在写入前失败。结果须区分“未开始”“已变更但未确认”“已验证”和“已恢复”,使批次调度器遇到不确定状态时停下。
|
||||
|
||||
## 外部资料与证据等级
|
||||
|
||||
现有设计在 `...part-replacement-design.md:69` 引用了 Siemens 社区关于 `ChangeComponentPreserveRefdes` 导致封装失败的讨论。此次网络可访问 Siemens 支持门户首页(HTTP 200),但未取得公开的 7.9.5 API 正文或可复核的 `ccomp`/Library Wins 参数说明;搜索请求超时。因此报告中对这两条路线的判断以本机类型库、工作区源码与设计记录为依据,**没有宣称公开资料证明其替换语义**。下一轮应优先取得站点安装包里的 Automation Reference、命令手册和现场 build 录屏/日志,再做写入试验。
|
||||
@@ -0,0 +1,629 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"mode": "offline_installed_typelib_and_wrapper_comparison",
|
||||
"attached_to_viewdraw": false,
|
||||
"mutation_attempted": false,
|
||||
"wrapper": {
|
||||
"path": "F:\\Sync Tool Skyworth\\Work Maps\\AppTraceRecorder\\reference\\SiemensEDA_Python_Interface\\xpedition_designer\\designer_ifc.py",
|
||||
"sha256": "4f6c341091b3b55ed579df6747b2cf261f49533cdbafaa9db306b06ff751c95a"
|
||||
},
|
||||
"typelib": {
|
||||
"path": "D:\\Mentor\\7.9.5EE\\SDD_HOME\\wv\\win32\\bin\\viewdraw.tlb",
|
||||
"exists": true,
|
||||
"sha256": "09323c8940f1acf3f469d887dcfdf7bcd114164a29b01ebeb9a7f978fa1a0df7",
|
||||
"size": 188040
|
||||
},
|
||||
"saved_wrapper_candidates": {
|
||||
"declared_version": {
|
||||
"major": 119,
|
||||
"minor": 0
|
||||
},
|
||||
"constants": {
|
||||
"SRP_Project": 1,
|
||||
"SRP_Board": 2,
|
||||
"SRP_Schematic": 3,
|
||||
"SRP_Sheet": 4,
|
||||
"SRP_Selection": 5,
|
||||
"PinMT_ByName": 1,
|
||||
"PinMT_ByPinNumber": 2,
|
||||
"PropMT_LibraryOnly": 1,
|
||||
"PropMT_SchematicWins": 2,
|
||||
"PropMT_LibraryWins": 3
|
||||
},
|
||||
"methods": [
|
||||
{
|
||||
"interface": "IVdApp",
|
||||
"name": "ReplacePart",
|
||||
"dispid": 300,
|
||||
"arguments": [
|
||||
"SourcePart",
|
||||
"Scope",
|
||||
"DestinationPart",
|
||||
"PinMapping",
|
||||
"PropertyMapping"
|
||||
],
|
||||
"makepy_return_type": [
|
||||
11,
|
||||
0
|
||||
],
|
||||
"makepy_argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
]
|
||||
],
|
||||
"wrapper_line": 3347,
|
||||
"status": "typelib_candidate"
|
||||
},
|
||||
{
|
||||
"interface": "IVdAppProtectionProxy",
|
||||
"name": "ReplacePart",
|
||||
"dispid": 300,
|
||||
"arguments": [
|
||||
"SourcePart",
|
||||
"Scope",
|
||||
"DestinationPart",
|
||||
"PinMapping",
|
||||
"PropertyMapping"
|
||||
],
|
||||
"makepy_return_type": [
|
||||
11,
|
||||
0
|
||||
],
|
||||
"makepy_argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
]
|
||||
],
|
||||
"wrapper_line": 4277,
|
||||
"status": "typelib_candidate"
|
||||
},
|
||||
{
|
||||
"interface": "IVdApplicationAtTest",
|
||||
"name": "ReplaceConnector",
|
||||
"dispid": 2,
|
||||
"arguments": [
|
||||
"SourceConnector",
|
||||
"Scope",
|
||||
"DestinationConnector",
|
||||
"PinMapping",
|
||||
"PropertyMapping"
|
||||
],
|
||||
"makepy_return_type": [
|
||||
11,
|
||||
0
|
||||
],
|
||||
"makepy_argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
]
|
||||
],
|
||||
"wrapper_line": 4549,
|
||||
"status": "typelib_candidate"
|
||||
},
|
||||
{
|
||||
"interface": "IVdApplicationAtTest",
|
||||
"name": "ReplaceSymbol",
|
||||
"dispid": 3,
|
||||
"arguments": [
|
||||
"SourceSymbol",
|
||||
"Scope",
|
||||
"DestinationSymbol",
|
||||
"PinMapping",
|
||||
"PropertyMapping"
|
||||
],
|
||||
"makepy_return_type": [
|
||||
11,
|
||||
0
|
||||
],
|
||||
"makepy_argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
3,
|
||||
1
|
||||
]
|
||||
],
|
||||
"wrapper_line": 4554,
|
||||
"status": "typelib_candidate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"installed_typelib": {
|
||||
"guid": "{4ADEF4E1-690A-11CE-9261-0020C5E26659}",
|
||||
"major_version": 1,
|
||||
"minor_version": 0,
|
||||
"type_count": 223,
|
||||
"interfaces": {
|
||||
"IVdApp": [
|
||||
{
|
||||
"name": "ExecuteCommand",
|
||||
"dispid": 29,
|
||||
"parameters": [
|
||||
"CommandString"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueryPages",
|
||||
"dispid": 46,
|
||||
"parameters": [
|
||||
"Name"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
[
|
||||
26,
|
||||
[
|
||||
29,
|
||||
50338560
|
||||
]
|
||||
],
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DesignComponents",
|
||||
"dispid": 59,
|
||||
"parameters": [
|
||||
"Library",
|
||||
"Name",
|
||||
"EndSheet",
|
||||
"LevelString",
|
||||
"RecurseDown"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
49
|
||||
],
|
||||
[
|
||||
8,
|
||||
49
|
||||
],
|
||||
[
|
||||
11,
|
||||
49
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
[
|
||||
26,
|
||||
[
|
||||
29,
|
||||
50338560
|
||||
]
|
||||
],
|
||||
32
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GetProjectData",
|
||||
"dispid": 228,
|
||||
"parameters": [],
|
||||
"argument_types": [],
|
||||
"return_type": [
|
||||
[
|
||||
26,
|
||||
[
|
||||
29,
|
||||
50343040
|
||||
]
|
||||
],
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SelectComponent",
|
||||
"dispid": 266,
|
||||
"parameters": [
|
||||
"sSchName",
|
||||
"sSheetName",
|
||||
"sCompUID"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"IVdView": [
|
||||
{
|
||||
"name": "SelectByName",
|
||||
"dispid": 1,
|
||||
"parameters": [
|
||||
"Name"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SelectObject",
|
||||
"dispid": 12,
|
||||
"parameters": [
|
||||
"ObjectType",
|
||||
"Expression",
|
||||
"SelectOwner",
|
||||
"RegExp",
|
||||
"AddSelect"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
[
|
||||
29,
|
||||
50334848
|
||||
],
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
11,
|
||||
1
|
||||
],
|
||||
[
|
||||
11,
|
||||
1
|
||||
],
|
||||
[
|
||||
11,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
22,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"IVdBlock": [
|
||||
{
|
||||
"name": "DeSelectAll",
|
||||
"dispid": 14,
|
||||
"parameters": [],
|
||||
"argument_types": [],
|
||||
"return_type": [
|
||||
24,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ChangeComponent",
|
||||
"dispid": 24,
|
||||
"parameters": [
|
||||
"OldComp",
|
||||
"NewComp"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ChangeComponentPreserveRefdes",
|
||||
"dispid": 42,
|
||||
"parameters": [
|
||||
"OldComp",
|
||||
"NewComp"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"IVdComp": [
|
||||
{
|
||||
"name": "Selected",
|
||||
"dispid": 26,
|
||||
"parameters": [],
|
||||
"argument_types": [
|
||||
[
|
||||
11,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
24,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "_SetSelected",
|
||||
"dispid": 12,
|
||||
"parameters": [
|
||||
"Flag"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
22,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
24,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"ICommandsManager": [
|
||||
{
|
||||
"name": "ExecuteCommand",
|
||||
"dispid": 307,
|
||||
"parameters": [
|
||||
"CommandString"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"IVdAppProtectionProxy": [
|
||||
{
|
||||
"name": "ExecuteCommand",
|
||||
"dispid": 29,
|
||||
"parameters": [
|
||||
"CommandString"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueryPages",
|
||||
"dispid": 46,
|
||||
"parameters": [
|
||||
"Name"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
[
|
||||
26,
|
||||
[
|
||||
29,
|
||||
50338560
|
||||
]
|
||||
],
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DesignComponents",
|
||||
"dispid": 59,
|
||||
"parameters": [
|
||||
"Library",
|
||||
"Name",
|
||||
"EndSheet",
|
||||
"LevelString",
|
||||
"RecurseDown"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
49
|
||||
],
|
||||
[
|
||||
8,
|
||||
49
|
||||
],
|
||||
[
|
||||
11,
|
||||
49
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
[
|
||||
26,
|
||||
[
|
||||
29,
|
||||
50338560
|
||||
]
|
||||
],
|
||||
32
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GetProjectData",
|
||||
"dispid": 228,
|
||||
"parameters": [],
|
||||
"argument_types": [],
|
||||
"return_type": [
|
||||
[
|
||||
26,
|
||||
[
|
||||
29,
|
||||
50343040
|
||||
]
|
||||
],
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SelectComponent",
|
||||
"dispid": 266,
|
||||
"parameters": [
|
||||
"sSchName",
|
||||
"sSheetName",
|
||||
"sCompUID"
|
||||
],
|
||||
"argument_types": [
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
1
|
||||
]
|
||||
],
|
||||
"return_type": [
|
||||
11,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"wrapper_matches_installed_version": false
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
# 1.1.2 代码精简与启动/BOM 审查
|
||||
|
||||
审查起点:`136d7ff`。本轮不打包、不发布,不启动 CAD;原始工程、BOM 与既有实测证据不参与写入。
|
||||
|
||||
## 结论与已处理项
|
||||
|
||||
代码确实有历史包袱,但不能按文件大小直接删除。审查起点 Python 生产源码 86 个文件、22,564 行,其中旧 `part_replace` 为 7,503 行;测试目录约 30,337 行,不属于生产包源码。通过检查 GUI、CLI、VBS 动态调用和打包入口,本轮确认并处理以下内容。
|
||||
|
||||
1. 删除 `ui/project_table.py` 的孤立工程列表控件(122 行)。当前窗口使用单工程摘要与位号计划;生产代码、工具、菜单和打包配置均未引用旧控件。
|
||||
2. 删除 `TargetTable.item()` / `_CellAdapter`。它们只为测试模拟旧 QTableWidget 接口;相关用例现直接通过真实 QTableView model 修改、勾选与读取,排序后的 UID 绑定覆盖继续保留。
|
||||
3. 删除未使用的私有导入,保留真实使用的批量备份、协议和包导出。
|
||||
4. 合并 BOM 普通预览与报告校验引擎。`preview_batch` 保留严格调用接口,以同一份 `inspect_batch` 结果返回预览或报错,不再独立维护采集、路由、匹配和编辑保留逻辑。
|
||||
5. `BomMatcher` 对一个工程的位号清单只建立一次索引,逐行仅返回实际命中的目标。每行校验与最终合并校验均保留,继续拒绝重复目标、歧义位号、替换链和循环;未导入位号的原编辑保留。
|
||||
6. 修复损坏 Excel 在普通预览中被误报为未处理异常的问题;按 BOM 导入错误报告。
|
||||
7. 修复读表过程中取消被 ValueError 捕获并转成 BOM 错误的问题。`TaskCenterError` 是 ValueError 子类,需先传播操作异常;inspect/strict 两入口均验证保留 `operation_cancelled`,没有采集或部分保存。
|
||||
8. 启动恢复统一由 runner 完成,删除 application 提前恢复。旧顺序会先修改数据库,使 runner 来不及记录恢复前/后事件。迁移恢复、确认迁移记录和旧运行任务协调均保留。
|
||||
9. 通过按中断状态过滤的一次 SQL 查询替代逐任务读取工程;30 个空闲任务场景不再产生 30 次逐任务工程读取。
|
||||
10. Windows 启动诊断改用 `sys.getwindowsversion()`,避免仅为了记录 OS 信息就启动 WMI 查询。审查期间真实遇到 `platform._wmi_query` 的 `0x8007000e` 异常;这项修正与 CAD COM 绑定问题分别处理。
|
||||
|
||||
生产源码相对起点净减少 **186 行**,减少 1 个模块。新增的索引类替代重复构建和扫描,不是简单把大文件挪到另一个文件。
|
||||
|
||||
## 保留依据
|
||||
|
||||
| 范围 | 仍存在的调用 |
|
||||
| --- | --- |
|
||||
| 旧 `part_replace` CLI | pyproject 公开入口、`python -m dx_productivity`、Start-PartReplacement.ps1 的 discover/status/create/operator-step |
|
||||
| 人工 runner / comparison / evidence | 旧服务入口、历史任务恢复、迁移事件与证据校验;GUI 的规则检查仍跨包复用 inputs |
|
||||
| SceneOS | application 的 `--sceneos-cli` 分派仍存在 |
|
||||
| 菜单和 VBS 桥 | MenuRuntime 的 ExecuteGlobal 动态加载,不能仅依靠 Python import 搜索判死 |
|
||||
| QuickPartReplace / native_helper | 当前原生替换、私有桌面子进程仍使用,打包配置显式包含 VBS |
|
||||
|
||||
`quick_run.py`、`service.py`、`store.py` 仍然偏大。进一步分职责需要检查协议和兼容入口;本轮未引入另一套执行架构或删除仍被调用的功能。
|
||||
|
||||
## 验证
|
||||
|
||||
- 位号编辑、排序和单工程 UI:11 passed。
|
||||
- BOM、库存扩展、事务、任务上下文、UI 草稿和重复轮次选定回归:99 passed,31.19 秒。
|
||||
- 启动、旧人工流程和应用引导:37 passed,21.39 秒,包括历史迁移恢复和恢复前/后事件。
|
||||
- 审查末尾读表取消与启动恢复检查:12 passed,23.55 秒。上述检查有重叠,不相加为总用例数。
|
||||
- 另运行真实 Qt 的 offscreen 应用启动/关闭 smoke;数据目录位于 `build/code-pruning-startup-smoke-20261015`。
|
||||
- 只读复核代理确认原生保存/恢复事务、目标身份、NC 与 Value 处理边界未削弱;其指出的读表取消错误已修复。
|
||||
|
||||
## BOM 模拟规模测量
|
||||
|
||||
使用 1000 个模拟位号、真实 XLSX 的 200 条替换行,包含工程匹配、逐行校验和预览构建,不启动 CAD。
|
||||
|
||||
| 版本 | 结果 |
|
||||
| --- | --- |
|
||||
| 精简前 | 探针进程运行 285.36 秒仍未完成,主动停止;该值包含建库和生成模板,不能视为完整匹配耗时 |
|
||||
| 精简后 | 校验阶段 5.920 秒,200 行通过、0 行失败,1000 个位号中恰好启用 200 个 |
|
||||
|
||||
临时探针位于 `build/probe-bom-scale-audit.py`,前后结果分别保留在 `build/bom-scale-before-20261015/metrics.json` 和 `build/bom-scale-after-20261015/metrics.json`。未将一次性探针加入生产代码。
|
||||
|
||||
此结果不能换算成完整 CAD 替换速度。上一轮千步执行测试未达到 30 秒目标、CAD COM 启动偶发阻塞,仍是独立的未解决项。
|
||||
@@ -0,0 +1,41 @@
|
||||
# 1.1.2 位号计划响应与内存审查
|
||||
|
||||
起点 `224f4e7`。本轮不打包;使用模拟库存、真实 Excel 和 Qt 事件循环进行验证,不启动 CAD。
|
||||
|
||||
## 已处理
|
||||
|
||||
- `ComponentTarget.key` 被循环调用时重复访问文件系统。500 个启用位号的规则编译原需 1500 次解析,同规模库存合并需 3500 次。增加单次校验内的 `ProjectIdentityResolver`,按原始路径字符串复用解析结果;编译、合并、数据库保存及 BOM 索引各有独立作用域。
|
||||
- BOM 表格路由重复解析同一个工程路径;改为仅在本次读表阶段复用,原生采集后不复用该路由缓存检查工程身份。
|
||||
- UI 修改一个单元格时,摘要会复制并统计全表,执行按钮保护又以元组成员查询扫描全部任务。现在模型维护启用数量,摘要读取源模型数量;任务 ID 使用集合,同次按钮更新只计算一次本批未保存状态。
|
||||
- 已保存或放弃的 BOM 报表仍强引用整份预览,包括原库存和计划。现在只释放结束的预览,保留校验行、数量和说明;未保存预览和失败后可重试的数据继续保留。
|
||||
|
||||
## 保护边界
|
||||
|
||||
解析器不跨刷新、采集或保存操作持续缓存;单独访问 `ComponentTarget.key` 仍即时解析。大小写规范、原理图/图页/UID、位号、旧料号、旧 Value 的比对仍保留。数据库事务、保存前基线复核、原生路径访问检查和恢复保护没有减少。
|
||||
|
||||
排序和筛选后的编辑继续按原始 UID 写回;摘要按当前工程全部源数据统计。只有相关 BOM 工程全部保存成功或明确放弃时,才释放报告中的预览引用。
|
||||
|
||||
## 本机测量
|
||||
|
||||
| 场景 | 优化前 | 优化后 |
|
||||
| --- | --- | --- |
|
||||
| 500 位号规则编译 | 0.543 秒 / 1500 次路径解析 | 0.00274 秒 / 1 次 |
|
||||
| 500 位号库存合并 | 1.299 秒 / 3500 次路径解析 | 0.00666 秒 / 1 次 |
|
||||
| 模拟 3000 任务、3000 位号,本地改单元格,5 次平均 | 41.56 毫秒 | 1.60 毫秒 |
|
||||
| 1000 模拟位号、200 行真实 XLSX 校验 | 上轮 5.920 秒 | 0.143 秒;200 行通过、0 行失败 |
|
||||
|
||||
这些数值只覆盖上述本地处理,不包含 CAD 启动、采集和实际替换。路径耗时为单次对照,不能视为所有机器的固定收益。
|
||||
|
||||
临时探针和结果保留在 build:
|
||||
|
||||
- `probe-plan-identity.py`;`plan-identity-before-20261015/metrics.json`、`plan-identity-after-20261015/metrics.json`。
|
||||
- `probe-local-plan-edit.py`;`local-plan-edit-before-20261015/metrics.json`、`local-plan-edit-after-20261015/metrics.json`。
|
||||
- `probe-bom-scale-audit.py`;`bom-scale-identity-after-20261015/metrics.json`。
|
||||
|
||||
## 验证
|
||||
|
||||
先复现重复解析和保存/放弃后预览未释放,再修正。路径用例还确认下一次操作会重新解析;弱引用用例确认预览可回收而报告仍可查看。
|
||||
|
||||
本轮针对目标身份、命令、恢复、BOM、库存扩展、长路径、UI、草稿和新轮次共 **169 passed,22.58 秒**。只读审查复核了缓存范围、完整基线字段、筛选统计和保存失败保护,未发现新的重要问题。未为本轮局部优化重复运行整套测试或 CAD。
|
||||
|
||||
仍待解决:CAD COM 偶发启动阻塞、千步执行的 30 秒目标,以及大执行模块进一步按职责整理。本轮不对这些项目作完成声明。
|
||||
@@ -0,0 +1,55 @@
|
||||
# 1.1.2 可用性与发布条件评估
|
||||
|
||||
评估基线:`ce574dd`,2026-10-15。本轮查询公开官方资料、运行构建脚本采用的源码检查、审查现有成品和使用说明;没有构建、启动 CAD、改工程、打标签或发布。
|
||||
|
||||
## 判断
|
||||
|
||||
| 问题 | 当前判断 | 证据边界 |
|
||||
| --- | --- | --- |
|
||||
| 可以用吗 | 支持本机已验证环境内的工程副本试用 | 核心 BOM、多工程顺序执行、部分位号替换、保存重开回读、完成后新轮次有实机证据;不同现场/库未统一验收 |
|
||||
| 好用了吗 | 日常流程已成形,UI 的重复构建问题已改善;首次采集和 CAD 启动仍慢 | UI 与本地数据性能不能代表原生 CAD 速度,不能把一个审查者的判断等同于用户验收 |
|
||||
| 可直接正式发布吗 | 暂不建议宣称稳定正式版 | 最新源码尚无对应冻结成品全流程验收;偶发原生启动阻塞根因未闭环;交付文档存在旧界面说明 |
|
||||
| 能否准备试用版 | 可以进入候选包验证,完成下列交付检查后提供评估包 | 仍按原有 evaluation-only 定位,不需要为试用另起 UI 框架或做全部扩展功能 |
|
||||
|
||||
本轮按 `packaging/Build-DxPartReplace.ps1` 的源码检查范围执行:
|
||||
|
||||
```powershell
|
||||
python -m pytest -q tests/v1_1 tests/trial_task_center/test_application.py tests/trial_task_center/test_execution_safety.py tests/part_replace/test_verification.py --junitxml=build/release-research-20261015/current-release-gate.xml
|
||||
```
|
||||
|
||||
结果:**369 passed,1 warning,76.47 秒**。警告为 pywinauto 的 COM STA 模式提示。此结果不包含 PyInstaller 构建、冻结包运行、真实 CAD 替换或默认目录之外的千步性能用例,不能概括成“全部发布验收通过”。
|
||||
|
||||
## 已有真实能力
|
||||
|
||||
- 两工程创建任务、导出默认 11 列 BOM、填写部分位号、失败行提示、修正后导入、预览和整批保存;失败导入不保存半批。
|
||||
- 两轮真实替换及全新 CAD 会话独立回读,未选中的同料号位号保持不变;302 字符工程路径与 284 字符模板路径完成实际流程。
|
||||
- Part Label 复制开关实际改变 Value 写入结果;NC 开关有单独原生验证。
|
||||
- 后台私有桌面和自有 CAD 退出有观察证据,主桌面文件读取与用户原 CAD 未被接管。
|
||||
- 规则/结果使用 Model/View,详情按需创建、关闭释放,隐藏 tab 不渲染;草稿、结果数据与控件生命周期独立。
|
||||
|
||||
证据:`docs/testing/2026-10-15-bom-live-roundtrip.md`、`2026-10-15-part-label-live.md`、`2026-10-15-project-session-and-read-model.md`,及 `docs/reviews/2026-10-15-ui-component-lifetime.md`。后续 UI 修改使用复制数据库复放和专项回归,没有在每个提交重复运行真实替换。
|
||||
|
||||
## 发布前实际缺口
|
||||
|
||||
1. **最新成品身份和冻结运行验证。** 当前 `dist/DxPartReplace` 对应旧的 `714ac0b` 候选,不是本次 `ce574dd`;已发布 1.1.1 对应 `7610a0f`。先固定待发布提交、构建并生成版本/commit/EXE/VBS/ZIP 哈希清单,再从最终 ZIP 解压运行。确认源码路径不参与加载,实际打开按需日志/结果/BOM 窗口、完成模板导入,并在旧 `data` 副本上验证升级。现有 `--smoke-test` 只覆盖空白根目录启动退出,不覆盖这些交互。正式承诺新版完整替换前,再用最终冻结包的独立工程副本做有代表性的 BOM→替换→回读→释放验收。
|
||||
2. **CAD 启动稳定性和等待体验。** 已观察到 GetActiveObject/QueryInterface 偶发阻塞;120 秒预算和清理机制限制了等待,不代表根因已修。既有成功样本的 CAD 启动约 27–67 秒,首次采集也可能超过一分钟。应对已有失败条件定位和补测,明确启动/就绪/取消状态;保留超时、身份及退出证据。不能仅凭 UI 更快就承诺执行更快。
|
||||
3. **干净分发目录和正确说明。** 构建脚本会保存并恢复本机 `data`,这是保护本机数据;应另建干净 staging 排除本机任务、日志、数据库和备份,再压缩。使用说明仍有“完成任务自动显示全部日志”“当前界面保留 Capture Before/After”等过期描述,需要按实际按需分页和一工程一任务流程统一。README 当前仍明示未发布和 evaluation-only,发布时不能只改标题为稳定版。
|
||||
|
||||
本轮另单独执行 `tests/trial_task_center/test_batch.py::test_thousand_item_multisheet_mixed_queue_has_bounded_runtime_and_memory`,结果 **1 passed,测试总计 33.17 秒**。其中被断言的执行区间 **29.517 秒**,通过原有 `<30秒` 门槛;1000 步、91 步保存、909 步未命中,唯一性和完成状态通过,tracemalloc 峰值 2,200,063 字节,约 33.88 步/秒。原始指标为 `build/release-research-20261015/queue-stress-metrics.json`,JUnit 为同目录 `queue-performance-gate.xml`。此次达标应更新之前“尚未通过”的当前状态;但接近门槛、仅单次测量,不承诺跨机器稳定达标。该测试是模拟 worker 的兼容队列,不能作为新任务模式实际 CAD 的吞吐量。
|
||||
|
||||
## 网上可借鉴的规则
|
||||
|
||||
| 官方资料 | 原则 | 本工具的落点 |
|
||||
| --- | --- | --- |
|
||||
| [Microsoft PowerRename](https://learn.microsoft.com/en-us/windows/powertoys/powerrename) | 批量操作前对照原值与新值、预览实际变更,可筛选仅显示匹配项 | 保留计划预览;后续可增加本批“仅看将修改项”的统一视图,而非仅展示工程数量。CAD 恢复必须沿用快照核验,不能直接照搬文件重命名 Ctrl+Z |
|
||||
| [WinSCP Synchronization Checklist](https://winscp.net/eng/docs/ui_synchronize_checklist) | 一行一个具体动作;明确勾选实际执行项,按类型或目录汇总范围 | 执行确认可进一步汇总各工程将修改、保留、阻断的数量;同一料号多位号继续逐目标决定。预览清单不能替代执行前基线重验 |
|
||||
| [Windows 进度控件指南](https://learn.microsoft.com/en-us/windows/apps/design/controls/progress-controls) | 已知进度用确定进度,未知时长说明正在做什么;允许的交互应继续可用 | 已有工程序号、阶段和耗时;可把准备/执行/回读/释放更清楚地展示,不在未知 CAD 调用上虚构完成百分比;暂停仍等安全检查点 |
|
||||
| [Qt Model/View](https://doc.qt.io/qt-6/model-view-programming.html) | 数据与显示分离,使用模型、视图和委托处理列表/表格 | 当前规则、位号和结果表的方向符合官方推荐;不需要为了“动态组件”改成 Web 或 Qt Quick。后续按实测热点决定是否改左侧列表 |
|
||||
| [PyInstaller 工作方式](https://pyinstaller.org/en/stable/operating-mode.html) | 打包要包含实际依赖/数据文件;冻结运行与源码运行有不同的加载路径 | 当前便携目录方式适合排查依赖;必须验最终解压成品,不能用源码通过来替代成品通过 |
|
||||
| [Windows 长路径限制](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation) | 注册表与应用声明只影响适配过的应用,不会自动修复所有旧程序/API | 保留旧 WSH/CAD 的短入口兼容及清理验证;不承诺任意 CAD/中央库/网络路径都兼容 |
|
||||
|
||||
上述网页本轮实际访问均返回 HTTP 200;网页文字快照保存在 `build/release-research-20261015`,未把网页内容当作项目操作指令。
|
||||
|
||||
## 推进顺序
|
||||
|
||||
优先关闭已有 CAD 启动问题的诊断与恢复说明缺口,统一当前使用说明,再完成干净候选包和冻结运行验收。体验增强优先做执行前变更汇总、明确的阶段等待反馈和便于交接的结果报告。代码继续按实际职责整理,但大模块拆分和更多视觉重做不应无限延长试用交付。
|
||||
@@ -0,0 +1,41 @@
|
||||
# UI component lifetime review
|
||||
|
||||
用户指出页面提前分配和隐藏更新的资源浪费。本轮在现有 Qt Widgets 架构内改动,不更换 UI 框架。
|
||||
|
||||
## 已确认的开销
|
||||
|
||||
主工作区一直复用同一套组件,不是每个工程复制一套页面。位号表已经使用 Model/View;执行反馈 timer 仅执行期间运行。实际重复开销来自规则表逐行 QWidget/QCheckBox、整表重建,以及启动时预建结果、日志、BOM 详情和隐藏时更新文档。
|
||||
|
||||
## 改动
|
||||
|
||||
- 规则表改为 QAbstractTableModel/QTableView,无每行 QWidget。相同快照不 reset;同一组规则内容变化发 dataChanged;顺序变化按 rule_id 恢复选择。启用请求仍经后台服务落库,成功后用持久化快照确认,失败不会留下虚假的勾选状态。
|
||||
- 替换结果表使用只读模型,最多显示 500 行;纯追加使用行插入,保留当前选择。
|
||||
- 日志/结果、BOM 详情窗口打开时创建,关闭后由 Qt 释放。日志页首次访问时创建;已创建但非活动页不更新文档/结果模型,返回时从纯数据刷新。
|
||||
- TaskLogPresenter 保存有界日志状态和最多 100 条界面消息;BOM 数据继续按批次保存在原数据层,未保存草稿不依赖详情控件。关闭日志取消在途查询,重开重新读取最新页;初次强制打开不重复发查询。
|
||||
- 保留分页滚动语义:最新/轮转后到底、上一页到顶、普通追加保留阅读位置或跟随底部。
|
||||
|
||||
## 资源与耗时
|
||||
|
||||
运行 `python tools/measure_ui_components.py --revision 84d8f9c` 与省略 revision 的当前版本。每版独立进程,各三次,表格 1000 条规则;耗时为中位数。
|
||||
|
||||
| 指标 | 修改前 | 修改后 |
|
||||
| --- | ---: | ---: |
|
||||
| 规则表首次绑定数据 | 405.44 ms | 0.25 ms |
|
||||
| 相同规则刷新 | 383.80 ms | 0.02 ms |
|
||||
| 规则表 QWidget 子控件 | 2018 | 18 |
|
||||
| 独立 QCheckBox | 1000 | 0 |
|
||||
| 执行面板未打开详情时的 QWidget 子控件 | 49 | 12 |
|
||||
|
||||
以上计时包含 populate 的同步工作,不包含窗口首次绘制、数据库读取或 CAD;控件数量不等同于进程内存。新模型仍保存规则数据,只在可见区域绘制。
|
||||
|
||||
原始 JSON:`build/ui-components-20261015/before.json`、`after.json`。复现工具已纳入 Git。
|
||||
|
||||
## 验证范围
|
||||
|
||||
针对 Qt 生命周期、原生委托勾选/服务持久化、选中保留、分页滚动、关闭期间在途查询、立即重开、切换任务、BOM 校验/批次草稿以及原工作区回归进行验证。
|
||||
|
||||
最终针对性回归 **63 passed, 30.72s**,范围为 `test_lazy_components.py`、`test_execution_results_view.py`、`test_ui_responsiveness.py`、`test_ui_workspace.py`、`test_replacement_logs.py`、`test_bom_batch.py`、`test_bom_import_report.py`、`test_ui_remediation.py`。新增资源生命周期用例在修改前观察到 4 项预期失败,修改后通过。只读审查指出的分页滚动和结果追加选择丢失均已修正并覆盖。
|
||||
|
||||
使用 `tools/probe_workspace_layout.py` 复制 `build/bom-native-roundtrip-fixed-20261015` 证据数据库复放,输出在 `build/ui-components-layout-20261015`。980×700 实际尺寸保持,位号表 viewport 高 135px;执行、BOM 模板、Value 策略可见;执行结果显示已有真实回读记录;跨批报告隐藏、返回恢复;源数据库 SHA256 不变。检查了结果截图。
|
||||
|
||||
本轮未运行真实替换、未启动 CAD、未打包或发布。此前 CAD 原生连接偶发阻塞、千步执行性能问题不属于本轮结论。
|
||||
@@ -0,0 +1,78 @@
|
||||
# 执行重复步骤扫描与修复
|
||||
|
||||
基线 `196c84b`;修复代码 `0714c77`、`5a0f62f`、`e5ebc5d`。本轮只优化已能证明重复的读取和提交步骤,保留逐项保存与故障隔离,不打包发布。
|
||||
|
||||
## 扫描范围与处理结果
|
||||
|
||||
| 范围 | 原先重复或现有边界 | 处理 |
|
||||
| --- | --- | --- |
|
||||
| 正式队列整页保护 | 恢复前、恢复后、保存前、重开后共 4 次全量读取 | 合并为保存前与重开后 2 次;未通过前只保留内部待提交状态 |
|
||||
| 手动恢复整页保护 | 操作者已完成替换,恢复前后分别保护未选中器件 | 两侧均保留,手动模式没有正式队列的保存提交边界 |
|
||||
| 未选中 U/G 快照 | U 查找 4 个身份属性,G 又枚举全部属性及样式 | 从同一份 C/A 完整序列生成 U 和 G,消除重复 COM 查询,保持 U7/X/G 协议 |
|
||||
| 属性坐标采集 | 读取 X、Y 时各调用一次 GetLocation | 同一次采集只取得一个 Point,读取两个坐标;任一读取异常仍拒绝采集 |
|
||||
| 未选中引脚采集 | 先查询 pins 判断是否为空,再在连接函数中查询同一集合 | 传入已经查询的 pins;保持 owner UID、Net UID、名称和逐引脚几何核验 |
|
||||
| 命令/快照校验 | 同一调用内部两次读取解析同一快照 | 使用已经解析的 Records 校验工程/图页;跨替换、重开等边界仍重新校验 |
|
||||
| 原生 helper 读回 | 精确位号模式对同一未选中器件做两套相同身份检查,且额外建立第二份基线 | 精确模式使用持久化 U 基线一次读回;旧全量模式保留内存基线保护 |
|
||||
| 设置选择前的上下文核验 | require_selection=False 仍查询随后完全忽略的选择集合 | 跳过该次选择查询;设置选择后、最终提交前继续检查精确选择集合 |
|
||||
| 已保存结果的恢复 | 新会话读磁盘已验证正确,仍由 Finish 再保存重开 | 自有新会话只读核验通过后不保存关闭,确认关闭后生成原有 recovery_saved_verified 证明 |
|
||||
| 非复用会话的最终关闭 | 保存一次、重开核验后,最后关闭仍传 SaveChanges=True | 重开后的只读关闭改为 False,实际替换总共只保存一次 |
|
||||
| 非复用会话的未命中任务 | 没有任何替换写入仍保存工程 | 不保存关闭,不设置已保存标记,未命中结果仍需确认工程关闭 |
|
||||
| 需要修复属性的恢复 | 初始只读预检、实际恢复写入、提交及磁盘读回 | 保留初始预检,后续使用正式队列的两个完整提交检查 |
|
||||
| 引脚/组件索引 | 替换、Undo、保存重开后刷新 | 保留,不能跨 CAD 修改复用旧代理;已查询的 pins 只在同次只读采集中复用 |
|
||||
| 原生 UI 加载与提交 | 异步等待前后核对目标、工程、图页和选择 | 保留,这些检查之间有等待或选择修改,不是同一状态的重复读取 |
|
||||
| 取消、失败、Undo | 失败后重新读取并验证回滚状态 | 保留;原生替换失败、恢复失败、保存后失败不能共用旧成功结果 |
|
||||
| BOM 库存与执行采集 | 导入已有库存可复用,执行前再次核对 UID/旧料号/Value | 保留不同阶段的认证;导入预览不能替代真正执行前的核对 |
|
||||
| 队列、备份与进度 | 已单次解析队列、按共享工程根备份、按工程边界持久化总体进度 | 保留现有优化;备份和证据的前后哈希针对外部操作的不同时间点 |
|
||||
| 工程会话 | 同工程多项已经共用私有 CAD 进程 | 继续保留,不把原有复用计为本轮新增提速 |
|
||||
|
||||
## 核验边界
|
||||
|
||||
正式队列现在为:采集原始基线 → 原生替换与目标库核验 → 目标器件的引脚/属性恢复核验 → **保存前全页检查** → 保存关闭 → 重开 → **磁盘状态全页检查与目标器件核验** → 生成完成证明。
|
||||
|
||||
未把多个料号规则合成一次保存事务。那会改变单项失败的回滚范围、取消点、断电恢复和完成记录,需要独立改造事务协议;当前已证明冗余的步骤均通过上述方式消除,无需提前生成“已完成”状态。
|
||||
|
||||
也未跨规则缓存完整页状态:现有事件/文件变更机制尚不足以证明所有外部及 CAD 内部变更都必然通知,缓存上轮成功结果会削弱准确性。
|
||||
|
||||
## 反例与回归
|
||||
|
||||
- 保存前未选中器件变化:禁止保存,不生成完成结果。
|
||||
- 重开后未选中器件变化:保留已保存未核验状态,不生成完成结果。
|
||||
- 已保存结果恢复:不再保存重开;关闭失败不得生成恢复完成证明。
|
||||
- 非复用会话:新增反例约束替换任务恰好保存一次、未命中任务零次保存;原代码两例均失败,修复后通过。
|
||||
- 相同属性仅一次位置读取、U/G 共享属性枚举、pins 集合只查一次、helper 身份字段只读一次;均有真实 cscript 或实际 Python 函数的失败复现与修复回归。
|
||||
- 综合回归:**724 passed、1 deselected,154.35 秒**;包含现有准确性、UI、多工程、恢复、VBS 及脚本契约测试。排除项是已有的 1000 步 `<30 秒` 性能门槛,不能据此声称所有测试全绿。
|
||||
- 追加非复用会话修复后,VBS/恢复/脚本契约的最终针对性回归 **130 passed,36.03 秒**;两组用例有交集,不相加。
|
||||
- 34,868 字节的实际快照在独立 cscript 中解析 3 次约 **0.191 秒**,因此快照解析不是之前约 800 秒耗时的主要来源,重点为全量 COM 读取次数及读取字段的重复调用。
|
||||
|
||||
## 实机验证
|
||||
|
||||
在新副本 `build/duplicates-formal-bom-20261019/` 执行与基线相同的默认 BOM 流程和两条规则;运行前记录 VBS/helper 的 SHA256。
|
||||
|
||||
| 项目 | 基线 | 本轮 |
|
||||
| --- | --- | --- |
|
||||
| 两项正式 BOM 队列总耗时 | 799.50 秒 | **403.625 秒** |
|
||||
| 耗时减少 | — | **49.52%**,约 1.98 倍速度 |
|
||||
| 保存前/重开后全页核验 | 每项 4 次 | 每项 2 次,两个提交边界均保留 |
|
||||
| 第一项/第二项执行器耗时 | — | 232.01 / 166.83 秒,第一项含私有 CAD 启动 |
|
||||
| 目标器件 | RV05/RV14 | 两项新料号正确,Value 为 0R / 0R/NC,原 UID 保留 |
|
||||
| 其余器件与连接 | 55 个未选中器件、103 个引脚、22 个网络 | 独立层级/扁平导出均确认不变 |
|
||||
| 原始快照字段等价 | 120 行,排除工程路径元数据行 | 本轮 120 行逐行内容多重集完全相同,没有删减采集字段 |
|
||||
| 后台释放 | 自有进程和桌面释放 | 释放确认通过,主桌面与前台不受接管,原始工程哈希不变 |
|
||||
|
||||
该对比是同机、同库、同源工程的单轮实测;两轮负载存在差异,不替代连续多轮性能验收。总耗时含队列内的启动、保存重开及收尾,不含 BOM 编辑/导入和独立 ASCII 对比。
|
||||
|
||||
只读恢复实机在这个副本队列中模拟一项“已保存、读回证明丢失”,保留原状态证据后调用正式 `recover_quick_run`:**87.797 秒**完成 `recovery_saved_verified`,没有再次调用原生替换。恢复前后全部 57 个器件、103 个引脚、22 个网络的层级/扁平导出完全相等;恢复私有桌面与 CAD 释放确认通过。
|
||||
|
||||
上述两项正式队列和恢复运行使用 `5a0f62f` 的脚本。追加的 `e5ebc5d` 仅改非复用会话的两处只读关闭;另在全新副本 `build/duplicates-non-session-bom-20261019/` 做专门实机验证:单项 BOM 替换 **207.469 秒**,`saved_ok/batch_closed`,独立读回正确;其余 56 个器件、103 个引脚接网和 22 个网络的层级/扁平导出不变,原始工程哈希与私有桌面释放确认通过。该单项结果不与双项队列直接比较。
|
||||
|
||||
独立代码审查已分别复核两个提交范围,未发现新的 Critical/Important;审查指出的非复用会话重复保存已由 `e5ebc5d` 修复。
|
||||
|
||||
精简机器证据见 [execution-duplicates.json](../testing/evidence/2026-10-19-execution-duplicates.json)。原始工程、桌面观察、阶段明细和测试 XML 均留在上述 `build` 目录中,不提交工程数据或厂商二进制。
|
||||
|
||||
## 仍未达到的发布条件
|
||||
|
||||
403.625 秒仍高于建议的同样例 180 秒目标。剩余主要成本为必要的完整 COM 采集和每项保存重开;若继续提速,需要认证更快的完整读取接口,或单独改造图页事务及恢复协议。当前不能直接跨 CAD 修改使用旧快照。
|
||||
|
||||
Cell Name 与新 Part Name 的封装映射证明、复杂层级/多 gate 实机认证、现有 1000 步性能门槛仍按准确性审查报告保留,未因本轮提速宣称已解决。
|
||||
|
||||
后续 [器件索引按需采集优化](2026-10-19-lazy-component-indexes.md) 已将同源工程单轮实测进一步降至 **375.688 秒**;本报告的 403.625 秒保留为前一阶段基线。
|
||||
@@ -0,0 +1,55 @@
|
||||
# 器件索引按需采集优化
|
||||
|
||||
后续原生宿主完整采集已取得新的同源实测:189.250 秒,见 [原生快照报告](2026-10-19-native-snapshot.md)。下文保留本阶段真实基线。
|
||||
|
||||
在上一轮重复步骤修复 `2ad36ba` 基础上继续优化。正式代码提交为 `8fe82c3`,追加防护用例为 `998d78d`。本轮不打包、不发布,不改变逐项保存、磁盘重开和故障恢复协议。
|
||||
|
||||
## 本轮修改
|
||||
|
||||
- 采集直接遍历已查询的器件集合,移除随后没有消费者的完整定位索引。未命中任务不再为定位索引读取器件坐标。
|
||||
- 精确 UID 范围只对目标器件执行旧料号和 Value 的匹配查询;未选中器件仍由同一次完整 C/A 快照生成 U/G 基线。全匹配模式仍检查全部器件的旧料号,读取错误仍向上传递。
|
||||
- 恢复定位先建立 UID 索引;UID 缺失才采集位号,位号也未找到才采集坐标。三种索引保留重复项,不把冲突器件静默覆盖或丢弃。
|
||||
- 索引只在原有当前上下文中复用;建立前后核对工程和图页,工程/图页变化或显式失效后重新采集。替换、保存重开后的刷新及保存前、磁盘重开后的完整检查均保留。
|
||||
|
||||
这里没有跨料号规则缓存完整页快照,也没有合并多个规则的保存事务。只把未使用的读取移除,把备用定位字段延迟到实际需要时读取。
|
||||
|
||||
## 回归与审查
|
||||
|
||||
先以实际 cscript 运行生产函数复现:未命中仍读取坐标、精确选择查询了无关器件的 FindAttribute、UID 已命中仍读取备用坐标。修复后这些反例通过。
|
||||
|
||||
- 执行、恢复、VBS、脚本合同及自动替换回归:**147 passed,43.59 秒**。
|
||||
- 追加定位保护:**7 passed,3.73 秒**;其中 1 项与上述套件重叠,不能将两组数量相加。覆盖 UID/位号/坐标冲突、共享 UID 的备用桶、显式失效、工程上下文变化后重新读取坐标。
|
||||
- 完整脚本经 Option Explicit 编译检查,未启动 CAD。
|
||||
- 独立审查未发现 Critical/Important 问题;建议补充的冲突与上下文变化用例已补齐。
|
||||
|
||||
## 同源工程实机验证
|
||||
|
||||
从原始 Audio 工程创建全新 `build/lazy-index-formal-bom-20261019/project/` 副本,运行与上一轮相同的流程:创建任务 → 导出默认 BOM → 填入 RV05/RV14 两条替换 → 数值型新料号反例拒绝且不保存计划 → 修正为文本 → 导入预览 → 确认 → 正式顺序执行 → 每项保存重开 → 独立原生库存及 ASCII 读回。
|
||||
|
||||
| 指标 | 上一轮 | 本轮 |
|
||||
| --- | --- | --- |
|
||||
| 两条规则的正式队列总耗时 | 403.625 秒 | **375.688 秒** |
|
||||
| 耗时减少 | — | **27.937 秒,6.92%** |
|
||||
| 首项执行器耗时,含自有 CAD 启动 | 232.011 秒 | 230.117 秒 |
|
||||
| 第二项执行器耗时 | 166.829 秒 | 140.349 秒 |
|
||||
| 成功保存 / 失败 | 2 / 0 | 2 / 0 |
|
||||
|
||||
相对最初 799.50 秒基线,当前样例累计减少 **53.01%**。这三次均是同机、同库、同源工程的单轮测量,运行时负载和缓存并不完全相同,不能据此承诺其他工程均有相同收益。第一项总耗时变化很小,也说明局部减少调用不等于每一阶段都会按比例变快。
|
||||
|
||||
完整保护证据:
|
||||
|
||||
- RV05/RV14 新料号均为 `4100-CA0000-T0`,Value 分别为 `0R`、`0R/NC`,原 UID 保留。
|
||||
- 第一项原始快照排除路径元数据后,**120 行内容多重集与上一轮完全相同**,没有减少采集字段。
|
||||
- 独立层级、扁平导出均核对 **57 个器件、103 个引脚、22 个网络**;55 个未选中器件及所有引脚连接、网络关系不变。
|
||||
- 本轮最终层级、扁平导出的完整图数据与上一轮最终结果完全相等,比较保留属性、引脚及连接内容,仅忽略同层行顺序。
|
||||
- 来源 `.prj` 和 `icdb.dat` 哈希不变;自有 CAD、私有桌面释放通过,未接管主桌面前台。
|
||||
|
||||
运行前记录脚本和 helper 的 SHA256,核对与当前源码一致。机器证据见 [JSON](../testing/evidence/2026-10-19-lazy-component-indexes.json)。原始报告、桌面观察、快照及导出留在忽略的 `build/lazy-index-formal-bom-20261019/`、`build/lazy-index-ascii-result-20261019/` 中,不提交工程或厂商文件。
|
||||
|
||||
## 后续边界
|
||||
|
||||
本机类型库确认有 `IVdComp.GetBatchAttributes` 和 `GetBatchOats`。参考手册的 Component Object 章节(PDF 页 297–298)将返回格式描述为 `Visibility Name=Value<CR>`;没有坐标、字体、颜色等完整快照字段,因此本轮未用它替代完整采集,也未声称已经完成本机现场等价认证。源手册位于 AppTraceRecorder/reference/SiemensEDA_Python_Interface/xpedition_designer/SEDA_Xpedition_Designer_automation/designer_auto_ref.pdf。
|
||||
|
||||
1000 步模拟队列在修改前的 cProfile + tracemalloc 定位运行中为 **36.198 秒**、峰值约 **2.17 MiB**,仍未通过 30 秒门槛。剖析指向逐项命令原子发布、日志写入和文件状态检查;本轮仅修改 VBS,未改变 Python 队列持久化,也未通过减少可靠落盘来让门槛通过。该结果包含剖析开销,不是 CAD 实际替换吞吐量。
|
||||
|
||||
当前样例仍高于建议的 180 秒目标。若需大幅继续提速,应认证能够返回完整保护字段的批量读取路线,或单独改造图页事务、取消及恢复协议。Cell Name 映射证明、复杂层级/多单元/多 gate 认证等既有发布缺口继续保留。
|
||||
@@ -0,0 +1,59 @@
|
||||
# 原生采集进度与库列表刷新修复
|
||||
|
||||
本轮处理两项执行稳定性问题,并继续只读核对封装映射。没有合并保存事务,没有减少采集、保存前或重开后的完整检查,未打包发布。
|
||||
|
||||
## 采集仍在工作时的超时误判
|
||||
|
||||
原生脚本在 CAD 内执行,外部调用在返回前无法取得它的 stdout。上一版本只有调用前后两次进度,采集超过 150 秒时,即使 CAD 仍在逐件读取,监控也可能请求停止。
|
||||
|
||||
原生宿主现在通过本次 attempt 专用的 ASCII 侧文件发布真实进度,常规更新按约一秒节流,并在阶段完成时发布。它在完成器件或引脚读取等原有进度边界产生,不使用独立定时器伪造活跃;卡住的 COM 调用仍会触发原超时保护。
|
||||
|
||||
监控只在 native_snapshot_read 阶段接收,逐项验证本次 token、初始监控 job、当前 job、父 stdout 序号、独立递增的原生序号、安全标记及计数。它只更新活跃时间和显示计数,不能推进 stdout 序号、把不安全阶段变成安全阶段,也不能形成任何保存成功证明。跨调用、跨 job、旧令牌、重复或不完整帧均不能延长等待。
|
||||
|
||||
取消文件仍先在原有安全边界检查,然后才尝试发布进度。侧文件暂时不能读写时,监控继续按原超时预算处理;可选进度 I/O 错误不覆盖真实读取错误,原生完整结果仍必须经过原有严格校验。监控主进度文件的非共享类 I/O 错误继续向上传递。
|
||||
|
||||
界面增加该阶段的中文说明“采集并核验器件完整状态”。新增 native_progress_frames 仅用来记录实际接收数量,切换 job 后归零,不参与成功判定。
|
||||
|
||||
## DxDataBook 刷新时的失效 UIA 行
|
||||
|
||||
首次新副本实机回归中,第一项在获取库行时失败:pywinauto 的 UIA wrapper 对已失效行读取到 control_type=None,查找包装类抛出 KeyError(None)。原始 traceback 位于 build/native-progress-formal-bom-20261019/ 的 native JSON。该项停在提交原生替换之前,关闭工程未保存;第二项继续正常保存。这一轮为 1 成功 / 1 失败,报告保留 verified=false,源工程哈希不变,两个自有 CAD 与私有桌面释放通过,不计作成功验收。
|
||||
|
||||
wait_for_library_rows 现在只对这个明确的 KeyError(None) 重新读取列表,清空之前的稳定期并重新等待稳定,沿用原 30 秒总期限。持续失效会超时;其他 KeyError 或运行错误直接抛出。没有重试替换、点击提交或任何 CAD 写入。回归反例先复现 2 failed / 7 passed,修复后相关组 49 passed。
|
||||
|
||||
## 封装映射诊断
|
||||
|
||||
使用另一个私有 CAD 会话,在成功工程的新副本上只读获取属性层,确认:
|
||||
|
||||
| 位号 | 保存料号 | Part Name | Cell Name 的 Value / InstanceValue |
|
||||
| --- | --- | --- | --- |
|
||||
| RV05(已替换) | 4100-CA0000-T0 | RESC1608N | 空 / RESC1005N_0402 |
|
||||
| RV14(已替换) | 4100-CA0000-T0 | RESC1608N | 空 / RESC1005N_0402 |
|
||||
| RV11(未替换) | 4100-CA0000-T7 | RESC1005N | 空 / RESC1005N_0402 |
|
||||
|
||||
旧 Cell Name 作为实例属性保留,不能仅以 Part Name 更新认定 PCB 封装同步成功。当前恢复代码只恢复 Comment/Notes/User_ 等实例值,其余属性只恢复显示样式;该 Cell Name 不是本轮显示恢复把旧值写回的结果。但本次没有取得替换提交后、恢复前的独立采样,不能进一步声称已经证明原生替换内部如何处理了该实例。
|
||||
|
||||
目标料号的权威 Cell 映射及多候选选择规则仍未确认。本轮没有按名字推断封装、清空实例值或直接覆写。下一步应先取得目标库允许的 Cell 集合,再验证替换后的有效 Cell 和保存重开结果,遇到歧义时停止。独立属性层证据留在 build/cell-instance-read-20261019/report.json,来源哈希及自有会话释放通过。
|
||||
|
||||
安装中还发现 pdbext.exe / pdbquery.exe,隔离桌面下的 -h 探针均未在十秒内给出命令行帮助,已由自有 Job 清理;没有把它们接入生产,也不将它们称作可用替换 CLI。
|
||||
|
||||
## 定向回归与审查
|
||||
|
||||
- 原生采集、运行时组合、监控、阶段计时、执行反馈、会话、安全及恢复:110 passed,59.13 秒。
|
||||
- 追加跨 job 和失效监控 job 边界:13 passed,0.67 秒;其中 11 项已在上述套件,不将两组直接相加。
|
||||
- 库目标就绪、自动替换及安全:49 passed,8.88 秒;安全文件与上述套件有重叠,不把数量相加作为独立用例总数。
|
||||
- 实际子进程仅用侧文件、没有 stdout 心跳,运行超过设置的 idle 限制仍正常完成;旧版相同反例会误超时。持续重放、旧调用、旧 job、错误计数、安全标记改变及不完整行不能延长等待。生成器覆盖不能写进度文件、会话初始/当前 job 不同以及不安全阶段保留取消请求的路径。
|
||||
- 独立只读审查未发现 Critical/Important 问题,覆盖进度与完整证明的隔离、取消、计数重置和 UIA 只读重试。生产提交为 `911afdf`。
|
||||
|
||||
超大页仍缺真实规模认证;短 idle 的子进程反例不能代替所有复杂工程实测。180 秒样例目标、千步队列性能和 Cell 映射等既有发布缺口没有因本轮测试通过而自动关闭。
|
||||
|
||||
## 修复后完整 BOM 实机回归
|
||||
|
||||
另建 build/native-progress-formal-bom-20261019-v2/ 副本,重新走创建任务、导出默认模板、数值料号失败提示、修正文本、导入预览确认、正式替换、逐项保存重开、独立库存和 ASCII 导出。RV05/RV14 两项保存成功、零失败,料号为 4100-CA0000-T0,Value 分别为 0R 和 0R/NC,原 UID 保留。
|
||||
|
||||
完整队列耗时 **188.937 秒**,上一轮为 189.250 秒,基本持平;本轮不声称取得新的吞吐量提升。最后一项记录实际接收到 **8 条**原生进度,未触发 stop_requested。两项共 6 次完整原生采集;首项快照排除 M 行后仍为 120 行,与上一轮内容多重集完全一致。
|
||||
|
||||
独立层级、扁平导出均确认 57 个器件、103 个引脚、22 个网络;55 个未选中器件、全部引脚连接和网络关系不变,完整最终图与上一轮结果完全相等。来源工程哈希未变,自有 CAD 和私有桌面释放,未抢主桌面前台。启动时记录四个执行模块的哈希,完成后与当前源码核对一致。
|
||||
|
||||
这一轮没有额外重跑故障恢复实机;恢复代码经过定向回归,上一轮完整只读恢复的证据继续按其版本边界保留。UIA 瞬时失效的重试由反例测试证明,新实机成功本身不证明该瞬时错误在本次再次发生过。
|
||||
|
||||
机器证据:[JSON](../testing/evidence/2026-10-19-native-progress-and-library-redraw.json)。没有以首次失败回归的部分成功覆盖最终结论,两个原始报告均保留。
|
||||
@@ -0,0 +1,56 @@
|
||||
# 原生脚本宿主完整采集优化
|
||||
|
||||
同源工程的两条默认 BOM 替换,正式队列从上一轮 **375.688 秒降至 189.250 秒,减少 49.63%**。相对最初 799.50 秒基线,累计减少 76.33%。这是同机、同库、同源样例的单轮对比,不能推广为所有工程的固定加速倍数。本轮未打包、未发布。
|
||||
|
||||
正式集成提交:`81f3468`;原生适配模块初版:`2f6060d`;同次快照内 UID 复用:`5b625b0`。机器证据见 [JSON](../testing/evidence/2026-10-19-native-snapshot.json)。
|
||||
|
||||
## 改动与边界
|
||||
|
||||
安装自带 `wv/samples/viewdraw/scripting/menu.vbs` 描述了 `run <script.vbs>` 命令。本机实测可通过 `ExecuteCommand` 让 CAD 自带宿主在进程内执行完整只读采集,减少逐字段跨进程 COM 调用。它仍使用原来的 COM 对象模型;本轮没有找到或引入独立的无界面替换 CLI。
|
||||
|
||||
- 单独新增 `NativeSnapshotReader.vbs`,生成器从当前生产脚本提取白名单内的原有只读函数,不另写一套字段采集。保留属性、样式、位置、几何、引脚及实际归属、连接和上下文检查。
|
||||
- 每次调用使用独立令牌、结果文件和 CAD GUID,验证工程、图页、完整 U/G 配对、UID 集合、总数与结束帧。未选中器件的完整 U/G 字符串必须与持久化基线完全一致。
|
||||
- 仅自有私有桌面批次启用。手动模式、旧运行时和缺模块时使用原外部路径。原生命令所需短路径不受支持时,只能在派发前退回原路径;命令发出后,失败或不完整证明会停止当前步骤。
|
||||
- 采集、保存前检查和磁盘重开检查各自重新读取。原生替换、属性恢复、逐项保存、重开、恢复和私有桌面释放协议保留。
|
||||
- `worker_runtime.copy_worker_script` 统一处理准备、开始会话、恢复执行步骤和故障恢复这四处运行时复制。自定义脚本没有同级适配模块时保持原字节;重复准备不会累计追加;同路径复制不改源文件。资源清单已加入模块,但没有运行打包。
|
||||
- 同次快照复用已读 UID,逐引脚实际 owner 读取保留。没有跨替换或重开复用完整页状态。
|
||||
|
||||
## 实机默认 BOM 与恢复验收
|
||||
|
||||
在新的 `build/native-read-formal-bom-20261019/project/` 副本上创建任务、导出默认模板、填写 RV05/RV14、导入预览并确认后,正式顺序执行两项替换。另把一个新料号填为数值,确认拒绝该行并且不持久化替换计划,再改为文本继续。
|
||||
|
||||
| 指标 | 上一轮 | 本轮 |
|
||||
| --- | --- | --- |
|
||||
| 两条规则正式队列总耗时 | 375.688 秒 | **189.250 秒** |
|
||||
| 首项执行器耗时,含自有 CAD 启动 | 230.117 秒 | 121.005 秒 |
|
||||
| 第二项执行器耗时 | 140.349 秒 | 62.386 秒 |
|
||||
| 成功保存 / 失败 | 2 / 0 | 2 / 0 |
|
||||
|
||||
完整队列总耗时还包含准备、备份、持久化和会话释放,不能直接用两项执行器耗时相加替代。原始阶段计时保留在机器证据中;第二项阶段计数来自最后一次 worker-progress 采样,最终关闭耗时可能未计全,不当成精确的互斥阶段分解。
|
||||
|
||||
核对结果:
|
||||
|
||||
- RV05 与 RV14 均变为 `4100-CA0000-T0`,Value 分别为 `0R`、`0R/NC`,原 UID 保留。Part Label 拷贝和默认开启的 NC 同步走正式流程。
|
||||
- 日志确认两项共执行 **6 次**完整原生采集:每项采集、保存前、重开后各一次。
|
||||
- 第一项原始快照仅排除路径元数据 M 行后,**120 行内容多重集与上一轮完全一致**,没有减少字段。
|
||||
- 独立层级及扁平 ASCII 导出均核对 **57 个器件、103 个引脚、22 个网络**;55 个未选中器件、全部引脚连接和网络关系不变。完整最终图与上一轮最终结果相等。
|
||||
- 在已成功的副本队列中注入“已保存、缺少回读证明”状态,正式只读恢复用时 **61.062 秒**,返回 `recovery_saved_verified`。没有再次调用原生替换,关闭工程时不额外保存;恢复前后独立导出的完整图相等。此注入验证不等同于随机杀进程或断电认证。
|
||||
- 来源 `.prj` 和 `icdb.dat` 哈希不变。执行和恢复的观察均确认主输入桌面未切换,自有 CAD 未抢前台,自有进程退出且私有桌面释放;主桌面文件持续可读。
|
||||
|
||||
启动时记录主脚本与 native_helper 的哈希;验收后核对实际执行和恢复使用的合成脚本字节,均精确等于当前主脚本加适配模块,另记录适配模块及组合器哈希。工程、厂商文件和完整现场日志只留在忽略的 build/ 下。
|
||||
|
||||
## 定向回归与研究结果
|
||||
|
||||
最终相关套件 **239 passed,64.63 秒**;队列、安全、恢复和打包资源合同 **81 passed,43.65 秒,1 deselected**。320 项分属不重叠的文件组。旧的 1000 步模拟性能门槛没有通过,本轮明确排除且不计作成功。
|
||||
|
||||
覆盖了旧令牌、错误工程/图页/GUID、截断、重复或丢失 UID、U/G 不一致、数量错误、完整几何变化、取消、原生错误传播、适用条件、派发前路径回退以及派发后禁止回退。完整合成脚本通过 Option Explicit 编译检查。独立只读审查没有 Critical/Important 发现,建议的调用编排及开关边界用例已补齐。
|
||||
|
||||
此前接入套件曾为 201 passed / 13 failed:提取式 guard 测试没有带入新增的 QPUseNativeSnapshot,修正测试夹具后重跑取得上述最终结果;失败证据保留。首次宿主探针也失败过:CAD 预定义了三个 Vd 枚举,重复声明引发编译错误对话框。生成器已删除重复声明,后续两轮及同会话连续调用通过。首次探针的自有错误对话框经定向确认后,CAD 正常退出,桌面释放,源哈希不变;其 clean=false 保留为探针异常记录。
|
||||
|
||||
纯只读宿主对照:57 个器件的 114 行完整 U/G,与外部读取相等。第二轮原生读取 **0.844 秒**,同会话重复 **0.765 秒**,外部读取 **33.235 秒**;这是局部采集耗时,不能称作整个替换流程快了约 39 倍。
|
||||
|
||||
`GetBatchAttributes + GetBatchOats` 的 57 器件对照虽然为 0.446 秒、逐属性为 6.038 秒,但 RV01 的 Part Label 出现单空格与空串差异,且不包含完整样式字段,因此没有用于生产保护。
|
||||
|
||||
## 尚待认证
|
||||
|
||||
189.250 秒仍高于建议的 180 秒目标。原生采集期间没有逐器件的外部心跳;现有 150 秒 idle 监控、停止文件和安全边界取消继续保留,超大页需要单独验证。复杂层级、多单元/多 gate、PCB Cell Name 映射以及旧 1000 步模拟队列性能门槛仍是缺口,本轮不能据此宣布全面具备发布条件。
|
||||
@@ -0,0 +1,105 @@
|
||||
# 目标封装选择:实现决策与审查
|
||||
|
||||
功能对应源码 `ec75445`。审查按阶段保留,最终功能结论应结合[最终实机验收](../testing/2026-10-19-target-cell-acceptance.md)和本文件末尾的修复复审读取。没有发布或合并到其他分支。
|
||||
|
||||
## 本轮实现决策及代价
|
||||
|
||||
1. 沿用已授权的 `codex/bom-import-state` 工作区继续迭代,保留未跟踪的 `feedback/`。理由是既有采集改动和实机任务正在该分支进行;若隔离边界判断有误,需要按分段提交回退重做,不能清除其他工作。
|
||||
2. target_cell 保存精确原生 Cell Name,不发明分区限定名。跨分区同名候选阻止执行;代价是这种库需要先人工消除歧义。
|
||||
3. BOM 保留原 11 列,封装从显式规则或相同料号映射中传递。料号变更清空失去绑定的选择;代价是旧规则及新映射需要手工补选。
|
||||
4. 原生 helper 只使用重新完整核对源及证据的缓存。原因是冷读最多可能等待互斥 120 秒再等待工作进程 90 秒,不能挤占原生写入的 120 秒预算;代价是缓存丢失或源变化后需回规则重新读取。
|
||||
5. 独立 Python 恢复预检允许在启动恢复 CAD 前冷读,但必须完全匹配原事务证据。它位于原生写入计时器之外,且中断时规则编辑可能锁定;代价是明确的恢复操作可能等待一次有上限的冷读,而不能用新证据替换旧事务的绑定。
|
||||
|
||||
规则/UI、目录及执行传输分别通过独立审查;BOM 先保存后补规则的空封装传播修正也已复审。以下保留整体验收审查及唯一一次最终修复复审。
|
||||
|
||||
---
|
||||
|
||||
# Final feature review — explicit target Cell
|
||||
|
||||
Reviewed committed feature range `5ad0c66..4d1b825`, including the shared-cache follow-up `cf671a1` and BOM-first propagation fix `27dec68`. This is a read-only implementation review; the only file written is this requested review artifact. No tests, CAD operations, process changes, source edits, Git mutations, or subagents were used.
|
||||
|
||||
## Strengths and plan alignment
|
||||
|
||||
- The exact native Cell name is preserved through schema migration, rules, batch signatures, saved target plans, BOM imports, target-rule grouping, queues, the separate L snapshot record, and native transaction evidence. Existing M positions and the default 11 BOM columns are preserved. Legacy selections stay empty rather than being guessed.
|
||||
- The BOM-first integration fix compares the effective OLD→NEW mapping after existing propagation and fills only blank Cells. Its added tests check add/update, disabled rows, independent nonblank selections, unrelated destinations, custom Value, and NC preservation (`batch_rules.py:94`; `test_target_cell_rules.py:278`).
|
||||
- Asynchronous UI results are bound to generation, destination PN, selection changes, dialog lifetime, and current project scope. Candidate loading does not automatically select a single candidate. The GUI checks missing selections before confirmation/startup; the native helper independently requires a valid L row before attaching.
|
||||
- The catalogue uses exact COM enumeration on a complete owned clone, verifies physical partition dependencies, rejects empty/ambiguous results, and checks original-source manifests around copying/reading. Its cleanup certificate and digest-bound evidence precede cache publication. No raw PDB negative filter was introduced.
|
||||
- Shared cache placement is safe with respect to authority: `native_helper.py:77` only changes the evidence location. `cell_catalog.py:185` still keys proof by resolved original library path, full source fingerprint, PN, and requested partition; evidence validation repeats those bindings and cache hits rehash the source. It does not turn into a PN-only cache.
|
||||
- The helper validates the actual active project's library, exact chosen membership, and native Part partition, then revalidates before native submit. Queue selection, snapshot hash, project/sheet, target UIDs, native identity, selected Cell, complete candidates, and source fingerprint remain bound through resume/recovery.
|
||||
- Selected Cell assignment is an explicit `InstanceValue` write on each preflighted target, after ordinary restoration and inside the existing undo transaction (`QuickPartReplace.vbs:1597`, `:1672`). The effective Cell check runs after restoration and through the shared verification routine after disk reopen. Recovery rejects changed/missing catalogue evidence before its worker, checks the actual recovery library, and does not allow Cell mismatch error 878 into its restore-only fallback.
|
||||
- NR2 retains the original selected C/A snapshot routine while combining it with correlated untouched U/G capture. The parser rejects incomplete/foreign/duplicate selected states and the consumer rechecks PN/target identity. NR1 saved/untouched verification remains in place.
|
||||
|
||||
## Issues
|
||||
|
||||
### Critical
|
||||
|
||||
None found.
|
||||
|
||||
### Important
|
||||
|
||||
1. **New catalogue work consumes the unchanged hard native-mutation deadline.**
|
||||
- Location: `src/dx_productivity/trial_task_center/native_helper.py:517` and `:699`, under the timer at `:816`; catalogue lock wait at `src/dx_productivity/trial_task_center/cell_catalog.py:342` and worker wait at `:389`.
|
||||
- Trigger: execute a persisted valid selection with an unpopulated/invalidated cache, or while an obsolete asynchronous UI catalogue read still owns the catalogue mutex. Closing the dialog does not cancel its background read. The catalogue permits a 120-second lock wait plus a 90-second worker operation, while `run()` starts one 120-second timer before *all* catalogue and native replacement work. The actual standalone cold read evidence is already 83.9345502 seconds; subsequent native selection/replacement/verification and the second source check must fit into the remaining budget.
|
||||
- Impact: an otherwise valid operation can be killed by `os._exit(2)` during preflight or, worse operationally, after native submit and before verification. Existing rollback/uncertainty handling should prevent a false success, but this creates avoidable failed/protected tasks and makes a warm UI cache an undocumented prerequisite for reliable execution. Concurrent catalogue work can exhaust the deadline before replacement even begins.
|
||||
- Fix: give read-only catalogue preflight its own bounded phase and preserve an independent native-mutation deadline; coordinate outer worker idle/progress limits with those phases. Keep the immediate pre-submit source/membership revalidation. Do not merely assume the UI warmed the cache or relax the performance acceptance threshold. Add focused clock-controlled coverage for a cold/queued catalogue read and for timeout after the mutation phase begins.
|
||||
- Accepted alternative proposed by root after this review: explicitly forbid cold catalogue launches in both native-helper checks and recovery. A fully fingerprint-revalidated cache hit may proceed; absent, stale, corrupt, or otherwise invalid evidence must fail before mutation with an actionable “重新读取目标封装” instruction. UI explicit reading may perform the cold read. This removes the mutex/worker delay from the mutation budget without weakening authority. Cover each miss/error path with assertions that no isolated reader launches, cover successful validated reuse, and document the reread requirement. This proposal is sufficient in principle; implementation has not yet been reviewed.
|
||||
- Evidence limit: this finding follows the actual timeout composition and inspected cold-read evidence. The root is observing a new cold-cache cross-Cell run; this review has not inspected or certified that still-running result, and does not claim it has already timed out.
|
||||
|
||||
### Minor
|
||||
|
||||
1. **User instructions refer to a target-plan column that is not displayed.**
|
||||
- Location: `docs/user/target-cell-selection.md:11`.
|
||||
- The step asks users to inspect the target plan's “目标封装”. `ui/target_table.py:6` and its `data()` still expose ten columns without Cell; only the rules table displays the new selection. Users cannot perform that stated check.
|
||||
- Correct the wording to the actual rules table, or deliberately add a read-only plan display in a separate authorized UI change. No BOM column change is needed.
|
||||
|
||||
## Evidence inspected and limits
|
||||
|
||||
- Read the spec, plan, task 2/3/4 reports, their independent reviews, the BOM fix review, ledger, all changed implementation areas, and focused test code for catalogue/NR2/Cell transport/BOM-first behavior. Bounded surrounding reads checked current-command publication, exact queue comparisons, the helper watchdog, shared cache location, undo boundaries, saved verification, and recovery fallback behavior.
|
||||
- Parsed existing `build/cell-transport-verified-20261019.xml`: 137 tests, zero failures/errors/skips, 49.444 seconds. Parsed `build/native-selected-commit-20261019.xml`: 55 tests, zero failures/errors/skips, 16.669 seconds. These are existing reports, not fresh reruns or a whole-suite pass claim.
|
||||
- Independently checked the recorded v3 catalogue evidence offline: all 86 before/after manifest entries match; recomputed fingerprint is `7b66672325b41c0915b1f4c1f8fb64b7cd2bda526e64721d85b66a17647b5d9f`; cache digest matches catalogue bytes; worker verification and Quit are true; both Jobs report zero active processes and closed handles with no cleanup errors; private desktop release is confirmed; the clone is absent. The inspected summary records cold 83.9345502 seconds and cache 2.3448634 seconds.
|
||||
- The task reports retain 138 scoped rule checks, 64 BOM-fix checks, and 29 catalogue/application checks. The reviewed test bodies substantiate their intended contracts; this review did not independently rerun those commands.
|
||||
- Inspected the retained simulated-worker comparison: current 33.6976356 seconds versus baseline 30.0630522 seconds; both fail the unchanged 30-second threshold. Neither general speed improvement nor release readiness is established. Broader-suite/legacy-UI limitations remain in the task reports.
|
||||
- Prior selected-capture acceptance is same-Cell evidence; it does not certify this feature's cross-Cell writes. The root's current explicit cross-Cell BOM/save/reopen/source-hash/owned-resource acceptance remains a separate pending gate. No packaging or frozen-release acceptance was performed, consistently with scope.
|
||||
|
||||
## Assessment
|
||||
|
||||
**Ready to merge: With fixes.** Resolve the Important deadline integration issue and collect the pending explicit cross-Cell acceptance before claiming the feature complete. Apart from that issue, the reviewed implementation consistently maintains Cell choice and source authority across the existing execution safety boundaries; no additional Critical or Important defect was identified.
|
||||
|
||||
|
||||
---
|
||||
|
||||
# Final scoped fixwave review — 4d1b825..ec75445
|
||||
|
||||
## Findings disposition
|
||||
|
||||
### Important: catalogue work inside the native 120-second deadline — ADDRESSED
|
||||
|
||||
- `native_helper.py:90` explicitly passes `allow_cold_read=False`, and the shared binding helper defaults to the same mode at `:93`. Both the initial active-project catalogue check and final pre-submit check use this route. The native watchdog remains 120 seconds (`:817`); no timeout or performance threshold was relaxed.
|
||||
- `cell_catalog.py:175` retains a backward-compatible, keyword-only optional mode. Source manifests, the path/fingerprint/PN/partition cache key, evidence SHA256, exact evidence binding, candidate validation, worker/Quit verification, and owned cleanup proof remain necessary. A valid hit still performs the second full source manifest check. Source changes during that check fail closed.
|
||||
- Missing/stale cache or damaged/invalid evidence cannot reach read-directory creation, cloning, the launch mutex, or a cold worker when cold reading is forbidden (`cell_catalog.py:199`, `:203`). The error tells the user to reread target Cells in the rule editor. Catching invalid evidence object shapes as `AttributeError` closes the malformed-proof path without accepting such proof.
|
||||
- The new behavioral native test reaches the first and second actual catalogue calls in turn and asserts explicit cache-only mode, no replacement submit, and no transaction publication on failure (`test_target_cell_execution.py:117`). Catalogue tests cover absent, changed-source, damaged-digest, invalid-cleanup and malformed proof; the latter two recompute the digest to exercise validation beyond hashing (`test_cell_catalog.py:96`). Positive reuse and change during the second rehash are also covered (`:128`, `:142`).
|
||||
|
||||
**Standalone recovery exception accepted.** `recovery.py:98` deliberately permits a cold read, but the call at `:166` precedes CAD launch at `:225` and does not run inside `native_helper.run()` or its watchdog. It still compares the complete current catalogue binding to the original transaction before proceeding. This avoids a lost-cache recovery dead end while interruption protection locks the rule editor, without reintroducing the reported native timeout composition. The new test verifies explicit cold permission before the recovery worker and the continued protection lock (`test_recovery.py:323`); the existing source/choice/proof mismatch negatives still prevent worker launch. My earlier suggestion to require cache-only mode in recovery was broader than the actual deadline defect; this reviewed exception supersedes it.
|
||||
|
||||
Full source hashing still consumes native time, as required for authority. This change removes the specific 120-second mutex/90-second cold-reader waits; it does not claim unlimited library size or universal runtime guarantees.
|
||||
|
||||
### Minor: nonexistent target-plan Cell column in instructions — ADDRESSED
|
||||
|
||||
`docs/user/target-cell-selection.md:11` now directs users to check the actual **本批料号规则** table. The guide also explains execution cache misses and the separate recovery preflight behavior. No new table or BOM column was introduced.
|
||||
|
||||
## New issues
|
||||
|
||||
- Critical: **0**.
|
||||
- Important: **0**.
|
||||
- No new actionable minor issue found in this scoped fix.
|
||||
|
||||
## Evidence and scope
|
||||
|
||||
- Reviewed the supplied seven-file `4d1b825..ec75445` diff and `final-fix-report.md`, focusing on the two original findings and new breakage. No tests rerun, CAD/LM operation, process changes, Git mutation, source edits, or subagents. Only this requested review artifact was written.
|
||||
- Independently parsed `build/cell-finalfix-scoped-20261019.xml`: **177 tests, 0 failures, 0 errors, 0 skips**, suite time **75.853 seconds**. The report's **76.24 seconds** is its CLI elapsed result, not a conflicting suite count. Reviewed focused test bodies rather than relying on counts alone.
|
||||
- Read the completed **pre-fix** cross-Cell acceptance `build/explicit-cell-formal-bom-20261019/report.json`, `independent-graph-verification.json`, and `desktop-observation.json`. They record two saved/reopened replacements at 267.375 seconds, actual saved Cell instances `RESC1608N_0603` replacing `RESC1005N_0402`, 55 untouched components, 103 pins, 22 nets, unchanged connectivity, source-hash equality reported, no owned CAD foreground/input-desktop takeover, and released owned processes/desktop. These artifacts support actual cross-Cell behavior but are not evidence that the new cache-only execution path has completed its current live acceptance. The source-hash equality here is the inspected report's assertion, not a fresh full source-file rehash by this reviewer.
|
||||
- The post-fix warmed-rule-read/BOM run under `ec75445` remains root-owned and was reported running at review time. I did not inspect its incomplete artifacts or certify its outcome. Existing performance limitations, broader-suite qualifications, and no-package/no-release scope remain unchanged.
|
||||
|
||||
## Assessment
|
||||
|
||||
**Scoped fixwave: Approved.** Both original findings are addressed; no new Critical or Important issue was found. The native deadline fix preserves source authority and failure-before-submit behavior while the recovery exception stays outside that deadline. Root should collect the running post-fix live acceptance before the final whole-feature completion claim.
|
||||
@@ -0,0 +1,47 @@
|
||||
# Optional Cell release review — 2026-10-19
|
||||
|
||||
## Scope
|
||||
|
||||
- Reviewed commit range `81a8547..d12478e` against the requirement that target Cell is optional.
|
||||
- Read the changed source, documentation, and tests, plus the surrounding command, snapshot, native transaction, restoration, saved-file verification, recovery, and BOM code.
|
||||
- Confirmed the inspected production files match `d12478e`. Unrelated working-tree test harness cleanup was excluded.
|
||||
- No tests, CAD sessions, original CAD/library writes, source edits, or Git mutations were performed. This report is the only review output written.
|
||||
|
||||
## Strengths
|
||||
|
||||
- Native execution treats an absent `L` record as no selection and skips both catalog checks. It retains ordinary native part identity validation and transaction evidence.
|
||||
- VBS treats both an absent command field and an empty command field as no selection. `QPSetTargetCell` and `QPVerifyTargetCell` return before accessing the component in that case. Generic instance restoration is restricted to Comment, Notes, and user attributes, so it does not restore an old Cell Name instance value.
|
||||
- Mixed optional/explicit queues retain their complete original command rows when publishing the current command. Cell values remain part of queue-to-input comparison, including per-row comparisons, so swapping selections invalidates the queue.
|
||||
- Optional snapshots omit `L`; present `L` records still require exactly one nonempty, valid selection. Empty, duplicate, and extra-field records remain errors in the VBS reader and Python selection parser.
|
||||
- Explicit selections retain exact project library/catalog authority, the final catalog check before native submission, partition binding, the explicit instance write and immediate readback, and verification after restoration and saved-file reopening.
|
||||
- Recovery binds queue selection, snapshot hash, project/sheet/rule/source identities, and transaction evidence before launching the worker. Unselected snapshots reject added Cell evidence and skip catalog preflight. Explicit selections retain the original complete catalog comparison and active-library check. Protection is cleared only after correlated recovery success and unchanged original evidence checks.
|
||||
- The default BOM header remains the existing 11 columns, with no Cell column.
|
||||
|
||||
## Issues
|
||||
|
||||
### Critical
|
||||
|
||||
None found.
|
||||
|
||||
### Important
|
||||
|
||||
None found.
|
||||
|
||||
### Minor
|
||||
|
||||
None raised within this release review scope.
|
||||
|
||||
## Validation evidence
|
||||
|
||||
Read the existing XML summaries without executing tests:
|
||||
|
||||
| Evidence | Tests | Failures | Errors | Skipped |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| `build/optional-cell-green-20261019.xml` | 73 | 0 | 0 | 0 |
|
||||
| `build/release-safety-fixes-20261019.xml` | 109 | 0 | 0 | 0 |
|
||||
|
||||
The reviewed test changes cover optional execution reaching native submission without catalog reads, empty/missing VBS selection no-ops, mixed queue binding, malformed `L` records, rejecting unexpected Cell transaction evidence, and optional recovery preserving protection until worker verification. Existing explicit-selection tests retain authority, write/readback, and catalog-drift checks.
|
||||
|
||||
## Assessment
|
||||
|
||||
**Approved for the reviewed scope.** No Critical or Important findings. The change makes selection optional while preserving explicit-selection authority and verification. This is a static code review supported by the supplied test reports; live CAD behavior was not exercised.
|
||||
@@ -0,0 +1,47 @@
|
||||
# V1.1.3 final artifact review — 2026-10-19
|
||||
|
||||
## Verdict
|
||||
|
||||
**Approved for the reviewed V1.1.3 local release artifacts. No remaining Critical or Important findings and no artifact blocker to the authorized draft-upload, download-hash verification, then publication sequence.** Existing V1.1.2 release assets remain outside this update.
|
||||
|
||||
This is a read-only artifact/evidence review, not a claim that publication has already happened or that the application works on every machine. No CAD, tests, Git changes, application launches, remote writes, uploads, or publication were performed. This report is the only output written.
|
||||
|
||||
## Identity and files
|
||||
|
||||
- Source code commit recorded consistently: `95c7f9b775af2f7f220c349f897144cf745027b4`.
|
||||
- Version is consistently 1.1.3, with Windows FileVersion 1.1.3.0. The runtime screenshot shows the V1.1.3 title and intended application icon.
|
||||
- Actual ZIP SHA-256: `f1fe7d7f2eb8fe83928f0fa7a3ab59638032b05bc66f89c92c00dd428ccf3fcd`.
|
||||
- Actual extracted EXE SHA-256: `12e299042dd5ecd5d7bd02cf4dd80f72b31a425c5e1702a2f717999fb132a05e`.
|
||||
- All **233 program-file hashes** in the outer release manifest match the final extracted package. The runtime icon exists at the corrected package resource path. No extracted application `data` directory is included.
|
||||
- The ZIP contains **256 files**, is **58,119,736 bytes**, and has no matching task-data/database/log/project-backup paths in the inspected entry names.
|
||||
- `docs/releases/v1.1.3-build.json` and `dist/release-manifest-1.1.3.json` are identical. Their recorded artifact identity agrees with the build notes and icon verification.
|
||||
|
||||
## Actual five upload paths
|
||||
|
||||
The publication script was inspected without executing it. Its file list uses:
|
||||
|
||||
1. `dist/DxPartReplace-1.1.3.zip`
|
||||
2. `dist/SHA256SUMS-1.1.3.txt`
|
||||
3. `dist/release-1.1.3/BOM-template.xlsx`
|
||||
4. `dist/window-tutorial-1.1.3.gif`
|
||||
5. `dist/release-manifest-1.1.3.json`
|
||||
|
||||
The listed ZIP, manifest, GIF, and **new versioned BOM path** match the checksum file. The checksum file itself is the fifth verified local artifact by presence/readability; remote download verification remains the next release step.
|
||||
|
||||
The initial BOM discrepancy reported during review was a reviewer path-selection mistake: `dist/BOM-template.xlsx` is intentionally retained historical material and is **not** the V1.1.3 upload source. The actual new path, final extracted template, and ZIP entry `DxPartReplace/BOM-template.xlsx` all hash to `877c9164e5230219a43c4c3df0b204be7fa08419e95080ffe782fbb8311761a8`. That finding is withdrawn; no attachment or checksum rewrite is required.
|
||||
|
||||
## Icon and build evidence
|
||||
|
||||
- `build/release-113-build-final.log` records **701 passed, 1 warning, 101.11 seconds**, followed by a successful PyInstaller build. The warning is the previously known pywinauto STA fallback message.
|
||||
- `icon-verification.json` identifies the final extracted EXE, reports success, FileVersion 1.1.3.0, and all ten embedded sizes from 16 through 256 pixels.
|
||||
- Actual window icons returned 20- and 40-pixel images. Both match the source icon with maximum RGB difference 1, and the process exited normally with code 0. These results close the earlier frozen entry-script resource-path issue.
|
||||
- `icon-recording/frame-000.png` was viewed read-only and is consistent with the reported V1.1.3 title and icon.
|
||||
|
||||
## Business scope and packaging assertions
|
||||
|
||||
- The final manifest records **78 business compiled-code comparisons all true** against accepted commit `e6ec267a26efedbab796207b8044533d02222350`, plus equality of both packaged VBS runtimes. The intended changed product modules are application identity initialization and version metadata. No new CAD behavior is claimed for the icon release.
|
||||
- The record explicitly states that native replacement was not rerun for this icon-only rebuild. The existing two-project live CAD/independent readback acceptance is referenced accurately rather than presented as a fresh V1.1.3 CAD run.
|
||||
- The template has 11 header cells and two worksheet rows; all data cells after the header are empty. Replacing the old `max_row == 1` assertion with a semantic empty-data check is justified by the valid styled blank editing row. The earlier staging directory remains present.
|
||||
- The GIF checksum matches the release record, and the ZIP README explicitly identifies the recording as V1.1.2 with V1.1.3-applicable steps. It is not represented as a new recording.
|
||||
|
||||
The proposed separate V1.1.3 tag/assets and unchanged V1.1.2 assets are consistent with the documented scope. Main-branch/tag remote state and downloaded remote attachment bytes have not been checked by this reviewer; the coordinator should complete the already authorized publication sequence and its hash checks.
|
||||
@@ -0,0 +1,36 @@
|
||||
# V1.1.3 icon and packaging review — 2026-10-19
|
||||
|
||||
## Scope and verdict
|
||||
|
||||
Read-only review of application identity setup, icon assets/generator, package data, PyInstaller icon/data/version settings, Windows version resource, and the targeted test adjustments. No tests, CAD, Git commands, source edits, or release operations were performed. This report is the only output written.
|
||||
|
||||
**Approved for the final reviewed source/packaging design. No remaining Critical or Important findings.** The frozen-resource path issue identified during review is corrected. Final build and frozen runtime verification remain release prerequisites. The review does not invalidate the existing v1.1.2 artifact or authorize overwriting its attachments; v1.1.3 is a separate release scope.
|
||||
|
||||
## Resolved Important finding
|
||||
|
||||
### Resolve the runtime icon from a package module, not the frozen entry script directory
|
||||
|
||||
**Location:** `src/dx_productivity/trial_task_center/application.py:43`.
|
||||
|
||||
The initial `configure_application_identity` constructed `Path(__file__).parent / 'assets/app.ico'`. That works from the source package directory, but the spec supplies `application.py` as the executable's PYSOURCE entry script. PyInstaller's entry-script location differs from the data destination `_internal/dx_productivity/trial_task_center/assets/app.ico`.
|
||||
|
||||
That mismatch could leave a correct EXE/Explorer icon while the application/window QIcon is null. The final reviewed code now imports `dx_productivity.trial_task_center` and resolves the asset from that package module's `__file__`, matching both source and frozen package layouts.
|
||||
|
||||
The new regression replaces the entry module's `__file__` with a relocated script path and checks a non-null application icon and decoded 32-pixel pixmap. The retained red report records 1 failure; the green report records 9 passing application checks. Actual frozen icon/version inspection is still needed for the final artifact.
|
||||
|
||||
## Other reviewed behavior
|
||||
|
||||
- The application AppID is stable and excludes the release version: `DxProductivity.DxPartReplace`. GUI application name/version/icon setup occurs after QApplication construction and before top-level window creation.
|
||||
- Native helper, private CAD action, Cell catalog worker, and SceneOS CLI branches still return before GUI construction and identity setup. The added top-level QIcon import does not itself construct a GUI application.
|
||||
- The packaged EXE icon points directly to the source ICO. The data destination matches the package-data hierarchy. Wheel/source package-data patterns include ICO, PNG, and SVG.
|
||||
- `VERSION`, project package version, and Windows ProductVersion are 1.1.3. Windows fixed versions and FileVersion consistently use 1.1.3.0. Product/Internal/OriginalFilename strings are consistent with DxPartReplace.exe.
|
||||
- The editable SVG is a self-contained vector asset with no external references. The generator validates it, renders a transparent 512-pixel PNG, and creates a multi-size ICO. A read-only binary directory inspection confirms ten ICO sizes: 16, 20, 24, 32, 40, 48, 64, 96, 128, and 256 pixels. The icon assets exist and are nonempty. The coordinator supplied visual inspection; this reviewer did not rerender them.
|
||||
- Comparing current source files to the final v1.1.2 candidate's 101-file source manifest identifies only `application.py` and `version.py` as changed existing product modules. No replacement, Cell authority, CAD mutation, recovery, or persistence module change was found in that comparison.
|
||||
|
||||
## Tests and build evidence
|
||||
|
||||
`build/release-113-bootstrap.xml` records 14 tests, 0 failures, 0 errors. The two fake-Qt startup tests isolate identity configuration without removing the original logging/startup/smoke-close assertions. The project-task UI version assertion now follows `VERSION`; its editing/gating/persistence checks remain intact. `release-113-icon-path-red.xml` records 1 failure and `release-113-icon-path-green.xml` records 9 passes, with no errors.
|
||||
|
||||
The initial full `release-113-build.log` records 699 passes and one failure in the fake-Qt startup recovery test. Its application log identifies `AttributeError: 'Application' object has no attribute 'setApplicationName'`, rather than a recovery assertion failure. The final reviewed recovery test now isolates identity configuration while preserving the paused/failed recovery states, before/after event phases, and diagnostic-log assertions. The replacement full build is recorded separately in `release-113-build-final.log` and was still progressing when inspected. No final build or frozen runtime success is claimed here. Existing preceding-candidate TOCs were not used as v1.1.3 resource evidence.
|
||||
|
||||
Retain the new versioned release identity and verify the newly built EXE's embedded icon/version plus its running window icon before publishing v1.1.3. Business behavior remains outside this icon-only change. The user has authorized packaging/publication; this review itself performs no publication and adds no confirmation requirement.
|
||||
@@ -0,0 +1,45 @@
|
||||
# Final acceptance tools review — 2026-10-19
|
||||
|
||||
## Scope and verdict
|
||||
|
||||
Reviewed the current uncommitted `tools/accept_packaged_ui.py`, `tools/probe_packaged_upgrade.py`, and `tests/integration/test_packaged_acceptance_guards.py`. Includes the final exact-entry-key assertion and its two malformed-checkpoint regression cases added during review.
|
||||
|
||||
**Approved for the reviewed tooling scope. No Critical or Important findings; no remaining Minor finding.** This does not approve the still-pending real execution acceptance in the corrected fixture root.
|
||||
|
||||
Review was read-only except for writing this report. No tests, CAD, application/process operations, product edits, or Git mutations were performed.
|
||||
|
||||
## Execution completion checks
|
||||
|
||||
- The driver snapshots existing queue filenames immediately before clicking the execution confirmation. Only newly created queue checkpoints are considered, and their ordered `task_ids` must match the tasks read in execution order.
|
||||
- Durable `failed`, `blocked`, or `skipped` entries now raise an acceptance failure even when the legacy database task status remains `running` or `ready`. The tool neither retries native execution nor rewrites checkpoints.
|
||||
- Success requires exactly one matching new queue, nonempty task states, all database tasks completed, and all queue entries completed. The final `set(entries) == set(queue['task_ids'])` assertion rejects missing, empty, or foreign task entries before completion is evaluated. This addresses the initially identified nonblocking vacuous-completion case.
|
||||
- Old queue failures are excluded using the pre-confirmation filename snapshot. Missing/running checkpoints cannot produce success. The surrounding execute stage still requires real saved/readback events for both tasks and subsequent CAD observation verification.
|
||||
- The product queue writer was inspected for schema/state alignment: it creates entries for every ordered task and persists safe failures as `failed`, unsafe failures as `blocked`. These are the states the new tool consumes.
|
||||
|
||||
## Other retained safeguards
|
||||
|
||||
- CLI BOM resource checks still inspect **all** inventory attempts. Uncertain/incomplete states and cleanup errors are rejected; every recorded workspace, Job/process, descendant-handle, and desktop cleanup record is checked. Successful project coverage is derived only from ready rows. The earlier Important filtering defect remains fixed.
|
||||
- Actual CAD sessions remain required by default for execution/independent-read observation. CLI-only BOM collection uses its separate resource proof.
|
||||
- Read-only BOM continuation still requires the saved functional evidence and exact persisted target rows; it does not repeat imports or mutate plans. Previous failed evidence is retained.
|
||||
- The legacy upgrade probe still verifies the old executable hash, creates/uses the real legacy fixture, backs it up to a separate destination, invokes the frozen candidate smoke migration, and compares task identities and every original rule value using strict rule-count pairing. Migrated Cell selections must be empty and the legacy source database hash unchanged.
|
||||
|
||||
## Evidence inspected
|
||||
|
||||
| Existing report | Tests | Failures | Errors |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| `build/release-cli-resource-verifier-red-20261019.xml` | 4 | 3 | 0 |
|
||||
| `build/release-cli-resource-verifier-green-20261019.xml` | 4 | 0 | 0 |
|
||||
| `build/release-execution-verifier-red-20261019.xml` | 8 | 4 | 0 |
|
||||
| `build/release-execution-verifier-green-20261019.xml` | 8 | 0 | 0 |
|
||||
|
||||
The initial four new execution cases exercise failed/blocked entries with nonfailed database task states, exclusion of an old queue failure, and the requirement for both a current completed checkpoint and completed tasks. The final malformed-checkpoint cases additionally exercise empty and foreign entry keys; their matching source guard was inspected. This reviewer did not rerun any suite.
|
||||
|
||||
`build/packaged-optional-acceptance-20261019/v111-upgrade-report.json` records two preserved tasks, one preserved rule, empty migrated Cell selection, candidate exit code 0, and unchanged legacy source database. Accepting one rule reflects the actual legacy fixture rather than weakening preservation checks.
|
||||
|
||||
## Diagnosis update and limits
|
||||
|
||||
Both prepared v1 project files were read directly and contain `KEY CentralLibrary "S:\mentor_lib.lmc"` at line 28. A read-only existence check of that exact library returned false. The coordinator also reports that direct native row count was zero and both MTA/STA UIA calls returned without exception. Together these support the fixture's missing library binding and provide no evidence that freezing caused the empty DxDataBook.
|
||||
|
||||
The earlier diagnosis report's UIA/apartment/dependency possibilities remain historical hypotheses, not confirmed product defects. The coordinator's STA diagnostic worker pipe saturation/timeout and final `clean=false` are also diagnostic-tool outcomes; they do not establish a product failure. All original failures should remain preserved alongside the corrected v2 acceptance evidence.
|
||||
|
||||
A corrected build-only project/library fixture and a new real execution run are still needed to establish native replacement acceptance. Neither the verifier fixes nor the successful legacy metadata upgrade substitute for that result.
|
||||
@@ -0,0 +1,54 @@
|
||||
# Final frozen candidate evidence review — 2026-10-19
|
||||
|
||||
## Verdict and scope
|
||||
|
||||
**Approved for this machine's reviewed frozen candidate evidence. No Critical or Important evidence-consistency findings.** This approval applies to the identified local acceptance candidate and the exercised projects/workflow. It is not a guarantee of success on every machine or every CAD project, and it does not authorize or perform a remote Release publication.
|
||||
|
||||
Acceptance root: `build/packaged-optional-final-20261019`.
|
||||
|
||||
This review read the existing artifacts and checked hashes/source consistency. No tests, CAD, acceptance steps, process operations, product changes, or Git mutations were run. This report is the only output written.
|
||||
|
||||
## Candidate identity
|
||||
|
||||
- Manifest source commit: `e6ec267a26efedbab796207b8044533d02222350`.
|
||||
- Extracted EXE SHA-256, independently recomputed: `de21d56084d9adde155311c5679fd4ea2bca7b981e42cc1748fc72dbaba32c45`.
|
||||
- Candidate ZIP SHA-256, independently recomputed: `aee87aa879b61164731cab9914ea5c84b22f645ef016d55c915fa256db447d7b`.
|
||||
- Packaged QuickPartReplace VBS SHA-256, independently recomputed: `024b2859d10566d9df3d96f3f98a6ba6bf3b4b94dfc577e7132f0570e23cd48e`.
|
||||
- All 101 source-file hashes listed in the manifest match the current source files. The manifest and compact archived evidence both record eight successful frozen-module compiled-code comparisons, including the optimized filesystem helpers and lifecycle guards.
|
||||
- `ui-session.json` names the extracted EXE inside this exact final root. The manifest classifies it as a local acceptance candidate with task data excluded.
|
||||
|
||||
## Cross-checked workflow evidence
|
||||
|
||||
| Area | Evidence and consistency |
|
||||
| --- | --- |
|
||||
| BOM | `ui-acceptance.json` records the unchanged 11-column template, invalid import 2 passed/1 failed, corrected import 2 passed/0 failed, search preserving tasks, four saved targets, and two enabled targets. All four saved Cell selections are empty. |
|
||||
| Project scope | `inputs.json`, completed-task records, native transaction paths, and independent read paths agree on the two disposable projects. Actual path string lengths are 362 and 135 characters. |
|
||||
| Native execution | Both archived native reports have `ok=true`, `stage=native_replace_verified`, target Part Number `4100-CA0000-T0`, and UID `$2I2014`. Neither transaction contains `target_cell` or `cell_catalog`. |
|
||||
| Durable saved result | Both archived status files contain `saved_ok/session_verified`. Each task has a matching genuine `quick_run_executed` saved event naming RV05, old/new Part Numbers, and saved/reopened readback. UI execution time is 167.0 seconds; the enclosing driver stage is 172.125 seconds, which includes stage overhead. |
|
||||
| Independent attributes | `independent-report.json` records fresh private-CAD reads for both projects: RV05 is `4100-CA0000-T0`, RV11 remains `4100-CA0000-T7`, and both retain/read back Part Label and Value `0R`. The report passes. |
|
||||
| Independent graph | `independent-graph-verification.json` and successful continuation output agree for both hierarchical and flat exports: 57 components, 103 pins, 22 nets, 56 untouched components, selected UID `$2I2014`, unchanged pin connections and net graph. The graph checker reads before/after ASCII files and asserts the comparisons; it does not execute replacement. |
|
||||
| UI completion | Result accessibility cells show RV05, the intended old/new Part Numbers, and saved/readback status. Log dialog reopening and new-round reset both pass. Two referenced archived plan files exist, and saved native/status evidence remains inside those round archives. |
|
||||
| Real legacy upgrade | `v111-upgrade-report.json` and `upgrade.log` agree: two tasks and one actual legacy rule preserved, candidate exit 0, empty migrated Cell selection, unchanged legacy source database. |
|
||||
| Source integrity | The three roots in `source-integrity-before.json` contain 473, 474, and 86 tracked hashes, totaling 1,033. `source-integrity-after.json` and `final-acceptance.json` record no changed files. This review checked those evidence totals; it did not regenerate the full external engineering/library hash inventory. |
|
||||
| GUI closure | `final-acceptance.json` and the compact archived evidence both record `gui_exit_confirmed=true`. This review did not query or alter live processes. |
|
||||
|
||||
## Resource and desktop evidence
|
||||
|
||||
- BOM observation: 90 samples and 90 successful file reads, unchanged `Default` input desktop, no observer errors or owned foreground/input-desktop CAD. Zero CAD sessions is consistent with the two native CLI inventory records.
|
||||
- Both CLI inventory records are ready, source hashes unchanged, workspaces deleted, desktops released, and cleanup errors empty. Every recorded process has zero active Job processes, exit code 0, closed process/Job handles, no unconfirmed descendant handles, and no errors.
|
||||
- Execution observation: 777/777 successful samples, two released CAD sessions, both process exits confirmed, both desktops absent, no observer errors or owned CAD stealing the foreground/input desktop.
|
||||
- Independent-read observation: 318/318 successful samples. It includes the two earlier released execution sessions plus two fresh read sessions; all four are released/exited with desktops absent. The cumulative count is consistent with the observer scanning retained session evidence, rather than four new independent readers.
|
||||
|
||||
## Preserved failures and continuation
|
||||
|
||||
`final-acceptance.json` intentionally retains the initial graph stage exit code 1. `graph.log` confirms a driver import failure: the relocated graph script could not find `compare_speed_graphs`. The next step is explicitly named `graph-readonly-continuation`, exits 0, and produces the matching graph report. The continuation reason is retained in both final and compact evidence. The recorded steps contain one BOM execution stage and one replacement execution stage; the correction reruns only graph verification and does not conceal or repeat those mutations.
|
||||
|
||||
The older `packaged-optional-acceptance-20261019` failed fixture root and `packaged-optional-acceptance-20261019-v2` successful root remain present. Their outcomes are separate from this final candidate. Earlier zero-row results with an unresolved `S:\mentor_lib.lmc` fixture binding are not treated as proof of a frozen-package defect or silently replaced by the final result.
|
||||
|
||||
## Build and final performance gate
|
||||
|
||||
- `build/release-candidate-build-freeze-20261019.log` records **700 passed, 1 warning**, then a successful PyInstaller build. The warning is pywinauto reverting to STA in the named test; it is not a failed test.
|
||||
- `build/release-queue-performance-frozen-final-20261019.xml` records 1 passed, 0 failures, 0 errors, 0 skipped. Its log records pytest duration 23.21 seconds.
|
||||
- The final metrics file records **21.091375 seconds** for the unchanged 1,000-step simulated-worker workload with tracemalloc, 91 saved steps, and 2,222,949 peak bytes. The source still requires elapsed time below 30 seconds and unchanged completion/count/memory assertions. The compact archived evidence repeats these final metrics correctly. This is a separate source-level queue performance gate, not a claim that 1,000 real CAD replacements took that time.
|
||||
|
||||
The complete final-root evidence, compact archive, candidate identity, and final performance result are mutually consistent within the reviewed scope. No remote Release was published or requested by this review.
|
||||
@@ -0,0 +1,34 @@
|
||||
# Queue filesystem optimization review — 2026-10-19
|
||||
|
||||
## Verdict
|
||||
|
||||
**Approved for the final reviewed diff. No remaining Critical or Important findings.** The initial rotation exception-semantics issue identified during review has been corrected. The optimization retains live filesystem validation, per-step evidence, fsync, atomic command publication, and file identity checks.
|
||||
|
||||
Reviewed `legacy_paths.py`, `retention.py`, `logging_setup.py`, `quick_run.py`, the new filesystem-work tests, relevant existing long-path/logging/cache/retention coverage, and supplied XML/metrics artifacts. No tests, CAD, application operations, source changes, or Git mutations were performed. This report is the only output written.
|
||||
|
||||
## Final code review
|
||||
|
||||
- `_prepare_project_access` uses a local `seen` set keyed by the exact raw project-path field. Repeated commands resolve each input once within that preparation call. Different raw paths are not silently merged, and the set is discarded afterward. Strict short-path/alias identity checks and before/after-worker access validation remain. This is not a lifetime cache of filesystem trust.
|
||||
- `rotate_text_log` performs one fresh `stat` for normal files. If that query raises `OSError` or `ValueError`, the exceptional branch invokes `Path.exists()` to retain pathlib's own platform-specific distinction between an absent/invalid path and a genuine filesystem error. False returns false; true re-raises the original exception; permission and other non-ignored errors from `exists` propagate. No blanket `OSError` suppression was added.
|
||||
- This final exceptional branch fixes the intermediate implementation that caught only `FileNotFoundError`. On the installed Python 3.12, the former `exists()` also treated ENOTDIR, EBADF, ELOOP, specific Windows path errors, and nonencodable paths as absent. Keeping the platform predicate in the cold branch avoids duplicating those rules in the application.
|
||||
- `_task_directory` and `_append_log` perform a live `is_dir()` check on every call and still execute `mkdir(parents=True, exist_ok=True)` when needed. Existing directories avoid the failed-mkdir path; removed directories are recreated. File collisions, missing ancestors, and permission failures still pass through the existing filesystem operations and error paths. A race removing the directory after the check remains an error, as was already possible after the previous mkdir call.
|
||||
- Task ID validation is unchanged. Existing symlink/junction handling is unchanged. Rotation's link checks, thresholds, backup ordering, and rename operations remain in place.
|
||||
- The event pre/post stamps and handle identity comparison, sequence invalidation, flush/fsync, current-command atomic writer, post-worker command comparison, `batch.request` job binding, backup-state durability, executor shutdown, and every step's event remain unchanged by this diff.
|
||||
|
||||
## Test evidence inspected
|
||||
|
||||
| Artifact | Tests | Failures | Errors | Skipped |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| `build/release-queue-filesystem-red-20261019.xml` | 3 | 3 | 0 | 0 |
|
||||
| `build/release-queue-filesystem-green-20261019.xml` | 19 | 0 | 0 | 0 |
|
||||
| `build/release-queue-filesystem-errors-red-20261019.xml` | 8 | 3 | 0 | 0 |
|
||||
| `build/release-queue-filesystem-final-20261019.xml` | 24 | 0 | 0 | 0 |
|
||||
| `build/release-queue-performance-optimized-20261019.xml` | 1 | 0 | 0 | 0 |
|
||||
|
||||
The new tests check distinct-input resolution counts across two preparation calls, one-stat rotation for an existing small log, avoidance of redundant mkdir, recreation after removal, original absence/error semantics, and continued permission-error propagation. Existing suites cover path redirection, event sequence cache invalidation, rotation, and canonical immediate event visibility. The artifacts were read, not rerun by this reviewer.
|
||||
|
||||
## Performance and release limits
|
||||
|
||||
The unchanged independent 1,000-step test's supplied optimized metrics record **22.5226234 seconds**, 91 saved steps, and 2,210,321 peak bytes with tracemalloc enabled. The source still requires `elapsed < 30`, `peak < 128 MiB`, complete progress, exact saved/no-match counts, and 1,000 unique calls. No gate relaxation or workload reduction was found.
|
||||
|
||||
The final exception correction affects the cold error branch; the measured normal-file optimization remains the single-stat path. This static review does not substitute for building the final frozen artifact with the reviewed optimization. The coordinator's completed v2 live CAD acceptance applies to the preceding artifact; any final release claim must identify the rebuilt package and its applicable verification evidence.
|
||||
@@ -0,0 +1,80 @@
|
||||
# Read-only queue performance review — 2026-10-19
|
||||
|
||||
## Conclusion
|
||||
|
||||
There are concrete redundant filesystem operations that can be removed while retaining durable writes and identity checks. The strongest simple candidate is deduplicating project access preparation before resolving paths. Logging also repeats metadata/directory work. **The current profile does not prove these changes alone will bring the independent 40.90-second result below 30 seconds.** A measured result is required; the threshold should remain unchanged.
|
||||
|
||||
No source edits, tests, CAD, application operations, or Git mutations were performed. This report is the only output written.
|
||||
|
||||
## Evidence and interpretation
|
||||
|
||||
`build/release-queue-profile-20261019-v2/stress-metrics.json` records 1,000 steps, 91 saved steps, 36.731 seconds, and approximately 2.34 MB peak memory. The separate independent 40.90-second failure was supplied by the coordinator. The profiled test retains tracemalloc, so Python/path allocation reductions can matter as well as disk calls.
|
||||
|
||||
Selected cumulative profile costs:
|
||||
|
||||
| Path | Calls | Cumulative seconds | Interpretation |
|
||||
| --- | ---: | ---: | --- |
|
||||
| `execute_step` | 1,000 | 20.756 | Broad parent; includes child work below |
|
||||
| `_write_current_command` | 1,000 | 8.341 | Predominantly required durable command publication |
|
||||
| `append_task_event` | approximately 1,043 | 8.301 | Required event evidence plus repeated metadata work |
|
||||
| `_io.open` | approximately 7,131 | 7.129 | Global cost; includes required files and test worker |
|
||||
| `nt.stat` | approximately 14,663 | 4.375 | Global cost; some redundant calls, many identity checks |
|
||||
| `nt.fsync` | approximately 2,063 | 3.939 | Required durability; retain |
|
||||
| `_prepare_project_access` | 1 | 2.654 | Repeats project resolution across command rows |
|
||||
| `nt.replace` | approximately 1,020 | 2.005 | Atomic publication; retain |
|
||||
|
||||
These costs overlap and must not be added. In particular, `BatchBackupCoordinator.__exit__/shutdown/join` appears as about 33 seconds, overlapping the queue/worker-thread work in this profile. It is not evidence of an additional exclusive 33-second cleanup operation. The test stubs the actual backup copy; removing `shutdown(wait=True)` would weaken cleanup rather than establish a performance fix.
|
||||
|
||||
## Ranked optimization candidates
|
||||
|
||||
### 1. Deduplicate project paths before expensive access preparation
|
||||
|
||||
**Location:** `legacy_paths.py:107`, `_prepare_project_access`.
|
||||
|
||||
The helper reads all command rows and executes `Path(value).resolve(strict=False)` before testing whether that project's access pair was already produced. This test has 1,000 commands but only 20 project paths. For ordinary short paths, no access row is produced at all, so the existing `pair not in rows` guard never helps.
|
||||
|
||||
Use an invocation-local set of raw project-path field values and process each distinct value once before resolution, file queries, short-path lookup, or alias creation. Keep the access pair output unique and retain strict alias-to-project identity validation. Do not cache across invocations or remove `validate_project_access` before/after workers.
|
||||
|
||||
**Expected effect:** expensive project preparation falls from 1,000 to 20 evaluations in this workload. The profile assigns 2.654 seconds to the entire helper, which bounds the available saving; it cannot recover the whole regression alone.
|
||||
|
||||
**Verification:** repeated command rows should produce the identical access manifest, with resolution/short-path calls scaling with distinct project strings. Existing long-path/redirected-entry tests must still pass. Per-worker identity checks must still reject an alias changed after preparation.
|
||||
|
||||
### 2. Replace existing-log `exists()` plus `stat()` with one fresh metadata read
|
||||
|
||||
**Location:** `retention.py:29`, `rotate_text_log`.
|
||||
|
||||
For each normal existing log, `path.exists()` performs a stat, immediately followed by `path.stat().st_size`. One fresh stat can answer both existence and size. Preserve the missing-file behavior and error handling deliberately, and retain all link checks and backup rename checks when rotation is needed.
|
||||
|
||||
This removes one filesystem metadata call per rotation check without changing log bytes, event count, flush/fsync, sequence calculation, rotation threshold, or atomic operations. It also benefits callers beyond the event log.
|
||||
|
||||
**Verification:** missing log, existing below-threshold log, rotation, linked logs/backups, and filesystem error behavior. Instrument metadata calls for the below-threshold existing-file case; it should use one query rather than two. Do not replace live checks with a permanently cached file size.
|
||||
|
||||
### 3. Avoid failed mkdir calls for already-existing log directories
|
||||
|
||||
**Locations:** `logging_setup.py:225` (`_task_directory`) and `quick_run.py:1082` (`_append_log`).
|
||||
|
||||
Both call `mkdir(parents=True, exist_ok=True)` on every append. On an existing Windows directory, pathlib attempts mkdir, catches the existing-directory error, and checks whether the path is a directory. A fresh `is_dir()` fast path can avoid that failed mkdir call; create the directory with the existing code only when the check is false. Keep task-ID validation on every call.
|
||||
|
||||
This retains a live directory check and recovery after directory deletion rather than trusting an unvalidated lifetime cache. It is a small optimization with uncertain timing benefit, not a guaranteed multi-second saving.
|
||||
|
||||
**Verification:** existing directory, removed directory recreated on next append, non-directory collision, invalid task IDs, permission failures, and concurrent first append. Event contents, sequences, immediate readability, and fsync count must remain unchanged.
|
||||
|
||||
### 4. Cache pure command/session path construction, not filesystem trust
|
||||
|
||||
`execute_step` repeatedly constructs the same `batch.request`, `current-command.tsv`, `current-state.tsv`, and related parent paths. A session can retain immutable Path/string values established at startup while still performing every live file stamp, per-step command write, request write, and post-worker identity comparison.
|
||||
|
||||
The high pathlib allocation counts make this a plausible secondary saving under tracemalloc, but the profile does not isolate its exclusive cost. Prefer the first three candidates before adding session fields. Never cache a stamp as proof that a file remains unchanged.
|
||||
|
||||
## Work that should remain
|
||||
|
||||
- The pre-append event path stamp, post-fsync handle stat, and final path stamp serve different purposes. The final path-vs-handle comparison explicitly accounts for Windows ctime semantics and binds the sequence cache to the file actually written. Do not remove it as an apparent duplicate. External append/replacement and rotation must continue invalidating the cache (`test_event_append_cache.py`).
|
||||
- `current-command.tsv` contains a different confirmed job on each step. Its fsync plus atomic replace and the post-worker stamp comparison are not redundant with the full queue or status file. Preserve deletion/change detection.
|
||||
- `batch.request` binds the worker's batch mode to the expected job ID; VBS reads and compares it. The write is not shown to be useless merely because the command line also contains a job ID. Skipping it would be a protocol change requiring separate evidence, not the safe first optimization.
|
||||
- Keep every `quick_run_executed` event and its timing/state/identity fields, event fsync, uncertain markers, backup state publication, atomic queue commit, and executor cleanup boundary.
|
||||
- Do not disable tracemalloc, reduce the simulated queue, skip saved steps, falsify statuses, move required work outside the measured operation, or loosen the 30-second gate.
|
||||
|
||||
## Suggested validation sequence
|
||||
|
||||
Implement one candidate at a time only after the active real acceptance run is finished. First verify semantic guards and call-count reduction, then rerun the unchanged independent 1,000-item test in the same environment. Once correctness checks pass, measure the isolated performance gate and retain the raw metrics. Use a new profile only if the gate still fails or the result leaves the bottleneck uncertain; use per-thread wall spans/counters for backup overlap rather than subtracting the 33-second shutdown attribution.
|
||||
|
||||
There is a defensible low-risk optimization direction, but no evidence-backed complete solution to the 10.90-second deficit yet.
|
||||
@@ -0,0 +1,64 @@
|
||||
# Release test migration review — 2026-10-19
|
||||
|
||||
## Scope and method
|
||||
|
||||
Reviewed the current working-tree migration of `tests/ui`, the VBS harness changes in `tests/v1_1/test_accuracy_vbs_guards.py`, and the execution lease expectation in `tests/trial_task_center/test_permanent_delete.py`. Compared removed assertions with current production behavior and the existing current UI tests named in the review request. Also inspected related query-cancellation, replacement-log, and Value-policy coverage where relevant.
|
||||
|
||||
No tests or CAD were run. No source files or Git state were changed. This report is the only output written for this review.
|
||||
|
||||
## Assessment
|
||||
|
||||
**Approved with one nonblocking coverage recommendation. No Critical or Important findings.** The migration mostly replaces obsolete UI contracts and synchronous assumptions with current project-task behavior. Passing counts alone were not used as evidence of equivalent coverage.
|
||||
|
||||
The review reflects the final current contents, including the retained three-case `test_unresolved_queue_evidence_is_retained_after_task_purge`. An earlier intermediate diff omitted that test; it is present in the reviewed result.
|
||||
|
||||
## Safety and behavior mapping
|
||||
|
||||
| Original intent | Current evidence | Review |
|
||||
| --- | --- | --- |
|
||||
| Confirm before replacement; cancellation dispatches nothing | Migrated workflow parameterizes accept/decline and checks worker calls plus completion | Preserved |
|
||||
| Do not execute a stale Value policy | Migrated workflow tests both Value policy directions and requires zero worker calls; backend Value tests retain expected-item binding | Preserved with the current fail-closed behavior |
|
||||
| A no-match job completes as a skip | Migrated workflow checks queue completion, no-match count, and new-round availability | Preserved |
|
||||
| Mapping enablement changes persisted rules and execution gates | Migrated model-based toggle test checks persistence and disabled execution | Preserved without removed cell widgets |
|
||||
| Navigation and worker ownership are safe | Migrated tests cover mutation navigation lock and execution browsing; current responsiveness tests cover stale task/log results, execution completion after switching, and owner naming | Preserved for supported UI paths |
|
||||
| Closing cannot abandon execution or cleanup | Migrated close test requires boundary pause and ignored close; remediation/lifecycle tests retain cleanup waiting, cancellation, and unsaved-plan protection | Preserved |
|
||||
| Interrupted work offers recovery and cannot be repeated after declining recovery | Migrated shell test retains recovery visibility, disabled execution, unchanged lock, and zero worker calls | Preserved |
|
||||
| Permanent deletion requires explicit confirmation and rechecks state | Migrated recycle tests check default No, decline/accept, and concurrent restore; backend retains confirmation, deleted-state, rollback, evidence-retention, and project-file checks | Preserved |
|
||||
| Permanent deletion cannot overlap execution | Replacement lease test checks `quick_run_busy`, unchanged task/rules while leased, then success after release | Strengthened to match the current service gate |
|
||||
| Readable operator errors and logs | Migrated tests retain reason/error ID and formatting; current responsiveness/replacement-log tests retain task separation, saved-vs-unverified distinctions, and completed-task reopen behavior | Preserved |
|
||||
| Current layout and policy controls remain usable | Migrated tests cover task-local Value policy, custom Value/NC, optional Cell, current splitters/log dialog, and column persistence; workspace tests cover narrow-window plan visibility | Preserved for the current layout |
|
||||
|
||||
## Justified removals
|
||||
|
||||
- Multi-project table selection, scan, filtering, per-project skip/retry, and manual capture controls are absent from the current one-project task shell. Current project-task tests explicitly require several of these old controls to be absent and exercise directory selection and target-plan editing instead.
|
||||
- Backup override controls and `_continue_without_backup` no longer exist in the current UI. Removing tests for their dispatch does not weaken the current UI contract. Backend backup failure and explicit override behavior have separate tests.
|
||||
- Old tests that dispatch overlapping mutation workers to test shared-button generations do not match current `_run_async`, which rejects another mutation while `_workers` is nonempty. Current mutation navigation locking and asynchronous query ownership tests target the supported concurrency model.
|
||||
- Old imports of formatting helpers from `main_window` were moved to their actual owner, `ui.messages`. The formatting assertions remain intact.
|
||||
- The VBS harness changes add the real `QPTargetCell`/`QPDecode` routines now required by the extracted production routines. They do not replace production logic with stubs, relax expectations, add skips, or suppress errors.
|
||||
|
||||
## Findings
|
||||
|
||||
### Critical
|
||||
|
||||
None.
|
||||
|
||||
### Important
|
||||
|
||||
None.
|
||||
|
||||
### Minor — retain a mutation-worker destruction regression when convenient
|
||||
|
||||
The removed `test_worker_completion_does_not_touch_widgets_after_window_destruction` checked forced `deleteLater()` while a mutation worker was blocked. The migrated workflow close test (`tests/ui/test_trial_task_center_workflow.py:63`) covers an ordinary close request that is refused until completion. `test_deleted_receiver_does_not_receive_worker_completion` in the query-cancellation suite protects `LatestQuery`, a different implementation from the main window's `ServiceWorker` callbacks.
|
||||
|
||||
An adapted test using a current control would retain this defensive lifecycle coverage. This is nonblocking because current ordinary close handling explicitly waits for workers; the migration preserves that supported user path. No production failure was executed or claimed during this read-only review.
|
||||
|
||||
## Supplied execution evidence
|
||||
|
||||
Read the XML summaries without running tests:
|
||||
|
||||
| Report | Tests | Failures | Errors | Skipped |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| `build/release-legacy-ui-initial-20261019.xml` | 47 | 42 | 1 | 0 |
|
||||
| `build/release-ui-migrated-final-20261019.xml` | 23 | 0 | 0 | 0 |
|
||||
|
||||
The initial report is consistent with obsolete controls/imports and asynchronous state assertions. The final 23-test report records a clean migrated UI run. Existing current UI suites were inspected as complementary coverage; their prior release-gate pass status was supplied by the coordinator and was not rerun here.
|
||||
@@ -0,0 +1,28 @@
|
||||
# Window lifecycle fix review — 2026-10-19
|
||||
|
||||
## Scope
|
||||
|
||||
Reviewed the current narrow `main_window.py` diff adding `shiboken6.isValid` guards to `ServiceWorker` callbacks, the parameterized forced-window-destruction regression in `tests/ui/test_trial_task_center_workflow.py`, and the surrounding worker/ordinary-close behavior. No tests, CAD, source edits, or Git mutations were performed; this report is the only output written.
|
||||
|
||||
## Findings
|
||||
|
||||
- **Critical:** None.
|
||||
- **Important:** None.
|
||||
- **Minor:** None raised.
|
||||
|
||||
## Assessment
|
||||
|
||||
**Approved for this narrow lifecycle fix.**
|
||||
|
||||
The successful callback checks C++ object validity before any window/widget work. The failed callback returns before `_finish_run`, error display, or other widget access when the window is destroyed or closed. The finished callback always removes its worker from the Python set, then checks validity before touching the plan panel, close timer, or gates. These guards address each callback path visible in the original deleted-widget failure.
|
||||
|
||||
For live windows, the existing generation/owner checks, error handling, plan cleanup, and pending-close scheduling remain in place. Ordinary close requests still wait for active workers and request cancellation/boundary pause. The change suppresses presentation callbacks after destruction; it does not cancel service work or release execution protection early. Service worker completion still emits its final cleanup signal through `finally`.
|
||||
|
||||
The new test blocks an actual `ServiceWorker`, force-deletes a separate window through Qt deferred deletion, then releases the worker. It covers both success and a raised exception. The primary fixture window remains alive, avoiding the earlier teardown misuse of a deleted fixture window. Qt event-loop exception reporting complements the assertion that the application success callback is not delivered. This restores coverage of the separate mutation-worker path identified during the migration review.
|
||||
|
||||
## Evidence inspected
|
||||
|
||||
- `build/release-ui-destruction-20261019.xml`: 1 failed test and 1 teardown error. The failure contains deleted QLabel access from `succeeded` and deleted QPushButton access from `finished`; the teardown error is separately identifiable as use of the deleted fixture window.
|
||||
- `build/release-ui-lifecycle-final-20261019.xml`: 54 tests, 0 failures, 0 errors, 0 skipped. Includes both `test_destroyed_window_cannot_receive_late_worker_ui_callbacks[False]` and `[True]`.
|
||||
|
||||
These are existing test artifacts inspected read-only, not tests rerun by this reviewer. No live CAD behavior was exercised.
|
||||
@@ -0,0 +1,59 @@
|
||||
# Task 1 report: single-project context and isolated worker
|
||||
|
||||
Implemented the backend portion of the single-project workflow without starting
|
||||
CAD, packaging, or modifying project files.
|
||||
|
||||
## Public API
|
||||
|
||||
`TaskCenterService.task_context(task_id: str) -> ProjectTaskContext` returns a
|
||||
fresh immutable context for UI refreshes; only the per-task service facade is
|
||||
cached. `TaskCenterService.refresh_bound_project(task_id:
|
||||
str) -> ProjectTaskContext` rereads the task and its bound project from SQLite,
|
||||
without scanning a directory or attaching COM. A bound task must have one
|
||||
`primary_project_id` and exactly one project. Historical tasks without that
|
||||
binding remain available through `task_context` with `legacy=True` and
|
||||
`project=None`; `refresh_bound_project` rejects them so new execution cannot
|
||||
accidentally mutate a multi-project record.
|
||||
|
||||
`ProjectTaskContext` fields are:
|
||||
|
||||
```python
|
||||
ProjectTaskContext(
|
||||
task, project, rules, targets, progress, phase,
|
||||
has_evidence, interrupted, legacy
|
||||
)
|
||||
```
|
||||
|
||||
The target plan is authoritative for target-plan tasks. An empty or fully
|
||||
disabled plan produces zero queued items and never falls back to broad mapping
|
||||
rules.
|
||||
|
||||
`IsolatedDesktopWorker` is an opt-in research boundary. Its request contract is
|
||||
`IsolatedWorkerRequest(protocol_version, task_id, project_path, target_uids,
|
||||
plan_hash, allow_writes=False)`. `run()` rejects the default disabled mode,
|
||||
rejects unrelated existing CAD identity, rejects write enablement, and emits
|
||||
versioned `request.json`/`evidence.json` files when an evidence root is given.
|
||||
It does not attach COM or launch CAD.
|
||||
|
||||
`PrivateDesktop` owns the Windows desktop handle and processes started with
|
||||
`STARTUPINFO.lpDesktop="winsta0\\<private>"`; launch uses pywin32
|
||||
`CreateProcess`, a Job Object with kill-on-close, and fails when no private
|
||||
desktop was created, so there is no input-desktop fallback. Cleanup terminates
|
||||
only processes created by the worker and closes the owned desktop handle.
|
||||
|
||||
`IsolatedDesktopWorker.read_only_probe(request, cad_probe, evidence_root=...)`
|
||||
is the usable native boundary: it runs the injected native reader inside the
|
||||
owned private desktop, then checks its `CadIdentity(pid, project_path)` against
|
||||
the request before `read_only_verified` evidence is published. The worker
|
||||
refuses unrelated CAD identity and write enablement. It remains opt-in and does
|
||||
not mutate CAD.
|
||||
|
||||
## Verification
|
||||
|
||||
- `tests/v1_1/test_project_context.py` and `test_isolated_desktop.py`: **11 passed**.
|
||||
- Existing target/quick-run checks (`test_service_target_integration.py`,
|
||||
`test_target_execution.py`): **8 passed**.
|
||||
- Python bytecode compilation passed for all changed backend modules.
|
||||
|
||||
The private desktop path remains research-only until a native DxDesigner build
|
||||
is validated on a disposable project; no production write claims are made.
|
||||
@@ -0,0 +1,44 @@
|
||||
# Single-project UI and background worker implementation plan
|
||||
|
||||
> For agentic workers: use subagent-driven-development for the backend task and inline implementation for the UI; review the combined branch before integration.
|
||||
|
||||
Goal: implement the approved single-project workflow and research desktop backend without packaging.
|
||||
|
||||
Architecture: one context read replaces repeated multi-project UI queries; independent process supervision contains CAD automation. Existing persistence and execution safeguards remain authoritative.
|
||||
|
||||
Tech stack: Python 3.12, PySide6, SQLite, Win32/COM, ASCII VBS.
|
||||
|
||||
Spec: docs/superpowers/specs/2026-10-14-single-project-ui-background-design.md
|
||||
|
||||
## Global constraints
|
||||
|
||||
- Keep V1.1.0, do not package; commit each verified feature block.
|
||||
- One immutable bound project per new task; preserve historical data.
|
||||
- Default tests remain fast; no full legacy suite or production CAD writes.
|
||||
- No background claim without native validation; private desktop stays opt-in research.
|
||||
- No empty target fallback, unsaved-plan execution, unrelated CAD attachment or unsafe write interruption.
|
||||
|
||||
## Task 1 — single-project context and isolated worker
|
||||
|
||||
Owned by backend implementer: service.py; new project_context.py, isolated_desktop.py, isolated_worker.py; necessary quick_run/native_helper/VBS boundary edits; tests/v1_1/test_project_context.py and test_isolated_desktop.py. No UI files.
|
||||
|
||||
- [ ] Prove bound context returns one project and cached task facade; reject mutable project membership on bound tasks. Include empty/disabled target plans and legacy read-only context cases.
|
||||
- [ ] Produce service.task_context(task_id), service.refresh_bound_project(task_id), and immutable ProjectTaskContext(task, project, rules, targets, progress, phase, has_evidence, interrupted, legacy).
|
||||
- [ ] Build opt-in private desktop worker using CreateDesktop, STARTUPINFO.lpDesktop, owned process tree and versioned request/evidence. Reject existing unrelated CAD, verify CAD PID/project before COM use and retain safe write-boundary pause semantics. Give root exact API for UI context and backend integration.
|
||||
- [ ] Run focused context/worker safety tests, write task report, commit only owned files.
|
||||
|
||||
## Task 2 — UI cleanup and search
|
||||
|
||||
Owned by root: ui/main_window.py, run_panel.py, project_plan.py, target_table.py, task_list.py; new project_summary.py and execution_state.py if useful; UI tests and docs.
|
||||
|
||||
- [ ] Add behavior checks for no multi-project controls, current-task scope, Find/Next/Clear preserving hidden plan rows and hidden drafts blocking group execution.
|
||||
- [ ] Replace task-details project table with immutable summary and refresh; remove manual-run/project-select code and use ProjectTaskContext for local gates.
|
||||
- [ ] Keep task creation modal; add cached plan search, clear/next, correct visible-row bulk operations and ordered task list.
|
||||
- [ ] Wire execution/retry/recovery/pause controls with consistent labels and one confirmation summary; prevent conflicting edits while workers run.
|
||||
- [ ] Run focused UI tests, inspect offscreen screenshot, document workflow and commit.
|
||||
|
||||
## Task 3 — review and integration
|
||||
|
||||
- [ ] Review combined diffs for target scope, stale UI callbacks, locks, legacy handling and isolated desktop lifecycle. Fix material findings with focused checks.
|
||||
- [ ] Run default behavior suite plus only impacted safety modules; record counts/times and limitations. No packaging.
|
||||
- [ ] Commit review fixes and integrate verified changes locally without overwriting user edits.
|
||||
@@ -0,0 +1,62 @@
|
||||
# V1.1.0 Project Tasks Implementation Plan
|
||||
|
||||
> **For agentic workers:** Use superpowers:subagent-driven-development task-by-task. Steps use checkbox syntax.
|
||||
|
||||
**Goal:** Iterate the existing replacement application with single-project tasks, editable per-component plans, optional Excel imports and serial task execution.
|
||||
|
||||
**Architecture:** Reuse the existing desktop service/store and native replacement helper. Add focused plan/inventory/queue modules with stable target identities and transactional persistence. Keep historic jobs and an explicit legacy test entry point.
|
||||
|
||||
**Tech Stack:** Python 3.12, SQLite, PySide6, ASCII VBScript; openpyxl for XLSX files.
|
||||
|
||||
**Spec:** docs/superpowers/specs/2026-10-14-v1.1.0-project-tasks-design.md
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- Version 1.1.0; retain existing task view and direct editing.
|
||||
- Each directory-created task owns exactly one .prj; historical tasks are preserved.
|
||||
- Explicit empty targets never mean all matches.
|
||||
- UID + schematic + sheet + expected RefDes + old Part Number identify targets.
|
||||
- Default NC synchronization remains on and is editable in UI/import; independent /NC only.
|
||||
- Existing Replace Part + Library Wins, backup and saved readback remain required.
|
||||
- No production CAD writes for interface research or tests.
|
||||
- Default tests are fast behavior tests; historic regressions are explicit and preserved.
|
||||
|
||||
---
|
||||
|
||||
## Task 1: Persistence, inventory, plans and target execution
|
||||
|
||||
Files: models.py, store.py, service.py, quick_run.py, recovery.py, QuickPartReplace.vbs; create target_plan.py, inventory.py, spreadsheet_plan.py and project_tasks.py as focused modules; tests/v1_1/test_project_tasks.py, test_target_plan.py, test_inventory.py, test_spreadsheet_plan.py, test_target_execution.py.
|
||||
|
||||
Interfaces consumed: TaskStore transaction(), create_task(), sync_projects(); QuickRunPreparer and existing sheet discovery. Produced: directory task creation, task inventory, target plan edit/import/export APIs and versioned target-aware queue preparation. Define exact signatures in the implementation report for UI/task queue integration.
|
||||
|
||||
- [x] Write failing behavior tests for two .prj files creating two single-project tasks, duplicate scanning not duplicating active tasks, same names differentiated by relative path; run these tests and observe missing APIs.
|
||||
- [x] Implement transaction-backed group/order/project binding and migrations; maintain legacy constructor defaults. Test transaction rollback and reopen.
|
||||
- [x] Write failing tests using injected inventory rows for same old part on R1/R2/R3: selecting R1/R3 yields only those UIDs; R2 stays excluded; missing target errors, empty target errors, conflicting imports and equal/chain/cycle rules error.
|
||||
- [x] Implement component inventory read mode on existing discovery route, collecting effective Value and all stable identifiers without pin/attribute full snapshots; do not save while scanning.
|
||||
- [x] Implement target rule grouping and target-aware command/snapshot/recovery freeze validation in both Python and VBS. Run isolated VBS contract tests and native_helper mocks; tests must prove selectors survive recovery and stale targets do not become no_match.
|
||||
- [x] Add openpyxl reader/writer using explicit columns and literal values; parse whole workbook, validate identity and duplicates, then commit atomically. Test roundtrip editing new part, Value and NC plus forged UID and duplicate row rejection.
|
||||
- [x] Run V1.1 behavior tests and relevant existing inputs/value/recovery tests; commit this task only after covering tests pass and report API signatures and validation limits.
|
||||
|
||||
## Task 2: Cross-task scheduler and existing UI integration
|
||||
|
||||
Files: task_queue.py; ui/main_window.py, task_list.py, mapping_table.py; tests/v1_1/test_task_queue.py, test_project_task_ui.py.
|
||||
|
||||
Consumed APIs: Task 1 report; existing service.execute_quick_run_queue/quick_run_progress and safe pause. Produced APIs: fixed ordered task queue runner and UI directory wizard/inventory target table/Excel optional entry points.
|
||||
|
||||
- [x] Write failing scheduler test with fake runner logging starts/ends: A completes before B starts; pause leaves B unstarted; uncertain A prevents B; safe ordinary A failure allows B and summary records both.
|
||||
- [x] Implement scheduler with per-task evidence paths and fixed IDs/plan fingerprints; reject same-project concurrent tasks, preserve active task evidence on resume.
|
||||
- [x] Add directory scanner/create dialog to existing New action with project checkboxes and async scan; existing edit/name notes and historical view survive. Show counts and execution order, support ordering and group start/pause.
|
||||
- [x] Add Collect Targets action and editable target table: per row enabled/new part/custom Value/NC controls; preserve existing rule dialog/full-match path. Excel import/export optional actions use same plan validation; blank typed target lists rejected rather than matching all.
|
||||
- [x] Verify Qt widgets with offscreen smoke interactions and scheduler failure/lock tests. Commit after tests pass.
|
||||
|
||||
## Task 3: Test entry points, version and deliverable verification
|
||||
|
||||
Files: pyproject.toml, version.py, packaging/Build-DxPartReplace.ps1, docs/user/v1.1.0-project-tasks.md, tests/conftest.py or tests/legacy/conftest.py, tools/test_v1_1.ps1 and tools/test_legacy.ps1.
|
||||
|
||||
- [x] Default testpaths becomes tests/v1_1. Keep existing directories reachable with explicit paths; scripts set local src PYTHONPATH to prevent unrelated installed dx_productivity package collisions.
|
||||
- [x] Version pyproject and desktop to 1.1.0. Add openpyxl dependency and ensure packaging discovers it; update build QA commands to run V1.1 and meaningful safety regressions rather than reintroducing full slow suite implicitly.
|
||||
- [x] Document new task/inventory/Excel/NC workflows, previous data migration and real CAD validation limits; include native research report.
|
||||
- [x] Run default behavior suite, selected safety/Qt/VBS tests, compileall and build/frozen smoke if toolchain available. Review diff for selector fallback, evidence overwrites, migration loss and UI async locks; fix findings.
|
||||
- [x] Bring verified commits into the main workspace without rewriting user work; supply V1.1.0 ZIP/EXE if build succeeds and distinguish code test results from live CAD acceptance.
|
||||
|
||||
Verification and implementation details: v1.1.0-task-1-report.md and v1.1.0-task-2-report.md. Live CAD acceptance remains outside offline verification.
|
||||
@@ -0,0 +1,28 @@
|
||||
# 执行响应与模块边界优化
|
||||
|
||||
用户已确认上一轮审查提出的优化方向。本计划在现有 V1.1.0 上增量实施,不打包、不推送。
|
||||
|
||||
## 设计和约束
|
||||
|
||||
- CAD 仍串行执行,保存、关闭、重开回读及不确定状态阻断继续保留。
|
||||
- 查询与修改分开:任务和日志查询独立后台执行,过期结果不覆盖当前选择;执行过程中允许只读浏览其他任务。
|
||||
- 日志默认加载最近一页,历史分页加载,实时更新按游标追加;轮转、截断、未完成行和任务切换不能丢失或串日志。
|
||||
- 目录扫描可取消并显示进度;创建任务复用已选结果,重新校验路径、工程类型和扫描边界,避免重复递归。
|
||||
- 采集生成的图页发现结果只在工程内容指纹仍一致且料号范围满足时复用;执行前的身份校验保持。
|
||||
- 按职责提取查询控制器、日志读取、发现缓存及执行反馈接口,避免为了缩短文件破坏事务边界。
|
||||
- 同工程跨步骤保持 CAD 打开的优化需要改变当前“一步一份持久结果”的恢复协议。本轮先通过发现缓存减少重复打开;不直接合并尚未验证的保存事务。
|
||||
|
||||
## 实施
|
||||
|
||||
- [x] 目录扫描取消、进度与创建阶段定向复核;验证取消不创建部分任务、边界和排除目录保护。
|
||||
- [x] 发现缓存和公开执行器接口;验证命中、工程文件变化失效、料号范围及任务隔离。最终使用元数据加 SHA256 内容摘要,覆盖保留时间戳的等长修改。
|
||||
- [x] 后台任务快照、后台增量分页日志、运行时只读导航及可靠完成回调;验证慢查询下事件循环仍响应、旧请求被丢弃、暂停可用。
|
||||
- [x] 针对性回归、独立审查与响应计时报告;按功能及时提交 Git。
|
||||
|
||||
备份状态及预备份策略独立为 BatchBackupCoordinator,主执行函数约 304 行缩为 170 行。执行反馈使用独立只读快照接口;关闭窗口先废弃查询回调,进程退出前等待查询结束再关闭 SQLite。任务完成强制刷新最终日志,执行 A、查看 B 时明确标注 A 的结果。
|
||||
|
||||
审查记录:初审发现慢日志请求饿死和跨任务完成提示归属问题,均补测试修复;终审复现元数据指纹复用负结果漏洞,已改内容摘要并通过复审。完整记录见 `docs/testing/2026-10-15-execution-responsiveness.md`。
|
||||
|
||||
## 验证
|
||||
|
||||
真实 SQLite 和临时工程目录验证扫描及持久化;模拟外部 CAD 验证发现调用次数和缓存失效;Qt offscreen 用受控慢 I/O 验证事件循环、导航、关闭及回调归属。复用既有队列安全测试,不重复运行整套压力测试或更改原始工程。
|
||||
@@ -0,0 +1,16 @@
|
||||
# Packaged acceptance and window-only tutorial
|
||||
|
||||
Goal: validate the current frozen candidate and provide an instructional GIF captured solely from the application's own windows.
|
||||
|
||||
Scope: local candidate, no tag or remote release; preserve all existing data and user CAD processes. Use independent project/data copies. Do not inject fake successful replacement events.
|
||||
|
||||
- [x] Review prior evidence, current packaging and recording dependencies.
|
||||
- [x] Correct obsolete log-window and historical-interface instructions.
|
||||
- [x] Run the standard build checks and build the current source.
|
||||
- [x] Stage a clean candidate, hash it, archive and extract it; use that extracted EXE for acceptance.
|
||||
- [x] Operate the actual candidate UI to create project tasks, export/fill/import BOM, inspect rejected and accepted rows, edit/save, execute and inspect genuine results.
|
||||
- [x] Verify saved engineering state, old-data-copy startup, lazy details and owned-process/desktop cleanup.
|
||||
- [x] Produce window-only GIF(s) with step labels and explicit shortened waits; inspect exported frames.
|
||||
- [x] Write the acceptance result and limitations in `docs/testing/2026-10-15-packaged-acceptance.md`.
|
||||
|
||||
Integration: commit and push the reproducible tooling, report, and GIF on the development branch. No tag or remote release.
|
||||
@@ -0,0 +1,16 @@
|
||||
# 私有桌面正式执行实施计划
|
||||
|
||||
**目标:** 完成用户已授权的私有桌面替换与释放闭环,不打包,及时提交并推送现有开发分支。
|
||||
|
||||
**设计:** `docs/superpowers/specs/2026-10-15-private-desktop-execution-design.md`。
|
||||
|
||||
- [x] 原生只读探针确认显式 CAD 启动、COM/窗口 PID 和桌面身份;用户现有 CAD 保持不动。
|
||||
- [x] 加固 `isolated_desktop.py`:先绑定 Job 再恢复进程;等待退出;异常时逐项清理;验证自有进程及桌面释放。
|
||||
- [x] 独立隔离执行模块接入 `worker_monitor.py`、`project_session.py` 和只读枚举;补齐 VBS、native helper 身份核验与正常退出。
|
||||
- [x] 默认正式入口走隔离执行;继续兼容注入模拟执行器;打包入口支持所有必要 worker 参数。
|
||||
- [x] 独立真实副本验证选中/未选中位号、NC 开关、逐步保存回读、暂停和异常清理,记录前台窗口/输入桌面及资源释放证据。
|
||||
- [x] 定向回归与审查,记录限制并推送远端;不重复无关基础测试、不放宽既有门槛。
|
||||
|
||||
验证范围:私有桌面生命周期、PID 绑定、执行监督器和批量会话回归;原生操作由主代理串行执行。低层 Win32 资源模块可委派独立实现,其余集成由主代理负责,避免共享文件覆盖。
|
||||
|
||||
验证详情及未覆盖边界见 `docs/testing/2026-10-15-private-desktop-execution.md`。无活动图页时 ActiveViewHandle 可能陈旧;启动和退出使用显式自有 CAD、私有 ROT 与 GUID,活动图页读写才强制验证 HWND/PID。NC 开/关参与本次真实步骤,但样本没有独立 `/NC` 标记,不声称重新验收了 NC 转换效果。
|
||||
@@ -0,0 +1,11 @@
|
||||
# 按工程区分的批量 BOM
|
||||
|
||||
用户已明确选择:同批所有工程放在一张表,导入按工程列分配至各任务;先不要发布新版本。本地 1.1.2 旧候选不上传,不创建发布标签,不再次打包。
|
||||
|
||||
1. `bom_plan.py` 保留表格格式与单工程兼容,增加工程路径列;分离单次 Excel 解析和位号匹配。空白工程占位行允许未填写;未知工程、歧义位号、重复项及公式拒绝。
|
||||
2. 新增 `bom_batch.py` 管理同批工程模板和不可变导入预览。模板在未采集时每个工程一行,旧/新料号和位号留空。导入先验证全部工程及可编辑状态;已有清单直接匹配,缺失清单按 BOM 旧料号只读采集。预览不写入数据库。
|
||||
3. service 暴露整批预览/保存。保存重新检查原任务/工程归属和基线,在单个 SQLite 事务中写入所有受影响任务;一个失败则全部回滚。
|
||||
4. 现有位号视图保留各任务预览草稿,允许切换任务检查和编辑;显示“保存本批位号计划”,保存整批后统一清理草稿。执行仍沿用每工程一任务和原串行队列,不重新维护多工程链表。
|
||||
5. 针对测试:未采集即可导出全部工程、两个工程同名位号分别路由、未知工程不采集、不保存半批、新清单仅在确认后写入、未列出工程保持原计划、UI 跨任务预览和整批保存。运行相关回归;提供本地示例文件,及时提交,不发布。
|
||||
|
||||
完成:以上五项已实现。额外验证了已有库存不重复采集、任务重排后重导入可保存,以及无预设料号规则时整批保存后执行入口可用。相关回归 252 项通过;审查修正后 BOM/UI 最终定向回归 17 项通过。原生长路径采集 318 字符、13 位号通过;旧候选仅本地留存,未创建 1.1.2 标签或上传包。证据见 `docs/testing/data/2026-10-15-project-bom-and-long-path.json`。
|
||||
@@ -0,0 +1,30 @@
|
||||
# 工程会话、统一快照与可取消查询实施计划
|
||||
|
||||
用户已明确授权四项优化,在 `codex/execution-responsiveness` 上继续迭代,基线 `bc6b726`;完成后推送同名远端分支,不打包。
|
||||
|
||||
## 约束与设计
|
||||
|
||||
- 一个工程一个任务,CAD 串行,不能接管用户已打开的工程。
|
||||
- 会话复用保留每步保存和重开回读检查点;同工程下一步复用上一步回读后仍由工具持有的工程及 worker。结束、暂停、换工程或失败时关闭自有会话,状态不确定则阻断。
|
||||
- 持久 worker 使用带随机令牌的命令/应答,下一步仍复核冻结命令、图页及状态文件;复用不能绕过目标 UID/位号/旧料号、属性和连接核验。
|
||||
- 原单步执行器兼容,测试注入的 worker 不强制采用原生持久会话。新 transport 与监控、状态读取独立。
|
||||
- 一次任务读取使用同一数据库只读快照及同一次证据解析,得出进度、证据位置、中断状态,不能在查询中写入恢复状态。
|
||||
- 慢查询使用协作取消 token、分段 checkpoint 与有界调度;旧请求失效后尽快退出,单次无法中断的系统 I/O 不冒充已取消。
|
||||
- 数据库拆分迁移、位号计划等职责,继续共享同一个连接、锁和嵌套事务;协议模型/编解码与快照从 quick_run 分离,保留兼容导出。
|
||||
|
||||
## 任务
|
||||
|
||||
- [x] 统一文件执行快照与协议模块,改服务为一次读取,保留未知/损坏证据的保护;增加读取次数和一致性回归。
|
||||
- [x] 可取消查询、分段读取及有界旧请求处理,验证快速切换、关闭、慢 I/O、旧回调隔离。
|
||||
- [x] 拆分存储职责并新增一致的任务数据读取接口,验证迁移、回滚、目标计划与执行状态事务。
|
||||
- [x] 持久工程 worker 与 VBS 循环,接入批量调度,验证每步检查点、同页/换页、暂停/失败/超时/外部修改保护。
|
||||
- [x] 在独立真实工程副本测量单步与复用方式,独立回读选中和未选中位号;记录逐步耗时、启动和打开次数。
|
||||
- [x] 针对性回归、独立审查、及时提交并推送远端,记录尚存的现场限制。
|
||||
|
||||
## 责任边界
|
||||
|
||||
快照/协议修改与执行 transport 仅在 quick_run 的导入及各自方法连接,避免覆盖彼此代码。查询 token 是跨 UI、服务和文件读取的公共依赖。存储拆分提供 `read_task_bundle(task_id, read_control=None)`,一次锁/事务返回 task、projects、rules、targets。真实 CAD 验证由主代理串行进行,其他代理只使用临时数据和模拟器。
|
||||
|
||||
## 核验记录
|
||||
|
||||
集成、快照/存储/监督器、会话及旧单步执行器兼容性去重合计 301 项通过。独立副本的两步实际替换从 113.175 秒降至 100.641 秒,2 个选中及 11 个保留位号均独立回读一致;原生三页未命中及中途关闭、外部编辑/外部工程保护通过。千步用例功能和内存通过,当前 41.516 秒、原基线同环境 42.453 秒,均未达到原 30 秒门槛,不放宽阈值。PON 原单步替换基线存在失败,未作为成功替换性能对照。详见 `docs/testing/2026-10-15-project-session-and-read-model.md`。
|
||||
@@ -0,0 +1,16 @@
|
||||
# UI component lifetime implementation plan
|
||||
|
||||
**Goal:** Reduce unnecessary UI allocation and hidden-page updates while retaining the existing workflow.
|
||||
|
||||
**Architecture:** Reuse the main task workspace. Render rules and results through Qt item models. Keep task logs and BOM report data outside disposable detail dialogs; create views only when opened and render only the active detail tab.
|
||||
|
||||
**Constraints:** Remain on the 1.1.2 development branch, preserve BOM/direct editing and batch drafts, do not package or release, do not launch CAD or alter original project/evidence data.
|
||||
|
||||
- [x] Establish allocation/timing baseline and failing resource-lifetime regressions.
|
||||
- [x] Replace per-rule item widgets with QAbstractTableModel/QTableView; keep ordering, rule identity, persisted confirmation, lock gates and selection.
|
||||
- [x] Extract disposable detail dialogs, lazy-load log tab, retain data independently, invalidate reads on closing and read latest on reopening.
|
||||
- [x] Migrate UI callers, tests and evidence tools to explicit view/data APIs.
|
||||
- [x] Verify lifecycle, paging, visible-only rendering, BOM drafts and actual Qt delegate interaction; reproduce UI layout using copied evidence.
|
||||
- [x] Review changes and record measured results in `docs/reviews/2026-10-15-ui-component-lifetime.md`.
|
||||
|
||||
Integration: commit and push these changes on the existing `codex/execution-responsiveness` development branch; no release/tag/package.
|
||||
@@ -0,0 +1,28 @@
|
||||
# BOM 导入状态与前置校验
|
||||
|
||||
本次修正针对用户反馈的“重试时仍显示上次失败”。不变更模板、不发布或覆盖 V1.1.2,不操作真实工程。
|
||||
|
||||
## 行为约定
|
||||
|
||||
- 选文件取消时保留原报告;确定文件且操作确实启动时清除本批旧报告、关闭详情,显示读表状态。
|
||||
- 进度更新不得被表格摘要刷新覆盖;取消、异常必须结束等待状态,不能继续显示正在读取。
|
||||
- 保留上一份有效的未保存预览和手动编辑;清除报告不等于丢弃计划。
|
||||
- 先完成所有 Excel 格式、工程归属与可确定的规则冲突检查,再读取涉及工程。只从表格无法判定的位号身份仍需工程库存核验。
|
||||
- 保留保存与执行前的真实工程核验,以及整批导入失败不部分暂存的约束。
|
||||
|
||||
## 实施与验证
|
||||
|
||||
1. 在 `tests/v1_1/test_ui_workspace.py` 增加延迟工作线程回归:失败报告及详情 → 重试 → 等待 → 新报告;另测选文件取消、操作取消和异常。
|
||||
2. 在 `tests/v1_1/test_bom_import_report.py` 增加不启动采集的重复声明、链式映射回归,并验证不同图页的同名位号不被误拒绝。
|
||||
3. `ui/project_plan.py` 按批次维护导入状态,实际启动时重置报告;`ui/main_window.py` 将工作线程终止原因交给状态清理。
|
||||
4. `bom_import_report.py` 流式读取行,在工程读取前检查可确定冲突,补齐读表、库存复用、采集与匹配阶段提示。
|
||||
5. 运行上述失败用例确认复现,再实现并运行 BOM、库存及相关 UI 定向回归,审查后提交并推送开发分支。
|
||||
|
||||
不为状态修正重复完整 CAD 验收。首次真实库存采集仍可能耗时,阶段提示不能解释为已经消除了原生 COM 启动延迟。
|
||||
|
||||
## 验证结果
|
||||
|
||||
- 先运行新增回归,得到 8 失败、1 通过:确认旧报告残留、冲突在采集后才发现,以及读表进度缺失。
|
||||
- 修正后运行 `test_ui_workspace.py`、`test_bom_import_report.py`、`test_bom_batch.py`、`test_ui_remediation.py`、`test_lazy_components.py`、`test_inventory_extension.py`:79 通过(30.19 秒)。
|
||||
- 再补取消与释放错误并存、实际预览保留、信号对象释放用例后,运行 `test_ui_workspace.py`、`test_bom_import_report.py`、`test_ui_remediation.py`、`test_inventory_control.py`、`test_ui_responsiveness.py`:60 通过(18.49 秒)。这些用例与前一组有交集,不累加为通过总数。
|
||||
- 所有测试位于 `tests/v1_1/`,使用系统 Python 与 offscreen Qt;没有读写真实 CAD 工程。只读代理复核未发现新增阻断问题。
|
||||
@@ -0,0 +1,65 @@
|
||||
# Native Readonly Snapshot Implementation Plan
|
||||
|
||||
> **For agentic workers:** Execute this plan inline with existing user authorization; use independent requesting-code-review for the final boundaries. Steps use checkbox syntax for tracking.
|
||||
|
||||
**Goal:** Speed up complete unselected-state acquisition without removing any save/reopen verification.
|
||||
|
||||
**Architecture:** A separate VBScript adapter builds a native-host script from the existing read-only production routines. Python combines the adapter with the main worker at preparation time. Correlated, complete U/G frames are checked before capture or verification consumes them.
|
||||
|
||||
**Tech Stack:** Python 3.12, VBScript, installed DxDesigner 7.9.5 script host, existing private desktop supervisor.
|
||||
|
||||
**Spec:** ../specs/2026-10-19-native-readonly-snapshot.md
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- Only owned private-desktop batches use the adapter; manual/legacy paths retain external COM.
|
||||
- Keep original full fields, live pin owners, context checks, save/reopen and recovery boundaries.
|
||||
- Native error or incomplete proof fails closed after dispatch; no CAD writes from the reader.
|
||||
- Do not package/release, modify feedback/, or run real CAD on source projects.
|
||||
|
||||
## Task 1: Correlated read frame and native script adapter
|
||||
|
||||
Files: create integration/dxdesigner795/NativeSnapshotReader.vbs and tests/v1_1/test_native_snapshot_reader.py.
|
||||
|
||||
Interfaces:
|
||||
|
||||
- QPNativeReadUntouched(SelectedUids): dictionary with total, text, and rows keyed by unselected UID.
|
||||
- QPParseNativeSnapshot(Text, Token, Project, Sheet, SelectedUids): validates NR1/header, U/G pairs, END/token/count and exact pair identity; returns the dictionary above.
|
||||
- QPNativeCollect(SelectedUids, Token, Project, Sheet, Guid): freshly queries the owned view and produces the complete frame with existing QPUntouchedComponent.
|
||||
- QPBuildNativeSnapshotScript(Source, SelectedUids, Token, Project, Sheet, Guid, ResultPath, StopToken, Safe): emits native bootstrap plus an explicit whitelist of original read-only routines; native QPProgress checks cancellation only.
|
||||
|
||||
- [x] Write literal frame tests: one zero-pin unselected component, one selected UID, total=2; expected rows["u2"] equals its original U/G pair.
|
||||
|
||||
```python
|
||||
assert parsed_total == 2
|
||||
assert parsed_uids == ['u2']
|
||||
```
|
||||
|
||||
- [x] Run tests and observe missing adapter failure. Add negative fixtures for stale token, wrong context, truncation, duplicate UID, wrong G owner, inconsistent U/G, extra selected UID, malformed count and propagated error frame.
|
||||
- [x] Implement strict parsing and script generation; collect with the same read functions and no selection/save operations. Exercise generated code using COM-shaped fakes, including cancellation and missing targets.
|
||||
- [x] Run the adapter tests and commit after they pass (`2f6060d`).
|
||||
|
||||
## Task 2: Runtime composition and capture/verification integration
|
||||
|
||||
Files: modify src/dx_productivity/trial_task_center/quick_run.py, recovery.py, integration/dxdesigner795/QuickPartReplace.vbs, packaging/DxPartReplace.spec; add worker_runtime.py and focused runtime tests.
|
||||
|
||||
Interfaces:
|
||||
|
||||
- copy_worker_script(source: Path, destination: Path): copy source and append its sibling NativeSnapshotReader.vbs when present; preserve custom script compatibility and same-path no-op.
|
||||
- QPUseNativeSnapshot(): true only for owned batches with a private-desktop environment and an available adapter function.
|
||||
- QPTryNativeVerifyUntouched(Records) and QPCompareNativeUntouched(Records, Actual): compare complete actual rows, total and unselected UID set to existing persisted baselines. Unsupported script paths may fall back only before command dispatch; any failure after dispatch stops the step.
|
||||
|
||||
- [x] Reproduce a prepared default worker missing the adapter and a custom worker that must remain unchanged.
|
||||
- [x] Compose all four existing source-copy callsites (prepare, begin session, resume step and recovery) through copy_worker_script; include the adapter in the frozen resource specification without building.
|
||||
- [x] Route capture and QPVerifyUntouched through native reads only behind QPUseNativeSnapshot. Retain original external loops for other modes and all invalidation calls.
|
||||
- [x] Run focused runtime, VBS, execution/recovery and existing accuracy tests. Correct the extracted guard fixture to include QPUseNativeSnapshot; final runs: 239 passed and 81 passed / 1 deselected. Commit tested integration (`81f3468`).
|
||||
|
||||
## Task 3: Independent review and real BOM acceptance
|
||||
|
||||
Files: add docs/reviews/2026-10-19-native-snapshot.md and sanitized docs/testing/evidence/2026-10-19-native-snapshot.json.
|
||||
|
||||
- [x] Request an independent read-only review of ownership gating, native function whitelist, nonce/context checks, failure propagation and exact full-baseline comparison. No Critical/Important findings; suggested gating and orchestration cases added.
|
||||
- [x] Run the established default-template BOM harness on a fresh build/ copy with RV05 and RV14, recording script hashes and timings (189.250 seconds).
|
||||
- [x] Compare initial snapshots with the 120-row previous baseline; independently export hier/flat and verify 55 untouched components, 103 pin connections and 22 nets, plus exact target changes.
|
||||
- [x] Exercise read-only recovery on the disposable successful queue because it also calls full verification; confirm no additional replacement/save and safe release (61.062 seconds, exact before/after graph equality).
|
||||
- [x] Record failed research probes and remaining release gaps honestly, update plan checkboxes, commit evidence and push. Verify remote HEAD equals local and only feedback/ remains untracked.
|
||||
@@ -0,0 +1,69 @@
|
||||
# Target Cell Selection Implementation Plan
|
||||
|
||||
> **For agentic workers:** Use superpowers:subagent-driven-development in this session; user has approved explicit rule selection and blocking when missing. Do not ask for repeated approval.
|
||||
|
||||
**Goal:** Bind explicit, authoritative target Cell selection to rules and verified execution.
|
||||
|
||||
**Architecture:** An isolated read-only library catalog supplies rule choices. Persist a target_cell string through batch defaults and per-target plans. The queue, native transaction, restore and saved readback all bind that selection; existing C/A/U/G protections remain complete.
|
||||
|
||||
**Tech Stack:** Python 3.12, SQLite, PySide6, installed EE 7.9.5 COM, VBScript.
|
||||
|
||||
**Spec:** ../specs/2026-10-19-target-cell-selection.md
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- Preserve the default 11-column BOM; no inferred Cell choice.
|
||||
- Keep current branch codex/bom-import-state and preserve feedback/.
|
||||
- No packaging/release, no source-project/library writes, no user desktop CAD control.
|
||||
- Real execution only in build/ disposable copies with owned desktops.
|
||||
- Libraries must have complete PDB/Cell dependencies; failed/rebuilding copies fail closed.
|
||||
|
||||
## Task 1: Complete and commit native selected capture separately (root)
|
||||
|
||||
Files: NativeSnapshotReader.vbs, QuickPartReplace.vbs, test_native_selected_capture.py.
|
||||
|
||||
- [x] Reuse original QPSnapshotComponent within one correlated NR2 capture; NR1 verify stays unchanged.
|
||||
- [x] Reject incomplete/foreign/duplicate selected C/A and scope drift; compare focused tests and independent review.
|
||||
- [x] Complete same-source legal BOM baseline/native runs and field/graph equivalence; commit evidence separately.
|
||||
|
||||
## Task 2: Rule and target-plan persistence/UI (cell_rules agent)
|
||||
|
||||
Files: models.py, store.py, store_schema.py, service.py rule methods, batch_rules.py, target_plan.py, BOM merge code, ui/dialogs.py, ui/main_window.py, ui/mapping_table.py, relevant tests.
|
||||
|
||||
Interfaces: target_cell: str = ''; service.target_cell_choices(task_id, new_part_number) -> tuple[str,...] delegates cell_catalog.read_project_cell_choices; RuleRecord and target plan compilation preserve target_cell. Root owns quick_run.py, recovery.py, native_helper.py and VBS.
|
||||
|
||||
- [x] Write meaningful red tests for migration, batch propagation, BOM-preserved selection, selected target compilation, PN change invalidation and UI stale choices.
|
||||
- [x] Implement field, editing dropdown/load action and async current-PN binding; preserve existing dialog.values() tuple for callers if practical.
|
||||
- [x] Add cheap service.validate_target_cells(task_id) for GUI preflight, before CAD startup. Missing target_cell is actionable and cannot start execution from UI.
|
||||
- [x] Run scoped tests, self-review and commit only owned files. Root will review and integrate.
|
||||
|
||||
## Task 3: Isolated authoritative catalog (cell_catalog agent)
|
||||
|
||||
Files: new cell_catalog.py, new cell_catalog_worker.py if needed, application.py hidden CLI dispatch, catalog tests. Do not edit service/UI/quick_run/native_helper/VBS.
|
||||
|
||||
Interfaces are exactly the spec's CellChoice, CellCatalog and read functions. Cache/evidence root supplied by caller. Helpers launch using the frozen EXE hidden action or source -m module; every process is owned by PrivateDesktop.
|
||||
|
||||
- [x] Reproduce incomplete dependency/old fingerprint/duplicate target behavior with fakes; test failures are explicit.
|
||||
- [x] Implement complete shadow copy with metadata preservation, source proof, exact numeric COM enumeration and all cleanup.
|
||||
- [x] Use installed IMGCLMPart.AssociatedCells; no raw DLL ABI guessing. Reuse probe findings; do not operate on originals.
|
||||
- [x] Run focused tests and a tiny read-only owned-library probe if needed; commit only owned files.
|
||||
|
||||
## Task 4: Transport and native Cell proof (root)
|
||||
|
||||
Files: quick_run.py, recovery.py, native_helper.py, QuickPartReplace.vbs, execution tests.
|
||||
|
||||
- [x] Add target_cell queue option and separate L snapshot row; mismatch/changes cannot resume old work.
|
||||
- [x] Verify current catalog and selected value before mutation; bind catalog/choice in native evidence.
|
||||
- [x] Write selected Cell instance within existing restore transaction; validate full targets, untouched baseline, save/reopen and saved recovery.
|
||||
- [x] Red/green tests for missing/invalid/changed choice, no broad writes and restoration failure.
|
||||
|
||||
## Task 5: Integrated review and real acceptance (root + independent reviewer)
|
||||
|
||||
- [x] Review each task against spec and quality; resolve important findings.
|
||||
- [x] Run appropriate combined regressions, final GUI interaction and representative BOM/cross-cell copy execution.
|
||||
- [x] Record actual timings, known research failures, mapping/graph/desktop proofs and limits; update docs.
|
||||
- [x] Commit and push; verify remote HEAD and only feedback/ untracked. No release.
|
||||
|
||||
## Completion evidence
|
||||
|
||||
Implemented through ec75445; final fixwave177 focused checks passed. Final warmed rule-read/BOM/explicit0402-to0603/save/reopen/independentASCII acceptance passed in201.015s, sourceproject/library unchanged, owned resources released. All task reviews plus final scoped re-review clean. Source commit ec75445 pushed and remoteSHA verified. No packaging/release, no whole-suite or generic speed claim. See ../../testing/2026-10-19-target-cell-acceptance.md for full evidence and remaining performance/release gates.
|
||||
@@ -0,0 +1,39 @@
|
||||
# V1.1.0 Project Tasks Implementation Plan
|
||||
|
||||
> **For agentic workers:** Use superpowers:subagent-driven-development task-by-task. Steps use checkbox syntax.
|
||||
|
||||
**Goal:** Iterate the existing replacement application with single-project tasks, editable per-component plans, optional Excel imports and serial task execution.
|
||||
|
||||
**Architecture:** Reuse the existing desktop service/store and native replacement helper. Add focused plan/inventory/queue modules with stable target identities and transactional persistence. Keep historic jobs and an explicit legacy test entry point.
|
||||
|
||||
**Tech Stack:** Python 3.12, SQLite, PySide6, ASCII VBScript; openpyxl for XLSX files.
|
||||
|
||||
**Spec:** docs/superpowers/specs/2026-10-14-v1.1.0-project-tasks-design.md
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- Version 1.1.0; retain existing task view and direct editing.
|
||||
- Each directory-created task owns exactly one .prj; historical tasks are preserved.
|
||||
- Explicit empty targets never mean all matches.
|
||||
- UID + schematic + sheet + expected RefDes + old Part Number identify targets.
|
||||
- Default NC synchronization remains on and is editable in UI/import; independent /NC only.
|
||||
- Existing Replace Part + Library Wins, backup and saved readback remain required.
|
||||
- No production CAD writes for interface research or tests.
|
||||
- Default tests are fast behavior tests; historic regressions are explicit and preserved.
|
||||
|
||||
---
|
||||
|
||||
## Task 1: Persistence, inventory, plans and target execution
|
||||
|
||||
Files: models.py, store.py, service.py, quick_run.py, recovery.py, QuickPartReplace.vbs; create target_plan.py, inventory.py, spreadsheet_plan.py and project_tasks.py as focused modules; tests/v1_1/test_project_tasks.py, test_target_plan.py, test_inventory.py, test_spreadsheet_plan.py, test_target_execution.py.
|
||||
|
||||
Interfaces consumed: TaskStore transaction(), create_task(), sync_projects(); QuickRunPreparer and existing sheet discovery. Produced: directory task creation, task inventory, target plan edit/import/export APIs and versioned target-aware queue preparation. Define exact signatures in the implementation report for UI/task queue integration.
|
||||
|
||||
- [ ] Write failing behavior tests for two .prj files creating two single-project tasks, duplicate scanning not duplicating active tasks, same names differentiated by relative path; run these tests and observe missing APIs.
|
||||
- [ ] Implement transaction-backed group/order/project binding and migrations; maintain legacy constructor defaults. Test transaction rollback and reopen.
|
||||
- [ ] Write failing tests using injected inventory rows for same old part on R1/R2/R3: selecting R1/R3 yields only those UIDs; R2 stays excluded; missing target errors, empty target errors, conflicting imports and equal/chain/cycle rules error.
|
||||
- [ ] Implement component inventory read mode on existing discovery route, collecting effective Value and all stable identifiers without pin/attribute full snapshots; do not save while scanning.
|
||||
- [ ] Implement target rule grouping and target-aware command/snapshot/recovery freeze validation in both Python and VBS. Run isolated VBS contract tests and native_helper mocks; tests must prove selectors survive recovery and stale targets do not become no_match.
|
||||
- [ ] Add openpyxl reader/writer using explicit columns and literal values; parse whole workbook, validate identity and duplicates, then commit atomically. Test roundtrip editing new part, Value and NC plus forged UID and duplicate row rejection.
|
||||
- [ ] Run V1.1 behavior tests and relevant existing inputs/value/recovery tests; commit this task only after covering tests pass and report API signatures and validation limits.
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# V1.1.0 Task 1 Backend Report
|
||||
|
||||
Task 1 implements single-project persistence, target inventory/plans, Excel interchange, target-aware queue preparation, native selector checks, and recovery bindings.
|
||||
|
||||
## APIs for UI and scheduler
|
||||
|
||||
- `TaskCenterService.create_project_tasks(root: Path, selected_paths: tuple[Path, ...] | None = None) -> tuple[TaskRecord, ...]`: scans a directory and creates one task per selected `.prj`; each task owns exactly one project. Active unfinished paths are deduplicated. Completed tasks may be recreated with a readable suffix.
|
||||
- `TaskCenterService.scan_project_directory(root: Path) -> tuple[Path, ...]`: read-only directory scan.
|
||||
- `TaskCenterService.collect_target_inventory(task_id: str, old_part_numbers: tuple[str, ...] | None = None) -> tuple[TargetPlanRow, ...]`: runs existing owned-project discovery in read mode and records stable `ComponentTarget` baselines. No save is requested from the CAD process.
|
||||
- `TaskCenterService.target_plan(task_id: str) -> tuple[TargetPlanRow, ...]` and `replace_target_plan(task_id, rows)`: read/edit the plan. `store.record_target_inventory(task_id, targets)` is the trusted initial baseline operation. A plan edit cannot alter project/schematic/sheet/UID/RefDes/old-part/old-Value identity.
|
||||
- `TaskCenterService.preview_target_plan(task_id, path)` validates an Excel workbook without writing; `import_target_plan(task_id, path)` validates then commits atomically; `export_target_plan(task_id, path)` writes explicit columns.
|
||||
- `TaskCenterService.for_project_task(task_id) -> TaskCenterService`: returns a facade whose queue evidence root is `storage/tasks/<task_id>/quick-run`; the facade shares the store and logging context. Parent quick-run entry points delegate automatically for bound single-project tasks.
|
||||
- `TaskCenterService.move_project_task(task_id, offset)` changes group ordering while the group is idle.
|
||||
- `ComponentTarget(project_path, schematic_name, sheet_number, uid, refdes, old_part_number, old_value)` is immutable identity. `TargetPlanRow(target, enabled=False, new_part_number='', custom_value_enabled=False, custom_value='', sync_nc=True)` contains editable fields. NC defaults to enabled.
|
||||
|
||||
## Execution behavior
|
||||
|
||||
`TaskRecord.target_plan_mode` is set when inventory is recorded, including an explicitly empty inventory. Execution compiles only enabled target rows into `TargetRule` groups. An empty or all-disabled target plan raises `enabled_rule_required`; it never falls back to old-part full matching. Mixing target and full-match rules is rejected. Target queue rows carry `target_scope=targets` and encoded UID/RefDes/old-Value selectors.
|
||||
|
||||
The VBS helper validates selectors against the active project/sheet before capture and native replacement. Python native checks do the same and compare the unselected component baseline (UID, RefDes, Part Number, Value, Part Name, Part Label) before and after mutation. Recovery binds the selector set and snapshot hash to the transaction evidence. Native CAD operations remain uncalled by tests.
|
||||
|
||||
## Validation
|
||||
|
||||
Commands run from the worktree:
|
||||
|
||||
```text
|
||||
PYTHONPATH=src python -m pytest tests/v1_1 -q
|
||||
36 passed in 5.06s
|
||||
|
||||
PYTHONPATH=src python -m pytest tests/integration/test_quick_part_replace_contract.py tests/trial_task_center/test_recovery.py tests/trial_task_center/test_value_options.py -q
|
||||
45 passed in 7.57s
|
||||
```
|
||||
|
||||
The V1.1 suite covers transaction rollback/reopen, schema 5 to 6 migration, project deduplication and recreation, target subset isolation, empty target safety, forged identity rejection, Excel roundtrip/atomic validation, per-task evidence roots, native selector checks, unselected-change detection, and purge cleanup.
|
||||
|
||||
## Limits
|
||||
|
||||
Component inventory depends on the existing `QuickPartReplace.vbs` read-only discovery route and therefore requires a Windows DxDesigner installation for live collection. The test suite uses injected inventory rows and never performs production CAD writes. The native helper cannot prove arbitrary attributes that are not included in the recorded baseline; it checks the documented identity/value fields above.
|
||||
@@ -0,0 +1,37 @@
|
||||
# V1.1.0 Project Tasks Implementation Plan
|
||||
|
||||
> **For agentic workers:** Use superpowers:subagent-driven-development task-by-task. Steps use checkbox syntax.
|
||||
|
||||
**Goal:** Iterate the existing replacement application with single-project tasks, editable per-component plans, optional Excel imports and serial task execution.
|
||||
|
||||
**Architecture:** Reuse the existing desktop service/store and native replacement helper. Add focused plan/inventory/queue modules with stable target identities and transactional persistence. Keep historic jobs and an explicit legacy test entry point.
|
||||
|
||||
**Tech Stack:** Python 3.12, SQLite, PySide6, ASCII VBScript; openpyxl for XLSX files.
|
||||
|
||||
**Spec:** docs/superpowers/specs/2026-10-14-v1.1.0-project-tasks-design.md
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- Version 1.1.0; retain existing task view and direct editing.
|
||||
- Each directory-created task owns exactly one .prj; historical tasks are preserved.
|
||||
- Explicit empty targets never mean all matches.
|
||||
- UID + schematic + sheet + expected RefDes + old Part Number identify targets.
|
||||
- Default NC synchronization remains on and is editable in UI/import; independent /NC only.
|
||||
- Existing Replace Part + Library Wins, backup and saved readback remain required.
|
||||
- No production CAD writes for interface research or tests.
|
||||
- Default tests are fast behavior tests; historic regressions are explicit and preserved.
|
||||
|
||||
---
|
||||
|
||||
## Task 2: Cross-task scheduler and existing UI integration
|
||||
|
||||
Files: task_queue.py; ui/main_window.py, task_list.py, mapping_table.py; tests/v1_1/test_task_queue.py, test_project_task_ui.py.
|
||||
|
||||
Consumed APIs: Task 1 report; existing service.execute_quick_run_queue/quick_run_progress and safe pause. Produced APIs: fixed ordered task queue runner and UI directory wizard/inventory target table/Excel optional entry points.
|
||||
|
||||
- [ ] Write failing scheduler test with fake runner logging starts/ends: A completes before B starts; pause leaves B unstarted; uncertain A prevents B; safe ordinary A failure allows B and summary records both.
|
||||
- [ ] Implement scheduler with per-task evidence paths and fixed IDs/plan fingerprints; reject same-project concurrent tasks, preserve active task evidence on resume.
|
||||
- [ ] Add directory scanner/create dialog to existing New action with project checkboxes and async scan; existing edit/name notes and historical view survive. Show counts and execution order, support ordering and group start/pause.
|
||||
- [ ] Add Collect Targets action and editable target table: per row enabled/new part/custom Value/NC controls; preserve existing rule dialog/full-match path. Excel import/export optional actions use same plan validation; blank typed target lists rejected rather than matching all.
|
||||
- [ ] Verify Qt widgets with offscreen smoke interactions and scheduler failure/lock tests. Commit after tests pass.
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# V1.1.0 UI, scheduler and delivery report
|
||||
|
||||
The existing task view now creates one task per selected project from a directory preview. The original mapping editor remains available beside the new target plan tab. The plan supports direct editing of selected targets, new Part Number, custom Value and NC; Excel import is a draft preview requiring Save. Unsaved drafts survive task switching and block group execution. NC is editable and defaults on, as confirmed by the user.
|
||||
|
||||
The task scheduler freezes task order and plan fingerprints, uses isolated per-task evidence, persists checkpoints and holds process/thread execution locks. Safe preflight failures are recorded; uncertainty stops before the next task. A paused UI queue retains the same task IDs including completed entries, allowing durable resume without replaying successful tasks. Target-mode and project-selection state are included in fingerprints.
|
||||
|
||||
Independent review identified raw-rule batch fallback, evidence routing differences, disappearing target pages, saved-unverified resume, mutation guards, purge foreign keys and subset rollback comparisons. These were fixed in the backend commits and checked against their focused tests. No live CAD write was performed.
|
||||
|
||||
## Verification and artifacts
|
||||
|
||||
- Default behavior suite: 36 passed in 5.43 seconds via `tools/Test-V1.1.ps1`.
|
||||
- Selected existing safety suite: 38 passed in 5.12 seconds.
|
||||
- Release build QA: combined 74 passed in 8.42 seconds.
|
||||
- Focused backend VBS/recovery/Value checks: 45 passed in 7.57 seconds; final VBS contract check: 10 passed in 0.14 seconds.
|
||||
- Python compileall and Git whitespace check passed.
|
||||
- Offscreen UI screenshot inspected with a Windows Chinese font loaded for the offscreen renderer. It shows selected R1/R3, retained R2/R4/R5/R6 and editable NC. Default splitter proportions give the plan more space.
|
||||
- PyInstaller 6.22.3 / Python 3.12.10 build succeeded. The frozen application started and shut down cleanly using an isolated temporary data root.
|
||||
- After the final VBS component-count guard, the release runtime script was refreshed from source, its SHA-256 checked, and the frozen smoke repeated successfully. Final bridge SHA-256: `3BDEC7476762C28D6606825183DAC98505541EE2808B2F4C240577A7E304C72D`.
|
||||
|
||||
The historical suite remains explicitly available; it is not part of default development or release checks. Actual central-library replacement, saves/readback and external CAD validation still require a disposable project acceptance run. The included native interface report confirms the installed 7.9.5 typelib lacks a direct ReplacePart method.
|
||||
@@ -0,0 +1,13 @@
|
||||
# Single-project task UI and isolated execution
|
||||
|
||||
User approved this direction on 2026-10-14. This is continued V1.1.0 source development; do not build or package. Commit verified functional increments promptly.
|
||||
|
||||
- New-task dialog scans a root and selects projects; every resulting task owns one immutable project. Task details contain a project summary, refresh action, rules, targets and execution controls, with no project list/select-all/filter/skip/manual-run controls.
|
||||
- Existing data is preserved. Multi-project historical tasks remain inspectable but are read-only in the new single-project UI; create project tasks through the dialog for further execution.
|
||||
- Read task context once per refresh, then compute gates locally. UI changes and table search must not reread SQLite/CAD or regenerate log content unnecessarily. A per-task service facade must be reused without mixing evidence roots.
|
||||
- Target search matches RefDes, UID, old/new part, sheet/schematic and Values case-insensitively; explicit Find filters cached table data, Enter runs Find, Next locates another match, Clear restores all. Filters never remove rows from saved plans. Bulk/select actions operate visible rows while preserving hidden rows.
|
||||
- Execution commands are Execute current task, Execute batch in order, Pause at safe boundary, Retry failed items and Reconcile interruption. Scope, pending unsaved plans, lifecycle and active worker guards must be coherent. No backup-failure bypass control in the streamlined UI.
|
||||
- Desktop isolation is an explicit research backend, not automatically enabled. It creates and owns a private desktop/process tree, validates CAD PID/project identity and reuses the existing UID/Library Wins/backup/save/readback safeguards. Never attach an unrelated CAD instance or fall back to the input desktop. No production CAD writes for validation.
|
||||
- Normal workflows retain direct mapping/target edits, custom Value and default-on editable NC, plus optional spreadsheet import draft followed by explicit save.
|
||||
|
||||
Architecture: service produces a frozen ProjectTaskContext; task bindings remain store-compatible. UI is separated into project summary, plan/search table and execution state presentation. Native isolated worker is an independent backend boundary with evidence and cleanup. Safety checks remain at services and native code as well as UI gates.
|
||||
@@ -0,0 +1,31 @@
|
||||
# DxPartReplace V1.1.0 单工程任务与位号计划
|
||||
|
||||
已获用户授权开始迭代;本设计记录当前对话决定,不新增审批步骤。
|
||||
|
||||
## 产品流程
|
||||
|
||||
保留现有任务列表与规则编辑体验。新建入口支持选择目录、扫描 .prj、勾选工程、一次创建多个任务;每个新任务绑定且只绑定一个工程。同名工程使用相对路径区分。任务组只是目录创建与排序的组织单位。历史多工程任务保留,不能在迁移中重写执行证据。
|
||||
|
||||
用户在任务内填写旧料号、新料号,点击采集位号。使用已有只读图页发现链路读取真实器件的图页、UID、RefDes、Part Number、有效 Value。采集不调用替换、不保存。图页不同、层级不同或同名位号不能只靠 RefDes 合并。采集只读进程必须有界结束并关闭其拥有的工程。
|
||||
|
||||
用户可在原界面直接编辑/选择目标位号,不必导出。Excel 导入是可选入口;可导出同样的计划用于 Excel 编辑,但不会要求导出后才能执行。一行代表一个真实器件,保留工程、原理图、图页、UID、位号、旧料号、旧 Value,用户可编辑启用、新料号、自定义 Value、NC 同步。基线身份列不可重新解释;导入必须完整校验后原子提交,不得部分写入。
|
||||
|
||||
## 规则与执行
|
||||
|
||||
规则支持明确的全匹配范围与显式目标范围。旧规则迁移为全匹配;新目标规则使用已采集的 UID 与图页/位号作为预期状态。空目标集合不能退化为全匹配。同一旧料号允许不同位号子集和不同目标料号;重叠目标、全匹配与目标子集混用、链式/循环映射拒绝。一个目标可写独立自定义 Value;按图页/旧料号/新料号/Value/NC 策略编译分组再执行。
|
||||
|
||||
NC 保留现有可选语义并补齐任务视图编辑及 Excel 导入,默认开启;仅独立 /NC 段识别,禁止重复追加,写入和保存后回读均检验。保留模式的真实含义沿用现有原生库 Value 语义,不凭名为 preserve 推断会恢复旧文字。自定义模式明确写入用户给出的新值。
|
||||
|
||||
保持已有原生 Replace Part + Library Wins 写入路径与备份/连接/位置/保存回读/不确定保护。Python 计划携带 UID 清单,VBScript 在选取前校验 UID、RefDes、源料号、图页;目标缺失/状态变化必须失败而不是 no_match。未选器件的变化必须检测。目标绑定加入命令、快照、恢复与输入冻结校验。
|
||||
|
||||
跨任务执行采用已确认的任务 ID 顺序并固定计划。一个任务完成收尾/关闭后才进入下一个;普通失败在工程已安全关闭时可继续,未确定结果、恢复保护、关闭失败停止。各任务持有独立队列、备份、日志,不能用共享目录覆盖上一任务的未完成状态。规则、选择和任务操作在活动执行期间锁定,暂停在安全项边界。
|
||||
|
||||
## 结构与迁移
|
||||
|
||||
添加聚焦的 project_tasks、target_plan、inventory、spreadsheet_plan、task_queue 模块;复用 TaskStore/TaskCenterService 与 Qt 视图;不得复制旧多工程控制器或实现另一套 CAD 写入引擎。数据库使用事务迁移,新增字段有兼容默认值。版本从 1.1.0 起,EXE 标题、构建清单、依赖版本同步。
|
||||
|
||||
原生接口调研代理独立只读:检查当地官方类型库与帮助、已有探针以及公开资料,报告已证实能力/待验证能力;不对当前 CAD 会话或生产工程发起写操作。实验接口不自动成为默认后端。
|
||||
|
||||
## 验证
|
||||
|
||||
重建测试入口:默认只运行 V1.1.0 的行为级快速核心测试和必要的现有安全回归。旧测试保留为显式 legacy 回归入口,不删掉证据、不把过长模拟睡眠放入默认测试。无需 CAD、真实 COM 或网络即可测试导入原子性、目标隔离、顺序、重启/暂停、NC 和协议绑定。VBS 契约验证、Qt 交互和冻结 EXE 冒烟单独报告。现场原生替换与单元测试结论必须区分。
|
||||
@@ -0,0 +1,11 @@
|
||||
# 私有桌面正式执行闭环
|
||||
|
||||
用户在说明研究框架未接入后明确要求“那就把这一套执行好”。本轮在 `codex/execution-responsiveness` 上完成原执行器的私有桌面接入,不再停留于准备协议或回调探针。
|
||||
|
||||
生产入口的工程枚举和批量替换都必须在独立 Windows desktop 启动本工具持有的 CAD/worker。冻结任务、UID 选择、Library Wins、NC/Value 策略、连接保护、逐步保存重开回读和串行任务语义继续沿用。CAD 的 COM 对象必须验证窗口 PID、私有桌面与本次创建的进程身份;不能使用用户的其他 CAD 或静默回退普通桌面。保留模拟执行器注入用于自动化回归。
|
||||
|
||||
生命周期为:创建随机命名 desktop/job → 显式启动并绑定自有 CAD → 私有 desktop 中运行监督脚本及 helper → 保存并独立回读 → 正常退出 CAD → 等待进程退出 → 回收残余自有子进程 → 关闭 job、进程和 desktop 句柄。暂停仅在安全检查点收尾。异常、超时、身份冲突和释放失败保留证据并明确阻断;不得误报成功。主桌面不调用 SwitchDesktop、不注入键鼠,用户其他 CAD 进程和文件保持不动。
|
||||
|
||||
实施前首先用独立进程只读验证当前 EE7.9.5 的显式启动、私有桌面和 COM 绑定;真实替换只使用独立副本。验证至少包括成功、暂停、异常、进程退出、桌面消失以及主桌面前台窗口不被切换。不能用创建 desktop 的单元测试代替原生实际执行证明。
|
||||
|
||||
实现核实:普通显式启动 CAD 可提供私有 ROT,`-Embedding` 不可用。活动工程严格验证活动图页 HWND/PID;没有活动工程时 ActiveViewHandle 可能陈旧,启动和 Quit 改用显式自有 CAD 启动、私有 ROT/GUID 绑定。生产模块为 `isolated_cad.py`,原研究用 `isolated_worker.py` 不作为正式执行后端。实际结果及边界见 `docs/testing/2026-10-15-private-desktop-execution.md`。
|
||||
@@ -0,0 +1,20 @@
|
||||
# 原生宿主只读完整快照
|
||||
|
||||
目标是在自有私有桌面的正式批次中,把完整未选中器件快照交给 CAD 自带 VBS 宿主执行,消除逐字段跨进程 COM 开销。替换窗口、恢复写入、逐项保存和磁盘重开协议保持原样。
|
||||
|
||||
只读探针已取得两轮证据:57 个器件的 114 行 U/G 完整快照与外部采集一致;连续运行也一致。批量属性接口因空格/空串差异及缺失样式字段不接入。
|
||||
|
||||
约束:
|
||||
|
||||
- 仅在已确认拥有工程的私有桌面批次启用。手动模式、旧运行时或缺少适配模块时使用原采集路径。
|
||||
- 单独维护 NativeSnapshotReader.vbs;准备运行时时与主脚本合成一个可执行文件,不复制完整快照实现。原生脚本从该文件提取限定的只读函数。
|
||||
- 每次调用使用独立令牌、结果路径和 CAD GUID;核对工程与图页,重新建立引脚索引,保留逐引脚归属、全部属性/样式/连接读取和上下文检查。
|
||||
- 结果有版本头、令牌、工程、图页和完整结束标记。拒绝旧令牌、截断、重复 UID、U/G 不一致、未选中集合变化、丢失目标和错误总数。
|
||||
- 目标 UID 只用于排除未选中集合;原生读前后核对目标集合存在。保存前及磁盘重开后均重新执行完整读取。
|
||||
- 原生错误、命令失败、缺失结果、取消均不得生成成功证明;命令已发出后不静默回退。原生读取不写 CAD、不改选择、不保存。
|
||||
- 宿主命令使用脚本短路径。路径含宿主不支持的字符时,仅允许在派发命令前退回完整外部读取;原始完整检查仍然执行。
|
||||
- 原生宿主预定义 Vd 枚举,不重复声明;支持同一 CAD 会话连续调用。
|
||||
- 取消检查使用当前监控令牌,在原有可安全中止的边界响应;外层监控和自有进程释放仍保留。
|
||||
- 不打包发布;不触碰 feedback/,实机只用 build/ 下新副本。
|
||||
|
||||
验收使用默认 BOM 的两条正式替换,覆盖错误行拒绝、导入确认、每项保存重开、独立库存及完整层级/扁平导出、原始工程哈希与桌面释放。性能只报告实际测得的同源样例,不承诺普遍倍数。
|
||||
@@ -0,0 +1,41 @@
|
||||
# 料号规则的显式目标封装
|
||||
|
||||
用户已选择:在料号规则里选择目标封装,未选择时阻止执行。保留一工程一任务、同批规则共享及默认 11 列 BOM,不修改 BOM 模板。
|
||||
|
||||
## 数据及界面
|
||||
|
||||
- RuleRecord 与目标计划行增加 target_cell: str,默认空;数据库兼容旧数据。旧规则不会自动猜一个封装。
|
||||
- 规则编辑器增加目标封装下拉及读取按钮,候选异步读取、明确加载/失败/就绪状态。新料号变化时清空旧选择;过时的读取结果不能覆盖当前料号。空选择可保存草稿,正式执行必须有合法选择。
|
||||
- target_cell 存原生 Cell Name,保持大小写。候选来自目标料号的真实关联,不从 Part Name 字符串推断。跨分区同名封装不能无声合并;若目前无法唯一确定则阻断。
|
||||
- 同批传播、BOM 导入、按位号执行规则编译都保留选择;BOM 原有列不变。新料号被修改而无同一映射默认值时清空旧选择。
|
||||
|
||||
## 权威来源
|
||||
|
||||
本机 LibraryManager.tlb 公开 IMGCLMPart.AssociatedCells。读取必须在自有私有桌面和库副本中执行;原库不启动编辑、不被重写。
|
||||
|
||||
读取副本必须含 LMC、配套 cfg/prp、PDB 和 CellDB 依赖,保持原时间戳,核对复制前后指纹。缺少物理 CellDB 时 AssociatedCells 会静默返回空,不能将不完整副本的空集合视为权威。自动迁移/重建分区对话框、超时或缺依赖均失败,不点确认后猜结果。
|
||||
|
||||
接口模块 cell_catalog.py:
|
||||
|
||||
- CellChoice(partition: str, name: str)。
|
||||
- CellCatalog(library_path: Path, part_partition: str, part_number: str, cells: tuple[CellChoice,...], source_fingerprint: str, evidence_path: Path)。
|
||||
- read_library_cell_catalog(library_path: Path, part_number: str, evidence_root: Path, *, partition: str | None = None, allow_cold_read: bool = True) -> CellCatalog。
|
||||
- read_project_cell_choices(project_paths: tuple[Path,...], part_number: str, evidence_root: Path) -> tuple[str,...]:不同工程库的候选取交集;无法核验、无交集或同名跨分区歧义均报错。
|
||||
|
||||
缓存必须按源内容指纹、料号、分区绑定;执行时重新核对源,不能仅用名称缓存。读取工作通过隐藏入口 --cell-catalog-worker 分发,冻结与源码同一代码路径,不依赖外部 Python 安装。
|
||||
|
||||
原生 helper 的首次和提交前检查均要求 allow_cold_read=False:只有重新完整核验源指纹及证据的缓存可用,缺失、损坏或失效时阻止提交并提示回规则读取封装。冷读的互斥等待和 LM 工作不能进入原生写入的 120 秒预算。独立 Python 恢复预检在启动恢复 CAD 前运行,可以冷读副本重建缓存;仍须与原事务绑定完全一致,否则保持保护。这避免中断期间规则编辑已锁定时产生缓存丢失的恢复死路。
|
||||
|
||||
## 执行及恢复
|
||||
|
||||
- 队列记录 target_cell,并纳入队列一致性检查;快照新增独立 L 行,不改变原 M 行已有字段顺序。新任务缺选择必须在原生替换提交前停止。
|
||||
- 原生 helper 从实际活动工程的 CentralLibraryPath 读取当前库关联,验证选择属于目标料号允许集合,记录完整候选、指纹及显式选择,绑定 snapshot hash/工程/图页/目标 UID。
|
||||
- 仅修改已确认目标组件的 Cell Name 实例值;不清空原实例后依赖继承。不修改未选中器件,不修改原库。遵守现有恢复事务、失败关闭未保存、保存前及重开后核验,校验有效 Cell Name 等于所选值。
|
||||
- saved 恢复必须核对同一封装选择及磁盘值;任何未认证的新恢复路径都不能产生成功证明。旧队列不能无声套用新的封装选择。
|
||||
- 多候选不得按第一个或按名称近似自动选择。单候选也在规则中显示明确选择,空草稿阻止正式执行。
|
||||
|
||||
## 验证范围
|
||||
|
||||
字段持久化/升级、同批传播、BOM 保留、异步过时结果、未选/非法选择阻断、候选变化、事务绑定、保存重开及恢复反例。真实合法样例使用两个源料号替换为 4100-CA1020-T7,目标 RESC1005N_0402;已确认跨封装样例单独证明未选或不合法选择在写入前阻断。只有目标封装实际选择且写入/回读通过,才认证跨封装。
|
||||
|
||||
不打包、不发布、不修改 feedback/,实机仅 build/ 新副本。源文件哈希、私有进程和桌面释放作为证据。100% 不作为跨工程无条件承诺。
|
||||
@@ -0,0 +1,99 @@
|
||||
# BOM 界面流程、长路径与完成任务重跑
|
||||
|
||||
本轮使用 1.1.2 开发源码;没有打包、打标签或发布。所有 CAD 写入都在两份独立副本上完成,原工程和原 CAD 进程 PID 18732 不参与执行。证据目录为 `build/bom-native-roundtrip-fixed-20261015`,`report.json` 保留历次失败与恢复记录。
|
||||
|
||||
## 验证方式
|
||||
|
||||
`tools/probe_bom_live_roundtrip.py` 通过真实 Qt 控件点击新建、扫描、选择工程、导出模板、导入 BOM、保存、执行和开始新一轮。操作系统文件选择的返回路径和确认框由探针提供;界面使用 offscreen 渲染,因此这属于自动模拟用户操作,并非人工逐次操作鼠标。实际读取、Replace Part、保存和回读均调用本机 DxDesigner;未用模拟 CAD 代替。
|
||||
|
||||
| 项目 | 实际输入与结果 |
|
||||
| --- | --- |
|
||||
| 工程 | Audio_D2128、Audio_T605A,一工程一任务 |
|
||||
| 工程完整路径 | 分别 302、138 个字符 |
|
||||
| 默认模板路径 | 284 个字符,实际导出和重新导入成功 |
|
||||
| 模板 | 沿用 11 列,填写导出的真实单元格,不另造模板 |
|
||||
| 替换范围 | 两工程各选择 RV05;同旧料号 RV11 不替换 |
|
||||
| 第一轮 | `4100-CA0000-T7` → `4100-CA0000-T0` |
|
||||
| 第二轮 | `4100-CA0000-T0` → `4100-CA0000-T7` |
|
||||
|
||||
探针在自身进程内禁用 8.3 路径回退,强制验证目录 junction 入口;不修改 Windows 长路径设置或持久环境变量。命令、快照、任务库始终使用原工程身份,运行短入口只用于旧式文件接口与 CAD 打开工程,结束后删除入口。
|
||||
|
||||
## 导入与再次编辑
|
||||
|
||||
1. 从弹窗扫描目录、创建两个任务,耗时 0.565 秒。
|
||||
2. 点击 BOM 模板,实际导出带两个工程区分的 11 列默认文件到 284 字符路径。
|
||||
3. 填写两个有效 RV05 替换项,另加不存在的 `R_DOES_NOT_EXIST`:3 行中 2 行通过、1 行失败,报告准确标出 Excel 第 4 行及无法唯一匹配的原因。失败导入既不写入库存,也不保存部分计划。
|
||||
4. 删除错误项重新导入:2 行通过、0 失败,复用仍有效缓存,耗时 2.680 秒。预览后点击保存,两个工程共保存 4 个库存器件、2 个启用目标。
|
||||
5. 第一轮完成核验后点击“开始新一轮”,同批两个已完成任务均恢复为草稿;旧计划、命令、快照、执行及恢复证据归档到各任务的 `rounds/<round_id>/`,新轮清除过期器件基线,保留绑定及料号默认规则。界面操作耗时 0.332 秒。
|
||||
6. 按当前工程状态填写第二轮 BOM:每工程一条启用 RV05 和一条停用 RV11,共 4 行全部通过。重新采集并核对当前库存耗时 348.311 秒;该步骤不能沿用第一轮旧基线。
|
||||
|
||||
界面报告区持续显示行数、工程数、通过/失败/未检查数量及逐行原因;通过只代表已暂存预览,点击保存后才写入计划。有错误时整批不生成新的可保存预览。
|
||||
|
||||
## 现场发现并修复的问题
|
||||
|
||||
- 旧 WSH 的 FSO 对真实存在的长路径返回不存在。补齐实际工程路径的短入口;首次打开、保存后的重新打开和恢复都走同一入口。单独跑真实 FSO 回归验证了保存重开边界。
|
||||
- 部分 COM 绑定把 `GetProjectFilePath` 暴露为字符串属性,退出代码却按方法调用。统一兼容属性/方法两种形式,私有会话能够正常结束。
|
||||
- 原生修改后的失败曾被当作可直接重试:首轮长路径任务停在 `pin_promotion_started`,原生报告缺少异常信息。独立读取确认 RV05 已是新料号,不能依据“不保存关闭”推断工程已回滚。新增中断判定,阻止归档、直接重试、继续下一步或下一任务,必须先核验恢复;已核验的原生回滚仍可解除该类保护。
|
||||
- 核验恢复原来不识别 `batch_failed` 的修改证据,且拒绝自动队列产生的 FAILED 工程。补齐选择中断步骤、严格绑定原快照和事务、允许恢复原生失败工程以及成功后的任务状态同步;手动失败流程仍拒绝混用。
|
||||
- Windows 同时读取报告或命令文件时会短暂拒绝原子替换。通过真实 Win32 文件共享句柄复现后,补齐最长 1 秒的 PermissionError 重试。原始 helper 中止的根因仍无法单凭旧报告确定;此修复不被描述为已证明解决原始中止。
|
||||
- 千步队列还复现了 `status.tsv` 短暂拒绝读取。新增最长 1 秒的只读打开重试;打开后仍核对文件身份、偏移、长度、完整行及前后时间戳,持续拒绝或真实内容变化仍停止并保留不确定保护。真实 Win32 独占句柄回归通过。
|
||||
- 原生 helper 增加退出码、引脚提升阶段和 fault 日志。任务上下文的批规则同时纳入一次数据库只读快照,避免在已有快照后再读另一代任务数据。
|
||||
|
||||
恢复使用原来的长路径副本,没有重复制工程掩盖失败。旧构建已经把原始修改证据归档,因此仅在这个可抛弃测试任务中,将原证据逐字节校验后放回当前队列,把后续预检失败保留到历史,再通过界面的“核验并恢复”执行;操作记录位于该任务根目录 `manual-evidence-selection-for-regression.json`。
|
||||
|
||||
未勾选复制 Value 时,沿用既有语义:保留原生替换后的目标 Value,不强制恢复旧 Value。选中器件的空 Value 不能单独作为替换失败依据;未选中 RV11 则应保持料号、位号、UID 和 Value 不变。
|
||||
|
||||
后续补测已开启复制开关,真实替换后独立读取确认 `Part Label=0R`、`Value=0R`,详见 [Part Label 实测记录](2026-10-15-part-label-live.md)。
|
||||
|
||||
## 最终回读与回归
|
||||
|
||||
两个任务第二轮均返回 `saved_ok / session_verified`,包括真实保存、关闭、重开回读;之后另开全新后台 CAD 独立读取,得到:
|
||||
|
||||
| 工程 | 位号 / UID | 最终料号 | 最终 Value | 独立读取耗时 |
|
||||
| --- | --- | --- | --- | ---: |
|
||||
| Audio_T605A | RV05 / `$2I2014` | 4100-CA0000-T7 | 空,保留原生目标 Value 策略 | 106.165 秒(本工程合计) |
|
||||
| Audio_T605A | RV11 / `$2I2022` | 4100-CA0000-T7 | 0R,与原值一致 | 同上 |
|
||||
| Audio_D2128(302 字符路径) | RV05 / `$2I2014` | 4100-CA0000-T7 | 空,保留原生目标 Value 策略 | 108.927 秒(本工程合计) |
|
||||
| Audio_D2128(302 字符路径) | RV11 / `$2I2022` | 4100-CA0000-T7 | 0R,与原值一致 | 同上 |
|
||||
|
||||
最后两次独立读取前曾连续三次遇到 `GetActiveObject` 启动阻塞,尚未打开工程或调用替换;各失败会话均通过拥有的 job/desktop 清理,没有触碰主桌面 CAD。调用栈证据已保留。单独启动探针也曾成功建立绑定,不能据此认定原阻塞根因已消除。启动等待从 75 秒调整为有界的 120 秒,保留取消和强制收尾,新增 90 秒成功及持续无响应的虚拟时钟回归。最终两次实际启动身份确认分别约 64.906、67.109 秒,读取和退出均 `clean=true`;**这次成功不能证明增加预算就是之前偶发阻塞的唯一修复原因**。
|
||||
|
||||
`report.json` 最终 `verified=true`、`source_projects_unchanged=true`、`aliases_removed=true`,别名清理无错误。最终观察到的 11 个后台 CAD PID 均确认退出、11 个私有 desktop 均确认不存在;主输入桌面始终为 Default,845 次采样均能读取主桌面文件,未观察到自有 CAD 抢前台或出现在输入桌面。第二轮全流程的上一份观察另外保存在 `desktop-observation-second-round.json`,19 个已观察自有 CAD/desktop 均释放。最后系统仅留下原始 `viewdraw.exe` PID 18732。
|
||||
|
||||
- 默认完整回归:**303 passed,168.18 秒**,在增加最后两条启动等待用例和状态读取重试前完成,后续改动由对应专项核验。此前一条多工程模拟器将“修改前失败”错误写成“已开始原生修改但缺少报告”,已校正模拟协议;生产保护未放宽。
|
||||
- 启动/退出、COM 路径 getter 与新增有界等待专项:**18 passed,13.52 秒**。
|
||||
- 恢复与快照专项:**33 passed**;随后新增状态文件占用后的 I/O 与快照专项:**14 passed**。
|
||||
- 千步队列最终确实执行完 **20 工程 × 5 图页 × 10 规则 = 1000 步**,91 步保存、909 步未命中,作业编号无重复、顺序与状态断言全部通过,峰值分配约 **1.98 MiB**。但耗时 **52.434 秒**,约 **19.07 步/秒**,**未通过既有 `<30 秒` 的性能断言**。未放宽阈值或把该测试标为通过;这属于本轮尚未达到的性能目标。此前并行 CAD 时的另一轮为 32.313 秒,不作为当前性能结论。
|
||||
|
||||
现场探针结束后只重做独立读取,没有重新执行任何已完成的替换任务。再次运行这个探针的 `--resume` 会识别第二轮已完成记录,并自动只读核验。源码测试过程将 TEMP、TMP、LOCALAPPDATA 仅对测试进程指向 F 盘;原本在 C 盘的本仓库旧 pytest 产物经哈希校验后迁移到 F 盘 build 目录保留,没有清理用户工程或原始 BOM。
|
||||
|
||||
可查看的短路径证据:
|
||||
|
||||
- `build/bom-native-roundtrip-fixed-20261015/bom-default-template.xlsx`
|
||||
- `build/bom-native-roundtrip-fixed-20261015/bom-with-invalid-row.xlsx`
|
||||
- `build/bom-native-roundtrip-fixed-20261015/bom-first-round.xlsx`
|
||||
- `build/bom-native-roundtrip-fixed-20261015/bom-second-round.xlsx`
|
||||
- `build/bom-native-roundtrip-fixed-20261015/06-import-current-engineering-state.png`
|
||||
- `build/bom-native-roundtrip-fixed-20261015/07-second-round-completed.png`
|
||||
|
||||
前述短路径 XLSX 是本轮实际文件的副本;长路径原件完整保留。初次截图因 offscreen 中文字体缺失不适合审阅,恢复探针显式加载微软雅黑后生成的第二轮截图可以正常显示中文。
|
||||
|
||||
## 第二轮执行计时
|
||||
|
||||
两任务顺序完成的墙钟时间为 465.509 秒。下列时间来自真实任务事件和私有会话元数据,不是模拟执行;完整阶段与历史失败项由 `execution-measurements.csv` 导出。
|
||||
|
||||
| 阶段 | Audio_D2128 长路径(秒) | Audio_T605A(秒) |
|
||||
| --- | ---: | ---: |
|
||||
| CAD 启动身份确认 | 58.578 | 48.562 |
|
||||
| 打开工程累计(含重开) | 31.000 | 20.281 |
|
||||
| 打开图页累计 | 19.344 | 16.141 |
|
||||
| 原生替换 | 43.344 | 36.125 |
|
||||
| 属性恢复预检 | 14.437 | 9.875 |
|
||||
| 属性字段恢复 | 8.828 | 5.766 |
|
||||
| 保存关闭阶段累计 | 8.515 | 4.969 |
|
||||
| 单步总耗时 | 252.992 | 192.477 |
|
||||
| 整个任务耗时 | 262.275 | 202.886 |
|
||||
| 任务速率(任务/分钟) | 0.229 | 0.296 |
|
||||
| 私有会话收尾 | 3.281 | 2.797 |
|
||||
|
||||
控制器总耗时、worker 子阶段和启动/收尾属于不同计时层,不能跨层相加。阶段数据还受本机 CAD 启动、COM 调用及现场负载影响;本次用于证明真实步骤与定位耗时,不据此宣称性能提升。BOM 的首次读取和新轮读取会重新验证工程稳定性,缓存有效的纠错导入则无需重复启动 CAD。
|
||||
@@ -0,0 +1,38 @@
|
||||
# 任务导航与 CBB BOM 格式转换(1.1.2 开发中,未发布)
|
||||
|
||||
## 任务导航
|
||||
|
||||
左侧支持按任务名称、目录、备注搜索,以及执行顺序、名称正反序、创建时间正反序、最近更新排序。名称按自然顺序排列,例如 Board2 在 Board10 前面。排序选择在重启后保留。
|
||||
|
||||
搜索、排序在缓存的任务列表上进行,不重复查询数据库,也不改写批次执行位置。隐藏当前任务时保留右侧上下文,清空搜索后恢复选中。顺序执行仍处理原批次的全部任务。清空搜索、选择执行顺序后,才可用上移/下移调整执行位置。
|
||||
|
||||
## 本次转换
|
||||
|
||||
输入:`F:\ABS-file\ABS-file\CBB_BOM_替换清单2026.10.12(1).xlsx`。
|
||||
|
||||
以“结果”表为主,共 1803 行、104 种工程标签。转换使用现有 `write_bom_template`,没有修改模板的 11 列、工作表结构或导入约定,也没有修改原文件、任务数据库或 CAD 工程。
|
||||
|
||||
复现命令:
|
||||
|
||||
```powershell
|
||||
python tools/convert_cbb_bom.py 'F:/ABS-file/ABS-file/CBB_BOM_替换清单2026.10.12(1).xlsx' --project-root 'F:/Sync Tool Skyworth/Work Maps/Skyworth_CBB_Lib/CBB' --output-dir 'dist/CBB-BOM-converted'
|
||||
```
|
||||
|
||||
M 列作为方案候选,V 列只保留作对照,不在 M 缺失时自动补入 V。V 与“缓存”表 O 列的 1803 行一致;M/V 有 90 行同时为明确料号但不同,其中 88 行是 `4300-CB1040-A100` 与 `4300-CC1040-7100` 的差异,另外 2 行以 `431R` 开头。列用途是基于数据关系作出的判断,不代表电气可替换性已经确认。
|
||||
|
||||
输出位于 `dist/CBB-BOM-converted`,不随源码提交原始业务数据:
|
||||
|
||||
| 文件 | 内容与限制 |
|
||||
| --- | --- |
|
||||
| CBB_转换模板_全量待核对.xlsx | 441 行候选、1019 个位号;未定位的工程路径留空,需补齐后才能批量导入 |
|
||||
| CBB_转换模板_已匹配工程.xlsx | 当前目录能定位的候选:10 个工程、63 行、170 个位号;50 行启用,13 行存在差异,默认停用 |
|
||||
| CBB_逐行转换核对.csv | 保留所有 1803 行原始数据、原行号、路径匹配结果和转换说明;不是导入文件 |
|
||||
| conversion-report.json | 转换计数与文件位置 |
|
||||
|
||||
当前指定的 CBB 目录可定位 14 种工程标签,其中 10 种有可转换行。没有新料号、包含“删除该CBB”“不可更换”等说明的行保留在核对清单,不转换为替换操作。M 中仅含一个料号的说明文字可提取为停用候选;多料号、公式和系列后缀不自动解释。M/V 差异、手工处理、未绑定路径等候选默认停用。完成标记不用于删除或筛选行,原 VALUE 不自动写入 custom_value,NC 同步使用原模板默认开启。原行号、M/V、完成标记、VALUE 和相关备注保存在新料号单元格批注中。
|
||||
|
||||
## 验证与尚待完善
|
||||
|
||||
27 项针对任务搜索/排序、选中状态、设置持久化、异步响应、原 BOM 导入和此次转换的检查通过(13.16 秒)。两份输出由工具实际的 `read_bom_records` 重新解析,并检查列名、单工作表、无公式、自动换行以及已匹配路径存在。没有启动 CAD,也没有验证这些业务料号在当前工程/中央库中的实际替换结果;导入仍需同批工程绑定与位号采集匹配。
|
||||
|
||||
建议后续补充:导入时选择工作表与列映射;工程名称到任务路径的匹配预览;一次列出全部未命中、跨页重号和冲突行;在界面展示转换来源和停用原因。它们属于后续功能,本次没有改动 BOM 模板或导入界面。
|
||||
@@ -0,0 +1,52 @@
|
||||
# CBB BOM 真实工程导入验证
|
||||
|
||||
2026-10-15,1.1.2 开发版本,未打包发布。原始 BOM 和原工程未改动,没有执行 Replace Part。
|
||||
|
||||
## 结论
|
||||
|
||||
原转换文件的 63 条候选不能整表通过当前工程校验:15 条在 7 个工程中完整匹配,另外 48 条未完整匹配。不能将格式解析成功等同于真实位号匹配成功。
|
||||
|
||||
使用原生采集到的真实 UID、位号、图页、旧料号、Value,在隔离任务库里回放导入这 15 条规则,已走通 **界面导入 → 跨任务预览 → 批量保存 → 关闭数据库 → 重新打开核对**。7 个工程共保存 39 个采集位号,其中 25 个启用,其余保留或停用;11 条启用规则展开为 25 个实际替换目标。预览没有改写已有库存或保存计划。
|
||||
|
||||
这次测试分成真实 CAD 采集和界面回放两层。界面回放复用实际采集的库存,没有伪造 UID 或位号,也没有再次启动 CAD。它证明导入、分配和持久化正确,不代表所有工程在最终版本上重新完成了完整原生采集,更不代表电气替换已经验证。
|
||||
|
||||
## 实际输入与证据
|
||||
|
||||
- 原始文件:`F:\ABS-file\ABS-file\CBB_BOM_替换清单2026.10.12(1).xlsx`。
|
||||
- 转换文件:`dist/CBB-BOM-converted/CBB_转换模板_已匹配工程.xlsx`。
|
||||
- 原始工程复制到 `build/cbb-bom-import-live-20261015/projects`。副本仅将 CentralLibrary 改到本机已存在的库路径;测试表仅将工程路径改到副本。
|
||||
- 原始表的多个工作表、全量转换表缺少工程路径,均在启动 CAD 前被明确拒绝,任务计划没有部分写入。
|
||||
- `build/cbb-bom-import-verified-20261015/report.json`:10 个工程的原生诊断、导入拒绝和局部导入日志。
|
||||
- `build/cbb-native-verified-input/evidence.json`:每个工程最近两次成功原生采集的证据目录。只有这两次的图页和器件集合一致时才接受快照;完整旧料号请求范围也保留在证据中。
|
||||
- `build/cbb-bom-ui-verified-7-projects/report.json`:最终 7 工程界面回放和保存回读结果。
|
||||
- `build/cbb-cache-fixed-native/report.json`:最终代码在 `1PEF7071_PHY` 上再次进行的新鲜原生采集,5 个真实器件通过并成功复用缓存。
|
||||
|
||||
## 修复的问题
|
||||
|
||||
1. **原生只读打开也更新数据库**。ICDB 会更新 `database/icdb.dat`,自动备份会更新日志及备份文件。旧校验会反复打开工程并拒绝采集。现在排除明确的备份审计输出;数据库仍计算完整哈希。仅数据库在读取期间变化时,需要两次原生采集结果一致,而且其他设计文件跨两次读取保持稳定。首次工程配置规范化后允许一次额外读取完成这两次核验。库存不同、设计文件持续变化、不可验证等情况仍拒绝使用;数据库后续变化也仍使缓存失效。
|
||||
2. **失败提示无法判断是哪一个工程**。采集及匹配异常现在带工程名称和完整路径,保留原错误编号。VBS 也记录枚举、打开图页、查询器件、读取器件、关闭图页与关闭工程的阶段。
|
||||
|
||||
诊断过程中 `1GPHY_RTL8211F_A` 曾返回 COM 服务器异常;其他成功采集记录提供了该工程两份一致的真实库存。该异常没有被认定为已修复。另有工程的旧料号库存为空,原因需结合原表与当前工程版本核对,不能直接假定为已经替换。
|
||||
|
||||
## 耗时与资源
|
||||
|
||||
| 检查 | 结果 / 耗时 |
|
||||
| --- | --- |
|
||||
| 原表格式拒绝 | 0.136 秒,未写计划 |
|
||||
| 未绑定路径拒绝 | 0.155 秒,未写计划 |
|
||||
| 最终 7 工程界面预览 | 0.282 秒 |
|
||||
| 最终 7 工程批量保存 | 0.364 秒 |
|
||||
| 最终代码新鲜原生采集 | 76.998 秒,5 个器件 |
|
||||
| 同工程缓存复用 | 0.266 秒,库存一致 |
|
||||
| 原生诊断期间界面计时器最大间隔 | 0.234 秒 |
|
||||
| 最终界面回放期间计时器最大间隔 | 0.112 秒 |
|
||||
|
||||
原生采集仍是主要耗时点:诊断阶段单工程耗时约 62–134 秒,包含 CAD 启动、多次读取和关闭。首次诊断是在完整兼容修复之前运行,失败耗时不能当成最终版本的成功吞吐量。后续应优先研究连续采集时复用受控 CAD 会话,并补充逐工程进度与安全取消。
|
||||
|
||||
私有桌面观察确认诊断轮的 19 个会话均已退出,桌面均已释放;最终新鲜采集也独立观察清理结果。输入桌面始终为 Default,受控 CAD 未成为前台或出现在主桌面;原 CAD 进程 18732 保留。原工程文件哈希保持不变。
|
||||
|
||||
## 交付与回归
|
||||
|
||||
`dist/CBB-BOM-converted/真实工程验证` 中包含按原模板 11 列导出的匹配行、全部 63 条候选逐行核对 CSV、统计和保存后的界面截图。匹配行文件恢复为原工程路径,没有覆盖原转换文件,也没有改变原模板列。
|
||||
|
||||
75 项针对缓存、BOM、任务导航、异步界面、库存和目标执行的回归检查通过(19.37 秒)。没有构建、更新发布包或创建版本标签。
|
||||
@@ -0,0 +1,52 @@
|
||||
# 2026-10-15 执行响应与模块优化验证
|
||||
|
||||
在原 V1.1.0 工具上迭代,开发分支 `codex/execution-responsiveness`,基线 `d79250b`。本轮不打包、不推送,也不修改真实原理图工程。
|
||||
|
||||
## 最终行为
|
||||
|
||||
- 任务列表、任务详情、日志和执行反馈通过独立后台查询读取;同一通道最多一个活动查询和一个最新待处理请求,旧结果不能覆盖当前选择。
|
||||
- CAD 执行仍串行;执行过程中可以切换任务只读查看、选择和查找位号,修改和重复启动继续禁用,暂停作用于实际执行队列。
|
||||
- 完成/失败提示明确任务归属,查看 B 时不会把 A 的结果当成 B 的完成记录。完成后强制读取最终日志,避免被执行前尚未返回的旧快照覆盖。
|
||||
- 日志初次加载最近 200 条事件,历史向前分页;实时增量读取并追加,保留 UTF-8 未完成行的读取位置。实时累计到 400 条事件后,下一次刷新重取最近一页以限制显示规模。所有保留历史仍可分页访问;文件轮转、截断或重建时更新游标。旧的完整日志 API 保持兼容。
|
||||
- 目录扫描显示已扫描目录和发现工程数量,可取消和关闭;取消不返回部分候选。任务创建只复核已选工程、路径边界、排除目录、重解析点和祖先工程的扫描规则,不重复递归无关目录。
|
||||
- 只读采集和执行准备可复用图页发现结果,缓存仅限当前任务执行器。工程树内容摘要或元数据变化、扩大料号范围、缺少组件信息会重新发现;执行修改前主动失效。
|
||||
- 新的 `BatchBackupCoordinator` 管理备份状态、失败策略和单工程预备份,`execute_batch` 从约 304 行降至 170 行。保留原生执行、保存关闭重开回读、失败/中断保护及既有事务边界。
|
||||
- 查询回调在窗口关闭时失效;退出应用时等待后台读取结束后再释放共享 SQLite 连接。
|
||||
|
||||
## 响应计时
|
||||
|
||||
在本机一次运行的 **模拟数据 / Qt offscreen** 测量,不是 CAD 性能数据。生成 5000 条事件、40000 条位号修改明细,日志 2,122,783 字节;完整显示采用此前的 QTextEdit,全量读取并格式化。新显示采用 QPlainTextEdit 和分页;单次测量受磁盘缓存等因素影响,不作为通用提速比例。
|
||||
|
||||
| 场景 | 本次耗时 |
|
||||
| --- | ---: |
|
||||
| 原方式:全量读取、格式化、显示 | 851.482 ms |
|
||||
| 最近 200 条:读取、格式化、显示 | 42.178 ms |
|
||||
| 未变化日志的增量轮询(后台) | 27.748 ms |
|
||||
| 新界面异步显示最近日志的端到端时间 | 28.263 ms |
|
||||
| 注入 400 ms 慢读取后,open_task 返回 | 1.362 ms |
|
||||
| 注入慢读取后,任务实际加载完成 | 444.039 ms |
|
||||
| 慢读取期间 20 ms 心跳计时器触发次数 | 22 |
|
||||
| 心跳最大间隔 | 21.601 ms |
|
||||
|
||||
分页遍历独立核对恢复了全部 5000 条事件。原始测量:`build/ui-response/report.json`。
|
||||
|
||||
复现:`python -X utf8 tools/measure_responsiveness.py --output build/ui-response/report.json`。脚本只创建独立临时数据,不连接 CAD。
|
||||
|
||||
缓存采用内容摘要有额外读取成本。独立临时目录 65 个文件、总计 32 MiB 的五次指纹测量约 149~203 ms,中位数约 169 ms;缓存命中需要读取包含文件一次,发现缓存未命中会在发现前后各读取一次。大工程和慢盘需以现场数据判断收益。本轮未重新测量 CAD 实际替换耗时,不能把界面数据或缓存命中次数等同于原生替换提速。
|
||||
|
||||
## 回归与审查
|
||||
|
||||
- `build/responsiveness-final.xml`:219 passed、1 deselected,103.09 秒。覆盖 V1.1、队列、备份、暂停/恢复、执行安全、监控、应用启动退出和日志;单独排除 1000 步压力用例。
|
||||
- `build/responsiveness-stress.xml`:压力用例单独运行通过,测试总耗时 24.32 秒;执行段 22.376 秒,1000 步、44.69 步/秒,内存峰值 1,995,169 字节(约 1.90 MiB)。91 步保存成功、909 步正常未命中,无重复调度。使用模拟 CAD、备份桩和 tracemalloc,不代表 CAD 速度。
|
||||
- 两部分合计 **220 个不同用例通过**,未放宽原 `<30 秒`、`<128 MiB` 门槛。
|
||||
- 开发期间在并行运行其他任务时,压力用例曾测得 36.32 秒并失败;保留这一事实,最终单独运行通过,不把负载影响说成稳定提速。
|
||||
- 独立审查发现:慢初始日志反复刷新可能饿死;执行与查看任务不同导致提示归属错误;仅元数据缓存无法识别 Windows 保留时间戳的等长修改。这些问题均补充行为回归并修复。内容摘要修复及最终反馈/退出路径复审通过,无剩余必须修复项。
|
||||
|
||||
~~~powershell
|
||||
python -m pytest tests/v1_1 tests/trial_task_center/test_batch.py tests/trial_task_center/test_execution_safety.py tests/trial_task_center/test_recovery.py tests/trial_task_center/test_worker_monitor.py tests/trial_task_center/test_application.py tests/trial_task_center/test_logging_setup.py -q -k 'not thousand_item_multisheet_mixed_queue' --junitxml=build/responsiveness-final.xml
|
||||
python -m pytest tests/trial_task_center/test_batch.py::test_thousand_item_multisheet_mixed_queue_has_bounded_runtime_and_memory -q --junitxml=build/responsiveness-stress.xml
|
||||
~~~
|
||||
|
||||
## 后续边界
|
||||
|
||||
同工程跨步骤持续持有 CAD 会话尚未实施:当前每步以保存、关闭、重开回读后的持久结果作为恢复边界。合并会话需要升级该协议,并用真实多图页、多规则工程验证中断和保存失败行为。本轮通过安全复用发现结果先减少重复枚举,保留既有保存核验保证。历史 controller、store 和 VBS 的完整拆分也未在本轮完成。
|
||||
@@ -0,0 +1,112 @@
|
||||
# 2026-10-15 多工程执行与速率回归
|
||||
|
||||
本次在 DxDesigner 7.9.5 上使用 3 个不同真实工程的独立副本,实际执行了原生 Replace Part、保存关闭和重开回读;另以模拟 CAD 执行器检验多工程、多图页、多规则队列及压力场景。两类速率分开报告。
|
||||
|
||||
代码提交:`0225787`。真实 CAD 数据在短路径修复和计时接入后测得;此后继续优化了 Python 队列开销,并用自动回归验证。没有再次替换这 3 个已验证副本,不能把软件压力测试的改善比例当作 CAD 实际速度改善比例。
|
||||
|
||||
真实工程来自 `Skyworth_CBB_Lib/CBB`,测试副本仅将失效的 `S:\mentor_lib.lmc` 改为本机现有中央库的绝对路径。未用历史 CAF 或人工构造 UID 充当真实替换证据。下述为本机一次实测,部分测量与自动回归同时进行,不是重复采样的硬件基准。
|
||||
|
||||
## 真实多工程队列
|
||||
|
||||
| 顺序 | 工程 | 实际修改位号 | 旧料号 | 新料号 | 回读结果 |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| 1 | 1GPHY_8211 | RL02 | 4100-CA3300-T7 | 4100-CA3300-2200 | saved_ok / batch_closed |
|
||||
| 2 | Audio_D2128 | RV05 | 4100-CA0000-T7 | 4100-CA0000-T0 | saved_ok / batch_closed |
|
||||
| 3 | Audio_T605A | RV05 | 4100-CA0000-T7 | 4100-CA0000-T0 | saved_ok / batch_closed |
|
||||
|
||||
3 个任务顺序结束,无暂停、失败或未确认状态。队列耗时 **187.174 秒**,即 **0.962 个工程/分钟**;包含前置库存采集与准备的运行总耗时 221.145 秒。每个工程本次只有一个启用的图页/规则步骤,不能据此推断所有工程规模的平均速度。
|
||||
|
||||
### 每一步耗时(秒)
|
||||
|
||||
| 工程 | 只读采集 | 图页枚举及队列准备 | 备份 | 替换步骤(含保存回读) | 进度同步 | 本次任务执行合计 |
|
||||
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 1GPHY_8211 | 10.191 | 12.851 | 1.211 | 62.814 | 0.012 | 77.059 |
|
||||
| Audio_D2128 | 12.586 | 8.851 | 0.981 | 42.971 | 0.011 | 52.910 |
|
||||
| Audio_T605A | 10.222 | 11.012 | 0.958 | 44.812 | 0.012 | 56.894 |
|
||||
|
||||
任务合计包含枚举、备份、替换、进度和日志开销,不包含先前的只读采集;它与子步骤不能重复相加。整批队列另外包含任务切换和检查点开销。
|
||||
|
||||
### 保存后独立回读
|
||||
|
||||
| 工程 | 已验证的计划位号 | 实际改变 | 其余保留原料号 | 独立回读耗时(秒) |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| 1GPHY_8211 | 13 | 1 | 12 | 10.530 |
|
||||
| Audio_D2128 | 2 | 1 | 1 | 9.993 |
|
||||
| Audio_T605A | 2 | 1 | 1 | 11.254 |
|
||||
|
||||
所有比对均通过:按工程、图页、UID、位号和料号逐个核对,3 个目标变更,14 个未勾选匹配位号保留。两个 Audio 工程都含 RV05,结果分别归属于各自任务。上述独立回读在队列结束后另行执行,不包含在队列耗时中。
|
||||
|
||||
### 执行器内部阶段(秒)
|
||||
|
||||
进度监控按阶段切换计时,同名阶段多次出现时累计;这是互斥时间段,不是每个同名函数的完整调用时长。例如保存回读内再次打开工程的时间会累计到 open_project。非常短的阶段可显示为 0.000。
|
||||
|
||||
| 阶段 | 1GPHY_8211 | Audio_D2128 | Audio_T605A |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| starting | 0.297 | 0.390 | 0.235 |
|
||||
| session_startup | 1.109 | 0.985 | 0.843 |
|
||||
| check_project | 0.032 | 0.015 | 0.047 |
|
||||
| open_project | 15.374 | 12.719 | 13.563 |
|
||||
| open_sheet | 2.438 | 2.876 | 2.359 |
|
||||
| session_ready | 0.016 | 0.046 | 0.047 |
|
||||
| query_components | 0.297 | 0.454 | 0.469 |
|
||||
| index_components | 3.249 | 1.406 | 1.562 |
|
||||
| find_components | 0.937 | 0.406 | 0.766 |
|
||||
| index_pins | 2.906 | 1.859 | 1.704 |
|
||||
| snapshot_attributes | 0.189 | 0.219 | 0.407 |
|
||||
| capture | 2.515 | 1.500 | 1.390 |
|
||||
| before_native | 0.079 | 0.062 | 0.063 |
|
||||
| native_replace | 24.000 | 12.672 | 13.547 |
|
||||
| restore_preflight | 2.624 | 1.406 | 1.608 |
|
||||
| before_restore_transaction | 0.219 | 0.219 | 0.235 |
|
||||
| restore_attribute_fields | 0.625 | 0.625 | 0.640 |
|
||||
| restore_attributes | 0.031 | 0.000 | 0.000 |
|
||||
| verify_restoration | 0.063 | 0.094 | 0.172 |
|
||||
| verify_attribute_fields | 0.140 | 0.141 | 0.156 |
|
||||
| finished | 1.750 | 1.077 | 1.218 |
|
||||
| save_and_close | 3.891 | 3.751 | 3.720 |
|
||||
| verify_saved_project | 0.000 | 0.015 | 0.031 |
|
||||
|
||||
## 软件队列回归与压力测试
|
||||
|
||||
模拟 CAD 场景仍使用真实 SQLite、XLSX、计划编译、命令/状态文件、备份及任务日志,模拟执行器只按收到的真实 UID 选择器修改内存器件模型并返回协议结果。其速率不能代表 DxDesigner 替换速度。
|
||||
|
||||
| 场景 | 工程数 | 实际执行步骤 | 修改模型器件数 | 保留的未选器件数 | 总流程耗时(秒) |
|
||||
| --- | ---: | ---: | ---: | ---: | ---: |
|
||||
| failure_continue (case-failure_continue) | 3 | 12 | 22 | 12 | 4.017 |
|
||||
| pause_resume (case-pause_resume) | 3 | 12 | 24 | 12 | 3.275 |
|
||||
| success (case-success) | 3 | 12 | 24 | 12 | 4.556 |
|
||||
| uncertain_stop (case-uncertain_stop) | 3 | 1 | 0 | 12 | 1.730 |
|
||||
| success (scale-10-final) | 10 | 120 | 240 | 120 | 38.722 |
|
||||
|
||||
3 工程场景覆盖:串行顺序、失败继续下一工程、未确认结果阻断后续工程、暂停续跑不重复、同名位号按工程/图页隔离、BOM 一行多个位号以及日志完整归属。10 工程场景为每工程 3 张图页、每图页 4 条规则,共 120 步;240 个选中模型器件改变、120 个未选模型器件保留。
|
||||
|
||||
1000 步兼容性压力场景使用历史单任务多工程队列(20 工程 × 5 图页 × 10 规则),开启 tracemalloc,真实备份由桩替代。它单独检查队列开销与内存,不是新版多任务调度或 CAD 吞吐量。最终全部 1000 步完成:91 步模拟保存成功、909 步未命中正常跳过,无重复调度;耗时 **27.764 秒**,速率 **36.02 步/秒**,tracemalloc 峰值 **1.865 MiB**。原有 `<30 秒` 和 `<128 MiB` 检查均通过,未放宽阈值。
|
||||
|
||||
## 本次发现和修复
|
||||
|
||||
1. 监控握手路径长 264 字符时,Python 可见文件而 VBS FileSystemObject.FileExists 返回 False,造成约 20 秒后报 supervisor did not authorize startup。改用系统短路径后,真实项目枚举和替换均可执行;没有可用短路径的系统会在 CAD 启动前给出短目录提示。原有证据目录保持不变。
|
||||
2. 每步重复解析整份命令与状态文件,40 步检测到 41 次命令读取,1000 步耗时 228.154 秒。改为每会话缓存命令、按追加量读取状态;在每次启动 worker 前检查状态文件身份、大小及修改时间,外部插入状态会在下一次写入前阻断。
|
||||
3. 缓存工程备份根目录和项目 ID,避免在后续备份查找中重复解析文件路径;没有后续备份候选后不再反复扫描。每步计时合并到原执行结果事件中,避免重复刷写日志。
|
||||
|
||||
## 原始证据和复现
|
||||
|
||||
本机证据目录:`F:\Sync Tool Skyworth\Work Maps\dxdesigner-part-replacement\build\multitask-regression-20261015`。
|
||||
|
||||
- `native-live-results.json`:3 个真实任务及队列状态。
|
||||
- `native-timings.csv` / `native-timings.json`:18 条真实阶段计时。
|
||||
- `native-worker-stages.csv`:69 条真实执行器阶段计时。
|
||||
- `native-post-verification.json`:17 个计划位号的独立回读比较。
|
||||
- `native-data-live/tasks/<task-id>/quick-run/`:每个真实任务的命令、状态、备份、快照及原生报告。
|
||||
- `scale-10-final/timings.csv`:10 工程、120 步及流程/任务统计;layer 标明流程计时和执行计时,二者不能重复相加。
|
||||
- `case-*/report.json`:故障、阻断、暂停续跑及成功场景的断言与每次调度。
|
||||
- `stress-timings.csv` / `stress-final.json`:1000 步逐项统计和内存峰值。
|
||||
- `regression-before-queue-cache.xml`:首次回归中的两个性能失败,保留用于回溯。
|
||||
|
||||
最终验证覆盖 **188 个不同用例,全部通过**:`regression.xml` 记录 187 项通过(单独排除已执行的压力项),`performance-final.xml` 记录压力项及 7 项相关检查通过;两个文件有 7 项重叠,去重为 188 项。包含串行调度、BOM、结果日志、长路径真实 VBS、监控超时清理、状态外部改动保护、失败/暂停/恢复及连接保护。
|
||||
|
||||
~~~powershell
|
||||
python -m pytest tests/v1_1 tests/trial_task_center/test_worker_monitor.py tests/trial_task_center/test_batch.py tests/trial_task_center/test_execution_safety.py tests/trial_task_center/test_recovery.py tests/part_replace/test_verification.py -q -k 'not thousand_item_multisheet_mixed_queue'
|
||||
python -m pytest tests/trial_task_center/test_batch.py::test_thousand_item_multisheet_mixed_queue_has_bounded_runtime_and_memory tests/v1_1/test_execution_metrics.py tests/v1_1/test_replacement_logs.py -q
|
||||
~~~
|
||||
|
||||
源码计时记录保存在任务事件中;真实数据 CSV 已逐项展开,模拟 120 步的 CSV 保留了每个 job_id、工程、图页、料号、结果、耗时及速率。测试期间未重新打包。真实中央库替换依赖现场库;本次未进行 Packager、ERC 或网表验收。
|
||||
@@ -0,0 +1,64 @@
|
||||
# 1.1.2 本机冻结候选验收与窗口教程
|
||||
|
||||
结论:**本轮列出的本机成品验收通过,可用于限定环境的小范围试用交付**。不是所有 CAD、中央库和机器环境的稳定性认证;没有创建远端 Release 或版本标签。
|
||||
|
||||
## 候选身份
|
||||
|
||||
- 构建提交:`a16914bc7221dbc62c467b7a89e06ab0c40c1fbc`;产品代码与此前通过源码检查的 `ce574dd` 一致,期间仅增加发布评估和说明文档。
|
||||
- 标准构建脚本源码检查:**369 passed,1 warning,63.39 秒**;PyInstaller 构建与冻结 EXE 启动/退出检查通过。
|
||||
- 候选从 `dist/DxPartReplace` 另复制到干净 staging,排除 `data`,再压缩、解压。实际操作的是 `build/packaged-acceptance-20261015/extracted/DxPartReplace/DxPartReplace.exe`。运行进程路径、EXE 哈希和副本工程身份另行核对。
|
||||
- EXE SHA256:`73d6deb81d52ce34ce9c6d2958275a9b7376f316ae1872552882f0d65070ce75`。
|
||||
- VBS SHA256:`9997d8a41ad3820e7fd905c8024fc10c765c0e6218eb7f3c091301e3c73db9dc`,与源码一致。
|
||||
- ZIP SHA256:`bfbc089c4362a9a9c43320b81ee9d4f7af0750bee6da25d16fc58733130319c2`,52,589,346 字节。
|
||||
|
||||
候选、完整工程副本、原始记录均在 `build/packaged-acceptance-20261015`。候选 ZIP 为本地验收包,不改变当前已发布版本。
|
||||
|
||||
## 实际操作及断言
|
||||
|
||||
使用 Windows UI Automation 定位真实控件,向目标窗口发送鼠标消息,操作原生文件选择与确认弹窗。没有导入产品内部 UI 类驱动主流程,没有模拟 CAD worker,也没有向数据库或日志注入成功状态。数据库检查使用只读连接。
|
||||
|
||||
| 验收项 | 结果 |
|
||||
| --- | --- |
|
||||
| 创建任务 | 实际创建弹窗读取 Audio_D2128、Audio_T605A 的独立副本;一工程一任务 |
|
||||
| 长路径 | 两工程路径分别 297、131 字符;长路径实际采集、替换、保存重开与独立读取均完成;本轮使用本机可用的 8.3 短入口,未重复强制 junction 路线 |
|
||||
| 默认 BOM | 点击导出原模板,确认 11 列、两个工程;只填写原表单元格,不改模板结构 |
|
||||
| 错误导入 | 两条有效 RV05 + 不存在的 R_DOES_NOT_EXIST:通过 2、失败 1、未检查 0,明确 Excel 第 4 行;没有部分保存 |
|
||||
| 修正导入 | 通过 2、失败 0、未检查 0;预览不写计划,点击保存后形成 4 个库存位号,只有两个 RV05 启用 |
|
||||
| 任务搜索 | T605A 过滤为 1 个,清空后恢复 2 个;执行成员未变 |
|
||||
| Value 策略 | 逐任务通过界面启用 Part Label → Value,并核对数据库中的选项持久化 |
|
||||
| 顺序执行 | 实际确认两个工程范围,分别执行原生 Replace Part、保存、关闭和重开核验;两工程各一条真实 saved_ok 事件,均含 RV05 的旧新料号 |
|
||||
| 结果/日志 | 实际结果单元格包含 RV05、新料号和“已保存并核验”;切换完整日志、关闭再打开,结果仍正确 |
|
||||
| 独立读取 | 使用全新私有 CAD 会话读取实际保存工程,结果如下;启动/退出 helper 使用同一冻结 EXE,属性读取器为独立源码诊断脚本 |
|
||||
| 新轮次 | 独立核验后实际点击开始新一轮,两任务恢复 draft,旧目标计划清空;两份 plan.json 及执行证据归档保留;本轮不重复执行已完成的原生替换 |
|
||||
| 旧版数据兼容 | 实际 1.1.1 发布 EXE 创建两个元数据测试任务;复制其数据库交给候选打开,正常退出,两个任务 ID/名称均保留,旧数据库未变;不是对任意历史数据的全量迁移认证 |
|
||||
| 工程与资源 | 两个原工程的全部文件 SHA256 未变;10 个观察到的自有 CAD 进程退出、10 个私有桌面释放,无观察错误,未抢主桌面;最后仅保留用户原 CAD PID 18732 |
|
||||
| 应用退出 | 验收和录制后候选主窗口正常关闭,没有遗留候选 GUI 或自有 CAD |
|
||||
|
||||
独立实际结果:
|
||||
|
||||
| 工程 | 位号 | UID | 实际保存料号 | Part Label | Value |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| Audio_D2128 | RV05 | $2I2014 | 4100-CA0000-T0 | 0R | 0R |
|
||||
| Audio_D2128 | RV11(保留) | $2I2022 | 4100-CA0000-T7 | 0R | 0R |
|
||||
| Audio_T605A | RV05 | $2I2014 | 4100-CA0000-T0 | 0R | 0R |
|
||||
| Audio_T605A | RV11(保留) | $2I2022 | 4100-CA0000-T7 | 0R | 0R |
|
||||
|
||||
## 耗时及记录
|
||||
|
||||
- 含错误项的首次 BOM 导入和实际库存核验:285.406 秒;修正后有效缓存下重新导入:5.735 秒。
|
||||
- 点击确认执行到两工程完成并恢复界面:258.984 秒,约 4 分 19 秒;这是两个工程合计,包含原生处理及保存回读,不代表每个位号都需要同等耗时。
|
||||
- 独立读取:37.922、46.172 秒,分别包含全新会话启动、打开读取和退出。
|
||||
- 阶段计时:`execution-measurements.csv`;实际状态、导入标题、保存事件及调试尝试保存在 `ui-acceptance.json`,失败的驱动适配尝试没有删除。驱动修正没有修改产品代码或绕过原生核验。
|
||||
- 其他记录:`candidate-manifest.json`、`independent-report.json`、`source-integrity.json`、`v111-upgrade-report.json`、`desktop-observation-{bom,execute,independent}.json`、`tutorial-report.json`。
|
||||
|
||||
## 窗口 GIF
|
||||
|
||||
[打开操作教程](../user/media/v1.1.2-window-bom-tutorial.gif):20 个步骤,47.5 秒,约 2.65 MB,1280×980。
|
||||
|
||||
GIF 由本轮实际窗口操作的分步截图组成,使用 PrintWindow 仅读取指定候选进程的主窗口及其弹窗,不读取桌面图像,不包含 Excel 或 CAD 窗口。模板填项在窗口录制之外由脚本完成。字幕说明实际等待被压缩;数分钟的 CAD 等待没有按实时长度保留。抽查了导出 GIF 中的错误报告、成功回读和新轮次帧,中文及内容可读。
|
||||
|
||||
可复用工具:`packaged_window_driver.py`、`accept_packaged_ui.py`、`probe_packaged_upgrade.py`、`verify_packaged_saved_state.py`、`finalize_window_tutorial.py`。工具有副本路径和成品身份守卫,执行错误时不自动重复替换。UIA 与窗口绘制接口仍属于同步调用,本次工具用于有人监督的本机验收,不作为具有硬超时保证的无人值守门禁。
|
||||
|
||||
## 保留的限制
|
||||
|
||||
既有 COM 偶发启动阻塞的根因仍未解决;本轮所有会话最终成功并释放,不能据此证明问题消失。超长任务名称在执行反馈中占用较多空间、任务列表状态在批次结束前可能滞后,是后续体验改善项,不影响本轮真实回读结论。未新增其他库版本、其他机器或 Packager/ERC 验收。之前千步性能单次 29.517 秒达标的范围仍仅为模拟 worker,不与本轮实际 CAD 时间混用。
|
||||
@@ -0,0 +1,42 @@
|
||||
# Part Label 写入 Value 的实际替换验证
|
||||
|
||||
本次补测开启“替换后将 Part Label 写入 Value”的路径。功能代码没有修改;新增可重复运行的探针 `tools/probe_part_label_live.py`。证据位于 `build/part-label-live-20261015`,没有打包或发布。
|
||||
|
||||
使用原始 Audio_T605A 的新副本,导出默认 BOM 模板后填写 RV05 替换项,通过界面导入、保存、勾选复制开关,再点击执行当前任务。Qt 使用真实鼠标事件,文件选择返回值由探针注入,Excel 单元格用 openpyxl 编辑;CAD 替换、保存和读取均为本机真实 DxDesigner 调用。第一次探针鼠标坐标落在复选框留白,停在修改前;修正探针点击坐标后复用已保存计划继续,实际替换只执行一次。
|
||||
|
||||
## 结果
|
||||
|
||||
| 检查项 | 实际结果 |
|
||||
| --- | --- |
|
||||
| BOM 导入 | 1 行通过、0 行失败;库存 RV05、RV11 共 2 项,只启用 RV05 |
|
||||
| 界面开关 | 已勾选,并持久化到任务 |
|
||||
| 实际执行策略 | 命令的 `value_mode`、`base_value_mode` 均为 `part_label`;自定义 Value 关闭 |
|
||||
| RV05 料号 | `4100-CA0000-T7` → `4100-CA0000-T0` |
|
||||
| RV05 独立读取 | UID `$2I2014`,Part Label **0R**,Value **0R** |
|
||||
| RV11 未选中 | UID `$2I2022`、料号 `4100-CA0000-T7`、Value **0R** 均保持原样 |
|
||||
| 保存核验 | 原生替换、属性回读、保存、关闭、重开核验通过,任务完成 |
|
||||
| 额外独立核验 | 另开全新私有 CAD 会话,直接读新料号、Part Label 和 Value;成功后不保存关闭 |
|
||||
| 原工程 | 全目录文件哈希未变,且与上一轮对照测试的原工程哈希一致 |
|
||||
| 主桌面及释放 | 1231 次采样均能读取主桌面文件,输入桌面保持 Default,自有 CAD 未抢前台;观察到的 7 个自有 CAD PID、7 个私有 desktop 均释放 |
|
||||
|
||||
本次没有出现 CAD 启动超时,独立读取会话启动约 27.484 秒、收尾约 1.531 秒。最终系统仍只有用户原来的 CAD PID 18732,临时路径别名清理无错误。
|
||||
|
||||
与上一轮相同料号替换的对照:
|
||||
|
||||
| 复制开关 | 替换后的料号 | 独立取得的 Value |
|
||||
| --- | --- | --- |
|
||||
| 关闭(上轮) | 4100-CA0000-T0 | 空,保留原生目标 Value |
|
||||
| 开启(本轮) | 4100-CA0000-T0 | **0R,与 Part Label 一致** |
|
||||
|
||||
关闭时的证据来自上一轮 `report.json` 的新轮采集结果;本次检查了两轮原工程哈希一致。对照数据另存为 `control-comparison.json`。因此本次验证了开关实际改变写入结果,而不只是界面状态或命令字段发生变化。
|
||||
|
||||
## 耗时与证据
|
||||
|
||||
- BOM 导入及真实库存采集:126.910 秒。
|
||||
- 点击执行至保存重开核验完成:231.631 秒,包含重新确认库存、启动 CAD 和实际替换。
|
||||
- 全新会话独立读取及退出:45.771 秒。
|
||||
- 分阶段计时:`execution-measurements.csv`;原生事务、日志和私有会话记录保存在任务 `quick-run` 及 `quick-run-history` 中。
|
||||
- 独立结果:`independent-attributes.json`;最终 `report.json` 为 `verified=true`、`source_project_unchanged=true`。
|
||||
- 界面截图:`01-part-label-enabled.png`、`02-part-label-completed.png`。
|
||||
|
||||
本次仅补齐普通 Part Label 复制路径的真实验证,没有把既有 COM 偶发启动阻塞或千步性能目标记作已解决,也没有重新跑整套基础测试。
|
||||
@@ -0,0 +1,50 @@
|
||||
# 2026-10-15 私有桌面正式执行验证
|
||||
|
||||
> 本文记录源码接入阶段的验证;后续 1.1.1 成品已完成打包,见 [1.1.1 版本说明](../releases/v1.1.1.md)。下文“本轮没有打包”保留该阶段的实际边界。
|
||||
|
||||
任务中心源码已把私有桌面接入自动采集、单步替换、批量工程会话及中断恢复,完成成功、暂停和异常退出的资源清理。本轮没有打包;此前 EXE 不包含这些更新。
|
||||
|
||||
实现提交:`5c0f6a3`、`f26e868`、`fee1aff`、`48ad7b3`。原始工程未修改,原生测试仅操作 `build/private-desktop-native` 下独立副本。环境为 Windows、Python 3.12、DxDesigner EE 7.9.5;中央库使用本机已安装库。压缩证据及原始文件 SHA-256 见 [JSON 数据](data/2026-10-15-private-desktop-execution.json)。不提交工程、中央库或大型供应商文件。
|
||||
|
||||
## 实际接入与资源边界
|
||||
|
||||
显式普通启动 `viewdraw.exe`,通过随机私有 desktop 中的 ROT 连接自有实例,再绑定会话 GUID。`-Embedding` 启动没有提供可用 ROT,`DispatchEx` 也不能作为本机可靠的私有启动方式,正式执行没有沿用这两条路径。
|
||||
|
||||
活动工程读写校验 desktop、GUID 和活动图页 HWND 所属 PID。关闭最后工程后,CAD 的 ActiveViewHandle 可能保留已销毁或已复用的窗口值;无活动图页的启动与退出使用显式自有 CAD 启动、私有 ROT 和 GUID,不声称此时也有可靠的活动图页 PID 校验。身份不符立即停止,不回退主桌面或创建未受控的 COM 实例。
|
||||
|
||||
进程以挂起状态创建,先加入本工具持有的 Job,再恢复运行。正常收尾先要求工程关闭,再请求 CAD Quit 并等待退出;随后清理自有进程树、关闭句柄,枚举 window station 确认私有桌面消失。保留每次会话证据,避免恢复或重试覆盖前一次释放记录。释放失败会留下不确定状态,不能作为正常任务成功。
|
||||
|
||||
单步入口现在也先备份,再保存、重开回读及关闭,避免后台退出丢弃尚未保存的修改。恢复入口可以重新打开绑定工程,完成属性核验、保存与回读后关闭,不需要用户去隐藏桌面手动保存。
|
||||
|
||||
## 原生实测
|
||||
|
||||
| 用例 | 实际结果 | 耗时 |
|
||||
| --- | --- | ---: |
|
||||
| 同一工程两步替换 | RL02、RL05 分别替换;NC 开、关各一步;均 saved_ok;1 个持久 worker | 任务合计 284.208 秒 |
|
||||
| 保存后的独立枚举 | 按 UID、位号、料号检查 13 项:2 项变更,11 项保留 | 独立运行,不计入任务合计 |
|
||||
| 公开单步入口 | 仅 RL06 修改,备份、保存、重开核验、关闭及 CAD 释放通过 | 168.765 秒 |
|
||||
| 模拟保存后中断并恢复 | 仅在副本任务状态中注入中断;恢复 restored_ok,清除保护锁,无重复原生替换 | 104.998 秒 |
|
||||
| 恢复后独立枚举 | 13 项全部匹配:RL06 已变更,其余 12 项保留原料号 | 另开独立后台 CAD 读取 |
|
||||
| 多页队列暂停 | PON 的 block、01_POWER、02_ZX279133L 三页 no_match 后在 3/18 暂停;1 个 worker,退出并释放 | 83.992 秒 |
|
||||
| 启动取消 | 0.8 秒发取消,尚未运行工程 worker,退出自有进程并释放桌面 | 含实际 CAD 启动尝试 |
|
||||
| watchdog 超时 | 模拟卡住的 worker 及其子进程被自有 Job 清理;CAD 退出、桌面释放,保护状态保留 | 含实际 CAD 启动与退出 |
|
||||
|
||||
两步替换各耗时 157.410、121.297 秒,原生 Replace Part 阶段分别为 32.797、33.953 秒。任务准备 0.037 秒,备份 0.352 秒,两次进度同步为 0.013、0.009 秒。子步骤、内部阶段和任务合计存在包含关系,不应重复相加;JSON 保留每一步的内部阶段耗时。
|
||||
|
||||
本机成功启动私有 CAD 约 22~35 秒,正常退出约 1.8~2.7 秒。私有桌面解决前台隔离和所有权问题,不承诺提升原生 CAD 吞吐量,也不能把此前主桌面的多工程测量直接当作当前后端的速率。
|
||||
|
||||
## 主桌面与释放观测
|
||||
|
||||
暂停、单步/恢复/独立读回、取消/超时三个观测组共 **1997 次采样、6 次 CAD 会话**。每次采样都成功读取普通文件;输入桌面前后均为 Default,自有 CAD 没有成为主桌面前台,也未出现在输入桌面窗口清单。原来主桌面的 CAD PID 18732 保持原样。6 个自有 CAD 均确认退出,6 个私有桌面均确认消失。
|
||||
|
||||
这证明本次测试中没有抢占主桌面,普通文件可读取;不是所有系统负载和第三方 CAD 插件场景的性能保证。目标工程仍须保存关闭,不允许主桌面和后台同时编辑同一工程;许可证、CPU、磁盘和中央库仍共享。
|
||||
|
||||
## 自动回归、审查及测量问题
|
||||
|
||||
运行 `python -m pytest tests/v1_1 tests/trial_task_center/test_batch.py tests/trial_task_center/test_application.py tests/trial_task_center/test_quick_run.py tests/trial_task_center/test_recovery.py tests/trial_task_center/test_worker_monitor.py -q -x -k 'not thousand_item_multisheet_mixed_queue'`,结果 **310 passed、1 deselected,88.93 秒**。随后补充的会话证据留存及隐藏 helper 入口回归在 `test_isolated_cad.py` 中执行,**10 passed,4.47 秒**;与前述数量重叠,不相加。
|
||||
|
||||
桌面资源测试包含真实 Win32 进程树退出及另一个进程保留 desktop 句柄时不得报告释放成功。独立代理只读审查未发现新增可操作问题。未重复无关的千步模拟压力测试:此前本机基线和优化分支均超过原有时间门槛,门槛未修改;这条记录不能作为本轮全量压力测试通过的声明。
|
||||
|
||||
两步替换首次成功运行后,观测器在收尾时未识别 `pywintypes.error(2)`,因此没有写出 report.json。该用例结论由仍完整保留的 status、事件计时及独立 components.tsv 重建;不补造其前台采样记录。随后修正了原生错误捕获,完成暂停、单步/恢复和异常用例观测。异常观测第一轮另遇 Windows 替换状态文件时短暂拒绝读取;观测器加入短暂重试,重跑通过。测量脚本现在即使观测器失败也保留报告。
|
||||
|
||||
边界:本轮真实替换使用单工程两步及独立单步;此前三个不同工程的实测见 [旧后端多工程回归](2026-10-15-multi-project-regression.md),不混称当前私有后端多工程实测。多页暂停用例是 no_match,不是跨页替换。NC 开关传递已覆盖,但所选真实样本没有独立 `/NC` 标记,未重新验收该标记的转换效果。没有执行新的 Packager、ERC、网表验收,也没有生成发布包。
|
||||
@@ -0,0 +1,49 @@
|
||||
# 工程会话、统一快照与可取消查询验证
|
||||
|
||||
本轮在原 V1.1.0 上实施用户批准的四项优化,基线为 `bc6b726`,分支为 `codex/execution-responsiveness`。完成后推送同名远端分支,不打包。真实 CAD 操作全部针对 `build/session-live-20261015` 下的独立副本。
|
||||
|
||||
## 实现
|
||||
|
||||
1. 同工程多步骤保留一个受监督的 VBS worker。每次修改仍保存、关闭、重开并回读校验,下一步复用回读后的工程;暂停、完成和换工程时关闭自有会话。随机令牌、冻结命令和图页确认继续有效。注入的模拟执行器保留原单步协议。
|
||||
2. `TaskBundle` 用一个 SQLite 只读事务读取任务、工程、规则和位号计划;`QuickRunSnapshot` 复用一次证据文件解析,检查读取前后文件代次,最多重试三次,持续变化时禁止给出续跑坐标。创建任务 facade 复用已初始化 runner,避免查询触发启动恢复写入。
|
||||
3. UI 查询最多两个运行项、一个合并后的最新待办项。切换或关闭时取消旧 token;文件分块读取、逐行解析、数据库锁和日志锁等待均检查取消。底层单次系统调用仍需返回后才能退出,线程数量保持有界。
|
||||
4. 拆出协议、快照、只读工程枚举、会话 transport、数据库迁移、位号计划存储和任务读取模块。`quick_run.py` 从 2100 行降至 1866 行,`store.py` 从 1364 行降至 1083 行;剩余执行状态机继续保留在原模块。
|
||||
|
||||
工程首次打开可能规范化数据库。发现已知内容变化后丢弃该次枚举,只允许重试一次;仍不稳定则阻断。缓存仅精确排除 `database/cdbsvr/{log,plog,events}` 运行审计目录,权威数据库及图页仍校验内容哈希;初次无法取得指纹时允许一次全新、不缓存的枚举。
|
||||
|
||||
## 真实替换对照
|
||||
|
||||
工程为 CBB `1GPHY_8211.prj` 的两份独立副本;同页 `RL02` 与 `RL05` 分两步执行,分别测试 NC 同步开、关。旧料号 `4100-CA3300-T7`,新料号 `4100-CA3300-2200`。两种方式均独立重新枚举确认:2 个选中位号改为新料号,11 个未选中位号保持旧料号。
|
||||
|
||||
| 指标 | 原单步方式 | 会话复用 |
|
||||
| --- | ---: | ---: |
|
||||
| 整个队列 | 113.175 秒 | 100.641 秒 |
|
||||
| 第一步 | 64.371 秒 | 56.797 秒 |
|
||||
| 第二步 | 47.418 秒 | 41.168 秒 |
|
||||
| worker 启动次数 | 2 | 1 |
|
||||
| OpenProject 调用次数 | 4 | 3 |
|
||||
| 成功保存并重开验证 | 2 | 2 |
|
||||
| 独立回读核对 | 13/13 | 13/13 |
|
||||
|
||||
这一次本机样本总耗时减少 11.1%;有 CAD 缓存与机器负载差异,不能推广为所有项目的固定提升。统计含队列准备、备份和最终关闭;独立验证不计入队列耗时。逐步原生阶段耗时见 `build/session-live-20261015/{small-baseline,small-reuse}/report.json`。
|
||||
|
||||
## 图页、暂停与外部操作保护
|
||||
|
||||
PON 的 18 页清单中,连续验证 `block`、`01_POWER`、`02_ZX279133L` 三个图页,耗时分别为 16.364、4.627、10.181 秒;一个 worker,三个 `no_match` 检查点,完成 3/18 后退出会话并确认工程关闭。总计 34.737 秒,证据为 `build/session-live-20261015/multi-page/report.json`。此测试验证原生换页和中途关闭,不作为跨页实际替换成功的证据。
|
||||
|
||||
独立副本上的三项原生边界探针均通过:正常关闭自有工程;等待期间外部修改 Value 时中止并保留编辑;等待期间切换至其他工程时中止并保留其他工程。不能确认关闭时写入 `uncertain.flag`。证据为 `build/session-live-20261015/guards2/{clean,edit,foreign}/guard-report.json`。
|
||||
|
||||
PON 的原单步替换基线尝试耗时 166.381 秒,三步中一项成功、一项原生替换失败、一项保存后回读失败。失败原生报告停在 `pin_promotion_started`,尚不能证明 COM 崩溃等具体原因。本轮没有把它计作成功性能对照,也没有反复重跑状态不确定的副本。首次尝试还遇到测量脚本未传递 PYTHONPATH 的问题,修正测试脚本后才进行上述统计。
|
||||
|
||||
## 自动化回归
|
||||
|
||||
- 集成回归:224 passed,1 deselected,84.85 秒。范围为 V1.1 界面、日志、取消、工程发现,以及原 store、service、batch;单独排除千步性能用例。
|
||||
- 快照、数据库只读事务和监督器定向回归:42 passed,13.06 秒。
|
||||
- 后续增加 worker 失败后重建的回归,会话专用 6 项通过,4.90 秒;此前集成已覆盖其中 5 项。原单步执行器兼容性回归另有 34 项通过,4.52 秒;自动化去重合计 301 项通过。
|
||||
- 千步压力测试:20 个工程 × 5 页 × 10 条规则,共 1000 步,91 项保存、909 项未命中,全部任务唯一执行并正确完成,峰值 1.94 MiB。当前耗时 41.516 秒(24.09 步/秒),未通过 30 秒门槛。
|
||||
- 原基线 `bc6b726` 在同机、同一个用例、同样启用 tracemalloc 条件下的对照为 42.453 秒,也未通过 30 秒门槛。原子命令写入和事件日志在两版没有变化,快照解析不在逐步循环内;未发现新增热点导致退化。旧记录的 22.376 秒不能替代本次实测,不放宽阈值,不把耗时检查记为通过。
|
||||
- F 盘指定临时目录的一次压力尝试在第 139 步发布命令时遇到 WinError 5,安全停止,未形成完整性能数据。随后 C/F 盘各 120 次 fsync+replace 探针未复现,不能据此断言具体占用进程;保留该现场限制。
|
||||
|
||||
版本化的逐步阶段耗时、回读摘要及保护探针结果见 `docs/testing/data/2026-10-15-project-session.json`;完整原生执行证据保留在上述本机构建目录中。
|
||||
|
||||
可复用的原生测量脚本为 `tools/measure_project_session.py`,保护探针为 `tools/probe_project_session_guards.py`,多页探针为 `tools/probe_project_session_pages.py`。它们运行前要求当前 CAD 没有打开工程。
|
||||
@@ -0,0 +1,37 @@
|
||||
# 全流程审查修复记录
|
||||
|
||||
1.1.2 开发版,修复 2026-10-15 审查确认的八项问题;本轮不打包、打标签或发布。
|
||||
|
||||
| 审查问题 | 修复后的行为 |
|
||||
| --- | --- |
|
||||
| 修改规则与实际执行不一致 | 修改默认值时,更新仍沿用旧默认值的位号;保留手动新料号、NC、Value 和勾选。界面说明实际执行依据保存的位号计划。Value 开关及文本作为一组覆盖。删除或停用默认规则不删除用户已保存计划。 |
|
||||
| 本批规则实际上只作用于当前任务 | 增删改及排序在同一事务中作用于未删除的同批任务;冻结成员阻止整个修改。历史缺失规则可合并,冲突规则须显式统一;合并规则仍执行链式替换、循环校验。 |
|
||||
| 首次保存后不能补充旧料号 | 缺少请求旧料号时,重新采集既有与新增旧料号的合集;验证既有身份全部未变再扩展库存,保留编辑。BOM 预览不写数据库。 |
|
||||
| 成员变化后旧 BOM 预览无法恢复 | 新预览替换重叠范围;未重新导入的编辑保留。已删除成员保留其暂存库存及基线,恢复后可保存或通过新导入合并;永久删除才清理其草稿。 |
|
||||
| 关闭窗口静默丢草稿 | 检查所有任务的当前表格、隐藏草稿及暂存 BOM;保存全部、放弃、取消。保存全部为一个事务,任一失败整体回滚且窗口保留草稿。 |
|
||||
| 无入口恢复删除任务 | 左侧新增独立回收站按钮,支持搜索、排序、恢复、永久删除。原状态下拉框继续隐藏。新建任务后返回正常任务列表。 |
|
||||
| 原生枚举顺序变化误报工程变化 | 按图页、匹配内容及完整器件身份比较,忽略枚举顺序;拒绝重复身份及真实字段变化,保留 ICDB 全量指纹和两次读取核验。 |
|
||||
| 采集及 BOM 导入没有进度和取消 | 显示工程序号、名称及读取阶段;取消传到原生启动及监控。只读脚本先在安全边界退出,再释放自有 CAD 会话;异常清理保留诊断并阻止自动关闭。 |
|
||||
|
||||
另补齐恢复保护对 `native_replace_applied`、`pin_promotion_started` 的识别;工程继续指令因 Windows 短暂共享拒绝而读取失败时有界重试,token 与 checkpoint 校验不变。
|
||||
|
||||
## 验证
|
||||
|
||||
- 适用的完整默认回归:**260 passed,57.34 秒**。最后补充回收站中新建任务返回正常列表后,相关界面回归 **24 passed,12.79 秒**。
|
||||
- 原生控制、规则事务和会话监控专项(含默认套件之外的 worker-monitor 检查):**36 passed,11.03 秒**。
|
||||
- 子代理交叉审查发现并修复“保存全部部分提交”“恢复任务缺失暂存库存”“历史规则合并漏检链式替换”;对应回归及复审通过。
|
||||
- 真实 WSH 读取被 Windows 独占打开的控制文件:短暂拒绝后成功读取;使用真实子进程检查协作取消确认收尾,再返回结果。无 CAD 或用户工程写入。
|
||||
|
||||
本机 C 盘在首轮完整回归中已无剩余空间,SQLite 报 disk full。最终测试仅在测试进程中将 TEMP、TMP、LOCALAPPDATA 指向 F 盘隔离目录,未修改用户环境变量或清理用户文件。
|
||||
|
||||
## 七工程 CBB 复放
|
||||
|
||||
复用先前实际原生采集并核对过的库存,运行真实 Qt 导入与保存界面:
|
||||
|
||||
- 7 个工程、39 个库存位号、25 个启用目标。
|
||||
- 预览前后保存计划一致;跨任务预览、批量保存、关闭数据库并重新打开核对全部通过。
|
||||
- 输入工程哈希未变;没有启动新的 CAD 会话,没有执行本轮实际替换。
|
||||
- 本次与完整回归并行时预览 6.060 秒、保存 4.515 秒;这些受并发负载影响的数字不作为性能提升结论。
|
||||
- 完整证据:`build/cbb-review-remediation-replay-20261015/report.json`,同目录包含预览与保存后截图。
|
||||
|
||||
该复放只使用先前完整匹配的 15 条 BOM 记录。原表其余 48 条与工程信息不完整匹配的问题仍需核对数据;本轮没有猜测位号或伪造匹配。此前出现过的 COM 服务器异常亦未据此宣称根因已修复。
|
||||
@@ -0,0 +1,42 @@
|
||||
# 1.1.2 工作区与结果展示优化验证
|
||||
|
||||
本轮为开发版迭代,不打包、不新增 tag 或 release。
|
||||
|
||||
## 已修复
|
||||
|
||||
- BOM 校验报告按导入发起批次归属;跨批次隐藏,切回同批任务恢复。导入回调捕获批次,不按回调时的选中任务猜测归属。
|
||||
- BOM 数量摘要留在主界面,详细报告和执行日志可独立打开、关闭,不再挤占位号表。重新打开已完成任务不强制展开日志。
|
||||
- 上方保留本批规则与位号计划。Value 策略独立可见,表格的“新 Value”改为“自定义内容”,避免误解为实际回读值。
|
||||
- 工程路径单行省略,完整路径可通过 tooltip 和复制按钮获取;内部 quick_run_result 状态不直接显示给用户。
|
||||
- 默认 BOM 模板保持直接入口;原位号 Excel 导入/导出收进菜单。批量替换/保留明确作用于当前工程或搜索可见行。
|
||||
- 位号表支持表头排序,排序/筛选后的编辑、勾选和批量修改仍映射原始 UID;QTableView 使用一致的表格和选中样式。
|
||||
- 执行确认说明更新为当前受监督私有桌面方式,要求待处理工程不被其他 CAD 会话占用。
|
||||
- 结果窗口显示日志页内实际执行回读的图页、位号、旧料号、回读料号和核验状态。失败、未命中及未执行计划不生成成功记录;每页结果视图最多显示最近 500 条,完整日志可翻页。
|
||||
- 日志序号仅在文件身份、大小、mtime、ctime 均未变化时复用;外部追加、替换、轮转或写入失败后重新读取。缓存最多 64 个文件,保留原有 flush/fsync。
|
||||
|
||||
## 界面复放
|
||||
|
||||
默认回归套件:313 passed,261.25 秒。最后补充的无数据行表头错误用例及相关 BOM/结果用例:12 passed,10.45 秒;结果/日志末尾微调:10 passed。未为样式修改重跑 CAD 或重复整套测试。
|
||||
|
||||
执行命令:
|
||||
|
||||
```powershell
|
||||
python tools/probe_workspace_layout.py --source build/bom-native-roundtrip-fixed-20261015 --output build/ui-workspace-final-20261015
|
||||
```
|
||||
|
||||
脚本只复制历史测试数据库与证据进行复放,不启动 CAD。原测试数据库 SHA-256 未变化。
|
||||
|
||||
- 使用含 302 字符工程路径的两工程真实执行证据。
|
||||
- 1280×880 与 980×700 均检查;窄窗口位号表 viewport 为 135 像素(修复前为 0),最小尺寸提示高度从 850 降为 650。
|
||||
- 执行、开始新一轮、BOM 模板、Value 开关均在主窗口范围内;表格与下方批量按钮无重叠。
|
||||
- 跨批次无前批工程报告残留,切回恢复报告。
|
||||
- 实际结果页显示 RV05:4100-CA0000-T0 → 4100-CA0000-T7,状态为已保存并核验。
|
||||
- 截图与机器可读结果位于上述 output 目录。历史列宽设置会继续保留,窄窗口可横向滚动。
|
||||
|
||||
## 性能边界
|
||||
|
||||
千步原测试:20 工程 × 5 图页 × 10 规则,模拟执行器并启用 tracemalloc。共 1000 步,91 saved、909 no_match,顺序与唯一编号断言全部通过。
|
||||
|
||||
本次耗时 **33.387 秒,29.95 步/秒,峰值 2,201,853 字节**。原 `<30 秒` 性能断言仍失败,未调整阈值。定位证据 `build/queue-before.prof` 显示文件 open/stat、原子发布和持久写入为主要开销;文件锁与同步盘环境会影响耗时。此次序号缓存减少重复尾部读取,不能据此声称整体吞吐已达标。未移除持久写入或核验保护。
|
||||
|
||||
COM 启动偶发阻塞的根因和跨进程采集缓存仍待独立优化;本轮没有扩大启动时限,也没有减少采集一致性检查。历史日志没有单独记录的实际 Value 不由计划或库信息推算。本轮采用真实执行证据复放验证界面,原生替换与私有桌面释放沿用此前的实机验证证据。
|
||||
@@ -0,0 +1,29 @@
|
||||
# 操作状态审查修复
|
||||
|
||||
基于 `2ddfd1a`,修复审查确认的五项问题,保留现有任务执行和 CAD 核验流程,不重新打包发布。
|
||||
|
||||
## 行为变化
|
||||
|
||||
1. 批次 A 失败、B 暂停后,A 的“重试失败项”准备成功会使窗口缓存的旧批次编号失效。下次顺序执行建立新批次,A 的重试会被执行;准备失败则保留原编号。旧批次检查点保持原样,继续保存当时的结果。
|
||||
2. 通用工作线程通过 `ui/operation_state.py` 的不可变状态维护开始、进度、取消中、成功、已取消、失败。开始新操作立即清除旧操作反馈;成功先设置默认结果,再允许回调提供导出路径、BOM 报告或执行结果等具体反馈。
|
||||
3. 普通位号采集取消后,在工作线程结束时刷新终态,防止继续显示“正在取消”。停止请求与真实异常并存时,真实异常优先。界面是否可再次操作仍取决于实际工作线程完成收尾。
|
||||
4. 日志的历史/最新模式只在目标页读取成功后提交,失败保留现有正文、模式和游标,自动追加不会把历史页冒充最新页。
|
||||
5. 任务读取改用 `ContextReadPhase`。读取失败显示失败状态,并将原“重新读取工程”按钮改为“重试读取任务”;重试走任务上下文查询,成功后恢复正常按钮与反馈。
|
||||
|
||||
BOM 的细分阶段继续由 `BomImportMachine` 维护,通用操作状态负责工作线程生命周期。数据库任务状态、批次检查点和 `LatestQuery` 轮次隔离继续各自承担原有职责。
|
||||
|
||||
## 回归证据
|
||||
|
||||
- 新增用例先在修复前复现:7 失败、1 通过;通过项验证“重试准备失败不得清除旧批次”。
|
||||
- 批次与日志修复:2 项 UI 批次回归通过;日志切换、队列顺序/暂停/冻结输入检查、日志分页共 15 项通过。
|
||||
- 通用状态和任务读取接入后,首轮 37 项定向回归通过。
|
||||
- 另外补充“通用收尾不能覆盖导出路径”的回归,先失败后修正,确保成功回调的专用反馈得到保留。
|
||||
- 最终执行以下命令:**104 passed,34.42 秒**。以上各轮有重叠,不累加计数。
|
||||
|
||||
```powershell
|
||||
python -m pytest -q tests/v1_1/test_ui_operation_lifecycle.py tests/v1_1/test_ui_batch_retry.py tests/v1_1/test_task_log_transition.py tests/v1_1/test_bom_import_state.py tests/v1_1/test_bom_import_report.py tests/v1_1/test_bom_batch.py tests/v1_1/test_ui_remediation.py tests/v1_1/test_ui_workspace.py tests/v1_1/test_ui_responsiveness.py tests/v1_1/test_query_cancellation.py tests/v1_1/test_lazy_components.py tests/v1_1/test_log_pages.py tests/v1_1/test_task_queue.py
|
||||
```
|
||||
|
||||
环境为系统 Python 3.12、offscreen Qt、隔离测试数据库与目录;CAD 执行使用模拟实现。未读写用户原工程或既有验收数据库。只读代理复核了批次、BOM、取消、关闭保存、日志与任务重试调用链,未发现额外缺陷。
|
||||
|
||||
另用真实 `TaskStore`、`TaskCenterService`、`QuickRunPreparer` 和 Qt 重试回调复放批次问题,仅替换 CAD 执行函数:初次结果为 A 失败、B 暂停;准备失败时缓存编号保留,准备成功后编号清除且 A 待执行;继续批次后调用顺序为 `A,B,A,B`,A/B 均完成,A 的待执行队列已清空,原检查点文件内容保持不变。隔离证据保存在 `build/test-temp-remediation/audit-retry-fixed-ut3cnbg8`。
|
||||
@@ -0,0 +1,20 @@
|
||||
# 私有桌面释放实机反馈与诊断补齐
|
||||
|
||||
反馈包中的程序和脚本哈希均与已发布 V1.1.2 一致。两次 BOM 导入已完成只读位号采集,工作线程记录 `finished / safe_stop=true`,随后在 `confirm_desktop_released` 的两秒枚举确认中失败,最终报 `inventory_cleanup`。反馈没有进入正式替换,未保存位号计划。
|
||||
|
||||
将反馈 BOM 与采集快照在隔离数据库中离线复放,得到一条通过的替换行、四个唯一位号目标、零保存记录。原反馈文件和数据保持原样。
|
||||
|
||||
确定的代码缺陷是 `IsolatedCadSession.__exit__` 中后发生的桌面错误会覆盖此前正常退出阶段的错误。因此现有日志无法排除“CAD 正常退出先失败”的情况,也不足以确定桌面残留的实际持有者。
|
||||
|
||||
本次调整仅补齐诊断:
|
||||
|
||||
- 按 `orderly_shutdown`、`desktop_release` 保留错误列表,最终异常包含两阶段错误。
|
||||
- 保存退出 helper 与 CAD 的退出码;退出码先存内存,在既有最终记录阶段落盘,不打断正常等待。
|
||||
- 保存自有进程退出码、Job 剩余进程数、后代 PID 与未确认句柄数、进程/Job 句柄关闭状态。
|
||||
- 保存桌面句柄关闭结果,以及释放确认的耗时、预算、结果;超时另记调用进程、线程和线程桌面。
|
||||
|
||||
保持原有两秒确认预算、Job/进程退出等待和失败门禁,未将清理异常降为成功,也未删除不确定状态标记。
|
||||
|
||||
验证:新增错误覆盖回归先失败后通过;首轮私有边界、库存控制、发现缓存、BOM 报告共 96 项通过(16.70 秒)。调整退出码记录顺序后,私有 CAD 与桌面边界回归 38 项通过(9.57 秒),包括真实 Windows 桌面、自有短命进程和 Job 测试。未启动真实 CAD。只读复核确认诊断写入不再跳过原有 CAD 等待,两轮用例有重叠,不累加计数。
|
||||
|
||||
本机 Windows build 26200 上四组无 CAD 探针均正常释放,尚未复现反馈环境异常。需要补齐后的实机记录,进一步区分正常退出失败、Job 已空但仍有外部引用、以及延迟销毁;当前不宣称修复了远端桌面残留。
|
||||
@@ -0,0 +1,34 @@
|
||||
# 私有桌面释放的修复尝试
|
||||
|
||||
本次承接 [实机反馈诊断](2026-10-16-private-desktop-diagnostics.md),修改资源清理行为,未打包或发布新版本。反馈机器的桌面残留尚未在本机复现,以下改动不能作为远端根因已解决的结论。
|
||||
|
||||
## 修改
|
||||
|
||||
1. 私有 CAD 的 probe/quit helper 在 COM 反初始化前释放本地 Application 代理。此前代理保存在函数局部变量中,释放发生在 `CoUninitialize()` 之后。
|
||||
2. 异常路径也清理已退出回溯帧中的局部引用,同时遍历 `__cause__` 和 `__context__`,避免 Quit 或身份校验失败时被调用帧继续持有代理。保留原异常类型、消息、堆栈位置和异常链;遍历有循环保护。
|
||||
3. 桌面消失确认的最大预算从 2 秒调整为 5 秒,每次枚举确认消失后立即返回。没有固定增加正常操作耗时。超过预算仍报错,仍保留 `uncertain.flag` 和库存拒绝门禁,不终止外部占用者。
|
||||
|
||||
第 3 项针对短暂外部引用提供有限恢复机会,不能修复持续泄漏或未知进程的占用。实机旧日志不足以确认是否属于这种短暂引用。
|
||||
|
||||
## 针对性回归
|
||||
|
||||
- 真实 Windows 子进程持有测试桌面句柄约 3 秒后自行关闭:修改前因 2 秒上限失败,修改后确认桌面消失并成功返回;持有者进程仍运行,工具没有终止它。
|
||||
- 持续占用桌面:仍在有限预算内报错;测试只在 finally 中回收自己创建的子进程,随后再次确认释放。
|
||||
- 弱引用检查真实 helper 的 COM 资源顺序,覆盖正常退出、本帧拒绝退出、Quit 抛错、真实 GUID 校验拒绝、显式 cause、隐式 context。最初正常和本帧拒绝两项先失败;初次修正后另外四条异常路径先失败,再补全回溯清理。最终六项通过,并检查堆栈与异常链仍保留。
|
||||
- 最终运行私有 CAD、私有桌面、库存控制、发现缓存、BOM 导入报告五组回归:**104 passed / 29.72 秒**。未重跑完整基础测试或替换验收。
|
||||
|
||||
## 真实 CAD 检查
|
||||
|
||||
修改前先运行一个不打开工程的 CAD 会话,以及一个工程副本读取会话,两者均正常释放,因此没有将它们误报为故障复现。
|
||||
|
||||
修改后在 QApplication 的 QThreadPool 后台线程中调用真实只读工程采集。使用既有测试工程的另一份副本,读取两个旧料号,采集到 5 个真实器件。结果:
|
||||
|
||||
- 整轮 56.89 秒;CAD 启动约 34.89 秒,关闭阶段约 2.45 秒。
|
||||
- quit helper 和 CAD 退出码均为 0;Job 剩余进程为 0,已捕获后代退出句柄均已确认。
|
||||
- 桌面消失确认在首次枚举即通过,没有消耗 5 秒宽限。
|
||||
- 输入桌面前后均为 Default;受控 CAD 未成为前台,也未出现于输入桌面。
|
||||
- 界面 50 毫秒定时器最大采样间隔为 94 毫秒;测试来源工程副本的前后文件哈希一致。
|
||||
|
||||
本地证据位于 `build/feedback-investigation-20261016/qt-reader-after-remediation/`。该真实成功路径检查发生在异常回溯补全之前;后续修改仅涉及异常处理分支,异常路径由上述最终回归验证。此次没有执行 Replace Part,没有操作用户原工程。
|
||||
|
||||
只读代码复核发现并促成了异常回溯持有代理的补全;最终复核未发现新的重要问题。反馈 ZIP 和 Excel 的 SHA256 与输入记录一致,原始反馈未修改,未纳入 Git。
|
||||
@@ -0,0 +1,78 @@
|
||||
# 执行准确性逐流程审查
|
||||
|
||||
基线:`bc36289`。目标是防止漏替换、范围外修改及未经核验的成功状态;不以测试通过率等同于所有工程上的绝对准确率。只在 `build` 工程副本做实机验证,不打包发布,不修改 `feedback/`。
|
||||
|
||||
审查日期:2026-10-17 至 2026-10-19。下表的“通过”仅指列出的边界和测试,不能外推为任意工程的正确性证明。
|
||||
|
||||
## 审查矩阵
|
||||
|
||||
| 流程 | 要证明的边界 | 状态 |
|
||||
| --- | --- | --- |
|
||||
| 目录发现与任务绑定 | 一个任务只能指向已确认的工程,批次工程列不误配 | 工程绑定和多工程回归通过 |
|
||||
| BOM 读取与工程分配 | 文本料号、位号范围、重复/冲突及部分失败结果明确 | 修复数字料号静默改写;68 项 BOM 回归通过 |
|
||||
| 导入预览、保存与取消 | 未确认不落地;确认时计划、工程及文件基线未变化 | 原有事务、过期预览、取消与 UI 状态回归通过 |
|
||||
| 原生/CAD 位号采集 | 实例生效值、全量范围、读取异常不当作不存在 | 修复 FindAttribute/InstanceValue 异常被吞,实际不存在仍可返回空 |
|
||||
| 精确位号队列 | 任务、图页、UID、旧料号、旧 Value、选项与执行输入一致 | 修复恢复写入前 UID/位号未严格核对;反例通过 |
|
||||
| 原生替换 | 选中库身份、实际物料属性与原 UID 一致 | 正常、轮询和恢复统一核验选中库行;不再用位号代替丢失 UID |
|
||||
| 几何、显示、Value 与 NC | 只改已授权字段,NC 与显示策略可独立验证 | 各 Value 策略、NC 和显示恢复回归通过;两项实机保存重开通过 |
|
||||
| 引脚和网络 | 不用网络名称/数量相同代替逐引脚对应 | 修复遗漏 Net UID;删除仅比网络数量的降级路径;反例通过 |
|
||||
| 未选中器件 | 属性、几何、样式及连接均保持原状 | 全范围新增 X/G 完整状态证据,移位/样式/网络/缺引脚反例通过 |
|
||||
| 保存关闭与重开 | 磁盘读回仍等于已核验目标,不以当前值相互自洽代替预期值 | 保存前捕获已认证库字段,重开精确比对;两项实机读回通过 |
|
||||
| 备份、取消、超时、恢复 | 备份有效;未核验修改阻止后续执行;恢复证据绑定当前队列 | 修复备份未校验内容与工程身份;33 项队列/备份回归通过 |
|
||||
| 已完成重跑、UI 结果与释放 | 状态不能串轮次/任务;释放不确定不能报完成 | 修复工程缺失误计 completed/失败0;重跑、UI、释放回归通过 |
|
||||
|
||||
## 已修复的准确性缺陷
|
||||
|
||||
1. Excel 数值 `123` 配合 `000000` 格式显示为 `000123`,原导入会改成 `123`。旧、新料号现在只接受文本;错误注明行号。模板已有工程行和首个编辑行显式设置文本格式及自动换行,不新增 500 行空白实体。
|
||||
2. 正常替换仅要求 Part Name/Part Label 非空,恢复又对字段忽略大小写。现在各生产调用均绑定选中库行,精确核验字段,`1m` 与 `1M` 不等价。
|
||||
3. Python 恢复允许以同名位号替代消失 UID;VBS 手动恢复也可能按位号/位置找到另一个器件后写属性。现在在恢复写入前必须匹配原 UID 和位号。
|
||||
4. FindAttribute 和 InstanceValue 的 COM 读取异常原来可能被当成属性缺失或继承值,导致漏采集/no_match。现在传播异常并停止;真正不存在或空实例值的继承语义保留。
|
||||
5. 原连接校验丢弃 Net UID,且源引脚号为空时可仅按网络名数量放行,无法识别物理引脚接网互换。现在保留 UID+名称,要求逐引脚物理对应,仅允许公共平移;无法证明就拒绝。
|
||||
6. 原未选中保护只有六个字段,部分全量模式还跳过保护。现在所有范围采集 U7 加 X/G 扩展,覆盖位置、方向、缩放、引脚网络、全部属性值及样式;每次验证刷新组件/引脚代理。合法零引脚注释有显式 `NO_PINS`。
|
||||
7. 保存后原校验可能让错误的 Part Label 和 Value 互相“证明”。现在独立保留已核验库字段,恢复后和保存重开后精确比较。
|
||||
8. 工程文件执行前消失会写 batch_skipped,却未计入失败,还可能写成“未命中”。现在失败数、任务结果及日志一致。
|
||||
9. 原备份恢复只看 manifest 外壳。现在核验工程/目录身份、文件全集、大小、SHA256、读文件句柄和路径身份,拒绝 junction/链接/hardlink、缺失及额外文件。备份损坏或状态丢失后有执行证据时停止,不能用已部分修改的工程伪造“原始备份”。
|
||||
|
||||
## 验证记录
|
||||
|
||||
- 安全与 UI/队列回归:`tests/v1_1` 加 `test_verification.py`、`test_execution_safety.py`、`test_application.py`、`test_batch.py`,排除单独记录的 1000 步性能例:**594 passed / 1 deselected,138.68 秒**。
|
||||
- 原生身份、等待、恢复和 VBS 联合回归:**154 passed,43.36 秒**。随后补充 UID/位号写前守门,两项均先失败;VBS/Value/原生替换三个文件最终 **122 passed,36.35 秒**。真实 `cscript` 执行与全文件 Option Explicit 编译不启动 CAD。
|
||||
- BOM 专项:**68 passed,60.64 秒**;备份和任务队列专项:**33 passed,8.43 秒**。以上集合有交集,不相加声称总覆盖量。
|
||||
- 原 1000 步性能测试仍未满足 `<30 秒`:隔离提取 `bc36289` 基线 **35.83 秒**,本轮 **35.72 秒**,两者在速度断言之前的队列结果断言通过,速度阈值失败,后续内存断言未执行。未修改测试阈值,不能报告全部测试通过。
|
||||
- 2026-10-17 的正式队列因会话中断仅留到 `query_components`,不计为验收;进程已不存在,独立确认该私有桌面释放。2026-10-19 在新副本重跑。
|
||||
- 首轮 BOM 反例遗漏外部采集拦截,误启动过一次测试私有 CAD;未进行替换/保存,进程退出后独立确认桌面释放。随后补齐严格 tripwire,错误 BOM 在外部采集前拒绝。
|
||||
|
||||
原始证据位于忽略目录 `build/accuracy-audit-20261017/` 和 `build/accuracy-formal-bom-20261019/`,不提交工程数据或厂商二进制。
|
||||
|
||||
## 兼容性与验收边界
|
||||
|
||||
- 没有 X/G 完整未选中证据的历史快照仍可解析,但拒绝直接认定完整自动恢复成功,需人工核验;不能为兼容旧记录放宽准确性守门。
|
||||
- 更换不同符号几何、网络 UID 重建等场景可能被严格校验拒绝。这是明确失败,不能降级为只比较网络名或数量后报告成功。
|
||||
- 保留 BOM 的既有合并语义:未列出的位号保留原编辑与勾选,不擅自清空整批计划。
|
||||
- 本轮实机只覆盖下列明确记录的工程、器件及模式,不能代替多单元器件、复杂层级、所有工程/库版本的专项认证。取消、崩溃、损坏备份等故障主要通过隔离反例覆盖。
|
||||
- 本轮不打包、不发布,不启用研究型无弹窗替换后端,不改 `feedback/`。
|
||||
|
||||
## 正式 BOM 实机流程
|
||||
|
||||
新副本 `build/accuracy-formal-bom-20261019/project/Audio_D2128.prj`:创建任务 → 导出默认 BOM → 填入两项 → 数字料号报告 1 行失败/1 行未核验且未保存 → 改为文本后两行通过,预览仍未写入 → 确认计划 → 正式队列执行 → 每项保存重开 → 独立原生读回 → 独立 ASCII 层级/扁平图对比。
|
||||
|
||||
| 项目 | 结果 |
|
||||
| --- | --- |
|
||||
| RV05 | `4100-CA0000-T7 → 4100-CA0000-T0`,Value=`0R`,原 UID 保留 |
|
||||
| RV14 | `4100-CA1030-T7 → 4100-CA0000-T0`,Value=`0R/NC`,原 UID 保留 |
|
||||
| 同旧料号的 RV11/RV08/RV19 | 料号、Value、UID 均保持不变 |
|
||||
| 队列结果 | saved=2、failed=0、no_match=0,任务 completed |
|
||||
| 独立层级和扁平对比 | 各 57 个器件、103 个引脚、22 个网络;其余 55 个器件全部导出字段相等;所有引脚接网与网络图相等 |
|
||||
| 目标器件差异 | 仅 Part Number/Part Name/Part Label/Value,以及原未赋引脚号提升为库引脚号;引脚类型、宽度、网络保持不变 |
|
||||
| 私有桌面 | 3659 次采样,未成为主桌面前台;主桌面保持 Default;自有 CAD 退出、桌面消失,无观察错误 |
|
||||
| 源工程 | 原始 `.prj` 与 `icdb.dat` 前后 SHA256 不变;全部写入仅发生在新副本 |
|
||||
| 耗时 | 两项正式队列 799.50 秒,不含模板/BOM 和独立导出 |
|
||||
|
||||
运行使用启动时复制的 VBS,覆盖完整未选中检查、严格网络和保存库身份核验。运行期间源码后补的两项为逐器件进度反馈、恢复写前 UID/位号守门,分别经功能回归和真实 cscript 反例验证;没有修改正在运行的副本脚本。实际保存结果的 UID/位号亦经独立读回核对一致。
|
||||
|
||||
## 尚未满足的发布条件
|
||||
|
||||
1. **完整验证耗时过高。** 当前串行多次读取全部未选中器件,57 个器件的两项替换达到 13 分 19.5 秒。阶段心跳已补齐,避免长时间没有反馈;后续应减少没有中间 CAD 写入的重复读取或改用经过验证的更快接口。不能直接删掉范围外保护来恢复速度。
|
||||
后续重复步骤修复的同源工程实测已降至 **403.625 秒**,减少 **49.52%**,仍未达到建议的 180 秒目标;详见 [重复步骤扫描与修复](../reviews/2026-10-19-execution-duplicates.md)。本报告的 799.50 秒保留为该优化之前的真实基线。
|
||||
2. **PCB 封装映射未获得完整证明。** 独立扁平导出中目标 Part Name 为 `RESC1608N`,而 Cell Name 仍为原来的 `RESC1005N_0402`;层级导出 Cell Name 为空。这至少说明仅核验 Part Name 不能证明最终 PCB Cell 已同步。尚未认证该值的库映射/缓存/实例继承来源,本轮未擅自清空或改写;实际 PCB 封装同步不在本次通过结论内。
|
||||
3. 原 1000 步性能阈值仍失败,复杂层级、多单元、多 gate 及不同符号拓扑未完成同等实机认证。**因此本轮结论为准确性守门已显著补强、已记录样本验证通过,不是全场景 100% 或发布验收通过。**
|
||||
@@ -0,0 +1,27 @@
|
||||
# 目标快照原生采集验收
|
||||
|
||||
本次将目标器件原有 C/A 完整快照放到原生脚本宿主读取,与未选器件 U/G 通过一个关联 NR2 帧返回。保存前和重开后的 NR1 校验保持原字段。派发后的超时、截断、UID/工程/图页或旧料号/位号/Value 不一致均停止,不回退到另一次读取掩盖差异。
|
||||
|
||||
## 验证
|
||||
|
||||
- `tests/v1_1/test_native_selected_capture.py`、`test_native_snapshot_reader.py`、`test_native_worker_runtime.py`:55 项通过,16.80 秒;结果 `build/native-selected-commit-20261019.xml`。
|
||||
- 先前相关回归 301 项通过、1 项因 C 盘临时文件空间不足失败;该项在 F 盘重跑通过。原失败记录保留,不将原批次标为全绿。
|
||||
- 独立代码审查未发现 Critical/Important 问题。
|
||||
|
||||
实机全部使用 build 下的新工程副本与自有私有桌面。相同 BOM 两项:RV05 的 `4100-CA0000-T7`、RV14 的 `4100-CA1030-T7` 替换为 `4100-CA1020-T7`;保存后分别为 1K、1K/NC。该目标料号允许原实例封装 `RESC1005N_0402`。
|
||||
|
||||
基线使用提交 `5ad0c66` 的两份 VBS,运行时源码哈希记录于 baseline report;原生版本使用本次源码。两个版本均通过导出默认 BOM、故意填错后拒绝导入、修正导入、按位号执行、逐项保存与独立回读。
|
||||
|
||||
- `build/selected-capture-formal-{baseline,native}-20261019-v2/report.json`:两项均保存通过,源工程哈希不变。
|
||||
- 首项快照去除工程路径所在的 M 行后,120 行完全等价。
|
||||
- 层次与扁平 ASCII 图比较:57 个器件、103 个引脚、22 个网络;55 个未选器件完整状态不变,目标连接和网络不变;两个版本的最终图完全等价。
|
||||
- ASCII 实例层确认 RV05、RV14 均保留合法的 `RESC1005N_0402` 实例值。层次导出的 Cell Name 基础值为空,不能仅用该层空值判断有效封装。
|
||||
- 两份 desktop-observation 均确认主桌面未切换、CAD 未占前台,自有 CAD 和桌面已释放。
|
||||
|
||||
## 速度结论与边界
|
||||
|
||||
单个 RV05 的完整 7 行快照,在同一只读会话内:原生 0.109 秒、重复原生 0.110 秒、外部 COM 5.343 秒,字节内容一致。此数字只表示局部采集差异。
|
||||
|
||||
完整两项流程本次基线 **207.172 秒**、原生 **228.265 秒**。本次未证明端到端提速;运行期间另有隔离库研究进程,启动和环境耗时也在总数中,不据此推算速度收益。保留本次结果,不沿用旧跨封装样例的耗时作为对照。
|
||||
|
||||
本次合法同封装样例不认证跨封装正确性。跨封装需要规则中明确选定目标 Cell、权威库映射、显式实例赋值,以及保存前和重开后的对应校验;该功能按单独计划继续实现。
|
||||
@@ -0,0 +1,78 @@
|
||||
# 可选封装与候选发布验收
|
||||
|
||||
## 本轮要求
|
||||
|
||||
用户确认三项:目标封装可选;排查并清理回归失败项;从最终冻结候选 ZIP 解压后验收 BOM、替换保存、旧数据升级及后台资源释放。本轮不创建远端 Release、不覆盖 V1.1.2 附件,不修改原工程或中央库,不改未跟踪 feedback。
|
||||
|
||||
未指定封装时,工具不读封装目录、不主动覆写 Cell Name,可后续与中心库同步;原生 Replace Part 本身可能更新库关联属性,不承诺封装始终保持旧值。明确选择封装时继续核验完整库证据、写入并保存重开检查。
|
||||
|
||||
## 回归失败归因与处理
|
||||
|
||||
| 原失败 | 原因及处理 | 证据 |
|
||||
| --- | --- | --- |
|
||||
| 构建检查 3 项 VBS 保护失败 | 抽取生产函数的测试夹具漏载新增 QPTargetCell,出现 VBScript 类型不匹配;补载真实函数,保留全部原断言 | release-candidate-gate-initial-20261019.xml;release-safety-fixes-20261019.xml |
|
||||
| 旧彻底删除租约检查 | 旧测试要求执行期间绕过互斥,现有安全规则禁止修改;改为锁内拒绝、关系不变、释放后正常删除 | release-delete-final-20261019.xml:8 passed;包含 3 项未决队列证据保留 |
|
||||
| 旧队列功能检查 | 重新运行,无当前失败,不因历史报告改动生产队列 | release-legacy-quick-run-initial-20261019.xml:34 passed;批处理功能初跑 59 passed,另有租约及性能失败 |
|
||||
| 旧 UI 导入错误和 42 项失败 | 引用了已移除导出、QTableWidget 工程链表、扫描/手动跳过/单次无备份按钮、内嵌日志、同步读取、重叠 mutation worker;迁移到当前单工程任务、QTableView、目录创建弹窗、可回收日志窗口与串行 mutation 语义 | release-legacy-ui-initial-20261019.xml;release-ui-migrated-final-20261019.xml:23 passed |
|
||||
| 销毁窗口后后台回调 | 补回销毁测试后发现真实缺陷:success/failed/finished 闭包访问已删除控件;增加 QObject 有效性检查,结束时仍移除 worker,禁止触碰已删除控件 | release-ui-destruction-20261019.xml 为失败记录;release-ui-lifecycle-final-20261019.xml:54 passed,含成功/失败两个销毁场景 |
|
||||
| 初次构建无法收集 XLSX 测试 | 仓库 .venv 缺 openpyxl,构建安全停止;后续明确使用依赖齐全的安装版 Python 3.12,不跳过构建检查 | release-candidate-build-20261019.log 保留失败;后续构建另存日志 |
|
||||
|
||||
以上检查范围有重叠,不相加当独立总数。旧 UI 的 47 个用例没有被称为全部修复后逐项通过:已移除界面不再保留对应布局断言,仍有效的功能和安全意图迁移到当前 UI;新的 tests/ui 共 25 项(23 项加两个销毁分支)。没有 skip、xfail、放宽性能阈值或删掉有效证据保留检查来制造通过。
|
||||
|
||||
## UI 迁移覆盖对照
|
||||
|
||||
| 原意图 | 当前检查位置 |
|
||||
| --- | --- |
|
||||
| 读取/选择工程与位号、BOM 原地编辑 | tests/v1_1/test_project_task_ui.py;test_ui_workspace.py |
|
||||
| 搜索、排序、回收站和确认删除 | tests/v1_1/test_ui_remediation.py;tests/ui/test_permanent_delete_ui.py |
|
||||
| 确认前不执行、未命中完成、Value 策略变化停止旧确认 | tests/ui/test_trial_task_center_workflow.py |
|
||||
| 规则勾选持久化、任务 Value 独立 | tests/ui/test_trial_task_center_workflow.py;test_value_options_layout.py |
|
||||
| 已完成任务状态、重试、重复执行新轮次 | tests/v1_1/test_ui_batch_retry.py;test_new_round.py |
|
||||
| 任务切换丢弃旧查询、执行期间只读浏览、归属不丢失 | tests/v1_1/test_ui_responsiveness.py |
|
||||
| 常规 mutation 禁止重入,退出等待安全收尾,强制销毁回调 | tests/ui/test_trial_task_center_workflow.py;tests/v1_1/test_ui_remediation.py |
|
||||
| 错误编号及日志格式、按需创建/关闭/重新打开日志 | tests/ui/test_execution_feedback.py;tests/v1_1/test_lazy_components.py;test_execution_results_view.py |
|
||||
| 小窗口和布局持久化 | tests/ui/test_value_options_layout.py;tests/v1_1/test_ui_workspace.py |
|
||||
|
||||
## 验收进度
|
||||
|
||||
源码修复与相关回归已完成。最终构建检查 692 passed;UI 生命周期相关 54 passed;队列与恢复相关 122 passed(千步性能单独执行)。这些检查范围存在重叠,不合并计数。
|
||||
|
||||
冻结候选 e2f76c3 的 BOM 实际操作已通过:两工程导出原 11 列模板,错误清单报告通过 2 / 失败 1,修正后报告通过 2 / 失败 0;确认保存后只有 RV05 启用,RV11 保留。两工程原生 CLI 采集与私有桌面清理有独立记录。真实 1.1.1 数据升级保留 2 个任务、1 条规则,未选封装迁移为空,原数据库哈希不变。
|
||||
|
||||
首次冻结替换在 DxDataBook 读取目标行时超时,两份副本均关闭未保存,未提交原生替换。后续只读 MTA/STA 探针未发现 UIA 异常,原生列表计数确为 0。检查发现验收夹具仍引用不存在的 S:\\mentor_lib.lmc,属于副本准备漏重绑定;不能据此认定冻结 UIA 接口失效。保留首次失败及诊断证据,另建 v2 副本并复制独立中央库后重验。STA 诊断脚本还出现大输出阻塞管道而超时,最终 Job 与桌面已释放;此记录不计为产品验收通过。
|
||||
|
||||
验收工具同步补齐:BOM 检查所有 CLI 尝试的资源清理,不能被后续成功记录掩盖;执行阶段读取本次新队列检查点,遇 failed/blocked/skipped 立即失败,不能只等待可能保留 RUNNING 的任务状态。相关反例先失败、修复后 10 passed;未修改产品任务状态语义。
|
||||
|
||||
修正夹具后的 v2 冻结验收通过:两工程(路径 370 / 143 字符)均完成替换及保存重开核验,执行总耗时 278.312 秒。独立新 CAD 回读证实 RV05 改为新料号、Part Label 与 Value 为 0R,RV11 料号与 Value 未变。层次与展开网络均比对 57 个器件、103 个引脚、22 个网络,除目标属性外其余 56 个器件、引脚与网络连接不变。日志窗口和新一轮检查通过;1221 次执行观察中主桌面未切换、文件均可读,自有 CAD 未出现在主桌面,进程及私有桌面已释放。原工程与中央库跟踪的 1033 个文件哈希均未变。完整证据在 build/packaged-optional-acceptance-20261019-v2。
|
||||
|
||||
独立千步模拟初测 40.90267 秒,未通过小于 30 秒的原门槛。审查确认并移除重复工作:同次队列准备对重复工程路径先去重;日志轮转正常分支合并 exists/stat,异常分支保留 pathlib 平台语义;已有日志目录先检查,避免重复失败的 mkdir。没有改 fsync、原子提交、逐步事件、实时身份戳或门槛。优化后独立模拟 22.52262 秒、峰值 2210321 字节,通过原门槛;这不是实际 CAD 替换速度。长路径、事件缓存、轮转与日志异常语义共 24 项通过。
|
||||
|
||||
上述 v2 冻结实机证据对应 e2f76c3 的产品代码,作为历史验收保留。以下为包含文件操作优化的最终冻结结果。
|
||||
|
||||
## 最终冻结结果
|
||||
|
||||
最终产品源提交为 e6ec267a26efedbab796207b8044533d02222350,构建检查 700 passed、1 条 pywinauto COM 模式提示。最终 EXE 的 8 个关键模块编译码与源码逐一核对一致,两个 VBS 与源码哈希一致。实际使用 ZIP 解压后的 EXE,未通过源码 GUI 代替最终包验收。
|
||||
|
||||
| 检查 | 最终结果 |
|
||||
| --- | --- |
|
||||
| BOM 模板与导入 | 保持 11 列;错误清单通过 2 / 失败 1,用时 6.203 秒;修正后通过 2 / 失败 0,用时 3.438 秒;保存前不写入计划 |
|
||||
| 两工程顺序执行 | 路径 362 / 135 字符;两工程只替换 RV05,封装均留空;原生事务不含 target_cell 或 cell_catalog;保存重开核验成功,共 167 秒 |
|
||||
| 独立属性回读 | 全新私有 CAD 分别读取磁盘工程,RV05 为新料号且 Part Label / Value 均为 0R,RV11 旧料号、Value 与 UID 不变 |
|
||||
| 独立网络比对 | 每工程层次及展开网表各核对 57 个器件、103 个引脚、22 个网络;其余 56 个器件及全部连接不变,仅允许目标属性及已知引脚号显式化 |
|
||||
| 完成后操作 | 替换结果与日志可打开、关闭后再打开;开始新一轮归档两份旧计划,任务恢复草稿,旧证据保留 |
|
||||
| 1.1.1 升级 | 复用由真实旧 EXE 创建的旧夹具副本,由最终冻结 EXE 执行迁移;保留 2 个任务、1 条规则及原字段,封装迁移为空,旧数据库不变 |
|
||||
| 后台资源与主桌面 | 执行期间 777 次观察均能读文件,主桌面保持 Default;自有 CAD 未进入主桌面或前台;执行及独立读取的 CAD、Job 和私有桌面确认释放,主 GUI 正常退出 |
|
||||
| 原始数据 | 跟踪的 1033 个原工程及中央库文件哈希均未变;测试仅修改 build 副本 |
|
||||
| 千步最终门槛 | 1000 步模拟、91 步模拟保存,含 tracemalloc,21.091375 秒,峰值低于 128 MB,通过原 <30 秒门槛 |
|
||||
|
||||
167 秒是这两工程的实测执行时间;千步模拟只测队列开销。两者不能混用,也不把历史候选与最终候选的时差全部归因于上述优化。控制器耗时包含工作进程阶段,CSV 的两层记录不能直接相加。
|
||||
|
||||
最终驱动曾因网络检查脚本移到新目录后无法导入 build/compare_speed_graphs.py 而停止。原 graph.log、退出码 1 及全部已完成阶段仍保留;修正脚本所在目录后只读续验通过,没有重复导入或替换。该历史失败及续验说明保存在紧凑证据中,未改成首次全绿。
|
||||
|
||||
本机最终冻结候选验收通过;未创建公开 Release、未覆盖 V1.1.2 附件。未声称覆盖所有机器或所有器件组合。
|
||||
|
||||
- [紧凑验收证据](evidence/2026-10-19-optional-cell-candidate.json)
|
||||
- [各阶段耗时 CSV](evidence/2026-10-19-optional-cell-timings.csv)
|
||||
- 本地完整证据及候选包:build/packaged-optional-final-20261019
|
||||
- EXE SHA256:de21d56084d9adde155311c5679fd4ea2bca7b981e42cc1748fc72dbaba32c45
|
||||
- ZIP SHA256:aee87aa879b61164731cab9914ea5c84b22f645ef016d55c915fa256db447d7b
|
||||
@@ -0,0 +1,81 @@
|
||||
# 显式目标封装:实现与验收
|
||||
|
||||
## 结果与范围
|
||||
|
||||
当前开发分支完成料号规则中的目标封装选择、持久化、BOM 计划传播、原生执行、保存重开及恢复绑定。默认 BOM 保留 11 列。没有打包、发布或更新 V1.1.2 下载附件。
|
||||
|
||||
最终源码 `ec75445` 在新工程副本中通过完整流程:规则读取候选 → 明确选择 → 导出默认 BOM → 故意填写错误并拒绝导入 → 修正导入 → 保存两项计划 → 原生替换 → 逐项保存重开 → 独立库存与 ASCII 图核对。
|
||||
|
||||
| 位号 | 旧料号 | 新料号 | 有效 Cell Name | 保存后 Value |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| RV05 | 4100-CA0000-T7 | 4100-CA0000-T0 | RESC1608N_0603 | 0R |
|
||||
| RV14 | 4100-CA1030-T7 | 4100-CA0000-T0 | RESC1608N_0603 | 0R/NC |
|
||||
|
||||
两个实例原封装均为 `RESC1005N_0402`。保存前、重开后以及独立 ASCII 实例层均确认写成所选 0603。原生报告、队列和快照绑定同一选择与源库指纹,成功日志包含 `Target Cell verified`。
|
||||
|
||||
最终两项执行 **201.015 秒**,规则候选读取 **3.766 秒**。候选来自已有、重新完整核对源指纹的真实目录缓存;缓存目录从此前验收数据复制,证据及摘要照常验证。执行前后目录读取记录始终为同一条,没有新增 LM 冷读取。
|
||||
|
||||
## 准确性与资源证据
|
||||
|
||||
- 独立层次/扁平图均含 57 个器件、103 个引脚、22 个网络;55 个未选器件的完整导出状态一致,所有引脚连接与网络一致。目标引脚只存在既有算法允许的 Pin Number 显式化,没有连接变化。
|
||||
- 最终版本与修复前已通过的跨封装版本,完整最终图一致:层次 SHA256 `32b36adbef100db505ea3d98ca628d50a94c91826d7289d90e473b3f9c864a31`;扁平 SHA256 `253fe70147fc530d47bb2e5b69001a6e48c19829bce9dcde9fc76ade87291d79`。
|
||||
- 原工程及原中央库跟踪文件 SHA256 在运行前后相同。目录源指纹为 `7b66672325b41c0915b1f4c1f8fb64b7cd2bda526e64721d85b66a17647b5d9f`,目录证据包含 86 项源依赖。
|
||||
- 主输入桌面前后均为 Default;自有 CAD 未进入主桌面或取得前台;CAD PID 61196 退出,私有桌面 `dx-4b7963f4d8a644548555f3830c5ab263` 已释放。读取库副本及 GUI 验收的进程、Job、路径别名与桌面也均确认释放。
|
||||
- 实际 T0 目录有 3 个 RES 候选:`RESC1608N_0603`、`RESC1608N`、`RESC1608N_0603_jump`。选择旧 0402 被真实目录校验拒绝;缺少选择在 GUI 执行确认和 CAD 启动前被拒绝。
|
||||
- GUI 使用真实缓存候选异步加载,初始不自动选中;手动选择成功,新料号变化立即清空选择。最终视觉核对使用自有私有桌面的 Windows Qt 窗口;[规则窗口示例](../user/media/target-cell-rule-editor.png)。
|
||||
|
||||
本地详细证据位于 `build/explicit-cell-final-bom-20261019/`:`report.json`、`independent-graph-verification.json`、`initial-final-graph-equivalence.json`、`desktop-observation.json`,以及任务目录的 `events.jsonl`、原生命令/快照/报告。ASCII 输出为 `build/explicit-cell-final-ascii-20261019/`。GUI 证据为 `build/explicit-cell-gui-acceptance-20261019.json` 和 `build/cell-ui-private-windows-20261019/desktop-cleanup.json`。
|
||||
|
||||
## 失败路径与代码检查
|
||||
|
||||
- 最后一次相关回归 **177 项通过,0 失败/错误/跳过,76.24 秒**:目录、应用入口、Cell 执行、恢复、NR2/NR1 采集、脚本组合及既有执行安全检查。记录 `build/cell-finalfix-scoped-20261019.xml`。
|
||||
- 规则/UI/数据/BOM 相关范围曾通过 138 项;BOM 先保存、后补显式规则的传播修正通过 64 项。这些范围有重叠,不相加作为独立测试总数。
|
||||
- 覆盖旧数据升级后空选择、同批传播、BOM 保留、手工新料号改动、异步过时结果、重复/截断/外来 UID、缓存缺失/损坏/源变化、非法选择、实例写入失败、有效值不符及恢复证据漂移。
|
||||
- 独立整体验收审查曾发现 1 项 Important:冷读目录与原生写入共用 120 秒硬超时;以及 1 项文档错误。已修正并完成一次复审,两项均已解决,新增 Critical/Important 为 0。[审查及实现决策](../reviews/2026-10-19-target-cell-selection.md)。
|
||||
- 原生两个目录检查现在只允许重新完整核验的缓存;缺失或无效时在替换提交前停止并提示重新读取。没有扩大原生 120 秒超时,也没有削减源指纹、字段、未选器件或磁盘核验。
|
||||
- 独立的 Python 恢复预检位于恢复 CAD 启动前,可以重新读取副本;仍须与原事务完整绑定相同,否则保留保护。该阶段不进入原生写入计时器,也不会因缓存被删除而要求使用已锁定的规则编辑器。
|
||||
|
||||
## 时序与未通过的发布门槛
|
||||
|
||||
目录读取先后两次在长标题身份检查处安全失败;诊断确认 LM 标题截断为 159 字符,并发现打开副本会改变 cfg 的时间戳。修正后仍要求完整 COM 库路径一致、源文件完整指纹一致及副本字节/大小一致。第三次正式目录读取通过,冷读 **83.935 秒**、缓存 **2.345 秒**;失败记录及清理证明均保留。
|
||||
|
||||
修复前冷缓存跨封装完整执行为 **267.375 秒**;最终版本通过规则读取并使用有效缓存后为 **201.015 秒**。二者的读库工作发生阶段不同,不能把差额当作首次使用的整体提速。目标快照局部采集对照及合法同封装两项对照见[独立报告](2026-10-19-native-selected-capture.md),同样没有证明端到端普遍提速。
|
||||
|
||||
千步模拟 worker 性能测试:分支快照 `bb506a3` 样本 **33.698 秒**、隔离旧提交 `5ad0c66` 样本 **30.063 秒**,均未通过不变的 30 秒门槛。指标保留在 `build/cell-batch-performance-comparison-20261019.json`。没有调大性能阈值来制造通过结果。
|
||||
|
||||
先前更广范围还暴露旧删除租约测试、两项旧队列测试的缺失工程路径,以及旧 UI 测试导入已移除符号的问题;本轮没有声称全仓库测试通过。冷目录扫描较慢、冻结 EXE 未验收,当前不据此宣称正式发布就绪。
|
||||
|
||||
真实新增 Cell 写入验收覆盖一个工程、两个目标位号及该中央库,配合多工程传播/交集和失败路径测试;不代表任意工程、任意中央库、Packager 或 ERC 均已获得无条件保证。
|
||||
|
||||
## 各项耗时
|
||||
|
||||
下表来自最终任务 `events.jsonl` 的两条 `execute_step` 指标。worker 阶段是采样累计时间,未覆盖全部 CAD 启动、进程通信和收尾;不能直接相加当作完整总耗时。零值表示该采样窗口未单列耗时,不表示跳过相应核验。
|
||||
|
||||
| 计时范围(秒) | RV05 | RV14 |
|
||||
| --- | ---: | ---: |
|
||||
| 步骤完整耗时 | 128.128 | 67.175 |
|
||||
| worker 启动 | 0.313 | 0.000 |
|
||||
| worker 会话初始化 | 1.094 | 0.000 |
|
||||
| 检查工程 | 0.031 | 0.077 |
|
||||
| 打开/重开工程 | 16.703 | 7.594 |
|
||||
| 打开图页 | 4.922 | 2.141 |
|
||||
| 会话就绪 | 0.047 | 0.000 |
|
||||
| 查询器件 | 0.047 | 0.047 |
|
||||
| 匹配目标 | 0.984 | 1.015 |
|
||||
| 原生快照采集/核验 | 4.782 | 4.453 |
|
||||
| 目标捕获 | 1.719 | 1.640 |
|
||||
| 原生前检查 | 0.000 | 0.000 |
|
||||
| 原生替换及 helper 核对 | 34.922 | 30.625 |
|
||||
| 恢复预检 | 0.843 | 0.688 |
|
||||
| 器件索引 | 1.797 | 1.781 |
|
||||
| 引脚索引 | 5.875 | 5.187 |
|
||||
| 属性快照 | 0.391 | 0.344 |
|
||||
| 恢复事务前检查 | 1.469 | 1.266 |
|
||||
| 恢复属性字段 | 5.000 | 4.625 |
|
||||
| 恢复属性收尾 | 0.015 | 0.015 |
|
||||
| 核验恢复 | 0.781 | 0.751 |
|
||||
| 核验属性字段 | 1.048 | 0.875 |
|
||||
| 步骤收尾 | 0.905 | 0.875 |
|
||||
| 保存/关闭 | 3.359 | 2.985 |
|
||||
| 磁盘核验阶段标记 | 0.000 | 0.000 |
|
||||
| 会话交接等待 | 0.000 | 0.000 |
|
||||
@@ -0,0 +1,485 @@
|
||||
{
|
||||
"date": "2026-10-15",
|
||||
"implementation_commit": "48ad7b3",
|
||||
"platform": "Windows / DxDesigner EE 7.9.5 / Python 3.12",
|
||||
"batch": {
|
||||
"reconstructed_from_persistent_evidence": true,
|
||||
"observer_finalization_failed": "pywintypes.error(2) was not caught; report.json was not written. Business status, per-step events and independent inventory remain available. Fixed observer used by later cases.",
|
||||
"task_id": "5efd57e0-3de1-4f9a-850f-42a5593e301b",
|
||||
"task_total_seconds": 284.20772400000715,
|
||||
"worker_starts": 1,
|
||||
"steps": [
|
||||
{
|
||||
"refdes": "RL02",
|
||||
"sync_nc": true,
|
||||
"state": "saved_ok",
|
||||
"seconds": 157.4097580999951,
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.9370000000053551,
|
||||
"session_startup": 1.422000000020489,
|
||||
"check_project": 0.046999999962281436,
|
||||
"open_project": 14.14000000001397,
|
||||
"open_sheet": 12.548000000009779,
|
||||
"session_ready": 0.046000000002095476,
|
||||
"query_components": 2.125,
|
||||
"index_components": 13.01600000000326,
|
||||
"find_components": 2.8439999999827705,
|
||||
"index_pins": 11.437999999994645,
|
||||
"snapshot_attributes": 0.75,
|
||||
"capture": 7.60999999998603,
|
||||
"before_native": 0.26500000001396984,
|
||||
"native_replace": 32.796999999991385,
|
||||
"restore_preflight": 7.139999999984866,
|
||||
"before_restore_transaction": 1.1570000000065193,
|
||||
"restore_attribute_fields": 3.0460000000020955,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.4380000000237487,
|
||||
"verify_attribute_fields": 0.7810000000172295,
|
||||
"finished": 7.2339999999676365,
|
||||
"save_and_close": 2.0940000000118744,
|
||||
"verify_saved_project": 0.0,
|
||||
"session_wait": 0.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"refdes": "RL05",
|
||||
"sync_nc": false,
|
||||
"state": "saved_ok",
|
||||
"seconds": 121.29693060001591,
|
||||
"worker_stage_seconds": {
|
||||
"check_project": 0.061999999976251274,
|
||||
"open_sheet": 10.09299999999348,
|
||||
"query_components": 1.1570000000065193,
|
||||
"index_components": 8.51600000000326,
|
||||
"find_components": 2.3589999999967404,
|
||||
"index_pins": 11.39100000000326,
|
||||
"snapshot_attributes": 0.7659999999741558,
|
||||
"capture": 12.437000000005355,
|
||||
"before_native": 0.34400000001187436,
|
||||
"native_replace": 33.95299999997951,
|
||||
"restore_preflight": 7.985000000015134,
|
||||
"before_restore_transaction": 1.0780000000086147,
|
||||
"restore_attribute_fields": 3.202999999979511,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.5000000000291038,
|
||||
"verify_attribute_fields": 0.6719999999913853,
|
||||
"finished": 16.264999999984866,
|
||||
"save_and_close": 4.219000000011874,
|
||||
"verify_saved_project": 0.01600000000325963,
|
||||
"open_project": 6.047000000020489,
|
||||
"session_wait": 0.0
|
||||
}
|
||||
}
|
||||
],
|
||||
"comparisons": [
|
||||
{
|
||||
"uid": "$1I362",
|
||||
"refdes": "RL02",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"uid": "$1I551",
|
||||
"refdes": "RL05",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"uid": "$1I559",
|
||||
"refdes": "RL06",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I567",
|
||||
"refdes": "RL07",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I575",
|
||||
"refdes": "RL08",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I583",
|
||||
"refdes": "RL09",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I584",
|
||||
"refdes": "RL10",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I585",
|
||||
"refdes": "RL11",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I586",
|
||||
"refdes": "RL12",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I615",
|
||||
"refdes": "RL13",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I616",
|
||||
"refdes": "RL14",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I617",
|
||||
"refdes": "RL15",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"uid": "$1I618",
|
||||
"refdes": "RL16",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
}
|
||||
],
|
||||
"session": {
|
||||
"desktop": "dx-0e24d247e2bb44fc9d2cfb865751d03b",
|
||||
"token": "0e24d247e2bb44fc9d2cfb865751d03b",
|
||||
"state": "released",
|
||||
"cad_pid": 26884,
|
||||
"guid": "{AC2760DDx0ECCx4125x902Ax58D3762F7FD0}",
|
||||
"clean": true
|
||||
}
|
||||
},
|
||||
"single_and_recovery": {
|
||||
"single_step_seconds": 168.76488050000626,
|
||||
"single_step_state": "saved_ok",
|
||||
"recovery_seconds": 104.99790590000339,
|
||||
"recovery_state": "restored_ok",
|
||||
"single_step_session": {
|
||||
"desktop": "dx-ef24499c663e4059bb88ca4c5480428b",
|
||||
"token": "ef24499c663e4059bb88ca4c5480428b",
|
||||
"state": "released",
|
||||
"cad_pid": 5188,
|
||||
"guid": "{E07B201BxC81Dx4624xB0D2xE684F407C972}",
|
||||
"startup_seconds": 34.312999999994645,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.8590000000258442
|
||||
},
|
||||
"recovery_session": {
|
||||
"desktop": "dx-b09cc37f113e48abbe4f1e8a6fbc493b",
|
||||
"token": "b09cc37f113e48abbe4f1e8a6fbc493b",
|
||||
"state": "released",
|
||||
"cad_pid": 51976,
|
||||
"guid": "{6418A6B6x512Bx434ExAC8Ax7C518FCFAA9E}",
|
||||
"startup_seconds": 21.98399999999674,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.9689999999827705
|
||||
},
|
||||
"comparisons": [
|
||||
{
|
||||
"refdes": "RL02",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL05",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL06",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"refdes": "RL07",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL08",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL09",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL10",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL11",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL12",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL13",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL14",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL15",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL16",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
}
|
||||
],
|
||||
"verified": true
|
||||
},
|
||||
"pause": {
|
||||
"project": "F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\private-desktop-native\\pages-pause\\project\\PON.prj",
|
||||
"steps": [
|
||||
{
|
||||
"sheet": [
|
||||
"PON",
|
||||
"block"
|
||||
],
|
||||
"state": "no_match",
|
||||
"seconds": 46.64777720000711
|
||||
},
|
||||
{
|
||||
"sheet": [
|
||||
"PON",
|
||||
"01_POWER"
|
||||
],
|
||||
"state": "no_match",
|
||||
"seconds": 10.285367300006328
|
||||
},
|
||||
{
|
||||
"sheet": [
|
||||
"PON",
|
||||
"02_ZX279133L"
|
||||
],
|
||||
"state": "no_match",
|
||||
"seconds": 20.456011000002036
|
||||
}
|
||||
],
|
||||
"passed": true,
|
||||
"closed_between_steps": true,
|
||||
"worker_starts": 1,
|
||||
"paused": true,
|
||||
"completed_items": 3,
|
||||
"total_items": 18,
|
||||
"seconds": 83.99234019999858
|
||||
},
|
||||
"faults": {
|
||||
"startup_cancelled": true,
|
||||
"watchdog_timeout": true,
|
||||
"worker_exit_confirmed": {
|
||||
"parent": true,
|
||||
"child": true
|
||||
},
|
||||
"passed": true
|
||||
},
|
||||
"desktop_observations": {
|
||||
"single_and_recovery": {
|
||||
"samples": 1440,
|
||||
"file_read_samples": 1440,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"foreground_pids": [
|
||||
10104
|
||||
],
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"baseline_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"observed_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"cad_exit_confirmed": {
|
||||
"5188": true,
|
||||
"51976": true,
|
||||
"55520": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-ef24499c663e4059bb88ca4c5480428b": true,
|
||||
"dx-b09cc37f113e48abbe4f1e8a6fbc493b": true,
|
||||
"dx-ae937db569b34cb9827ba6ec481be55e": true
|
||||
},
|
||||
"sessions": {
|
||||
"dx-ef24499c663e4059bb88ca4c5480428b": {
|
||||
"desktop": "dx-ef24499c663e4059bb88ca4c5480428b",
|
||||
"token": "ef24499c663e4059bb88ca4c5480428b",
|
||||
"state": "released",
|
||||
"cad_pid": 5188,
|
||||
"guid": "{E07B201BxC81Dx4624xB0D2xE684F407C972}",
|
||||
"startup_seconds": 34.312999999994645,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.8590000000258442,
|
||||
"evidence_path": "data\\tasks\\94da06ed-1f50-4396-9340-7df8f616e71c\\quick-run\\private-desktop.json"
|
||||
},
|
||||
"dx-b09cc37f113e48abbe4f1e8a6fbc493b": {
|
||||
"desktop": "dx-b09cc37f113e48abbe4f1e8a6fbc493b",
|
||||
"token": "b09cc37f113e48abbe4f1e8a6fbc493b",
|
||||
"state": "released",
|
||||
"cad_pid": 51976,
|
||||
"guid": "{6418A6B6x512Bx434ExAC8Ax7C518FCFAA9E}",
|
||||
"startup_seconds": 21.98399999999674,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.9689999999827705,
|
||||
"evidence_path": "data\\tasks\\94da06ed-1f50-4396-9340-7df8f616e71c\\quick-run-history\\recovery-29865845abda42de8392273c2490efcf\\worker\\private-desktop.json"
|
||||
},
|
||||
"dx-ae937db569b34cb9827ba6ec481be55e": {
|
||||
"desktop": "dx-ae937db569b34cb9827ba6ec481be55e",
|
||||
"token": "ae937db569b34cb9827ba6ec481be55e",
|
||||
"state": "released",
|
||||
"cad_pid": 55520,
|
||||
"guid": "{71E521C8xD25Ex4028x9C35xAA7FB9D692F2}",
|
||||
"startup_seconds": 28.59399999998277,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.7660000000032596,
|
||||
"evidence_path": "independent-read\\quick-run-history\\sheet-discovery-1103116427664f7a9db30fb37a5d2fa5\\private-desktop.json"
|
||||
}
|
||||
},
|
||||
"observer_errors": []
|
||||
},
|
||||
"pause": {
|
||||
"samples": 375,
|
||||
"file_read_samples": 375,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"foreground_pids": [
|
||||
10104
|
||||
],
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"baseline_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"observed_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"cad_exit_confirmed": {
|
||||
"54972": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-3284592a031c46c28d1c0ac187b9c6ed": true
|
||||
},
|
||||
"sessions": {
|
||||
"data\\tasks\\351d9922-f28c-429e-bce1-862e31b3aef4\\quick-run\\private-desktop.json": {
|
||||
"desktop": "dx-3284592a031c46c28d1c0ac187b9c6ed",
|
||||
"token": "3284592a031c46c28d1c0ac187b9c6ed",
|
||||
"state": "released",
|
||||
"cad_pid": 54972,
|
||||
"guid": "{32D71CB0xC1B6x4A8BxAF96x35B4051FC236}",
|
||||
"startup_seconds": 35.25,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 2.687999999994645
|
||||
}
|
||||
},
|
||||
"observer_errors": []
|
||||
},
|
||||
"faults": {
|
||||
"samples": 182,
|
||||
"file_read_samples": 182,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"foreground_pids": [
|
||||
10104
|
||||
],
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"baseline_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"observed_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"cad_exit_confirmed": {
|
||||
"56876": true,
|
||||
"53404": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-96332c0efe8c40dcbd1e0fb98be3116e": true,
|
||||
"dx-c35da69cb8434bbebdb3af729be91516": true
|
||||
},
|
||||
"sessions": {
|
||||
"dx-96332c0efe8c40dcbd1e0fb98be3116e": {
|
||||
"desktop": "dx-96332c0efe8c40dcbd1e0fb98be3116e",
|
||||
"token": "96332c0efe8c40dcbd1e0fb98be3116e",
|
||||
"state": "released",
|
||||
"cad_pid": 56876,
|
||||
"clean": false,
|
||||
"startup_error": "private CAD startup was cancelled before execution",
|
||||
"evidence_path": "data\\tasks\\startup-cancel\\quick-run\\private-desktop.json"
|
||||
},
|
||||
"dx-c35da69cb8434bbebdb3af729be91516": {
|
||||
"desktop": "dx-c35da69cb8434bbebdb3af729be91516",
|
||||
"token": "c35da69cb8434bbebdb3af729be91516",
|
||||
"state": "released",
|
||||
"cad_pid": 53404,
|
||||
"guid": "{814B8CF2x0B4Fx486DxBD1ExBE0B1A5B29CD}",
|
||||
"startup_seconds": 32.84399999998277,
|
||||
"error": "Command '('C:\\\\Users\\\\ABS_Windows\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python312\\\\python.exe', '-u', 'F:\\\\Sync Tool Skyworth\\\\Work Maps\\\\dxdesigner-part-replacement\\\\build\\\\private-desktop-native\\\\failures-retry\\\\data\\\\tasks\\\\timeout\\\\quick-run\\\\stalled-worker.py', 'F:\\\\Sync Tool Skyworth\\\\Work Maps\\\\dxdesigner-part-replacement\\\\build\\\\private-desktop-native\\\\failures-retry\\\\data\\\\tasks\\\\timeout\\\\quick-run', 'C:\\\\Users\\\\ABS_Windows\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python312\\\\python.exe', '', 'timeout')' timed out after 3.0 seconds",
|
||||
"clean": false,
|
||||
"shutdown_seconds": 4.280999999988126,
|
||||
"evidence_path": "data\\tasks\\timeout\\quick-run\\private-desktop.json"
|
||||
}
|
||||
},
|
||||
"observer_errors": []
|
||||
}
|
||||
},
|
||||
"automated_regression": {
|
||||
"passed": 310,
|
||||
"deselected": 1,
|
||||
"seconds": 88.93,
|
||||
"deselected_test": "thousand_item_multisheet_mixed_queue",
|
||||
"reason": "Unchanged simulated stress test exceeds host timing gate on both baseline and earlier optimization checkout; threshold not changed.",
|
||||
"followup_isolated_cad_tests": {
|
||||
"passed": 10,
|
||||
"seconds": 4.47
|
||||
}
|
||||
},
|
||||
"limitations": [
|
||||
"No new package built.",
|
||||
"No Packager/ERC/netlist qualification performed.",
|
||||
"NC toggle on/off exercised; this real fixture contains no independent /NC marker.",
|
||||
"Private batch evidence uses one project, two real replacement steps. Prior three-project evidence used the previous backend.",
|
||||
"Pause covers actual multi-page no_match steps, not multi-page replacements.",
|
||||
"Startup/quit of empty CAD bind explicit PID-owned launch and private ROT/GUID; active view PID is verified only with an open project."
|
||||
],
|
||||
"raw_source_sha256": {
|
||||
"build\\private-desktop-native\\replacement3\\data\\tasks\\5efd57e0-3de1-4f9a-850f-42a5593e301b\\events.jsonl": "d5438645d0441b71e0b761bb570586c4b5a6debf86c8877203150646f7f00728",
|
||||
"build\\private-desktop-native\\replacement3\\data\\tasks\\5efd57e0-3de1-4f9a-850f-42a5593e301b\\quick-run\\command.tsv": "9586b5a449089da81b9517793900bda76c98be20a31644a788e60d59cc996643",
|
||||
"build\\private-desktop-native\\replacement3\\data\\tasks\\5efd57e0-3de1-4f9a-850f-42a5593e301b\\quick-run\\status.tsv": "7efec1a407ec23606fbdd4569a0b36d57db441fa9506850cbd91e125d3439f47",
|
||||
"build\\session-live-20261015\\small-inventory.json": "38783d947877e657a2c443496f95ab39f32182f84af1f25d444fffd7f9fe8159",
|
||||
"build\\private-desktop-native\\replacement3\\independent-read\\quick-run-history\\sheet-discovery-4159ca5ab5404a1f893247cf74b07ebf\\components.tsv": "788a2c87178edd2fab065d3cf405a4cabbec0f0f1b5f3f12f3da3145807f7b51",
|
||||
"build\\private-desktop-native\\single-recovery\\report.json": "c1a41f935d438e1bfe65a7d67dbafca41ce441aa0ce3a0cad0530c76ebf7d779",
|
||||
"build\\private-desktop-native\\pages-pause\\report.json": "d7e6a965d1accbdb8af402fa0ab370121fe7a062c5445cbac480e0d447f37e3c",
|
||||
"build\\private-desktop-native\\failures-retry\\report.json": "c6d2144f8a8593c5e0860ec4a9645411c55cffdd0de49e8c3f473068c102f0cd",
|
||||
"build\\private-desktop-native\\single-recovery\\desktop-observation.json": "73d2ec95e802044050ef26f020ae331ea336129493b5fe57a2f9f9fd6e3e133f",
|
||||
"build\\private-desktop-native\\pages-pause\\desktop-observation.json": "62406dfd60d66e2bb854d5ed62d9988afa200464a8a7a59df9867cb610241568",
|
||||
"build\\private-desktop-native\\failures-retry\\desktop-observation.json": "448ce3317928e6ae547e662b551afcfba61fe17f95b95b9d1120b31aa2cb36ba",
|
||||
"build\\private-desktop-native\\replacement3\\data\\tasks\\5efd57e0-3de1-4f9a-850f-42a5593e301b\\quick-run\\private-desktop.json": "d929b5a2d81b628866dc8a57af59356ce30e58f9be82933da531cae986d00918"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"release_status": "development only; user explicitly stopped packaging/publication",
|
||||
"bom_contract": "one workbook for all projects in imported group; project name/path prefilled; preview and atomically confirm per-task plans",
|
||||
"regression": {
|
||||
"prior_related_passed": 252,
|
||||
"prior_related_seconds": 53.67,
|
||||
"final_bom_ui_passed": 17,
|
||||
"final_bom_ui_seconds": 5.62,
|
||||
"counts_overlap": true
|
||||
},
|
||||
"covered_behaviors": [
|
||||
"export before inventory",
|
||||
"route identical refdes by project",
|
||||
"unknown project rejected before collection",
|
||||
"no DB plan change during preview",
|
||||
"automatic read-only collection when inventory absent",
|
||||
"reuse existing inventory",
|
||||
"atomic rollback of all affected tasks",
|
||||
"stale preview rejection",
|
||||
"untouched project scaffolds ignored",
|
||||
"task reorder and reimport",
|
||||
"cross-task UI editing and batch save",
|
||||
"execution enabled after confirmed import without separately entered rules"
|
||||
],
|
||||
"native_long_evidence_path": {
|
||||
"passed": true,
|
||||
"seconds": 54.78491889999714,
|
||||
"sheets": [
|
||||
[
|
||||
"1GPHY_8211",
|
||||
"8211_1GPHY_48PIN"
|
||||
]
|
||||
],
|
||||
"component_count": 13,
|
||||
"evidence_path_length": 318,
|
||||
"alias_paths": [
|
||||
"C:\\Users\\ABS_Windows\\AppData\\Local\\DxProductivity\\path-links\\dxp-qyr7umy5\\9e4825fbe28f7eeec038"
|
||||
],
|
||||
"aliases_removed": true,
|
||||
"original_evidence_retained": true,
|
||||
"session": {
|
||||
"desktop": "dx-325ab7da547e495abda9e92ae53c51c0",
|
||||
"token": "325ab7da547e495abda9e92ae53c51c0",
|
||||
"state": "released",
|
||||
"cad_pid": 21520,
|
||||
"guid": "{EE1C86F6x9590x41D1x90DAxF4116093AC87}",
|
||||
"startup_seconds": 34.171999999991385,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.75
|
||||
}
|
||||
},
|
||||
"native_desktop_observation": {
|
||||
"samples": 250,
|
||||
"file_read_samples": 250,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"foreground_pids": [
|
||||
10104
|
||||
],
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"baseline_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"observed_default_cad_pids": [
|
||||
18732
|
||||
],
|
||||
"cad_exit_confirmed": {
|
||||
"21520": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-325ab7da547e495abda9e92ae53c51c0": true
|
||||
},
|
||||
"sessions": {
|
||||
"dx-325ab7da547e495abda9e92ae53c51c0": {
|
||||
"desktop": "dx-325ab7da547e495abda9e92ae53c51c0",
|
||||
"token": "325ab7da547e495abda9e92ae53c51c0",
|
||||
"state": "released",
|
||||
"cad_pid": 21520,
|
||||
"guid": "{EE1C86F6x9590x41D1x90DAxF4116093AC87}",
|
||||
"startup_seconds": 34.171999999991385,
|
||||
"clean": true,
|
||||
"shutdown_seconds": 1.75,
|
||||
"evidence_path": "independent-read\\quick-run-history\\sheet-discovery-7f404713e9ed4ac7b59ea68d6973e118\\private-desktop.json"
|
||||
}
|
||||
},
|
||||
"observer_errors": []
|
||||
},
|
||||
"example_template": {
|
||||
"example": "F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\dist\\按工程区分BOM模板示例.xlsx",
|
||||
"rows": [
|
||||
{
|
||||
"project_name": "工程A/board.prj",
|
||||
"project_path": "F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\project-bom-template-preview\\projects\\工程A\\board.prj",
|
||||
"old_part_number": null,
|
||||
"new_part_number": null,
|
||||
"refdes": null,
|
||||
"schematic_name": null,
|
||||
"sheet_number": null,
|
||||
"uid": null,
|
||||
"enabled": true,
|
||||
"custom_value": null,
|
||||
"sync_nc": true
|
||||
},
|
||||
{
|
||||
"project_name": "工程B/board.prj",
|
||||
"project_path": "F:\\Sync Tool Skyworth\\Work Maps\\dxdesigner-part-replacement\\build\\project-bom-template-preview\\projects\\工程B\\board.prj",
|
||||
"old_part_number": null,
|
||||
"new_part_number": null,
|
||||
"refdes": null,
|
||||
"schematic_name": null,
|
||||
"sheet_number": null,
|
||||
"uid": null,
|
||||
"enabled": true,
|
||||
"custom_value": null,
|
||||
"sync_nc": true
|
||||
}
|
||||
],
|
||||
"sha256": "4e573f3eb920651d7482beadc7b2056939ef16c85de993b99099ef19d5e4bd2c",
|
||||
"cad_started": false,
|
||||
"published": false
|
||||
},
|
||||
"publication": "No v1.1.2 release/tag/upload; old candidate quarantined locally; v1.1.1 retained."
|
||||
}
|
||||
@@ -0,0 +1,518 @@
|
||||
{
|
||||
"baseline_commit": "bc6b726",
|
||||
"note": "Single paired native sample; copied projects only. Thousand-step time gate remains failed in both versions.",
|
||||
"native": {
|
||||
"small-baseline": {
|
||||
"queue_seconds": 113.17540310000186,
|
||||
"worker_starts": 2,
|
||||
"open_project_calls": 4,
|
||||
"verified": true,
|
||||
"readback_seconds": 9.846703400020488,
|
||||
"comparisons": [
|
||||
{
|
||||
"refdes": "RL02",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"refdes": "RL05",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"refdes": "RL06",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL07",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL08",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL09",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL10",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL11",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL12",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL13",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL14",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL15",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL16",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
{
|
||||
"old_part_number": "4100-CA3300-T7",
|
||||
"new_part_number": "4100-CA3300-2200",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"phase": "execute_step",
|
||||
"unit": "step",
|
||||
"completed_units": 1,
|
||||
"state": "saved_ok",
|
||||
"schematic_name": "1GPHY_8211",
|
||||
"sheet_number": "8211_1GPHY_48PIN",
|
||||
"job_id": "99f533d93c4a4dcabeb687b2311658af_0",
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.9839999999967404,
|
||||
"session_startup": 2.4690000000118744,
|
||||
"check_project": 0.0159999999741558,
|
||||
"open_project": 15.78100000001723,
|
||||
"open_sheet": 3.5310000000172295,
|
||||
"session_ready": 0.0629999999946449,
|
||||
"query_components": 0.75,
|
||||
"index_components": 5.203000000008615,
|
||||
"find_components": 0.7969999999913853,
|
||||
"index_pins": 4.514999999984866,
|
||||
"snapshot_attributes": 0.40700000000651926,
|
||||
"capture": 2.6559999999881256,
|
||||
"before_native": 0.07800000000861473,
|
||||
"native_replace": 17.01600000000326,
|
||||
"restore_preflight": 2.812000000005355,
|
||||
"before_restore_transaction": 0.25,
|
||||
"restore_attribute_fields": 0.6089999999967404,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.14199999999254942,
|
||||
"verify_attribute_fields": 0.1870000000053551,
|
||||
"finished": 1.9839999999967404,
|
||||
"save_and_close": 4.062999999994645,
|
||||
"verify_saved_project": 0.0
|
||||
},
|
||||
"elapsed_seconds": 64.37054100001114,
|
||||
"units_per_minute": 0.932103398043363
|
||||
},
|
||||
{
|
||||
"old_part_number": "4100-CA3300-T7",
|
||||
"new_part_number": "4100-CA3300-2200",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"phase": "execute_step",
|
||||
"unit": "step",
|
||||
"completed_units": 1,
|
||||
"state": "saved_ok",
|
||||
"schematic_name": "1GPHY_8211",
|
||||
"sheet_number": "8211_1GPHY_48PIN",
|
||||
"job_id": "99f533d93c4a4dcabeb687b2311658af_1",
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.42199999999138527,
|
||||
"session_startup": 1.2810000000172295,
|
||||
"check_project": 0.03199999997741543,
|
||||
"open_project": 10.96799999999348,
|
||||
"open_sheet": 2.0789999999979045,
|
||||
"session_ready": 0.015000000013969839,
|
||||
"query_components": 0.3129999999946449,
|
||||
"index_components": 2.1559999999881256,
|
||||
"find_components": 1.0310000000172295,
|
||||
"index_pins": 3.6719999999913853,
|
||||
"snapshot_attributes": 0.25,
|
||||
"capture": 4.578000000008615,
|
||||
"before_native": 0.125,
|
||||
"native_replace": 14.51600000000326,
|
||||
"restore_preflight": 1.327999999979511,
|
||||
"before_restore_transaction": 0.21899999998277053,
|
||||
"restore_attribute_fields": 0.5940000000118744,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.061999999976251274,
|
||||
"verify_attribute_fields": 0.0940000000409782,
|
||||
"finished": 1.25,
|
||||
"save_and_close": 2.4060000000172295,
|
||||
"verify_saved_project": 0.0
|
||||
},
|
||||
"elapsed_seconds": 47.418164899980184,
|
||||
"units_per_minute": 1.2653378747692758
|
||||
}
|
||||
],
|
||||
"other_phases": [
|
||||
{
|
||||
"phase": "prepare_queue",
|
||||
"unit": "step",
|
||||
"completed_units": 2,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 0.07470610001473688,
|
||||
"units_per_minute": 1606.2945325258345
|
||||
},
|
||||
{
|
||||
"phase": "backup_project",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 0.9657479999877978,
|
||||
"units_per_minute": 62.12800854959896
|
||||
},
|
||||
{
|
||||
"phase": "persist_progress",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"job_id": "99f533d93c4a4dcabeb687b2311658af_0",
|
||||
"elapsed_seconds": 0.008863399998517707,
|
||||
"units_per_minute": 6769.411287997185
|
||||
},
|
||||
{
|
||||
"phase": "persist_progress",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"job_id": "99f533d93c4a4dcabeb687b2311658af_1",
|
||||
"elapsed_seconds": 0.00932809998630546,
|
||||
"units_per_minute": 6432.178052131272
|
||||
},
|
||||
{
|
||||
"phase": "task_total",
|
||||
"unit": "task",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"completed_steps": 2,
|
||||
"saved_steps": 2,
|
||||
"failed_steps": 0,
|
||||
"elapsed_seconds": 113.10993500001496,
|
||||
"units_per_minute": 0.5304573820150464
|
||||
}
|
||||
]
|
||||
},
|
||||
"small-reuse": {
|
||||
"queue_seconds": 100.6405139999988,
|
||||
"worker_starts": 1,
|
||||
"open_project_calls": 3,
|
||||
"verified": true,
|
||||
"readback_seconds": 10.346642499993322,
|
||||
"comparisons": [
|
||||
{
|
||||
"refdes": "RL02",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"refdes": "RL05",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-2200",
|
||||
"actual": "4100-CA3300-2200"
|
||||
},
|
||||
{
|
||||
"refdes": "RL06",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL07",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL08",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL09",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL10",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL11",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL12",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL13",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL14",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL15",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
},
|
||||
{
|
||||
"refdes": "RL16",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"expected": "4100-CA3300-T7",
|
||||
"actual": "4100-CA3300-T7"
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
{
|
||||
"old_part_number": "4100-CA3300-T7",
|
||||
"new_part_number": "4100-CA3300-2200",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"phase": "execute_step",
|
||||
"unit": "step",
|
||||
"completed_units": 1,
|
||||
"state": "saved_ok",
|
||||
"schematic_name": "1GPHY_8211",
|
||||
"sheet_number": "8211_1GPHY_48PIN",
|
||||
"job_id": "246f84be443e4ae2a55a0df40dc4899f_0",
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.28099999998812564,
|
||||
"session_startup": 1.0,
|
||||
"check_project": 0.0,
|
||||
"open_project": 12.10999999998603,
|
||||
"open_sheet": 2.812000000034459,
|
||||
"session_ready": 0.01600000000325963,
|
||||
"query_components": 0.28099999998812564,
|
||||
"index_components": 2.702999999979511,
|
||||
"find_components": 0.875,
|
||||
"index_pins": 4.593000000022585,
|
||||
"snapshot_attributes": 0.42199999996228144,
|
||||
"capture": 4.094000000011874,
|
||||
"before_native": 0.125,
|
||||
"native_replace": 19.155999999988126,
|
||||
"restore_preflight": 2.109000000025844,
|
||||
"before_restore_transaction": 0.28200000000651926,
|
||||
"restore_attribute_fields": 0.75,
|
||||
"restore_attributes": 0.014999999984866008,
|
||||
"verify_restoration": 0.14100000003236346,
|
||||
"verify_attribute_fields": 0.1879999999946449,
|
||||
"finished": 3.2189999999827705,
|
||||
"save_and_close": 1.562000000005355,
|
||||
"verify_saved_project": 0.01600000000325963,
|
||||
"session_wait": 0.0
|
||||
},
|
||||
"elapsed_seconds": 56.79680049998569,
|
||||
"units_per_minute": 1.0563975342240468
|
||||
},
|
||||
{
|
||||
"old_part_number": "4100-CA3300-T7",
|
||||
"new_part_number": "4100-CA3300-2200",
|
||||
"sheet": "8211_1GPHY_48PIN",
|
||||
"phase": "execute_step",
|
||||
"unit": "step",
|
||||
"completed_units": 1,
|
||||
"state": "saved_ok",
|
||||
"schematic_name": "1GPHY_8211",
|
||||
"sheet_number": "8211_1GPHY_48PIN",
|
||||
"job_id": "246f84be443e4ae2a55a0df40dc4899f_1",
|
||||
"worker_stage_seconds": {
|
||||
"check_project": 0.015000000013969839,
|
||||
"open_sheet": 2.187999999965541,
|
||||
"query_components": 0.4220000000204891,
|
||||
"index_components": 2.9210000000020955,
|
||||
"find_components": 0.6089999999967404,
|
||||
"index_pins": 3.532999999995809,
|
||||
"snapshot_attributes": 0.24900000003981404,
|
||||
"capture": 2.85999999998603,
|
||||
"before_native": 0.07800000000861473,
|
||||
"native_replace": 16.264999999984866,
|
||||
"restore_preflight": 1.687999999994645,
|
||||
"before_restore_transaction": 0.2659999999741558,
|
||||
"restore_attribute_fields": 0.6870000000053551,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.12600000001839362,
|
||||
"verify_attribute_fields": 0.10899999999674037,
|
||||
"finished": 1.687000000005355,
|
||||
"save_and_close": 1.7039999999979045,
|
||||
"verify_saved_project": 0.015000000013969839,
|
||||
"open_project": 5.625,
|
||||
"session_wait": 0.0
|
||||
},
|
||||
"elapsed_seconds": 41.16839780000737,
|
||||
"units_per_minute": 1.4574285910147629
|
||||
}
|
||||
],
|
||||
"other_phases": [
|
||||
{
|
||||
"phase": "prepare_queue",
|
||||
"unit": "step",
|
||||
"completed_units": 2,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 0.025570099998731166,
|
||||
"units_per_minute": 4692.981255683576
|
||||
},
|
||||
{
|
||||
"phase": "backup_project",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"elapsed_seconds": 0.32834000000730157,
|
||||
"units_per_minute": 182.73740634301555
|
||||
},
|
||||
{
|
||||
"phase": "persist_progress",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"job_id": "246f84be443e4ae2a55a0df40dc4899f_0",
|
||||
"elapsed_seconds": 0.010178099997574463,
|
||||
"units_per_minute": 5895.009875546375
|
||||
},
|
||||
{
|
||||
"phase": "persist_progress",
|
||||
"unit": "operation",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"job_id": "246f84be443e4ae2a55a0df40dc4899f_1",
|
||||
"elapsed_seconds": 0.009127400000579655,
|
||||
"units_per_minute": 6573.613514931916
|
||||
},
|
||||
{
|
||||
"phase": "task_total",
|
||||
"unit": "task",
|
||||
"completed_units": 1,
|
||||
"state": "completed",
|
||||
"completed_steps": 2,
|
||||
"saved_steps": 2,
|
||||
"failed_steps": 0,
|
||||
"elapsed_seconds": 100.6060615000024,
|
||||
"units_per_minute": 0.5963855368694516
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"multi_page": {
|
||||
"steps": [
|
||||
{
|
||||
"sheet": [
|
||||
"PON",
|
||||
"block"
|
||||
],
|
||||
"state": "no_match",
|
||||
"seconds": 16.36403070000233
|
||||
},
|
||||
{
|
||||
"sheet": [
|
||||
"PON",
|
||||
"01_POWER"
|
||||
],
|
||||
"state": "no_match",
|
||||
"seconds": 4.627093000017339
|
||||
},
|
||||
{
|
||||
"sheet": [
|
||||
"PON",
|
||||
"02_ZX279133L"
|
||||
],
|
||||
"state": "no_match",
|
||||
"seconds": 10.180998900003033
|
||||
}
|
||||
],
|
||||
"passed": true,
|
||||
"closed_between_steps": true,
|
||||
"worker_starts": 1,
|
||||
"completed_items": 3,
|
||||
"total_items": 18,
|
||||
"seconds": 34.73681229999056
|
||||
},
|
||||
"guards": {
|
||||
"clean": {
|
||||
"mode": "clean",
|
||||
"closed_cleanly": true,
|
||||
"passed": true
|
||||
},
|
||||
"edit": {
|
||||
"mode": "edit",
|
||||
"previous_value": "100NF/16V",
|
||||
"external_edit_written": true,
|
||||
"error_code": "quick_run_uncertain",
|
||||
"preserved_external_state": true,
|
||||
"passed": true
|
||||
},
|
||||
"foreign": {
|
||||
"mode": "foreign",
|
||||
"error_code": "quick_run_uncertain",
|
||||
"preserved_external_state": true,
|
||||
"passed": true
|
||||
}
|
||||
},
|
||||
"stress": {
|
||||
"current": {
|
||||
"mode": "simulated_worker_with_tracemalloc",
|
||||
"projects": 20,
|
||||
"sheets_per_project": 5,
|
||||
"rules_per_sheet": 10,
|
||||
"steps": 1000,
|
||||
"saved_steps": 91,
|
||||
"elapsed_seconds": 41.516500700003235,
|
||||
"peak_bytes": 2036758,
|
||||
"steps_per_second": 24.086808453004377,
|
||||
"functional_assertions_passed": true,
|
||||
"time_gate_seconds": 30,
|
||||
"time_gate_passed": false
|
||||
},
|
||||
"baseline": {
|
||||
"mode": "simulated_worker_with_tracemalloc",
|
||||
"projects": 20,
|
||||
"sheets_per_project": 5,
|
||||
"rules_per_sheet": 10,
|
||||
"steps": 1000,
|
||||
"saved_steps": 91,
|
||||
"elapsed_seconds": 42.45326560002286,
|
||||
"peak_bytes": 1992249,
|
||||
"steps_per_second": 23.555313963867636,
|
||||
"functional_assertions_passed": true,
|
||||
"time_gate_seconds": 30,
|
||||
"time_gate_passed": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"date": "2026-10-19",
|
||||
"reviewed_code_commit": "11810eca4c912b23cf058b5e613bffa5593383b6",
|
||||
"tests": {
|
||||
"safety-regressions": {
|
||||
"tests": "594",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "137.539"
|
||||
},
|
||||
"native-regressions": {
|
||||
"tests": "154",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "43.010"
|
||||
},
|
||||
"final-vbs-regressions": {
|
||||
"tests": "122",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "36.074"
|
||||
},
|
||||
"backup-regressions": {
|
||||
"tests": "33",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "8.059"
|
||||
},
|
||||
"perf-baseline": {
|
||||
"tests": "1",
|
||||
"failures": "1",
|
||||
"errors": "0",
|
||||
"time": "39.946"
|
||||
},
|
||||
"perf-current": {
|
||||
"tests": "1",
|
||||
"failures": "1",
|
||||
"errors": "0",
|
||||
"time": "39.870"
|
||||
}
|
||||
},
|
||||
"formal_bom_sample": {
|
||||
"project": "Audio_D2128",
|
||||
"queue_seconds": 799.5,
|
||||
"saved_items": 2,
|
||||
"failed_items": 0,
|
||||
"no_match_items": 0,
|
||||
"independent_inventory_verified": true,
|
||||
"source_prj_and_database_hashes_unchanged": true,
|
||||
"graph_summary": {
|
||||
"hier": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
},
|
||||
"flat": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
}
|
||||
},
|
||||
"desktop": {
|
||||
"samples": 3659,
|
||||
"file_read_samples": 3659,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"cad_exit_confirmed": {
|
||||
"62428": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-8e3f38b6f61d46d9afb1f8d9059bf2b7": true
|
||||
},
|
||||
"observer_errors": []
|
||||
}
|
||||
},
|
||||
"limits": [
|
||||
"Formal run used its startup VBS copy; per-component progress and pre-write UID/Refdes guards were added later and verified by isolated regressions.",
|
||||
"Full verification took 799.50 seconds for two rules; 1000-step runtime target still fails on baseline and patched code.",
|
||||
"Flattened Cell Name remains RESC1005N_0402 while target Part Name is RESC1608N; PCB cell mapping is not certified.",
|
||||
"Single project, single gate, two pins; not a universal correctness proof."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"date": "2026-10-19",
|
||||
"reviewed_code_commit": "e5ebc5d14e5eda1a9822d8a0dc2e5aaa530bdff2",
|
||||
"tests": {
|
||||
"regressions": {
|
||||
"tests": "724",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "152.774"
|
||||
},
|
||||
"final-vbs-regressions": {
|
||||
"tests": "130",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "35.540"
|
||||
}
|
||||
},
|
||||
"known_excluded_test": "1000-step runtime <30 seconds fails on baseline as documented; not rerun for CAD read deduplication changes.",
|
||||
"formal_bom_same_sample": {
|
||||
"executed_code_commit": "5a0f62f",
|
||||
"verified": true,
|
||||
"seconds": 403.625,
|
||||
"saved_items": 2,
|
||||
"failed_items": 0,
|
||||
"source_hashes_unchanged": true,
|
||||
"code_hashes": {
|
||||
"integration/dxdesigner795/QuickPartReplace.vbs": "c0f131506fdad8938575850cdfaa48990607715bc92aea577000f0d91c946cc2",
|
||||
"src/dx_productivity/trial_task_center/native_helper.py": "53b5f962de2a84c99b42a78e9b3046239f7bb4c99b8730e8de085893cbd35188"
|
||||
},
|
||||
"graph_summary": {
|
||||
"hier": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
},
|
||||
"flat": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
}
|
||||
},
|
||||
"private_cad_exited_and_desktop_released": true,
|
||||
"input_desktop_unchanged": true,
|
||||
"owned_cad_became_foreground": false
|
||||
},
|
||||
"baseline_seconds": 799.5,
|
||||
"time_reduction_percent": 49.5153,
|
||||
"speedup": 1.9808,
|
||||
"initial_snapshot_equivalence": {
|
||||
"equal_excluding_path_metadata": true,
|
||||
"baseline_rows": 120,
|
||||
"optimized_rows": 120,
|
||||
"baseline_only_rows": 0,
|
||||
"optimized_only_rows": 0
|
||||
},
|
||||
"read_only_recovery": {
|
||||
"executed_code_commit": "5a0f62f",
|
||||
"verified": true,
|
||||
"seconds": 87.79699999999139,
|
||||
"state": "restored_ok",
|
||||
"native_replacement_called": false,
|
||||
"additional_save_requested": false,
|
||||
"all_exported_graphs_equal": true,
|
||||
"private_desktop_observation": {
|
||||
"observer_errors": [],
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"cad_exit_confirmed": {
|
||||
"50968": true,
|
||||
"64444": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-c3df04f4654c4c4b893a294e4571bbe9": true,
|
||||
"dx-0606085d7e93445680a319b55f5fc417": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"non_session_formal_bom": {
|
||||
"executed_code_commit": "e5ebc5d",
|
||||
"verified": true,
|
||||
"seconds": 207.46900000001187,
|
||||
"saved_items": 1,
|
||||
"failed_items": 0,
|
||||
"source_hashes_unchanged": true,
|
||||
"code_hashes": {
|
||||
"integration/dxdesigner795/QuickPartReplace.vbs": "95502764147103d519ac1b77752337b64f458abd82b7a013f62a4fefc1ca1594",
|
||||
"src/dx_productivity/trial_task_center/native_helper.py": "53b5f962de2a84c99b42a78e9b3046239f7bb4c99b8730e8de085893cbd35188"
|
||||
},
|
||||
"graph_summary": {
|
||||
"hier": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 56,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
},
|
||||
"flat": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 56,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
}
|
||||
},
|
||||
"private_cad_exited_and_desktop_released": true,
|
||||
"input_desktop_unchanged": true,
|
||||
"owned_cad_became_foreground": false
|
||||
},
|
||||
"limits": [
|
||||
"Single measured performance comparison, not three-run release certification.",
|
||||
"403.625 seconds remains above proposed 180-second release target.",
|
||||
"PCB Cell Name mapping and complex multi-gate/hierarchical cases remain uncertified."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"date": "2026-10-19",
|
||||
"production_code_commit": "8fe82c3",
|
||||
"additional_guard_tests_commit": "998d78d",
|
||||
"code_hashes": {
|
||||
"integration/dxdesigner795/QuickPartReplace.vbs": "4e6ad90e54644444a39b863b60bce50acd2e5a7ddaf17eb99b8840316febf0ae",
|
||||
"src/dx_productivity/trial_task_center/native_helper.py": "53b5f962de2a84c99b42a78e9b3046239f7bb4c99b8730e8de085893cbd35188"
|
||||
},
|
||||
"regressions": {
|
||||
"final-vbs-regressions": {
|
||||
"tests": "147",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "43.189"
|
||||
},
|
||||
"association-guards": {
|
||||
"tests": "7",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "2.953"
|
||||
}
|
||||
},
|
||||
"test_overlap_note": "Seven association guards include one case already in the 147-test suite; do not sum counts.",
|
||||
"formal_bom": {
|
||||
"verified": true,
|
||||
"baseline_seconds": 403.625,
|
||||
"seconds": 375.688,
|
||||
"time_reduction_percent": 6.9215,
|
||||
"original_baseline_seconds": 799.5,
|
||||
"original_baseline_reduction_percent": 53.0096,
|
||||
"saved_items": 2,
|
||||
"failed_items": 0,
|
||||
"source_hashes_unchanged": true,
|
||||
"snapshot_equivalence": {
|
||||
"equal_excluding_path_metadata": true,
|
||||
"baseline_rows": 120,
|
||||
"optimized_rows": 120,
|
||||
"baseline_only_rows": 0,
|
||||
"optimized_only_rows": 0
|
||||
},
|
||||
"graph_summary": {
|
||||
"hier": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
},
|
||||
"flat": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
}
|
||||
},
|
||||
"previous_result_graph_equivalence": {
|
||||
"hier": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "32b36adbef100db505ea3d98ca628d50a94c91826d7289d90e473b3f9c864a31"
|
||||
},
|
||||
"flat": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "acbb89d93ebd3dc35f7d4b794df943c2ef5d164a0fb0c1626c432d2a0aa5b033"
|
||||
}
|
||||
},
|
||||
"step_timings": [
|
||||
{
|
||||
"old_part_number": "4100-CA0000-T7",
|
||||
"elapsed_seconds": 230.1173034000094,
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.39100000000325963,
|
||||
"session_startup": 1.077999999979511,
|
||||
"check_project": 0.03200000000651926,
|
||||
"open_project": 16.68700000003446,
|
||||
"open_sheet": 5.155999999959022,
|
||||
"session_ready": 0.0470000000204891,
|
||||
"query_components": 0.0470000000204891,
|
||||
"find_components": 1.0309999999590218,
|
||||
"index_pins": 12.329000000085216,
|
||||
"snapshot_attributes": 0.9689999999827705,
|
||||
"capture": 0.01600000000325963,
|
||||
"capture_untouched": 46.95299999997951,
|
||||
"before_native": 0.2029999999795109,
|
||||
"native_replace": 20.57800000003772,
|
||||
"restore_preflight": 0.6879999999655411,
|
||||
"index_components": 2.26500000001397,
|
||||
"before_restore_transaction": 1.3119999999762513,
|
||||
"restore_attribute_fields": 4.203000000037719,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.8910000000032596,
|
||||
"verify_attribute_fields": 0.9059999999590218,
|
||||
"finished": 0.5619999999762513,
|
||||
"verify_untouched": 78.59399999998277,
|
||||
"save_and_close": 3.0310000000172295,
|
||||
"verify_saved_project": 0.0,
|
||||
"session_wait": 0.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"old_part_number": "4100-CA1030-T7",
|
||||
"elapsed_seconds": 140.34872389998054,
|
||||
"worker_stage_seconds": {
|
||||
"check_project": 0.045999999914783984,
|
||||
"open_sheet": 1.3290000000270084,
|
||||
"query_components": 0.015000000013969839,
|
||||
"find_components": 0.5469999999622814,
|
||||
"index_pins": 9.749999999883585,
|
||||
"snapshot_attributes": 0.6410000000614673,
|
||||
"capture": 0.030999999959021807,
|
||||
"capture_untouched": 32.86000000004424,
|
||||
"before_native": 0.1559999999590218,
|
||||
"native_replace": 22.18800000002375,
|
||||
"restore_preflight": 0.6080000000074506,
|
||||
"index_components": 1.296000000089407,
|
||||
"before_restore_transaction": 1.0,
|
||||
"restore_attribute_fields": 4.375,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 0.9529999999795109,
|
||||
"verify_attribute_fields": 0.9219999999622814,
|
||||
"finished": 0.7349999999860302,
|
||||
"verify_untouched": 58.188000000081956,
|
||||
"save_and_close": 1.7660000000032596,
|
||||
"verify_saved_project": 0.0,
|
||||
"open_project": 2.7820000000065193,
|
||||
"session_wait": 0.0
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"isolation": {
|
||||
"owned_cad_exit_confirmed": true,
|
||||
"owned_desktops_released": true,
|
||||
"input_desktop_unchanged": true,
|
||||
"owned_cad_became_foreground": false,
|
||||
"observer_errors": []
|
||||
},
|
||||
"remaining_queue_performance_failure": {
|
||||
"mode": "simulated_worker_with_tracemalloc",
|
||||
"projects": 20,
|
||||
"sheets_per_project": 5,
|
||||
"rules_per_sheet": 10,
|
||||
"steps": 1000,
|
||||
"saved_steps": 91,
|
||||
"elapsed_seconds": 36.19810440001311,
|
||||
"peak_bytes": 2273365,
|
||||
"steps_per_second": 27.625756005047542,
|
||||
"target_seconds": 30,
|
||||
"passed": false
|
||||
},
|
||||
"bulk_attribute_candidate": {
|
||||
"installed_typelib_has_method": true,
|
||||
"enabled_in_production": false,
|
||||
"reason": "Documented return has visibility/name/value only; lacks location/font/color/size/orientation required for complete snapshots. Not a live equivalence certification."
|
||||
},
|
||||
"limitations": [
|
||||
"One same-source run per revision; load and cache differences preclude a general speed guarantee.",
|
||||
"375.688 seconds remains above the proposed 180-second target.",
|
||||
"PCB Cell Name mapping and complex multi-gate/hierarchical certification remain unresolved."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"date": "2026-10-19",
|
||||
"production_commit": "911afdf",
|
||||
"code_hashes": {
|
||||
"integration/dxdesigner795/QuickPartReplace.vbs": "102be388b4878156c72d40eb0c6bf7bdd2e51295b80560635b482e1e6816babb",
|
||||
"src/dx_productivity/trial_task_center/native_helper.py": "099760ad648b47f92993aed62d039c05a584dae41e2e14a2b59fb50df8fcf527",
|
||||
"integration/dxdesigner795/NativeSnapshotReader.vbs": "9ad8c7e297bea649e938af02dc3187a636c26e384a1763ebdaad09f0063d5ad0",
|
||||
"src/dx_productivity/trial_task_center/worker_monitor.py": "8d15942a29e14555f09d771949ec5788243d545f140de87e3a06fb9ac702b460"
|
||||
},
|
||||
"regressions": {
|
||||
"native-progress-final-20261019": {
|
||||
"tests": "110",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "58.810"
|
||||
},
|
||||
"native-progress-job-guards-20261019": {
|
||||
"tests": "13",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "0.514"
|
||||
},
|
||||
"native-library-redraw-final-20261019": {
|
||||
"tests": "49",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"time": "8.744"
|
||||
}
|
||||
},
|
||||
"overlap_note": "Suites overlap; do not sum their counts. Two of the 13 job guards were added after the 110-case run.",
|
||||
"formal_bom": {
|
||||
"verified": true,
|
||||
"seconds": 188.93699999997625,
|
||||
"previous_seconds": 189.25,
|
||||
"timing_note": "Essentially unchanged; this revision improves liveness and transient read handling, not demonstrated throughput.",
|
||||
"saved_items": 2,
|
||||
"failed_items": 0,
|
||||
"native_full_reads": 6,
|
||||
"accepted_native_progress_frames_last_job": 8,
|
||||
"source_hashes_unchanged": true,
|
||||
"snapshot_rows_equal_excluding_M": 120,
|
||||
"graph_summary": {
|
||||
"hier": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
},
|
||||
"flat": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
}
|
||||
},
|
||||
"previous_result_graph_equivalence": {
|
||||
"hier": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "32b36adbef100db505ea3d98ca628d50a94c91826d7289d90e473b3f9c864a31"
|
||||
},
|
||||
"flat": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "acbb89d93ebd3dc35f7d4b794df943c2ef5d164a0fb0c1626c432d2a0aa5b033"
|
||||
}
|
||||
}
|
||||
},
|
||||
"isolation": {
|
||||
"cad_exit_confirmed": true,
|
||||
"desktops_released": true,
|
||||
"input_desktop_unchanged": true,
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"observer_errors": []
|
||||
},
|
||||
"first_failed_live_run": {
|
||||
"verified": false,
|
||||
"saved_items": 1,
|
||||
"failed_items": 1,
|
||||
"cause": "UIA row wrapper observed control_type=None during DxDataBook redraw; KeyError(None) before replacement submission.",
|
||||
"first_item_closed_without_save": true,
|
||||
"source_hashes_unchanged": true,
|
||||
"preserved_root": "build/native-progress-formal-bom-20261019"
|
||||
},
|
||||
"cell_instance_probe": {
|
||||
"source_hashes_unchanged": true,
|
||||
"owned_session_released": true,
|
||||
"components": [
|
||||
{
|
||||
"uid": "$2I2022",
|
||||
"refdes": "RV11",
|
||||
"effective_attributes": {
|
||||
"Part Number": "4100-CA0000-T7",
|
||||
"Value": "0R",
|
||||
"Part Name": "RESC1005N",
|
||||
"Part Label": "0R",
|
||||
"Cell Name": "RESC1005N_0402"
|
||||
},
|
||||
"attribute_layers": {
|
||||
"Part Number": {
|
||||
"base": "4100-CA0000-T7",
|
||||
"instance": ""
|
||||
},
|
||||
"Part Name": {
|
||||
"base": "",
|
||||
"instance": "RESC1005N"
|
||||
},
|
||||
"Cell Name": {
|
||||
"base": "",
|
||||
"instance": "RESC1005N_0402"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "$2I1766",
|
||||
"refdes": "RV14",
|
||||
"effective_attributes": {
|
||||
"Part Number": "4100-CA0000-T0",
|
||||
"Value": "0R/NC",
|
||||
"Part Name": "RESC1608N",
|
||||
"Part Label": "0R",
|
||||
"Cell Name": "RESC1005N_0402"
|
||||
},
|
||||
"attribute_layers": {
|
||||
"Part Number": {
|
||||
"base": "4100-CA0000-T0",
|
||||
"instance": ""
|
||||
},
|
||||
"Part Name": {
|
||||
"base": "RESC1608N",
|
||||
"instance": ""
|
||||
},
|
||||
"Cell Name": {
|
||||
"base": "",
|
||||
"instance": "RESC1005N_0402"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"uid": "$2I2014",
|
||||
"refdes": "RV05",
|
||||
"effective_attributes": {
|
||||
"Part Number": "4100-CA0000-T0",
|
||||
"Value": "0R",
|
||||
"Part Name": "RESC1608N",
|
||||
"Part Label": "0R",
|
||||
"Cell Name": "RESC1005N_0402"
|
||||
},
|
||||
"attribute_layers": {
|
||||
"Part Number": {
|
||||
"base": "4100-CA0000-T0",
|
||||
"instance": ""
|
||||
},
|
||||
"Part Name": {
|
||||
"base": "RESC1608N",
|
||||
"instance": "RESC1608N"
|
||||
},
|
||||
"Cell Name": {
|
||||
"base": "",
|
||||
"instance": "RESC1005N_0402"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"conclusion": "Old Cell Name persists as instance override. Target-library authoritative Cell mapping remains unproven; no Cell mutation implemented."
|
||||
},
|
||||
"review": {
|
||||
"critical": 0,
|
||||
"important": 0,
|
||||
"read_only": true
|
||||
},
|
||||
"limitations": [
|
||||
"Actual very large pages, complex hierarchy and multi-gate cases remain uncertified.",
|
||||
"Sidecar progress does not prove saved correctness; original full snapshots/save/reopen remain required.",
|
||||
"No new speedup claim: same-source 188.937s versus previous 189.250s are single runs.",
|
||||
"PCB Cell mapping remains a release gap; no inferred or forced Cell values.",
|
||||
"Existing 1000-step simulated performance threshold remains unresolved and was not rerun.",
|
||||
"No package or release performed."
|
||||
],
|
||||
"raw_evidence_roots": [
|
||||
"build/native-progress-formal-bom-20261019",
|
||||
"build/native-progress-formal-bom-20261019-v2",
|
||||
"build/native-progress-ascii-result-20261019",
|
||||
"build/cell-instance-read-20261019",
|
||||
"build/pdb-cli-help-20261019"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,246 @@
|
||||
{
|
||||
"date": "2026-10-19",
|
||||
"production_code_commit": "81f3468",
|
||||
"adapter_initial_commit": "2f6060d",
|
||||
"uid_read_commit": "5b625b0",
|
||||
"code_hashes": {
|
||||
"integration/dxdesigner795/QuickPartReplace.vbs": "102be388b4878156c72d40eb0c6bf7bdd2e51295b80560635b482e1e6816babb",
|
||||
"integration/dxdesigner795/NativeSnapshotReader.vbs": "138fd22d351919b9d25dacf2e1258ebb3d465bca6a8161be919bdac3440ca76c",
|
||||
"src/dx_productivity/trial_task_center/native_helper.py": "53b5f962de2a84c99b42a78e9b3046239f7bb4c99b8730e8de085893cbd35188",
|
||||
"src/dx_productivity/trial_task_center/worker_runtime.py": "7b2a0b8365c4b0bb967d6b1d3a3e5fc792d1a5acde24a165159ed40a9cfd040b"
|
||||
},
|
||||
"hash_evidence_note": "Main worker and native_helper hashes were recorded at launch. Adapter and composer hashes were recorded after the run; exact original and recovery composed worker bytes match current main + CRLF + adapter.",
|
||||
"regressions": {
|
||||
"final-targeted": {
|
||||
"tests": "239",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"skipped": "0",
|
||||
"time": "63.349"
|
||||
},
|
||||
"queue-recovery": {
|
||||
"tests": "81",
|
||||
"failures": "0",
|
||||
"errors": "0",
|
||||
"skipped": "0",
|
||||
"time": "42.950"
|
||||
}
|
||||
},
|
||||
"excluded_test": "Existing 1000-step simulated performance threshold remains unresolved; intentionally deselected, not counted as passed.",
|
||||
"formal_bom": {
|
||||
"verified": true,
|
||||
"baseline_seconds": 375.688,
|
||||
"seconds": 189.25,
|
||||
"time_reduction_percent": 49.62575328464044,
|
||||
"original_baseline_seconds": 799.5,
|
||||
"original_baseline_reduction_percent": 76.32895559724828,
|
||||
"saved_items": 2,
|
||||
"failed_items": 0,
|
||||
"source_hashes_unchanged": true,
|
||||
"snapshot_equivalence": {
|
||||
"equal_excluding_path_metadata": true,
|
||||
"baseline_rows": 120,
|
||||
"optimized_rows": 120,
|
||||
"native_full_reads": 6
|
||||
},
|
||||
"graph_summary": {
|
||||
"hier": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
},
|
||||
"flat": {
|
||||
"component_count": 57,
|
||||
"pin_count": 103,
|
||||
"net_count": 22,
|
||||
"unchanged_components": 55,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true
|
||||
}
|
||||
},
|
||||
"previous_result_graph_equivalence": {
|
||||
"hier": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "32b36adbef100db505ea3d98ca628d50a94c91826d7289d90e473b3f9c864a31"
|
||||
},
|
||||
"flat": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "acbb89d93ebd3dc35f7d4b794df943c2ef5d164a0fb0c1626c432d2a0aa5b033"
|
||||
}
|
||||
},
|
||||
"step_timings": [
|
||||
{
|
||||
"old_part_number": "4100-CA0000-T7",
|
||||
"elapsed_seconds": 121.00508039997658,
|
||||
"worker_stage_seconds": {
|
||||
"starting": 0.39100000000325963,
|
||||
"session_startup": 1.0929999999934807,
|
||||
"check_project": 0.04800000000977889,
|
||||
"open_project": 16.34300000005169,
|
||||
"open_sheet": 4.704000000027008,
|
||||
"session_ready": 0.10899999999674037,
|
||||
"query_components": 0.06299999996554106,
|
||||
"find_components": 1.5929999999934807,
|
||||
"index_pins": 9.157000000064727,
|
||||
"snapshot_attributes": 0.8900000000139698,
|
||||
"capture": 0.1559999999590218,
|
||||
"native_snapshot_read": 6.60899999999674,
|
||||
"before_native": 0.18800000002374873,
|
||||
"native_replace": 22.03100000001723,
|
||||
"restore_preflight": 1.2189999999827705,
|
||||
"index_components": 1.7509999999892898,
|
||||
"before_restore_transaction": 2.1869999999762513,
|
||||
"restore_attribute_fields": 7.953000000037719,
|
||||
"restore_attributes": 0.0,
|
||||
"verify_restoration": 1.0149999999557622,
|
||||
"verify_attribute_fields": 1.140999999945052,
|
||||
"finished": 1.1410000000032596,
|
||||
"save_and_close": 3.0929999999934807,
|
||||
"verify_saved_project": 0.0,
|
||||
"session_wait": 0.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"old_part_number": "4100-CA1030-T7",
|
||||
"elapsed_seconds": 62.38554909999948,
|
||||
"worker_stage_seconds": {
|
||||
"check_project": 0.062000000034458935,
|
||||
"open_sheet": 2.062999999965541,
|
||||
"query_components": 0.031000000017229468,
|
||||
"find_components": 0.6879999999655411,
|
||||
"index_pins": 7.1859999999869615,
|
||||
"snapshot_attributes": 0.7189999999827705,
|
||||
"capture": 0.15700000000651926,
|
||||
"native_snapshot_read": 6.546000000031199,
|
||||
"before_native": 0.21899999998277053,
|
||||
"native_replace": 19.78100000001723,
|
||||
"restore_preflight": 0.7339999999967404,
|
||||
"index_components": 1.3760000000474975,
|
||||
"before_restore_transaction": 1.5,
|
||||
"restore_attribute_fields": 6.907000000006519,
|
||||
"restore_attributes": 0.015000000013969839,
|
||||
"verify_restoration": 0.8439999999245629,
|
||||
"verify_attribute_fields": 1.1880000000237487,
|
||||
"finished": 1.297000000020489,
|
||||
"save_and_close": 6.313000000023749,
|
||||
"verify_saved_project": 0.0,
|
||||
"open_project": 7.85899999999674,
|
||||
"session_wait": 0.23399999999674037
|
||||
},
|
||||
"worker_stage_source": "Last worker-progress.json sampled before release; final close time may be incomplete."
|
||||
}
|
||||
]
|
||||
},
|
||||
"recovery": {
|
||||
"verified": true,
|
||||
"seconds": 61.06199999997625,
|
||||
"state": "restored_ok",
|
||||
"proof": "recovery_saved_verified",
|
||||
"additional_native_replacement": false,
|
||||
"closed_without_additional_saving": true,
|
||||
"native_full_reads": 1,
|
||||
"graph_equivalence": {
|
||||
"hier": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "32b36adbef100db505ea3d98ca628d50a94c91826d7289d90e473b3f9c864a31"
|
||||
},
|
||||
"flat": {
|
||||
"equal": true,
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"sha256": "acbb89d93ebd3dc35f7d4b794df943c2ef5d164a0fb0c1626c432d2a0aa5b033"
|
||||
}
|
||||
}
|
||||
},
|
||||
"isolation": {
|
||||
"formal": {
|
||||
"owned_cad_exit_confirmed": true,
|
||||
"owned_desktops_released": true,
|
||||
"input_desktop_unchanged": true,
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"file_read_samples": 843,
|
||||
"observer_errors": []
|
||||
},
|
||||
"recovery": {
|
||||
"owned_cad_exit_confirmed": true,
|
||||
"owned_desktops_released": true,
|
||||
"input_desktop_unchanged": true,
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"file_read_samples": 266,
|
||||
"observer_errors": []
|
||||
}
|
||||
},
|
||||
"readonly_host_probes": [
|
||||
{
|
||||
"native_seconds": 1.172000000020489,
|
||||
"external_seconds": 46.09299999999348,
|
||||
"equal_rows": 114,
|
||||
"component_count": 57
|
||||
},
|
||||
{
|
||||
"native_seconds": 0.8439999999827705,
|
||||
"native_repeat_seconds": 0.7650000000139698,
|
||||
"external_seconds": 33.23499999998603,
|
||||
"equal_rows": 114,
|
||||
"component_count": 57
|
||||
}
|
||||
],
|
||||
"rejected_bulk_attribute_candidate": {
|
||||
"enabled_in_production": false,
|
||||
"equivalent": false,
|
||||
"bulk_seconds": 0.44640369998523965,
|
||||
"individual_seconds": 6.037832499889191,
|
||||
"differences": [
|
||||
{
|
||||
"refdes": "RV01",
|
||||
"bulk_part_label": " ",
|
||||
"individual_part_label": ""
|
||||
}
|
||||
],
|
||||
"reason": "Space versus empty string semantic mismatch and incomplete full attribute style fields."
|
||||
},
|
||||
"initial_failed_host_probe": {
|
||||
"verified": false,
|
||||
"reason": "Host predefines VDM_COMP / VDM_COMPPIN / VD_ALL; duplicate declarations opened a script compile error dialog. Generator now omits these declarations.",
|
||||
"owned_probe_dialog_acknowledged": true,
|
||||
"owned_cad_exit_code": 0,
|
||||
"desktop_release_confirmed": true,
|
||||
"clean_flag": false,
|
||||
"clean_flag_note": "Probe exception, not cleanup failure; no cleanup errors and desktop confirmation released=true.",
|
||||
"source_hashes_unchanged": true
|
||||
},
|
||||
"test_fixture_correction": "Initial integration run: 201 passed / 13 failed. Extracted VBS guard fixture lacked QPUseNativeSnapshot; corrected fixture and reran the final targeted suite successfully.",
|
||||
"limitations": [
|
||||
"One same-source formal run per revision; no general speed guarantee.",
|
||||
"189.250 seconds remains above the proposed 180-second target.",
|
||||
"Native read has no per-component external heartbeat; the existing 150-second idle monitor and safe-boundary cancellation remain, so very large pages need separate certification.",
|
||||
"PCB Cell Name mapping and complex hierarchical/multi-gate cases remain uncertified.",
|
||||
"1000-step simulated queue performance threshold remains unresolved.",
|
||||
"No package build or release performed."
|
||||
],
|
||||
"raw_evidence_roots": [
|
||||
"build/native-adapter-20261019",
|
||||
"build/native-read-formal-bom-20261019",
|
||||
"build/native-read-ascii-result-20261019",
|
||||
"build/native-read-ascii-after-recovery-20261019",
|
||||
"build/native-snapshot-host-20261019",
|
||||
"build/native-snapshot-host-20261019-v2",
|
||||
"build/native-snapshot-host-20261019-v3",
|
||||
"build/bulk-identity-probe-20261019"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,255 @@
|
||||
{
|
||||
"classification": "local acceptance candidate, no public release",
|
||||
"source_commit": "e6ec267a26efedbab796207b8044533d02222350",
|
||||
"exe_sha256": "de21d56084d9adde155311c5679fd4ea2bca7b981e42cc1748fc72dbaba32c45",
|
||||
"zip_sha256": "aee87aa879b61164731cab9914ea5c84b22f645ef016d55c915fa256db447d7b",
|
||||
"zip_bytes": 55376574,
|
||||
"frozen_module_code_checks": {
|
||||
"dx_productivity.trial_task_center.native_helper": true,
|
||||
"dx_productivity.trial_task_center.recovery": true,
|
||||
"dx_productivity.trial_task_center.quick_run": true,
|
||||
"dx_productivity.trial_task_center.legacy_paths": true,
|
||||
"dx_productivity.trial_task_center.logging_setup": true,
|
||||
"dx_productivity.trial_task_center.retention": true,
|
||||
"dx_productivity.trial_task_center.ui.main_window": true,
|
||||
"dx_productivity.trial_task_center.ui.dialogs": true
|
||||
},
|
||||
"bom_imports": [
|
||||
{
|
||||
"file": "BOM-含错误位号.xlsx",
|
||||
"seconds": 6.202999999979511,
|
||||
"title": "本批 BOM 校验未通过 · 通过 2 / 失败 1 / 未检查 0 行 · 详情"
|
||||
},
|
||||
{
|
||||
"file": "BOM-替换RV05.xlsx",
|
||||
"seconds": 3.4380000000237487,
|
||||
"title": "本批 BOM 校验通过 · 通过 2 / 失败 0 / 未检查 0 行 · 详情"
|
||||
}
|
||||
],
|
||||
"template_columns": 11,
|
||||
"project_path_lengths": [
|
||||
362,
|
||||
135
|
||||
],
|
||||
"execution_seconds": 167.0,
|
||||
"workflow_passed": {
|
||||
"bom_passed": true,
|
||||
"execute_passed": true,
|
||||
"details_passed": true,
|
||||
"new_round_passed": true
|
||||
},
|
||||
"independent_attributes_passed": true,
|
||||
"graph_verification": {
|
||||
"Audio_D2128": {
|
||||
"hier": {
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"untouched": 56,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true,
|
||||
"selected_uids": [
|
||||
"$2I2014"
|
||||
]
|
||||
},
|
||||
"flat": {
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"untouched": 56,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true,
|
||||
"selected_uids": [
|
||||
"$2I2014"
|
||||
]
|
||||
}
|
||||
},
|
||||
"Audio_T605A": {
|
||||
"hier": {
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"untouched": 56,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true,
|
||||
"selected_uids": [
|
||||
"$2I2014"
|
||||
]
|
||||
},
|
||||
"flat": {
|
||||
"components": 57,
|
||||
"pins": 103,
|
||||
"nets": 22,
|
||||
"untouched": 56,
|
||||
"all_pin_connections_unchanged": true,
|
||||
"net_graph_unchanged": true,
|
||||
"selected_uids": [
|
||||
"$2I2014"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"upgrade": {
|
||||
"legacy_version": "1.1.1",
|
||||
"task_count": 2,
|
||||
"candidate_exit_code": 0,
|
||||
"task_identities_preserved": true,
|
||||
"legacy_source_unchanged": true,
|
||||
"fixture_is_metadata_only": true,
|
||||
"cad_launched": false,
|
||||
"rules_preserved": true,
|
||||
"unselected_cells_migrated": true,
|
||||
"rule_count": 1
|
||||
},
|
||||
"source_integrity": {
|
||||
"tracked_files": 1033,
|
||||
"changed": [],
|
||||
"unchanged": true
|
||||
},
|
||||
"gui_exit_confirmed": true,
|
||||
"acceptance_driver_history": [
|
||||
{
|
||||
"name": "bom",
|
||||
"exit_code": 0,
|
||||
"seconds": 21.04700000002049
|
||||
},
|
||||
{
|
||||
"name": "ascii-before-Audio_D2128",
|
||||
"exit_code": 0,
|
||||
"seconds": 1.7349999999860302
|
||||
},
|
||||
{
|
||||
"name": "ascii-before-Audio_T605A",
|
||||
"exit_code": 0,
|
||||
"seconds": 3.3119999999762513
|
||||
},
|
||||
{
|
||||
"name": "execute",
|
||||
"exit_code": 0,
|
||||
"seconds": 172.125
|
||||
},
|
||||
{
|
||||
"name": "ascii-after-Audio_D2128",
|
||||
"exit_code": 0,
|
||||
"seconds": 2.094000000040978
|
||||
},
|
||||
{
|
||||
"name": "ascii-after-Audio_T605A",
|
||||
"exit_code": 0,
|
||||
"seconds": 2.25
|
||||
},
|
||||
{
|
||||
"name": "graph",
|
||||
"exit_code": 1,
|
||||
"seconds": 0.2809999999590218
|
||||
},
|
||||
{
|
||||
"name": "graph-readonly-continuation",
|
||||
"exit_code": 0,
|
||||
"seconds": 0.35899999999674037
|
||||
},
|
||||
{
|
||||
"name": "independent",
|
||||
"exit_code": 0,
|
||||
"seconds": 71.15600000001723
|
||||
},
|
||||
{
|
||||
"name": "details",
|
||||
"exit_code": 0,
|
||||
"seconds": 5.452999999979511
|
||||
},
|
||||
{
|
||||
"name": "new_round",
|
||||
"exit_code": 0,
|
||||
"seconds": 3.672000000020489
|
||||
},
|
||||
{
|
||||
"name": "upgrade",
|
||||
"exit_code": 0,
|
||||
"seconds": 2.9060000000172295
|
||||
}
|
||||
],
|
||||
"acceptance_continuations": [
|
||||
{
|
||||
"reason": "Graph driver moved out of build directory without importing build/compare_speed_graphs.py; original graph.log preserved. Continue read-only checks only; do not repeat BOM or replacement."
|
||||
}
|
||||
],
|
||||
"simulated_thousand_step_performance": {
|
||||
"mode": "simulated_worker_with_tracemalloc",
|
||||
"projects": 20,
|
||||
"sheets_per_project": 5,
|
||||
"rules_per_sheet": 10,
|
||||
"steps": 1000,
|
||||
"saved_steps": 91,
|
||||
"elapsed_seconds": 21.09137500001816,
|
||||
"peak_bytes": 2222949,
|
||||
"steps_per_second": 47.41274573133041
|
||||
},
|
||||
"observations": {
|
||||
"bom": {
|
||||
"samples": 90,
|
||||
"file_read_samples": 90,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"cad_exit_confirmed": {},
|
||||
"desktop_absent": {},
|
||||
"observer_errors": []
|
||||
},
|
||||
"execute": {
|
||||
"samples": 777,
|
||||
"file_read_samples": 777,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"cad_exit_confirmed": {
|
||||
"48256": true,
|
||||
"57156": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-41f857133ad944d0bd505353f08d3f01": true,
|
||||
"dx-018deea03c1f4919881c5240d37f2182": true
|
||||
},
|
||||
"observer_errors": []
|
||||
},
|
||||
"independent": {
|
||||
"samples": 318,
|
||||
"file_read_samples": 318,
|
||||
"input_desktop_before": "Default",
|
||||
"input_desktop_after": "Default",
|
||||
"owned_cad_became_foreground": false,
|
||||
"owned_cad_on_input_desktop": false,
|
||||
"cad_exit_confirmed": {
|
||||
"57156": true,
|
||||
"48256": true,
|
||||
"5152": true,
|
||||
"53048": true
|
||||
},
|
||||
"desktop_absent": {
|
||||
"dx-018deea03c1f4919881c5240d37f2182": true,
|
||||
"dx-41f857133ad944d0bd505353f08d3f01": true,
|
||||
"dx-d7b2ebad35374423924e1d7fd2378905": true,
|
||||
"dx-ce18687b705b488ea4d683cb531659ee": true
|
||||
},
|
||||
"observer_errors": []
|
||||
}
|
||||
},
|
||||
"native_optional_cell_evidence": [
|
||||
{
|
||||
"task_id": "38038e44-19e7-4bb7-803a-92f12452056b",
|
||||
"stage": "native_replace_verified",
|
||||
"ok": true,
|
||||
"target_cell_absent": true,
|
||||
"cell_catalog_absent": true
|
||||
},
|
||||
{
|
||||
"task_id": "69408849-1dc0-4461-a832-cfff3d599576",
|
||||
"stage": "native_replace_verified",
|
||||
"ok": true,
|
||||
"target_cell_absent": true,
|
||||
"cell_catalog_absent": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loaded 100 of 299 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user