Repository navigation
test: 验证 Pi Durable 跨进程恢复并记录适配方案 - #49
Merged
Merged
Conversation
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
推进 #10 的隔离实验阶段,新增 Pi Durable 1.5.2 两步只读任务 PoC、ADR 0002、兼容性与状态映射,以及三份验证记录。源码和 npm lock 的 SHA-256 随验证记录归档。
父进程在第一步结果提交、第二步读取完成后强制终止工作进程,再通过全新进程恢复同一任务。验证第一步只读取一次、未提交的第二步读取两次、已保存结果抵抗源文件变化,以及终态任务重开的一致性。
关联 #10。Electron 主进程、renderer、模型/工具接线与打包态验收继续在该 Issue 跟踪。
测试报告
环境为 Windows x64 10.0.26100、Bun 1.4.2、Node 24.19.0、npm 11.17.0、Electron 39.8.9 内置 Node 22.22.1。Trail 基线为 e695545,Pi Durable、pi-ai 和 chord 固定为 npm 1.5.2,完整依赖通过实验目录的 package-lock.json 固定。
另通过 Node spawnSync 调用 apps/electron/node_modules/electron/dist/electron.exe,传入同一脚本和 ELECTRON_RUN_AS_NODE=1,1 个完整恢复实验通过。此项覆盖 Electron 内置 Node 的执行环境,桌面集成仍待验证。
ADR 的 10 个本地相对链接、3 份验证 JSON 和依赖 integrity 已核对,git diff --check 通过。
验证范围
实验使用本地合成数据与独立临时目录。真实模型请求、注册工具、外部 API、预算/审批、Electron 主进程与 Windows 安装包待后续验收。#10 继续开放。
无可见 UI 变化。
本 PR 由 Codex 协助实现、验证和整理。