docs: record target cell acceptance and remaining release gates

This commit is contained in:
阿白叔 committed 2026-10-19 15:40:50 +08:00
1 parent ec75445f44
commit 81a8547352
6 files changed
+212 -18

No files matched your search

@@ -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 行已有字段顺序。新任务缺选择必须在原生替换提交前停止。