docs: record target cell acceptance and remaining release gates
This commit is contained in:
1 parent
ec75445f44
commit
81a8547352
6 files changed
+212
-18
No files matched your search
@@ -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.
|
||||
@@ -24,7 +24,7 @@ Files: NativeSnapshotReader.vbs, QuickPartReplace.vbs, test_native_selected_capt
|
||||
|
||||
- [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.
|
||||
- [ ] Complete same-source legal BOM baseline/native runs and field/graph equivalence; commit evidence separately.
|
||||
- [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)
|
||||
|
||||
@@ -32,10 +32,10 @@ Files: models.py, store.py, store_schema.py, service.py rule methods, batch_rule
|
||||
|
||||
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.
|
||||
|
||||
- [ ] Write meaningful red tests for migration, batch propagation, BOM-preserved selection, selected target compilation, PN change invalidation and UI stale choices.
|
||||
- [ ] Implement field, editing dropdown/load action and async current-PN binding; preserve existing dialog.values() tuple for callers if practical.
|
||||
- [ ] 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.
|
||||
- [ ] Run scoped tests, self-review and commit only owned files. Root will review and integrate.
|
||||
- [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)
|
||||
|
||||
@@ -43,23 +43,27 @@ Files: new cell_catalog.py, new cell_catalog_worker.py if needed, application.py
|
||||
|
||||
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.
|
||||
|
||||
- [ ] Reproduce incomplete dependency/old fingerprint/duplicate target behavior with fakes; test failures are explicit.
|
||||
- [ ] Implement complete shadow copy with metadata preservation, source proof, exact numeric COM enumeration and all cleanup.
|
||||
- [ ] Use installed IMGCLMPart.AssociatedCells; no raw DLL ABI guessing. Reuse probe findings; do not operate on originals.
|
||||
- [ ] Run focused tests and a tiny read-only owned-library probe if needed; commit only owned files.
|
||||
- [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.
|
||||
|
||||
- [ ] Add target_cell queue option and separate L snapshot row; mismatch/changes cannot resume old work.
|
||||
- [ ] Verify current catalog and selected value before mutation; bind catalog/choice in native evidence.
|
||||
- [ ] Write selected Cell instance within existing restore transaction; validate full targets, untouched baseline, save/reopen and saved recovery.
|
||||
- [ ] Red/green tests for missing/invalid/changed choice, no broad writes and restoration failure.
|
||||
- [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)
|
||||
|
||||
- [ ] Review each task against spec and quality; resolve important findings.
|
||||
- [ ] Run appropriate combined regressions, final GUI interaction and representative BOM/cross-cell copy execution.
|
||||
- [ ] Record actual timings, known research failures, mapping/graph/desktop proofs and limits; update docs.
|
||||
- [ ] Commit and push; verify remote HEAD and only feedback/ untracked. No release.
|
||||
- [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.
|
||||
@@ -19,11 +19,13 @@
|
||||
|
||||
- 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) -> CellCatalog。
|
||||
- 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 行已有字段顺序。新任务缺选择必须在原生替换提交前停止。
|
||||
|
||||
@@ -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 |
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -10,6 +10,8 @@
|
||||
2. 点击 **读取封装**,等待后台读取中央库。在 **目标封装** 下拉框中明确选择一项;只有一个候选时也需要选择。
|
||||
3. 保存规则,在 **本批料号规则** 中核对对应旧、新料号的 **目标封装**。直接采集位号或导入 BOM,保存计划后执行。
|
||||
|
||||

|
||||
|
||||
也可以先导入并保存 BOM,再添加与计划中旧、新料号一致的规则并选择封装。相同映射中尚未选择封装的计划行会补齐;已有独立选择、自定义 Value、NC 和位号勾选会保留。手动修改计划的新料号后,原封装选择会清空,需要在对应规则中重新配置。
|
||||
|
||||
默认 BOM 继续使用原来的 **11 列**,没有增加封装列。同批规则由所有任务共享,候选取本批各工程中央库的共同可用项;无共同候选时,需要检查库配置或将工程分成不同批次。
|
||||
|
||||
Reference in new issue
Block a user