docs: record native snapshot BOM and recovery acceptance
This commit is contained in:
1 parent
81f34683ea
commit
e74ec5bcbd
5 files changed
+322
-17
No files matched your search
@@ -26,40 +26,40 @@ 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(SelectedUids, Token, Project, Sheet, Guid, ResultPath): emits native bootstrap plus an explicit whitelist of original read-only routines; native QPProgress checks cancellation only.
|
||||
- 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.
|
||||
|
||||
- [ ] Write literal frame tests: one zero-pin unselected component, one selected UID, total=2; expected rows["u2"] equals its original U/G pair.
|
||||
- [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']
|
||||
```
|
||||
|
||||
- [ ] 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.
|
||||
- [ ] 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.
|
||||
- [ ] Run the adapter tests and commit after they pass.
|
||||
- [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, integration/dxdesigner795/QuickPartReplace.vbs, packaging/DxPartReplace.spec and focused runtime tests.
|
||||
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.
|
||||
- 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.
|
||||
- QPVerifyNativeUntouched(Records): compare complete actual rows, total and unselected UID set to existing persisted baselines.
|
||||
- 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.
|
||||
|
||||
- [ ] Reproduce a prepared default worker missing the adapter and a custom worker that must remain unchanged.
|
||||
- [ ] Compose all three existing source-copy callsites through _copy_worker_script; include the adapter in the frozen resource specification without building.
|
||||
- [ ] Route capture and QPVerifyUntouched through native reads only behind QPUseNativeSnapshot. Retain original external loops for other modes and all invalidation calls.
|
||||
- [ ] Run focused runtime, VBS, execution/recovery and existing accuracy tests. Review any failures before continuing; commit tested integration.
|
||||
- [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.
|
||||
|
||||
- [ ] Request an independent read-only review of ownership gating, native function whitelist, nonce/context checks, failure propagation and exact full-baseline comparison.
|
||||
- [ ] Run the established default-template BOM harness on a fresh build/ copy with RV05 and RV14, recording script hashes and timings.
|
||||
- [ ] 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.
|
||||
- [ ] Exercise read-only recovery on the disposable successful queue because it also calls full verification; confirm no additional replacement/save and safe release.
|
||||
- [ ] 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.
|
||||
- [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.
|
||||
@@ -12,6 +12,7 @@
|
||||
- 结果有版本头、令牌、工程、图页和完整结束标记。拒绝旧令牌、截断、重复 UID、U/G 不一致、未选中集合变化、丢失目标和错误总数。
|
||||
- 目标 UID 只用于排除未选中集合;原生读前后核对目标集合存在。保存前及磁盘重开后均重新执行完整读取。
|
||||
- 原生错误、命令失败、缺失结果、取消均不得生成成功证明;命令已发出后不静默回退。原生读取不写 CAD、不改选择、不保存。
|
||||
- 宿主命令使用脚本短路径。路径含宿主不支持的字符时,仅允许在派发命令前退回完整外部读取;原始完整检查仍然执行。
|
||||
- 原生宿主预定义 Vd 枚举,不重复声明;支持同一 CAD 会话连续调用。
|
||||
- 取消检查使用当前监控令牌,在原有可安全中止的边界响应;外层监控和自有进程释放仍保留。
|
||||
- 不打包发布;不触碰 feedback/,实机只用 build/ 下新副本。
|
||||
|
||||
Reference in new issue
Block a user