docs: deliver 1.14 with retained host and sealed release evidence

This commit is contained in:
Agent Workbench Dev
2026-10-31 08:16:56 +08:00
parent e135523721
commit e634a252dd
65 changed files with 71876 additions and 27 deletions
+2 -1
View File
@@ -38,7 +38,8 @@
- 2026-10-31完成1.12.1里程碑审查及五类确认问题修复,实现7b1f529、分支feat/milestone-audit-1.12.1;371/371独立源码、150组UI、最终归档/便携与保留状态正式升级通过,见docs/QA-1.12.1.md和docs/MILESTONE-AUDIT.md。当前正式PID23172/Provider、2连接/1池及升级时16项目/27全部会话/2523记录/4510事件每行和全导出保持;历史PID19084不作为当前进程。后续实际身份和数据重新核对,不套用历史计数。NEXT-STEPS已记录隔离worker起点及各能力真实验收标准,本轮未开启后续新功能;真实模型工程验收继续按用户选择暂缓。
- 本仓库已启用本地Git,v1.0.0-baseline为已验证基线;各切片使用具体开发分支,1.12交付位于feat/model-center-1.12。
- 1.13已交付两个受限worker、当前成果/冲突与父工程审查、停止恢复和累计预算,代码e1a2661及QA补强91cdd45位于feat/isolated-workers-1.13。新三工程13节点、父Node8/8/React9/9/Python10/10、React两视口各10断言、完整UI21类160组与独立404/404通过;最终不可变20261030193314594归档/便携及正式1.13.0升级通过。原PID23172/Provider、2连接/1池/6既有请求摘要及最新16项目/28会话/2551记录/4568事件每行/全导出保持,部署后10页通过。原403/404失败保留;下一阶段docs/PLAN-1.14.md受控引擎/Purge未实现,真实模型工程继续暂缓。
- 1.13已交付两个受限worker、当前成果/冲突与父工程审查、停止恢复和累计预算,代码e1a2661及QA补强91cdd45位于feat/isolated-workers-1.13。新三工程13节点、父Node8/8/React9/9/Python10/10、React两视口各10断言、完整UI21类160组与独立404/404通过;最终不可变20261030193314594归档/便携及正式1.13.0升级通过。原PID23172/Provider、2连接/1池/6既有请求摘要及当时16项目/28会话/2551记录/4568事件每行/全导出保持,部署后10页通过。原403/404失败保留;后续1.14实际状态以下方记录为准,真实模型工程继续暂缓。
- 1.14已交付固定DeepSeek Harness受控工具/模型桥、所属prompt/审批/预算/原结果/停止及父工程审查/Git,Purge两版本来源锁定提示实验默认关闭;产品53e196a、QA路径57d075e/便携Git b311116位于feat/controlled-engines-1.14。新三工程13节点、父8/8/9/9/10/10、React两视口各8断言、23类178组UI及独立445/445通过;最终不可变20261030235440461便携11427/源码9748文件归档/实际随包及正式1.14.0升级通过。原PID23172/Provider、2连接/1池/6原请求摘要及16项目/28会话/2551记录/4568事件、全部7表每行/全导出保持,部署后14页通过,9229关闭。升级后QA误判原Node路径/SQLite行原型的失败与原快照保留,续验未重放升级;当前宿主execPath仍原1.12启动包,真实二进制SHA与1.14完全相同,runtimeRoot才表示当前处理器。见docs/QA-1.14.md及发行身份;下一PLAN-1.15桌面/本机加密连接尚未实现,真实推理/Purge收益继续暂缓。
- 用户授权后续按可审查小步本地提交。每个独立实现/修复/规划改动通过相关检查后,检查diff并提交,报告commit与结果;只读且无变化时不做空提交。
- 常规后续提交只暂存本次修改范围;保留其他人/用户的已有改动。
- 实验使用具体任务分支/worktree,合并前验证;不要用破坏性reset/clean丢弃工作。
+2 -1
View File
@@ -1,11 +1,12 @@
# Agent Workbench 更新记录
## 1.14.0 · 2026-10-31(发行验收中)
## 1.14.0 · 2026-10-31
- 固定已有DeepSeek Harness及独立profile,禁用原生项目/终端/模型插件;原prompt、工具和模型请求进入工作台所属任务、审批、预算与原工件账本,成果经父工程审查、检查及Git交付。
- 受控引擎原记录页展示安装/输入/实际事件、分页和原SHA下载;停止等待所属进程树,未知结果需核对,不恢复旧SDK会话或重放已完成操作。窄屏审批导航和标题栏触控已补强。
- Purge两版本来源分别锁定,新增独立默认关闭的工程提示实验。实际输入逐请求核对唯一完整提示,来源变化、重复/遗漏提示及预算超限在副作用前拒绝;真实模型收益继续独立待验。
- 修复升级的worker/driver/MCP活动遗漏、旧管理器保留、失败恢复、同owner元数据及旧会话导出兼容;80项相关回归及编译宿主四节点通过,完整源码/UI/便携与正式升级结果见[1.14验收](docs/QA-1.14.md)。
- 最终独立源码445/445、23类178组UI、三个功能工程13节点及源码/便携发行通过。正式服务保持原PID、模型连接及16项目/28会话/全部执行证据升级1.14.0,部署后桌面/390px14页复验通过;原失败及逐项来源封存,下一桌面阶段见[1.15计划](docs/PLAN-1.15.md)。
## 1.13.0 · 2026-10-31
+2 -2
View File
@@ -2,7 +2,7 @@
Agent Workbench 将 Claude Code 与 Cursor 的机制研究整合为独立的本地 AI 编程工作台,并内置模型池、项目记忆、Skills/MCP、REA 工件研究、受控DeepSeek Harness工程引擎、实际页面验收和有依赖的执行计划。工程索引、精确补丁、多文件整批审查、Node/Python实际检查、浏览器交互、本地Git提交及交付报告可以在同一个Task中完成。
1.14.0新增固定版本的受控引擎与工具/模型桥,原生prompt、审批、预算、原结果和停止进入所属Task/Run;独立工作区成果由父工程审查、检查及Git交付。Purge两版本来源锁定的提示实验默认关闭。三个真实功能工程13节点、23类178组UI和独立源码445/445通过,随包Node/npm/REA/SDK/Edge与受控工程也已实测;最终发行及当前[本地工作台](http://127.0.0.1:4318/?release=1.14.0)状态见[QA-1.14](docs/QA-1.14.md)。真实模型推理收益按原选择独立待验。
1.14.0已正式本地交付固定版本的受控引擎与工具/模型桥,原生prompt、审批、预算、原结果和停止进入所属Task/Run;独立工作区成果由父工程审查、检查及Git交付。Purge两版本来源锁定的提示实验默认关闭。三个真实功能工程13节点、23类178组UI、独立源码445/445及最终源码/便携验收通过;原PID、模型连接和全部历史保持,部署后14页复验通过。当前[本地工作台](http://127.0.0.1:4318/?release=1.14.0)、发行身份与具体结果见[QA-1.14](docs/QA-1.14.md)。真实模型推理收益按原选择独立待验。
1.13.0已本地交付[隔离协作](docs/WORKERS.md):父目标与两个受限Git工作区、累计预算/停止恢复、当前成果核对、具体冲突和父工程审查/检查/Git交付。独立源码404/404、完整界面21类160组与三个真实功能工程通过,父Node8/8、React9/9、Python10/10及构建/编译/Git,React内置Edge两视口各10项断言。正式[本地工作台](http://127.0.0.1:4318/?release=1.13.0)已保持原进程/模型连接/全部历史升级,验收与部署见[QA-1.13](docs/QA-1.13.md)。
@@ -22,7 +22,7 @@ Agent Workbench 将 Claude Code 与 Cursor 的机制研究整合为独立的本
## 后续产品与能力建设
1.12包含模型中心/池路由、[项目记忆](docs/PROJECT-MEMORY.md)、[任务恢复检查点](docs/TASK-CHECKPOINTS.md)、[Skills](docs/SKILLS.md)和[项目MCP](docs/MCP.md)。记忆只在来源复核、脱敏且请求预算允许时使用;恢复检查点绑定完整要求和原结果,核对后显式续接同一任务。1.13两个受限worker完成发行后,按[1.14方案](docs/PLAN-1.14.md)推进受控引擎与Purge对照,再接受桌面壳、手机远程配对、更多模型协议及多模态。
1.12包含模型中心/池路由、[项目记忆](docs/PROJECT-MEMORY.md)、[任务恢复检查点](docs/TASK-CHECKPOINTS.md)、[Skills](docs/SKILLS.md)和[项目MCP](docs/MCP.md)。记忆只在来源复核、脱敏且请求预算允许时使用;恢复检查点绑定完整要求和原结果,核对后显式续接同一任务。1.13两个受限worker与1.14受控引擎/提示实验均已完成发行;下一阶段按[1.15桌面方案](docs/PLAN-1.15.md)开发窗口与宿主分离、本机加密连接、单实例及可回退安装,再推进真实手机配对、更多模型协议和多模态。
当前Git项目可以先预览已提交版本,再创建独立目录和分支;来源已有暂存、未提交及未跟踪文件保留在原项目。子工作区有自己的项目、会话和实际执行目录,创建中断后显式核对。模型准备Git交付预览后停止请求,确认这份预览后由内核完成提交和报告。具体范围见[独立工作区](docs/WORKSPACES.md)及[1.6验收](docs/QA-1.6.md)。
+2 -2
View File
@@ -4,9 +4,9 @@
总体方案见 [PRODUCT-PLAN.md](PRODUCT-PLAN.md),研究问题与来源见 [RESEARCH-ROADMAP.md](RESEARCH-ROADMAP.md)。
1.14当前开发状态:固定DeepSeek Harness受控工具/模型桥、单个所属worker、真实prompt/审批/检查/父审查/Git与停止核对已实现;Purge两版本来源锁定及独立默认关闭提示实验已验收。升级兼容七项与最新80项相关回归、编译宿主四节点通过,253份源码输入/6构建/40基准已冻结。最终1.14真实工程/UI、独立源码/便携和正式升级仍在推进;正式基线暂为下方1.13。见[1.14验收](QA-1.14.md)与[下一桌面阶段](PLAN-1.15.md)。
2026-10-31当前正式交付基线为1.14.0:固定DeepSeek Harness受控工具/模型桥、单个所属worker、真实prompt/审批/检查/父审查/Git与停止核对,以及两版本来源锁定的默认关闭提示实验已交付。独立445/445、253份输入/6构建/40基准、三工程13节点、23类178组UI及最终便携/归档、保留状态升级通过。原PID23172/Provider、完整模型中心和全部7表每行/28会话导出保持,部署后14页通过。真实模型推理收益及其它引擎适配继续独立待验;见[1.14验收](QA-1.14.md)与[下一桌面阶段](PLAN-1.15.md)。
2026-10-31当前交付基线为1.13.0:1.12.1逐里程碑/24项能力审查与五类确认问题修复保持,本阶段两个受限worker、父成果审查/恢复、独立404/404、完整160组UI、三工程13节点与最终源码/便携正式升级通过。原PID23172/Provider、完整模型中心及最新16项目/28会话/2551记录/4568事件每行和全导出保持,部署后10页通过,见[1.13验收](QA-1.13.md)和[回顾](RETROSPECTIVE-1.13.md)。各版本旧数字保留为历史证据,下一切片与未交付范围统一见[NEXT-STEPS](NEXT-STEPS.md)。
1.13历史交付:1.12.1逐里程碑/24项能力审查与五类确认问题修复保持,本阶段两个受限worker、父成果审查/恢复、独立404/404、完整160组UI、三工程13节点与最终源码/便携正式升级通过。原PID23172/Provider、完整模型中心及当时16项目/28会话/2551记录/4568事件每行和全导出保持,部署后10页通过,见[1.13验收](QA-1.13.md)和[回顾](RETROSPECTIVE-1.13.md)。各版本旧数字保留为历史证据,下一切片与未交付范围统一见[NEXT-STEPS](NEXT-STEPS.md)。
[1.12执行方案](PLAN-1.12.md)的连接注册/专业界面、模型池、已验证格式导入、运行巡检及后续记忆、恢复、Skills/MCP切片已随1.12.0正式部署;独立源码357/357、完整界面150组及保留状态升级通过。跨协议、多模态及未知配置格式仍按各自边界实现与验收。
+9 -8
View File
@@ -1,10 +1,10 @@
# 后续执行计划
更新:2026-10-31。当前正式交付基线为1.13.0,[1.12.1里程碑审查](MILESTONE-AUDIT.md)及本阶段隔离协作、独立源码404/404、完整UI21类160组、三工程13节点、最终归档/便携和保留状态升级已完成。原PID23172/Provider、模型中心及最新16项目/28会话/2551记录/4568事件每行和全部导出保持,部署后10页通过。下一阶段按[1.14方案](PLAN-1.14.md)推进受控外部引擎与DSH-purge对照;真实模型工程验收仍按用户选择暂缓。历史研究、局部测试与连接核验不能代替真实工程交付。其他项目不进入本计划。
更新:2026-10-31。当前正式交付基线为1.14.0,[1.12.1里程碑审查](MILESTONE-AUDIT.md)及1.13隔离协作保持;[1.14受控引擎与提示实验](QA-1.14.md)的A–F、独立445/445、23类178组UI、三工程13节点、最终归档/便携和保留状态升级已完成。原PID23172/Provider、模型中心及16项目/28会话/2551记录/4568事件和全部7表每行/全部导出保持,部署后14页通过。下一阶段按[1.15方案](PLAN-1.15.md)开发Windows桌面与本机加密连接;真实模型工程及Purge推理收益仍按用户选择暂缓。历史研究、局部测试与连接核验不能代替真实工程交付。其他项目不进入本计划。
产品目标是让用户给出需求后,工作台能保留项目基线,完成定位、计划、修改、检查、必要修复、审查和Git交付,并在停止、故障、断线后明确保留已完成结果。桌面与手机共享同一执行宿主、任务和证据。
当前接续:1.14的A–E已实现并分别验收,F正在完成升级兼容、编译宿主、完整界面、独立源码/便携及正式状态核对,不跳过发行门槛。下一阶段[Windows桌面与本机加密连接方案](PLAN-1.15.md)已记录六个切片及真实安装/重启/工程/回退标准,尚未开始实现。
当前接续:1.14已正式交付,原失败、独立源码/随包/界面与升级证据均封存。下一阶段[Windows桌面与本机加密连接方案](PLAN-1.15.md)已记录六个切片及真实安装/重启/工程/回退标准,前置已通过;从A宿主身份、单实例与窗口生命周期开始,尚未实现桌面壳或持久凭据。
## 执行顺序与完成门槛
@@ -12,7 +12,8 @@
| --- | --- | --- | --- |
| 0:审查闭环(完成) | 对照1.0–1.12计划/模块/原报告;修复确认问题;补丁发行及安装失败回退核验 | 保留旧发行、历史失败和正式服务连接 | 1.12.1独立371项、150组UI、实际旧进程/页面8组、最终便携/归档及部署后8页通过;当前PID23172/Provider、完整模型中心与四表每行/全部会话导出保持;未完成能力明确登记 |
| 1:隔离执行与多worker(完成) | 父任务拆分、两个所属worker、独立worktree、累计预算、停止恢复、成果归集、具体冲突及父工程审查 | 当前Task/Run、工作区、计划和未知结果恢复契约 | 三工程13节点、父Node8/8、React9/9、Python10/10与构建/编译/Git、React两视口各10断言、独立404项、160组UI、最终归档/便携与保留状态升级通过,见QA-1.13 |
| 2:引擎执行与增强对照 | 固定版本的Codex/DeepSeek适配、受控工具桥;Claude Code/Cursor/WorkBuddy机制研究;DSH-purge实验 | 外部SDK的实际审批、取消、写入与事件契约;阶段1隔离工作区 | 引擎能完成一个指定工程任务,原输入、工具与结果可追溯;Purge按同模型、同题、同预算进行有/无插件对照,记录失败和人工介入;仅采纳有证据的机制 |
| 2a:受控DeepSeek与提示对照(1.14完成) | 固定Harness/工具模型桥、所属工程/停止/父审查、两版本来源锁定默认关闭提示实验 | 外部SDK实际契约和1.13隔离工作区;运行器及实际输入身份固定 | 三工程13节点、独立445项、178组UI、实际随包/状态升级及14页通过;八工程36节点的夹具提示对照保留原输入/用量,真实推理收益未测,见QA-1.14 |
| 2b:其它引擎与真实收益(后续独立切片) | Codex实际适配;Claude Code/Cursor/WorkBuddy机制研究;Purge真实模型对照 | 实际版本、审批/取消/模型与工具契约;已验证的受限桥和所属工作区 | 指定工程有实际原协议/工具/检查/Git与停止结果;真实有无实验同模型同题同预算,记录失败和人工介入,不用连接或固定回答夹具推断成功率 |
| 3:Windows桌面 | 单实例、后台宿主、项目/终端/审查入口、安装包与保留数据更新 | 宿主与客户端生命周期拆分;本机凭据加密;稳定迁移契约 | 关闭/重开窗口不丢任务;重复启动复用宿主;安装/升级/卸载的数据行为可核验;崩溃后显式恢复;旧版本可回退 |
| 4:手机伴随端 | PWA、一次性配对、设备身份、撤销、同Run观察/审批、断线游标补发 | 设备认证、加密传输、审批身份/幂等、速率限制;阶段3宿主 | 在真实手机完成配对和撤销;断线后按seq恢复;旧Run/过期/重复审批拒绝;手机和桌面显示同一结果;手机不直接执行宿主文件与命令 |
| 5:模型与多模态 | 更多实际协议、流式取消、按能力选路、可恢复池策略、视觉/语音/附件、项目缓存 | 每种协议的工具调用/用量/取消实测;凭据和附件隔离 | 图像、语音、文本各有真实样本;流式断开保留unknown而不重复副作用;不兼容成员不被调度;缓存绑定项目/权限/源码版本并可清除;429/401/超时/冷却有独立证据 |
@@ -32,11 +33,11 @@
当前实际实现和原失败/通过分别见[隔离协作](WORKERS.md)、[1.13验收](QA-1.13.md)与[阶段回顾](RETROSPECTIVE-1.13.md)。首个完整源码候选403/404被拒绝,修正后的专项不与原轮拼接;新独立整轮404/404及最终发行通过,原失败保持。
## 下一开发切片:受控外部引擎
## 1.14完成范围与下一桌面切片
按[PLAN-1.14](PLAN-1.14.md)先固定已安装DeepSeek Harness的prompt/事件/审批/恢复/停止契约,构建受限工具桥并在所属独立工程完成真实检查、父审查和Git;之后按实际版本协议加入Codex适配。当前SDK连接核验中的session/cancel为缺少方法的原错误,单会话取消、引擎工程写入及逐token流均不能从连接成功推断。
按[PLAN-1.14](PLAN-1.14.md)已固定DeepSeek Harness的prompt/事件/审批/停止契约并通过受限桥完成所属工程、父审查和Git;实际SDK仍缺少session/cancel,停止单位为所属进程树,旧SDK会话不自动恢复,逐token流未实现。Codex等其它适配按具体版本独立推进,不能从连接成功推断能力。
DSH-purge按固定兼容组合、生效点、同模型/同题/同预算/同测试进行有/无插件对照,保留失败、人工介入和原用量;只有得到可重复工程证据的策略才采纳。引擎内核、桌面/手机、跨协议多模态和自我迭代依照上表前置推进,每个切片继续回顾并本地Git。
DSH-purge两版本的来源锁定和同题本地HTTP夹具对照已完成,独立提示实验默认关闭;真实推理收益继续待验。下一[1.15桌面阶段](PLAN-1.15.md)先实现实际宿主身份/单实例,再本机加密连接、Electron窄范围窗口、可回退安装、实际桌面工程和独立发行。手机、跨协议多模态和自我迭代依照上表前置推进,每个切片继续回顾并本地Git。
## 跨阶段必须保持的能力
@@ -56,6 +57,6 @@ DSH-purge按固定兼容组合、生效点、同模型/同题/同预算/同测
REA用于发行工件或运行证据,完整公开源码直接分析。研究以实际版本、来源、问题、证据和拟落地模块登记,见[研究路线](RESEARCH-ROADMAP.md)。参考产品的名称不证明对应能力已经接入。
DSH-purge源码位于`D:\Ai-project\REA逆向\dsh-purge-1.1.78-windows`;DeepSeek工程位于`D:\Ai-project\DeepSeek-Harness-Desktop`。它们与ModelProvider分层管理。当前DeepSeek六个SDK方法只完成连接核验,Purge的工程收益尚未获得对照证据。
DSH-purge源码位于`D:\Ai-project\REA逆向\dsh-purge-1.1.78-windows`;DeepSeek工程位于`D:\Ai-project\DeepSeek-Harness-Desktop`。它们与ModelProvider分层管理。原六方法SDK探针仍只证明连接,1.14新增受限桥的真实prompt、工具、独立工程和停止验收另有原报告;Purge本地夹具提示生效/开销对照已完成,真实模型工程收益未测。
尚未交付:OS沙箱、任意外部引擎工程写入、未知WorkBuddy格式自动导入、本机加密持久凭据、多协议流式/多模态、Windows安装版、真实手机配对,以及稳定的全自主工程成功率。按上表逐项实现和验收,不用界面入口或夹具结果替代完成。
尚未交付:OS沙箱、固定DeepSeek受控桥以外的引擎工程接入、未知WorkBuddy格式自动导入、本机加密持久凭据、多协议流式/多模态、Windows安装版、真实手机配对,以及稳定的全自主工程成功率。按上表逐项实现和验收,不用界面入口或夹具结果替代完成。
+1 -1
View File
@@ -1,6 +1,6 @@
# 1.14 受控外部引擎与增强策略执行方案
2026-10-31。此文记录1.13隔离协作之后的执行方案及接续状态。A–E受控引擎、工具桥、实际工程、恢复界面和默认关闭提示实验已实现并各自验收;F升级活动锁/回退、原宿主身份幂等和旧导出兼容、三工程13节点、23类178组UI、独立445/445与随包完整工程已通过。两份QA脚本的路径/依赖修复和原失败分别封存,最终不可变发行及保留状态正式升级仍在进行。正式服务目前仍1.13.0;各轮原结果以[1.14验收](QA-1.14.md)与[回顾](RETROSPECTIVE-1.14.md)为准。
2026-10-31。此文记录1.13隔离协作之后的执行方案与完成状态。A–F已实现并验收:受控引擎、工具桥、实际工程、恢复界面和默认关闭提示实验,升级活动锁/回退、原宿主身份幂等和旧导出兼容,三工程13节点、23类178组UI、独立445/445及随包完整工程均通过。最终不可变20261030235440461归档/便携和保留状态正式1.14.0升级、部署后14页通过;原PID/Provider、模型中心、全部7表每行及28会话导出保持。QA路径/依赖和原Node/行原型的验收修复及原失败分别封存;各轮原结果见[1.14验收](QA-1.14.md)与[回顾](RETROSPECTIVE-1.14.md),下一阶段为[1.15桌面宿主](PLAN-1.15.md)。
## 要交付的能力
+1 -1
View File
@@ -1,6 +1,6 @@
# 1.15 Windows 桌面宿主与持久连接执行方案
2026-10-31。此阶段尚未实现。前置为1.14最终独立源码、完整界面、真实本地工程、便携和保留状态升级全部通过;具体结果以[1.14验收](QA-1.14.md)为准。每个切片继续审查、保留原失败、复验并本地Git提交,失败的候选不进入正式服务。
2026-10-31。此阶段尚未实现,接续点已经明确。1.14的独立源码445/445、178组界面、三功能工程、最终便携/归档和保留状态升级及14页复验全部通过,具体前置证据见[1.14验收](QA-1.14.md)。下一轮从A宿主身份与窗口生命周期开始,沿用B–F六切片。每个切片继续审查、保留原失败、复验并本地Git提交,失败的候选不进入正式服务。
## 本阶段交付目标
+2 -2
View File
@@ -1,10 +1,10 @@
# Agent Workbench 后续产品与执行开发方案
更新:2026-10-31。本文保留完整产品规划。1.12.1[里程碑审查](MILESTONE-AUDIT.md)与五类确认问题修复保持;当前正式基线1.13.0已交付两个受限worker、累计预算/停止恢复、来源复核/冲突和父工程审查合并,独立404/404、完整160组UI、三工程13节点及最终归档/便携/保留状态升级通过。原Provider/PID、模型中心与最新28会话全部历史保持。下一阶段按[1.14方案](PLAN-1.14.md)进入受控外部引擎与DSH-purge对照,再按[后续计划](NEXT-STEPS.md)推进桌面/手机和其余能力。真实模型工程验收继续按用户选择暂缓;实际实现、验收与部署分别见[能力矩阵](CAPABILITIES.md)及[验证记录](VALIDATION.md)。
更新:2026-10-31。本文保留完整产品规划。1.12.1[里程碑审查](MILESTONE-AUDIT.md)与五类确认问题修复、1.13两个受限worker保持;当前正式基线1.14.0已交付固定DeepSeek受控引擎、工具/模型桥、父工程审查/Git及默认关闭的来源锁定提示实验。独立445/445、完整178组UI、三工程13节点及最终归档/便携/保留状态升级通过,原Provider/PID、模型中心与28会话全部历史保持,部署后14页通过。下一阶段按[1.15方案](PLAN-1.15.md)开发Windows桌面与本机加密连接,再按[后续计划](NEXT-STEPS.md)推进手机和其余能力。真实模型工程与Purge推理收益继续按用户选择暂缓;实际实现、验收与部署分别见[能力矩阵](CAPABILITIES.md)及[验证记录](VALIDATION.md)。
## 1. 产品目标
当前1.14已完成受控DeepSeek引擎、所属工具与模型桥、真实工程流程、恢复界面及默认关闭提示实验的分切片实现和验收;F固定53e196a的253份输入/6构建/40基准,最终三工程13节点及23类178组UI已通过,独立源码/便携及状态保留发行仍在验收。原正式1.13/Provider保持,具体原结果见[QA-1.14](QA-1.14.md)。后续[1.15桌面方案](PLAN-1.15.md)记录窗口/宿主分离、本机加密连接、单实例、实际安装/更新/回退六切片,尚未实现。
1.14的A–F已完成实现、独立验收和正式交付:253份源码输入/6构建/40基准、三工程13节点、23类178组UI及独立445/445通过;最终不可变20261030235440461便携/归档与保留状态升级通过。原PID23172/Provider、全部7表每行及28会话导出保持,具体原结果见[QA-1.14](QA-1.14.md)。[1.15桌面方案](PLAN-1.15.md)记录窗口/宿主分离、本机加密连接、单实例、实际安装/更新/回退六切片,前置已通过,尚未实现。
建立由我们掌握源码、可接用户选择的大模型、在本地持续完成真实工程任务的AI编程与能力研究工作台。研究Codex、Claude Code、Cursor、DeepSeek Harness、WorkBuddy的有价值机制,用REA取得可追溯证据,将机制独立开发成工作台内置能力;DSH-purge作为明确版本和作用范围的研究及增强策略候选。
+14 -2
View File
@@ -1,6 +1,6 @@
# 1.14 受控外部引擎验收记录
2026-10-31。本阶段在feat/controlled-engines-1.14开发;正式4318仍为1.13.0,原PID23172及Provider保持。本文件随切片更新,局部通过不等于发行完成。真实模型推理、Purge实际收益继续按用户既有选择独立待验。
2026-10-31。本阶段在feat/controlled-engines-1.14开发并完成正式1.14.0本地交付;最终不可变发行20261030235440461已完成归档/便携及保留状态升级,原PID23172及Provider保持。独立源码445/445、23类178组UI、三个功能工程13节点和部署后14页通过。以下保留各切片的原过程、失败与中间版本;最终状态见末段和[发行身份](controlled-engine-release-identity.json)。真实模型推理、Purge实际收益继续按用户既有选择独立待验。
## A:固定版本与协议
@@ -60,7 +60,7 @@
原证据为controlled-engine-purge-source-observation、kernel-first、kernel、kernel-layout、comparison-first、comparison、ui-first-validation与ui-validation及对应-log.txt。E仍使用开发版1.13.0,不能将局部通过计为正式1.14发行;当前正式PID23172/Provider与1.13不变,0真实模型请求。
## F:最终兼容与发行验收(进行中)
## F:最终兼容与发行验收(已完成,保留原过程)
已修复原宿主重复claim改写startedAt、无引擎历史导出增加空字段、worker/原生driver/MCP活动遗漏、旧manager继续使用旧方法和失败升级恢复不完整的问题。原升级七项第三轮7/7通过,初始0/7与第二轮6/7原TAP分别保留。所有数据库表逐行、旧会话导出和Provider/凭据对象按原断言核对;未对正式服务执行升级。
@@ -79,3 +79,15 @@
新20261030232056161独立源码完整445/445通过,0失败/取消/跳过/todo,固定Node24.22.1与Python3.10.11/pytest8.4.2;离线安装、6构建、实际REA/SDK/Edge及受控编译四节点分别通过,7阶段原日志逐字节封存。253输入在整轮保持,249份与Git完全一致、4份为早已登记且未修改的CRLF/LF差异;8,836份源码/公开资源/基准/原生运行依赖与候选一致,Node二进制相同。原source-package-validation及source-tests.tap保持,未重复这轮完整回归。
便携验收准备额外实测PATH隔离误移除了必需的外部Git(ENOENT),保留原复现;只给verify-release加入已观测Git目录,仍无系统Node/npm。修正后的实际便携启动/复用、随包Node/npm4项、REA三操作、SDK六方法、两视口Edge及受控四节点通过,7次自有HTTP、原8项检查/构建/父审查/Git与完整退出均核对。该第二份QA脚本在源码整轮之后变化,source原输入不改写;单独封存原/新SHA和便携实测,所有产品/测试/UI/基准/6构建保持,再验证最终不可变发行。
## 最终发行、保留状态升级与部署后复验
最终不可变发行20261030235440461的源码9748/便携11427文件完成清单、CRC和SHA256核对,实际便携随包Node/npm4项、REA/SDK/Edge与受控编译四节点通过;自有HTTP7次、原失败修复/8项检查/构建/父审查/Git及所属完整退出均有原证据。253份最终源码输入与Git及独立源码逐份对照;一份源码整轮之后的便携QA脚本变化按原/新SHA单独登记,产品、测试、UI、基准和6构建一致,原445/445整轮及7阶段日志未重写或重跑。
正式4318保持PID23172、原Provider、原宿主创建时间和连接升级1.14.0,当前处理器runtimeRoot指向最终不可变发行。16项目、28全部会话(20可见/8归档)、2551执行记录、4568事件及metadata/outbox/sqlite_sequence全部7表的每行散列和28份完整导出一致;公开模型中心2连接/1池/0导入来源/6原请求摘要逐字段保持。实际宿主Node24.22.1仍来自原1.12启动包;CIM核对原PID创建身份与可执行路径,原/新Node二进制SHA256完全一致。原连接没有提取、复制、打印或保存,本轮0真实模型请求,9229关闭。
初次升级验收在安装成功且所有数据/导出保持后,错误要求原process.execPath换到新发行目录;原before/upgrade快照及失败日志保留。只读续验首轮又误比较SQLite null-prototype行与JSON普通对象,所有字段/行SHA一致;双方按原canonical映射严格逐字段比较后通过。原失败记录与修正后的验证器单独保存,续验没有调用升级器或重放工具。来源与日志见controlled-engine-deployment-before、deployment-original-upgrade、retained-node-observation、upgrade-live-validation及对应初始失败/成功原日志。
实际Edge1280/390各7页共14页部署后复验通过,0页面异常、请求失败、HTTP异常、写入请求及模型请求;包含执行计划、模型中心、Skills、MCP、隔离协作、受控安装/默认关闭实验及来源只读核对。桌面受控安装和390px实验来源截图已目视核对。复验后重新核对全部数据库/导出及关闭调试端口;176份原报告、30份当前阶段日志和31张PNG的原字节封存于controlled-engine-release-identity.json,后续本地Git索引再核对这些文件。
本阶段A–F完整交付。下一阶段PLAN-1.15的桌面宿主身份/单实例、本机加密连接、Electron窗口、可回退安装、实际工程和独立发行六切片已记录,尚未实现;真实模型自主工程、Purge推理收益、其它引擎、OS隔离、手机配对及跨协议多模态继续按各自原证据独立验收。
+8
View File
@@ -49,3 +49,11 @@ Purge完整插件含自愈/宿主修改入口,E独立实验见下方;最终
独立源码首候选暴露验收目录耦合安装深度:合成Git工程放在长解压目录内部,被原路径守卫拒绝,整轮未通过。采用exclusive OS temporary目录后,同一长安装路径实际四节点、原8项检查/ESM构建、审批、父审查/Git与所属树结束通过。只改变QA工程路径,一份验证脚本的原/新SHA及所有未变化产品/测试/UI脚本/基准/构建分别封存;复用原UI必须证明这些边界相同,原失败候选不采用。
新独立整轮445/445及所有7阶段完成,原输入/日志保持。便携PATH为证明使用随包Node/npm而移除系统路径,也误移除了实际工程所需的外部Git;原ENOENT复现后,显式加入已观测Git目录,实际完整便携工程通过。这个后于源码回归的QA脚本变化单独记录,不能改写原source.inputs为新文件SHA;产品、测试、UI、基准和6份构建相同时复用完整回归,对变化的验收环境仍需真实随包结果。
## F收尾:实际进程身份与只读恢复验收
最终独立445/445、178组完整UI、三工程13节点、源码/便携与保留状态正式1.14.0升级及14页复验通过,原全部7表每行/28导出/模型中心保持。原PID保持时,process.execPath仍是原启动Node,不能用新处理器目录推断宿主可执行路径;实际CIM创建身份、可执行路径与原/新二进制SHA一致才是对应的证明。原验收器此处误判被保存,并从已成功升级的原before/upgrade快照续验,避免为了补报告再调用升级器。
SQLite原行与持久化JSON快照使用不同对象原型。比较双方canonical字段和全部每行SHA可以保持原强度,而按JavaScript对象原型直接deepStrictEqual会把相同持久数据判为变化。原失败与日志不覆盖,成功续验没有修改数据库或原快照。工具恢复、窗口恢复和下一桌面宿主设计同样需要将实际执行与验收恢复分开建模,使用原身份及原结果继续。
176份报告、30份阶段日志与31张PNG原字节已封存;原Node路径/行原型的两次QA失败与A–F原失败分别保留。本阶段所有实现/修复/证据按小步本地Git,真实模型推理和Purge收益未测。下一PLAN-1.15从宿主身份/单实例开始,每切片沿用实际工程、原失败、窗口/进程生命周期、回退和完整证据门槛,不把桌面入口当成执行能力完成。
+4
View File
@@ -1,5 +1,9 @@
# Agent Workbench 验收记录
## 1.14 · 受控引擎、默认关闭提示实验与正式交付
固定DeepSeek Harness的受限工具/模型桥、所属独立工程、原prompt/审批/预算/结果、停止核对和父工程审查/检查/Git已交付;两版本Purge来源锁定的提示实验默认关闭。新Node/React/Python三工程13节点、父8/8、9/9、10/10及构建/编译/Git、React真实Edge两视口各8项断言通过。独立源码445/445、253输入/6构建/40基准、23类178组完整UI及7阶段原日志通过;最终不可变20261030235440461便携11427/源码9748文件归档与实际随包受控四节点通过。正式4318保留PID23172/Provider升级1.14.0,2连接/1池/6原请求摘要、16项目/28全部会话/2551记录/4568事件及全部7表每行/全部导出保持,部署后14页通过,9229关闭。升级后QA误判原Node路径及SQLite行原型的原失败分别保留,续验没有重放升级;本轮真实模型0请求。见[1.14验收](QA-1.14.md)、[回顾](RETROSPECTIVE-1.14.md)、[发行身份](controlled-engine-release-identity.json)与[下一桌面计划](PLAN-1.15.md)。
## 1.13 · 隔离协作、独立发行与保留状态升级
父目标与两个受限worker、独立Git工作区、累计预算/停止恢复、来源复核/具体冲突及父工程审查/检查/Git已交付。三功能工程13节点、父Node8/8、React9/9、Python10/10与构建/编译/Git,React两视口各10项断言通过;完整UI21类160组及新独立源码404/404通过,232份输入/6构建/40基准保持。最终不可变发行20261030193314594便携11242/源码9542文件归档、实际Node/REA/DeepSeek/Edge与便携停止通过;正式4318保持原PID23172/Provider升级1.13.0,2连接/1池/6既有请求摘要、最新16项目/28全部会话/2551记录/4568事件每行和全部导出保持,部署后10个只读页面通过。原403/404及每次失败保留,本轮真实模型0请求。见[1.13验收](QA-1.13.md)、[回顾](RETROSPECTIVE-1.13.md)、[发行身份](workers-release-identity.json)与[1.14计划](PLAN-1.14.md)。
@@ -0,0 +1,24 @@
{
"success": true,
"version": "1.14.0",
"testedAt": "2026-10-30T23:57:24.532733+00:00",
"archives": [
{
"kind": "portable",
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461.zip",
"files": 11427,
"crcPassed": true,
"manifestAndDirectoryMatch": true,
"sha256": "08dbd05681102506631dd86df870972670cc6292914f3d9f09b8bbcb92921b17"
},
{
"kind": "source",
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-source-20261030235440461.zip",
"files": 9748,
"crcPassed": true,
"manifestAndDirectoryMatch": true,
"sha256": "1b9e29bf355fecddcd156373e834abb1db8a28a55d4a843328e98bb850f64cc7"
}
],
"extractionRoot": null
}
@@ -0,0 +1,3 @@
{"width":1280,"passedPanels":7}
{"width":390,"passedPanels":7}
{"success":true,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7","panels":14,"pageErrors":0,"requestFailures":0,"blockedWrites":0}
@@ -0,0 +1,127 @@
{
"success": true,
"version": "1.14.0",
"pid": 23172,
"directory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7",
"results": [
{
"width": 1280,
"height": 900,
"panel": "执行计划",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\plan-1280.png",
"screenshotSha256": "57723cc83f60d75b84efc4a426041a4cb39d1a73474d8b37d4ffb1ae5b6e8208"
},
{
"width": 1280,
"height": 900,
"panel": "模型中心",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\model-center-1280.png",
"screenshotSha256": "83a6867a8ac25a6fd1a3ccf56c8720ae02a957558900b523a79b25f02eadaed6"
},
{
"width": 1280,
"height": 900,
"panel": "项目技能",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\skills-1280.png",
"screenshotSha256": "562200dfa611ff77dedfb2899c181411f173b1a2855c553793c90e865a965568"
},
{
"width": 1280,
"height": 900,
"panel": "项目 MCP 工具",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\mcp-1280.png",
"screenshotSha256": "4f7b9e22fadc0b40242d8afcd118f46ed5f2ec64852111b472ba69ca229bef1b"
},
{
"width": 1280,
"height": 900,
"panel": "隔离协作",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\controlled-engine-1280.png",
"screenshotSha256": "90760493a378ebace4a8eba70c4cb91044fe4a01d0e4d9e1927d7727567b08ca"
},
{
"width": 1280,
"height": 900,
"panel": "受控引擎安装与默认关闭策略",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\controlled-native-1280.png",
"screenshotSha256": "7e25ef3224ff6cc07f3bf8a4288b749a7b9bc9d3811bb6c0dbd91cca261ab908"
},
{
"width": 1280,
"height": 900,
"panel": "Purge来源只读核对",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\controlled-purge-1280.png",
"screenshotSha256": "3416a9fdee010f23da20a09fe78a504ef254b6f3c85f20aface7c6315d77a695"
},
{
"width": 390,
"height": 844,
"panel": "执行计划",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\plan-390.png",
"screenshotSha256": "57aa81dedb25bba9462cc6fe11305f9cda1a3ab4699de209a03d9dd80bd03717"
},
{
"width": 390,
"height": 844,
"panel": "模型中心",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\model-center-390.png",
"screenshotSha256": "51c69103146f0532ef53a050b3a96364f330317351adb1f249a5eb40142d903b"
},
{
"width": 390,
"height": 844,
"panel": "项目技能",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\skills-390.png",
"screenshotSha256": "f396265aa6db64061522e3a4ef0ec054701108c1e54cc3c131b4a8a475158c90"
},
{
"width": 390,
"height": 844,
"panel": "项目 MCP 工具",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\mcp-390.png",
"screenshotSha256": "ab43f9075eb6a29ff90d5583a955b0842507913188e046afc6fb088675c29ad2"
},
{
"width": 390,
"height": 844,
"panel": "隔离协作",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\controlled-engine-390.png",
"screenshotSha256": "271477811ecabf41d6ec46d15b05c673faabedc849cd7d769d42d6e9fefa2090"
},
{
"width": 390,
"height": 844,
"panel": "受控引擎安装与默认关闭策略",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\controlled-native-390.png",
"screenshotSha256": "9f94038038f7b2eb49f6a4acded579825bff809b96e4aed51a51b17f559f3b0b"
},
{
"width": 390,
"height": 844,
"panel": "Purge来源只读核对",
"readOnly": true,
"screenshot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployed-ui-15d4e06d-1dac-44cc-8e53-e5f1b81cd6d7\\controlled-purge-390.png",
"screenshotSha256": "76789ab9ddf55b9eb8e761d2ff5d947ce315a82427e77af149d1c48d2159f33d"
}
],
"testedAt": "2026-10-31T00:07:46.852Z",
"pageErrors": [],
"requestFailures": [],
"httpErrors": [],
"blockedWrites": [],
"modelRequests": 0,
"scope": "Read-only smoke of deployed host in actual Edge desktop/390px; API mutations are blocked, no task/tool/model/configuration/project writes."
}
@@ -0,0 +1,90 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash, randomUUID } from 'node:crypto';
import { chromium, expect } from 'playwright/test';
const base = 'http://127.0.0.1:4318', directory = path.resolve('.qa', 'controlled-engine-deployed-ui-' + randomUUID());
fs.mkdirSync(directory);
const health = await (await fetch(base + '/api/health')).json();
const deployed = JSON.parse(fs.readFileSync('docs/controlled-engine-upgrade-live-validation.json', 'utf8'));
assert.equal(deployed.success, true); assert.equal(health.version, '1.14.0'); assert.equal(health.pid, deployed.pid);
const bootstrap = await (await fetch(base + '/api/bootstrap')).json();
const readApi = async route => { const response = await fetch(base + '/api' + route, { headers: { 'X-Workbench-Token': bootstrap.token, Connection: 'close' }, signal: AbortSignal.timeout(10000) }); assert.equal(response.ok, true); return response.json(); };
const controlledAvailability = await readApi('/engines/deepseek/controlled-availability'), purgeSource = await readApi('/engines/purge/source');
assert.equal(controlledAvailability.controlledStatus, 'available'); assert.equal(purgeSource.status, 'available'); assert.equal(purgeSource.defaultEnabled, false);
const pageErrors = [], requestFailures = [], httpErrors = [], blockedWrites = [], results = [];
const record = { success: false, version: health.version, pid: health.pid, directory, results };
const browser = await chromium.launch({ channel: 'msedge', headless: true });
const screenshot = async (page, filename) => {
const file = path.join(directory, filename); await page.screenshot({ path: file, fullPage: true });
return { screenshot: file, screenshotSha256: createHash('sha256').update(fs.readFileSync(file)).digest('hex') };
};
try {
for (const [width, height] of [[1280, 900], [390, 844]]) {
const context = await browser.newContext({ viewport: { width, height }, reducedMotion: 'reduce' });
let closing = false;
try {
const page = await context.newPage();
page.on('pageerror', error => pageErrors.push(error.message));
page.on('requestfailed', request => { if (!closing) requestFailures.push({ url: request.url(), error: request.failure()?.errorText }); });
page.on('response', response => { if (response.status() >= 400) httpErrors.push({ url: response.url(), status: response.status() }); });
await page.route('**/api/**', route => {
if (!['GET', 'HEAD', 'OPTIONS'].includes(route.request().method())) {
blockedWrites.push({ method: route.request().method(), url: route.request().url() }); return route.abort();
}
return route.continue();
});
await Promise.all([page.waitForResponse(response => response.url().endsWith('/api/bootstrap') && response.status() === 200),
page.goto(base + '/?release=1.14.0', { waitUntil: 'domcontentloaded' })]);
await expect(page.locator('.connection small')).toHaveText('v1.14.0');
await expect(page.locator('.connection')).toContainText('本地服务已连接');
await page.getByRole('button', { name: '查看任务记录', exact: true }).click();
const plan = page.getByLabel('执行计划', { exact: true }); await expect(plan).toBeVisible();
await expect(plan).not.toHaveAttribute('aria-busy', 'true', { timeout: 15000 });
await expect(plan).not.toContainText('正在核对任务计划', { timeout: 15000 });
await expect(plan.getByRole('heading', { name: '执行计划', exact: true })).toBeVisible();
assert.ok(await page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth));
results.push({ width, height, panel: '执行计划', readOnly: true, ...await screenshot(page, 'plan-' + width + '.png') });
if (width <= 940) await page.getByRole('button', { name: '关闭检视区', exact: true }).click();
for (const [launcher, title, suffix] of [['打开模型中心', '模型中心', '/api/model-center'], ['项目技能', '项目技能', '/skills'], ['项目MCP工具', '项目 MCP 工具', '/mcp']]) {
await Promise.all([page.waitForResponse(response => response.url().endsWith(suffix) && response.status() === 200),
page.getByRole('button', { name: launcher, exact: true }).click()]);
const dialog = page.getByRole('dialog', { name: title, exact: true }); await expect(dialog).toBeVisible();
await expect(dialog.getByRole('heading', { name: title, exact: true })).toBeVisible();
for (const loading of ['正在读取实际连接状态', '正在核对已登记技能', '正在读取项目注册']) await expect(dialog).not.toContainText(loading);
const bounds = await dialog.boundingBox(); assert.ok(bounds.x >= 0 && bounds.x + bounds.width <= width + 1);
results.push({ width, height, panel: title, readOnly: true, ...await screenshot(page, suffix.split('/').at(-1) + '-' + width + '.png') });
await dialog.getByRole('button', { name: '关闭窗口', exact: true }).click(); await expect(dialog).toHaveCount(0);
}
await page.getByRole('button', { name: '隔离协作', exact: true }).click();
const workers = page.getByRole('dialog', { name: '隔离协作', exact: true }); await expect(workers).toBeVisible();
await expect(workers.getByRole('heading', { name: '隔离协作', exact: true })).toBeVisible();
await expect(workers.getByLabel('父目标', { exact: true })).toBeVisible();
assert.ok(await page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth));
results.push({ width, height, panel: '隔离协作', readOnly: true, ...await screenshot(page, 'controlled-engine-' + width + '.png') });
await workers.getByLabel('执行方式', { exact: true }).selectOption('deepseek');
await workers.getByLabel('Harness 安装目录', { exact: true }).fill(controlledAvailability.root);
await workers.getByRole('button', { name: '检测受控安装', exact: true }).click(); await expect(workers).toContainText('受控安装可用');
const experiment = workers.getByLabel('Purge 提示实验', { exact: true }), toggle = experiment.getByRole('checkbox', { name: '启用 Purge 提示实验', exact: true });
await expect(toggle).not.toBeChecked(); assert.ok(await page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth));
results.push({ width, height, panel: '受控引擎安装与默认关闭策略', readOnly: true, ...await screenshot(page, 'controlled-native-' + width + '.png') });
await toggle.check(); await experiment.getByLabel('Purge 源码目录', { exact: true }).fill(purgeSource.root);
await experiment.getByRole('button', { name: '检测 Purge 来源', exact: true }).click(); await expect(experiment).toContainText('已核对 Purge ' + purgeSource.version);
assert.ok(await page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth));
results.push({ width, height, panel: 'Purge来源只读核对', readOnly: true, ...await screenshot(page, 'controlled-purge-' + width + '.png') });
await toggle.uncheck(); await workers.getByRole('button', { name: '关闭窗口', exact: true }).click();
console.log(JSON.stringify({ width, passedPanels: 7 }));
} finally { closing = true; await context.close(); }
}
assert.deepEqual(pageErrors, []); assert.deepEqual(requestFailures, []); assert.deepEqual(httpErrors, []); assert.deepEqual(blockedWrites, []);
record.success = true;
} catch (error) { record.error = error.stack; throw error; }
finally {
await browser.close();
Object.assign(record, { testedAt: new Date().toISOString(), pageErrors, requestFailures, httpErrors, blockedWrites, modelRequests: 0,
scope: 'Read-only smoke of deployed host in actual Edge desktop/390px; API mutations are blocked, no task/tool/model/configuration/project writes.' });
fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(record, null, 2) + '\n');
fs.writeFileSync('.qa/controlled-engine-deployed-ui-validation.json', JSON.stringify(record, null, 2) + '\n');
console.log(JSON.stringify({ success: record.success, directory, panels: results.length, pageErrors: pageErrors.length, requestFailures: requestFailures.length, blockedWrites: blockedWrites.length }));
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,22 @@
{"stage":"pre-upgrade","version":"1.13.0","pid":23172,"hasKey":true,"counts":{"events":4568,"metadata":6,"outbox":4568,"projects":16,"records":2551,"sessions":28,"sqlite_sequence":1},"allSessions":28,"inputs":253,"comparedFiles":8848}
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517\\runtime\\node.exe'
- 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe'
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/finish-controlled-deployment.mjs:110:8
at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517\\runtime\\node.exe',
expected: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v24.22.1
@@ -0,0 +1,131 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash, randomUUID } from 'node:crypto';
import { DatabaseSync } from 'node:sqlite';
import { upgradeRunning } from '../scripts/upgrade-running.mjs';
const targetVersion = '1.14.0', previousVersion = '1.13.0';
const read = filename => JSON.parse(fs.readFileSync(filename, 'utf8'));
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object'
? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
const digest = value => hash(JSON.stringify(canonical(value)));
const release = read('releases/latest.json'), source = read('.qa/source-package-validation.json'), archive = read('.qa/archives-validation.json'), portable = read('.qa/release-validation.json');
const preflight = read('docs/controlled-engine-service-preflight.json');
const finalBaseline = read('docs/controlled-engine-final-release-baseline.json'), portableQa = read('docs/controlled-engine-portable-qa-change.json');
assert.equal(portableQa.success, true); assert.equal(portableQa.change.path, 'scripts/verify-release.mjs');
assert.deepEqual(source.inputs, finalBaseline.sourceValidatedInputs);
assert.equal(preflight.version, previousVersion); assert.equal(preflight.registeredPid, preflight.pid); assert.equal(preflight.busySessions, 0);
assert.ok(Number.isInteger(preflight.pid) && preflight.pid > 0);
for (const [name, result] of Object.entries({ source, archive, portable })) { assert.equal(result.success, true, name); assert.equal(result.version, targetVersion, name); }
assert.equal(read(path.join(release.portableRoot, 'MANIFEST.json')).version, targetVersion);
assert.equal(path.resolve(portable.appRoot), path.resolve(release.portableRoot));
assert.ok(source.tests.tests > 404); assert.equal(source.tests.pass, source.tests.tests);
for (const name of ['fail', 'cancelled', 'skipped', 'todo']) assert.equal(source.tests[name], 0);
assert.equal(source.buildMatchedFiles, 6); assert.ok(source.actualRea.success && source.actualEngine.success && source.actualBrowser.success && source.actualControlled.success);
assert.equal(source.actualControlled.cases, 4); assert.equal(source.actualControlled.realModelRequests, 0); assert.equal(source.actualControlled.rootExited, true);
assert.equal(portable.actualControlled.success, true); assert.equal(portable.actualControlled.cases.length, 4); assert.equal(portable.actualControlled.realModelRequests, 0);
for (const kind of ['portable', 'source']) {
assert.equal(archive.archives.find(item => item.kind === kind).sha256, release[kind].sha256);
assert.equal(hash(fs.readFileSync(release[kind].path)), release[kind].sha256);
}
for (const input of finalBaseline.inputs) {
for (const root of [process.cwd(), release.sourceRoot]) {
const bytes = fs.readFileSync(path.join(root, input.path)); assert.equal(bytes.length, input.bytes, input.path); assert.equal(hash(bytes), input.sha256, input.path);
}
}
const files = (root, relative) => fs.readdirSync(path.join(root, relative), { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))
.flatMap(entry => { assert.equal(entry.isSymbolicLink(), false); const filename = path.join(relative, entry.name); return entry.isDirectory() ? files(root, filename) : [filename]; });
const compared = [], repackedMetadata = [];
function compare(leftRoot, rightRoot, relative) {
const names = files(leftRoot, relative); assert.deepEqual(names, files(rightRoot, relative));
for (const filename of names) {
const left = fs.readFileSync(path.join(leftRoot, filename)), right = fs.readFileSync(path.join(rightRoot, filename));
if (!left.equals(right) && filename.replaceAll('\\', '/') === 'runtime/REA-RUNTIME.json') {
const { builtAt: leftBuiltAt, ...a } = JSON.parse(left), { builtAt: rightBuiltAt, ...b } = JSON.parse(right);
assert.ok(Number.isFinite(Date.parse(leftBuiltAt)) && Number.isFinite(Date.parse(rightBuiltAt))); assert.deepEqual(a, b);
repackedMetadata.push({ path: filename.replaceAll('\\', '/'), leftBuiltAt, rightBuiltAt, leftSha256: hash(left), rightSha256: hash(right), difference: 'builtAt only; every other field/hash equal' });
} else if (filename.replaceAll('\\', '/') === portableQa.change.path) {
assert.equal(hash(left), portableQa.change.sha256); assert.equal(hash(right), portableQa.change.originalSha256);
} else assert.ok(left.equals(right), filename);
compared.push(filename.replaceAll('\\', '/'));
}
}
for (const folder of ['src', 'tests', 'scripts', 'public', 'benchmarks', 'runtime']) compare(release.sourceRoot, source.sourceRoot, folder);
for (const folder of ['dist-client', 'dist-server']) { compare(release.portableRoot, source.sourceRoot, folder); compare(process.cwd(), release.portableRoot, folder); }
const ui = read('docs/controlled-engine-all-ui-validation.json'), projects = read('docs/controlled-engine-final-projects-validation.json');
assert.equal(ui.success, true); assert.equal(ui.version, targetVersion); assert.equal(ui.groups, 178); assert.equal(ui.results.length, 23);
assert.equal(projects.success, true); assert.equal(projects.testedVersion, targetVersion); assert.equal(projects.targetVersion, targetVersion); assert.equal(projects.results.length, 3); assert.equal(projects.realModelRequests, 0); assert.ok(projects.results.every(value => value.success));
const directory = path.resolve('.qa/controlled-engine-deployment-' + randomUUID()); fs.mkdirSync(directory);
const url = 'http://127.0.0.1:4318'; let token;
async function api(route) {
const response = await fetch(url + '/api' + route, { headers: { Connection: 'close', ...(token ? { 'X-Workbench-Token': token } : {}) }, signal: AbortSignal.timeout(20000) });
assert.ok(response.ok, route + ': HTTP ' + response.status); return await response.json();
}
const before = await api('/bootstrap'), health = await api('/health'); token = before.token;
assert.equal(before.version, previousVersion); assert.equal(health.pid, preflight.pid); assert.equal(typeof before.config.hasKey, 'boolean');
assert.ok(before.sessions.every(value => !['running', 'awaiting_approval', 'stopping'].includes(value.status)));
const info = read(path.join(process.env.LOCALAPPDATA, 'AgentWorkbench/service-info.json')); assert.equal(info.pid, health.pid);
assert.equal(fs.realpathSync.native(info.appRoot), fs.realpathSync.native(preflight.appRoot));
assert.equal(fs.realpathSync.native(before.runtimeRoot), fs.realpathSync.native(preflight.runtimeRoot));
assert.equal(fs.realpathSync.native(info.dataRoot), fs.realpathSync.native(preflight.dataRoot));
const modelCenterBefore = await api('/model-center');
assert.equal(modelCenterBefore.waiting, 0); assert.ok(modelCenterBefore.connections.every(value => value.activeRequests === 0));
function snapshotDb() {
const db = new DatabaseSync(path.join(info.dataRoot, 'workbench.sqlite'), { readOnly: true }); db.exec('BEGIN');
try {
const tables = {};
for (const { name: table } of db.prepare("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name").all()) {
const rows = db.prepare('SELECT * FROM "' + table.replaceAll('"', '""') + '" ORDER BY rowid').all();
tables[table] = { count: rows.length, sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
}
const sessions = db.prepare("SELECT id,json_extract(payload,'$.archived') AS archived FROM sessions ORDER BY id").all();
const recordKinds = db.prepare('SELECT kind,COUNT(*) AS count FROM records GROUP BY kind ORDER BY kind').all();
return { tables, sessions, recordKinds };
} finally { db.exec('ROLLBACK'); db.close(); }
}
const beforeDb = snapshotDb(), exports = [];
for (const brief of beforeDb.sessions) { const value = await api('/sessions/' + brief.id + '/export'); exports.push({ id: brief.id, session: digest(value.session), project: digest(value.project), execution: digest(value.execution) }); }
fs.writeFileSync(path.join(directory, 'before.json'), JSON.stringify({ version: before.version, pid: health.pid, configSha256: digest(before.config), projectsSha256: digest(before.projects), sessionsSha256: digest(before.sessions), modelCenterSha256: digest(modelCenterBefore), database: beforeDb, exports }, null, 2));
assert.deepEqual(snapshotDb(), beforeDb, 'User state changed during preflight; do not use stale snapshots.');
console.log(JSON.stringify({ stage: 'pre-upgrade', version: before.version, pid: health.pid, hasKey: before.config.hasKey,
counts: Object.fromEntries(Object.entries(beforeDb.tables).map(([name, value]) => [name, value.count])), allSessions: beforeDb.sessions.length, inputs: source.inputFiles, comparedFiles: compared.length }));
const upgraded = await upgradeRunning({ url, pid: health.pid, currentRoot: info.appRoot, ...(before.runtimeRoot ? { handlerRoot: before.runtimeRoot } : {}), newRoot: release.portableRoot });
fs.writeFileSync(path.join(directory, 'upgrade.json'), JSON.stringify(upgraded, null, 2));
assert.equal(upgraded.version, targetVersion); assert.equal(upgraded.verified, true); assert.equal(upgraded.connectionPreserved, true);
const after = await api('/bootstrap'), afterHealth = await api('/health');
assert.equal(afterHealth.pid, health.pid); assert.equal(digest(after.config), digest(before.config));
assert.equal(digest(after.projects), digest(before.projects)); assert.equal(digest(after.sessions), digest(before.sessions));
assert.equal(digest(await api('/model-center')), digest(modelCenterBefore), 'All public connections, pools, imports, credential flags and attempts must remain unchanged.');
assert.deepEqual(snapshotDb(), beforeDb, 'Every persisted row must remain unchanged.');
for (const saved of exports) { const value = await api('/sessions/' + saved.id + '/export'); assert.equal(digest(value.session), saved.session); assert.equal(digest(value.project), saved.project); assert.equal(digest(value.execution), saved.execution); }
await assert.rejects(fetch('http://127.0.0.1:9229/json/list', { signal: AbortSignal.timeout(750) }));
const headers = Object.fromEntries((await fetch(url)).headers); assert.equal(headers['x-frame-options'], 'DENY'); assert.match(headers['content-security-policy'], /frame-ancestors 'none'/);
const rea = await api('/research/availability'); assert.equal(rea.status, 'available'); assert.equal(rea.version, '6.8.0');
assert.equal(fs.realpathSync.native(rea.packageRoot), fs.realpathSync.native(path.join(release.portableRoot, 'runtime/node_modules/rea-agents')));
assert.equal((await api('/engines/deepseek/availability')).status, 'available');
const controlledAvailability = await api('/engines/deepseek/controlled-availability'); assert.equal(controlledAvailability.controlledStatus, 'available');
assert.equal(fs.realpathSync.native(controlledAvailability.node.path), fs.realpathSync.native(path.join(release.portableRoot, 'runtime/node.exe')));
const purgeSource = await api('/engines/purge/source'); assert.equal(purgeSource.status, 'available'); assert.equal(purgeSource.defaultEnabled, false);
assert.equal((await api('/sessions/' + before.sessions[0].id + '/browser')).availability.status, 'available');
const result = { success: true, version: targetVersion, previousVersion, testedAt: new Date().toISOString(), ...upgraded,
directory, appRoot: release.portableRoot, dataRoot: info.dataRoot, originalAppRoot: info.appRoot,
model: after.config.model, hasKey: after.config.hasKey, allSessionCount: beforeDb.sessions.length, visibleSessionCount: before.sessions.length,
archivedSessionCount: beforeDb.sessions.filter(value => value.archived).length,
database: Object.fromEntries(Object.entries(beforeDb.tables).map(([name, value]) => [name, { count: value.count, sha256: value.sha256 }])),
recordKinds: beforeDb.recordKinds, preservedSessionSnapshots: exports, allRowsAndExportsPreserved: true, inspectorClosed: true,
comparedFiles: compared.length, repackedMetadata, frozenInputs: source.inputFiles, independentSourceRoot: source.sourceRoot,
independentSourceTests: source.tests, uiGroups: ui.groups, projectSamples: projects.results.length, realModelRequests: 0, headers,
comparison: 'Exact canonical hashes of every persisted row and exported project/session/execution, with no omitted compatibility fields.',
preflight, historicalReleasePid: preflight.historicalReleasePid, preservesCurrentObservedProcess: true,
modelCenterPreserved: true, modelCenter: { sha256: digest(modelCenterBefore), connections: modelCenterBefore.connections.length,
pools: modelCenterBefore.pools.length, imports: modelCenterBefore.imports.length, attempts: modelCenterBefore.attempts.length },
credentialsHandling: 'Only public configuration/hasKey and data hashes; original Provider/credentials stay in the process. No model key read/copied/printed/saved and no model request.' };
fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(result, null, 2) + '\n');
fs.writeFileSync('docs/controlled-engine-upgrade-live-validation.json', JSON.stringify(result, null, 2) + '\n');
fs.writeFileSync('docs/deployment.json', JSON.stringify({ ready: true, url, version: targetVersion, mode: after.config.mode, model: after.config.model, hasKey: after.config.hasKey,
pid: health.pid, appRoot: release.portableRoot, originalAppRoot: info.appRoot, dataRoot: info.dataRoot, installedAt: new Date().toISOString(), verification: 'controlled-engine-upgrade-live-validation.json' }, null, 2) + '\n');
console.log(JSON.stringify({ success: true, version: targetVersion, pid: health.pid, hasKey: result.hasKey, directory, allSessions: result.allSessionCount,
counts: Object.fromEntries(Object.entries(result.database).map(([name, value]) => [name, value.count])), allRowsAndExportsPreserved: true, inspectorClosed: true, realModelRequests: 0 }));
@@ -0,0 +1,11 @@
{
"version": "1.14.0",
"pid": 23172,
"hasKey": true,
"projects": 16,
"sessions": 28,
"appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"verified": true,
"connectionPreserved": true,
"url": "http://127.0.0.1:4318"
}
@@ -0,0 +1,369 @@
{
"success": true,
"version": "1.14.0",
"previousVersion": "1.13.0",
"testedAt": "2026-10-31T00:07:13.990Z",
"pid": 23172,
"hasKey": true,
"projects": 16,
"sessions": 28,
"appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"verified": true,
"connectionPreserved": true,
"url": "http://127.0.0.1:4318",
"directory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench",
"originalAppRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517",
"model": "gpt-6.1-sol",
"allSessionCount": 28,
"visibleSessionCount": 20,
"archivedSessionCount": 8,
"database": {
"events": {
"count": 4568,
"sha256": "c0cb9f12e8c3e47b0749dae36db9adad5e690176a668c43a888232502f3043db"
},
"metadata": {
"count": 6,
"sha256": "416865d094cace049c29fc8ded6554051da05ac0f9e873a5037ad4e17f0f2cfa"
},
"outbox": {
"count": 4568,
"sha256": "37da12a8d514bdf60d12facfa27cf1b58e52e047a60221401d05bde85546ca74"
},
"projects": {
"count": 16,
"sha256": "37ed3d50150c7847e9687746fd77aa64360ee07402fa8511290e83f7155274db"
},
"records": {
"count": 2551,
"sha256": "6a0b0cb56af8deb260d7cae2c9e01bbfe61565d4c4fd082ad880bcff8f98a683"
},
"sessions": {
"count": 28,
"sha256": "db1deb569949d161344c7af5044d248cedd43b8143336d0633ba65f0be519b1b"
},
"sqlite_sequence": {
"count": 1,
"sha256": "228d639e621aed650fa023c6bb1c49dc3441602f68a9a0b077242adf37700acc"
}
},
"recordKinds": [
{
"kind": "artifact",
"count": 1438
},
{
"kind": "browser_job",
"count": 5
},
{
"kind": "browser_plan",
"count": 5
},
{
"kind": "change_set",
"count": 5
},
{
"kind": "check_job",
"count": 16
},
{
"kind": "check_plan",
"count": 17
},
{
"kind": "context_plan",
"count": 207
},
{
"kind": "delivery_job",
"count": 7
},
{
"kind": "delivery_plan",
"count": 7
},
{
"kind": "engine_job",
"count": 1
},
{
"kind": "run",
"count": 48
},
{
"kind": "step",
"count": 266
},
{
"kind": "task",
"count": 26
},
{
"kind": "tool",
"count": 500
},
{
"kind": "workspace",
"count": 3
}
],
"preservedSessionSnapshots": [
{
"id": "03d6acd3-01ee-46fb-aa1c-90483307737e",
"session": "ce12fab8fa32c200b16851a66d7af6eea99ddb4783aa5c2ebd2211f7fbbfcb4b",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "0c9601a4-cc20-476c-aa28-ea010c222f70",
"session": "915912a528aa7578b56b5b1329518201102b4229a28a457a6916695cbd7eb287",
"project": "8de47871c83677c90f046ab4ef11b10f2bf6602e4e7683a68034f91665f18ae7",
"execution": "e826073aa1f1535941fe334dfc660aef9b3d888b192730d03dd314bd1a8c050d"
},
{
"id": "0f3ace68-4988-4370-bf22-aac01f33a8ab",
"session": "462ab9235f6132141aab9b6fc9c03966d256970c8e19b98a17a38d1a0812b4b4",
"project": "b62f016403188e605f211acf90e6435af951fa772e339f5a967078dc49341dc9",
"execution": "ee93daaa7a1318ab0f98df6378d0afdbf8df5ead6d7e8a48b38c5ea5223fbd5c"
},
{
"id": "1102be26-9799-4f0f-9a28-7a4ce552f3a9",
"session": "3303bc0113392be74ba3091f133a247b86acf7fdd935a9d3d7692a12a555f928",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "1cf22a27-ac13-4c95-a878-9b4356ccb5b3",
"session": "519eea1e103fd081279a82d4b4e72d17857a18b027eb0b156972855c90349552",
"project": "0a1d247fb4e3fc9dfc35ec2e4902e107c8ccc8efcc33e61e556cd5230e4777d1",
"execution": "1fdf39f6d6876e362cc130d621ddf22ae0887395fdaa21be822742e9d2c3367d"
},
{
"id": "3fffee63-edc6-4538-b1dd-941354535e85",
"session": "0a30562724493eee8b93fad3abdacbee57230ba2627ac578a030a9d43c86bc60",
"project": "cebd4478e20bbbcf23872e94adaa0b7967f55a16b9343eabae4ee99855989bec",
"execution": "b33ab1fd33f041833c85292a72a035e212d7d72055e3d8aeab4fafc40939a38c"
},
{
"id": "4442eee6-8b68-4bb5-a39c-9cafbaeb9eb8",
"session": "7c45225f6ace5f5397584a92e5303db762acdb2bfa311cc3d16e8fd6aaeb5253",
"project": "5ec499d561c29586cc0f4d4237d361d144bcbee14c1fc262479172a77d93b1a1",
"execution": "d1a01e32fbb6295a6aba6b788057eaa2354fd208610d9fbda1465ab96531fa71"
},
{
"id": "4abc4201-549e-46e0-947c-3d3f5b53ffae",
"session": "2868af7181ce7ecbc903932c9f25fcaba421100317017dd9e3c94b5aebd5ebe5",
"project": "91f80e1c4cec343d0b632ad7e0b9eb8f732ca39c8290e40a8dc085f113339ffd",
"execution": "4e3ca3e707c618ae28d4ff8c6738c80a8b8dbbc6e272b9203a79219ed5c5f702"
},
{
"id": "50c279be-66ad-48b8-a483-4e11c814db47",
"session": "9abdcf0865de6578dbfda995836e7e913f4f65ee38c0f40af90f7bb8a9f0ae87",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "569c9457-d399-46e6-b53e-4b1fdbb02109",
"session": "4daa494a90d4ed6d5161e4ea2cfe7ae60703b7c7722cb31621859d66bbb32677",
"project": "91f80e1c4cec343d0b632ad7e0b9eb8f732ca39c8290e40a8dc085f113339ffd",
"execution": "16b8c268db9de78d3f44461496f022371d0bd8345e124e27e20a08618c9cb0c3"
},
{
"id": "57aee35b-7e64-46cf-a685-4867de8f4e0b",
"session": "61d32b2fdf93e5c4eec42d9f4cab28f3c24e7c7b0cf308e21f7ff3884870daec",
"project": "76532f9c3e309accdb4e46a50552ed347d089d63096efedf1372444527ae1ea3",
"execution": "cf40e7826c922323a84e7a5260000992527eb8956bbc8c6f1632bab358aa408c"
},
{
"id": "596df050-d490-44da-be1c-bcaf58c88dc0",
"session": "870300930ed9b8791b2d3381df7bd9c6ae7578aa39ba0fed72b606c9af548adb",
"project": "3b83f6c68b0af564e8732559ff71514f738252a0fd2d097db61c9a023f179d79",
"execution": "68fc0ee38d3101de7d2d75a8d821ec71ec97fbaf996fa5924b413bac20adb4b9"
},
{
"id": "72d3d22f-14d9-4bca-bb6a-ab686bc96b26",
"session": "707ebc4a9c4dd210eacb5f3c2b119fe999085e6b157df50dd89180706df812e0",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "339307371999d6e01c107c102d0b0e17609f263aed6eb05cd48eb63dd17df7e5"
},
{
"id": "776d488f-18a7-41aa-96a4-91dd1f19d374",
"session": "dc9824b3cd6e7203e6e805ab7291bd6c4b514c7524637a937e487c32853aab1d",
"project": "bcaad9ff6ce07b52fbe8f23009bc72f8928c2f2a4859099bfbd3121d52d0bca3",
"execution": "9e11585ede5558f130e22f01deb51d7d1f1f35582ab390fcd1a749378fa221a5"
},
{
"id": "77f7237d-b7b4-4725-b82b-0781a669740b",
"session": "27f35a1b6db0905f20b758abc68c79286a703c6557eeef7bcb95bc17c13eafa0",
"project": "d881bf752b0e14b37c0325d077a459b08be741605aef0db775195d2de66c4595",
"execution": "66dcd67380219986a70e663e87a38d6d511dab82b4873beb1628ff4f193d6581"
},
{
"id": "87a48440-804e-4ac4-8a9f-5ba38a55c082",
"session": "b4e9c835232835730d601c1a327795602c5bc21bf330d30b67acd0f5b57720fa",
"project": "3b83f6c68b0af564e8732559ff71514f738252a0fd2d097db61c9a023f179d79",
"execution": "a2748e42a4fd85c61e5f9ad9c604c33996592039f5268fdaec4529e60fc17377"
},
{
"id": "997213e9-ccd7-485e-a099-ad348b626610",
"session": "7edddb9135e4c0694e9e375d00d0db38f889b47c3cd8ce9c118873e3ab17c9a8",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "af2827eb-b31c-456e-b9ab-6f34ab8f600e",
"session": "8b5fcd43f63f2dcb5a2bf65c9503b02147f3e0a76ca5da6c84cb588b53b1714c",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "b045829c-377b-4f69-ad0b-513fe797b421",
"session": "44040c046fd23053228a203745112b277acfcb191ae5a5ce957dd7090c983a2f",
"project": "0a1d247fb4e3fc9dfc35ec2e4902e107c8ccc8efcc33e61e556cd5230e4777d1",
"execution": "e441f4dbf00fbe867072c0cf89134eb81e33bce2ad87848bc573d6fb577a491f"
},
{
"id": "c25669d5-9c3b-4548-80d5-51c58a3c5e73",
"session": "e662f26079c573528662fe5a144142fc938f8a316a74afea9a4eaffd4fa25e69",
"project": "e5048b792e2681faf68f83b4cd35a7e321dce4ac0dafd07d8b6007d430db66bf",
"execution": "b3c9912482a56bda774344e7da9db4b7e05a661896f15554c1f95d9f56075f5d"
},
{
"id": "c32c9c87-8239-4606-a4c0-783529603bc7",
"session": "5a9d028a1054136e85c2037d4151709c3d835d9edb2e67476e3dd9becb493e83",
"project": "6b00a6786f0a47fc81edbcdb39300b0d486deea338d1c4c327395da64238f331",
"execution": "989ea006d275a3a8127409ac55d2efffb0990a11c9b825ae970a2e2f3fe8392a"
},
{
"id": "c52d620a-dbaa-4bbd-9039-0eabe53ba03d",
"session": "019799045a657a75bf74f2cb659ca00aa31e55a8c1609df64ac007ee4b1a9c61",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8",
"session": "00018e8b18ba8311b139cce9ab5c5414c26b8893b3234efd8f54804711978ed1",
"project": "844f1c9a520e159edb9e76a169d674484386ca30a141e47de720a8c2ec4d4acd",
"execution": "d1c4dc43bbcfec94500e51d23ba4f995c55f798fd27a53fa2d3d63172a7e4b1c"
},
{
"id": "dfe8ad2b-1346-42e4-a597-602784371692",
"session": "fa23f538a563db8cf0fc5aa0620af15fc1475648de2cf5da6ad3ec06ceed1dc8",
"project": "91f80e1c4cec343d0b632ad7e0b9eb8f732ca39c8290e40a8dc085f113339ffd",
"execution": "a81d70245229a6a84b2ba0e02d9577c7bb2793ff25b0e36339d3b1f1bd677f3c"
},
{
"id": "e8846c6e-1ba2-497e-b0db-ca5778181eb0",
"session": "81477eeefcdf965fdd9091e05670df99e3817f7cbc6ab56605c215262ec3cd5c",
"project": "0a1d247fb4e3fc9dfc35ec2e4902e107c8ccc8efcc33e61e556cd5230e4777d1",
"execution": "7a000c717f543db70875d9f163766606a1bc9ec8747881e5d91a9fafa7d2a084"
},
{
"id": "ea5ec3cb-b074-41ac-989c-34c6515bd742",
"session": "983e92750affa53234ea805de39889e58c5a2a1b4e016e8a84d1ff15d83bb918",
"project": "3b83f6c68b0af564e8732559ff71514f738252a0fd2d097db61c9a023f179d79",
"execution": "3d6af5dd21d62fa98fd36ce353111b08bb48194985d16262d7bd9a7ca036e0a6"
},
{
"id": "f8a5a714-183d-4d6c-af27-ed56c60225b2",
"session": "cff80cd569d20f8294703ad3fce75555a21b911e07339220a5bb2a31c01eb78d",
"project": "d3025c877b071c0815d63323d883f68be4e778ba4392ab2bae91cf24cd34e29f",
"execution": "daab52abf10ac06e6a0e1b2b13cd4bd0f9de620e9b6404392041212d63df8808"
},
{
"id": "fc87c3f6-a108-4095-ae41-4ef56bc789c3",
"session": "49dbf09c02b74d867df47a65185c60f5fac173ed114ccd6e7adf261a93e71b1f",
"project": "72cc4e0235d860965503c3b4f7d0a59f5f8a8720592e10578c4da7ab36bf1af1",
"execution": "4dce8aa90154d21f6f34e2a562cc567cc37f0eb06dd600094b1b47278b97b5df"
}
],
"allRowsAndExportsPreserved": true,
"inspectorClosed": true,
"comparedFiles": 8836,
"repackedMetadata": [
{
"path": "runtime/REA-RUNTIME.json",
"finalBuiltAt": "2026-10-30T23:54:40.460Z",
"testedBuiltAt": "2026-10-30T23:20:56.160Z",
"finalSha256": "425d5c163697788e5e31480db9af7e9fa4b1ba760d45a97b110514f98017f3ee",
"testedSha256": "324f7b57778da6a0d9e2c82abfb30a4f1f6056e76cab3c732c242476b8261cbd",
"difference": "builtAt only; all other fields and dependency hashes equal."
}
],
"frozenInputs": 253,
"independentSourceRoot": "D:\\awb\\source-check-d0bb01d3d6cb4d94b37e8a78fbccf8cf\\Agent-Workbench-1.14.0-source-20261030232056161",
"independentSourceTests": {
"tests": 445,
"pass": 445,
"fail": 0,
"cancelled": 0,
"skipped": 0,
"todo": 0
},
"uiGroups": 178,
"projectSamples": 3,
"realModelRequests": 0,
"headers": {
"cache-control": "no-store",
"connection": "keep-alive",
"content-security-policy": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'",
"content-type": "text/html; charset=utf-8",
"date": "Sat, 31 Oct 2026 00:07:13 GMT",
"keep-alive": "timeout=5",
"referrer-policy": "no-referrer",
"transfer-encoding": "chunked",
"x-content-type-options": "nosniff",
"x-frame-options": "DENY"
},
"comparison": "Exact original canonical hashes of all database rows and all session/project/execution exports, no omitted fields.",
"preflight": {
"success": true,
"observedAt": "2026-10-30T22:45:53.655Z",
"version": "1.13.0",
"pid": 23172,
"registeredPid": 23172,
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517",
"runtimeRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.13.0-win-x64-20261030193314594",
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench",
"busySessions": 0,
"historicalReleasePid": 19084,
"hasKey": true,
"model": "gpt-6.1-sol",
"connections": 2,
"pools": 1,
"inspectorClosed": true,
"credentialsHandling": "Public identity/counts only. No Provider key read, copied or sent; no model request."
},
"historicalReleasePid": 19084,
"preservesCurrentObservedProcess": true,
"modelCenterPreserved": true,
"modelCenter": {
"sha256": "3b45c5899533fa560a6c6b69afc149df7252656efd6730eb0d2105c3ca64845d",
"connections": 2,
"pools": 1,
"imports": 0,
"attempts": 6
},
"retainedHostNode": {
"pid": 23172,
"createdAt": "2026-10-30T14:33:10.3641640Z",
"executablePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517\\runtime\\node.exe",
"executableSha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"finalBundledNodePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe",
"finalBundledNodeSha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"observedAt": "2026-10-31T00:05:47.8683896Z",
"scope": "Actual retained PID creation and executable identity only. No command line, process environment or model credentials read."
},
"verificationResumed": {
"beforePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94\\before.json",
"upgradePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94\\upgrade.json",
"originalFailureLog": ".qa/controlled-engine-deployment-log.txt",
"upgradeReplayed": false,
"correctedExpectation": "Retained PID uses its actual original process.execPath. Both actual and new bundled Node binaries match exact SHA256/version."
},
"credentialsHandling": "Only public configuration flags and data hashes. Original Provider stays in the process; no model credentials read/copied/printed/saved and no model requests."
}
@@ -0,0 +1,135 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash, randomUUID } from 'node:crypto';
import { DatabaseSync } from 'node:sqlite';
import { upgradeRunning } from '../scripts/upgrade-running.mjs';
const targetVersion = '1.14.0', previousVersion = '1.13.0';
const read = filename => JSON.parse(fs.readFileSync(filename, 'utf8'));
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object'
? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
const digest = value => hash(JSON.stringify(canonical(value)));
const release = read('releases/latest.json'), source = read('.qa/source-package-validation.json'), archive = read('.qa/archives-validation.json'), portable = read('.qa/release-validation.json');
const preflight = read('docs/controlled-engine-service-preflight.json');
const finalBaseline = read('docs/controlled-engine-final-release-baseline.json'), portableQa = read('docs/controlled-engine-portable-qa-change.json');
assert.equal(portableQa.success, true); assert.equal(portableQa.change.path, 'scripts/verify-release.mjs');
assert.deepEqual(source.inputs, finalBaseline.sourceValidatedInputs);
assert.equal(preflight.version, previousVersion); assert.equal(preflight.registeredPid, preflight.pid); assert.equal(preflight.busySessions, 0);
assert.ok(Number.isInteger(preflight.pid) && preflight.pid > 0);
for (const [name, result] of Object.entries({ source, archive, portable })) { assert.equal(result.success, true, name); assert.equal(result.version, targetVersion, name); }
assert.equal(read(path.join(release.portableRoot, 'MANIFEST.json')).version, targetVersion);
assert.equal(path.resolve(portable.appRoot), path.resolve(release.portableRoot));
assert.ok(source.tests.tests > 404); assert.equal(source.tests.pass, source.tests.tests);
for (const name of ['fail', 'cancelled', 'skipped', 'todo']) assert.equal(source.tests[name], 0);
assert.equal(source.buildMatchedFiles, 6); assert.ok(source.actualRea.success && source.actualEngine.success && source.actualBrowser.success && source.actualControlled.success);
assert.equal(source.actualControlled.cases, 4); assert.equal(source.actualControlled.realModelRequests, 0); assert.equal(source.actualControlled.rootExited, true);
assert.equal(portable.actualControlled.success, true); assert.equal(portable.actualControlled.cases.length, 4); assert.equal(portable.actualControlled.realModelRequests, 0);
for (const kind of ['portable', 'source']) {
assert.equal(archive.archives.find(item => item.kind === kind).sha256, release[kind].sha256);
assert.equal(hash(fs.readFileSync(release[kind].path)), release[kind].sha256);
}
for (const input of finalBaseline.inputs) {
for (const root of [process.cwd(), release.sourceRoot]) {
const bytes = fs.readFileSync(path.join(root, input.path)); assert.equal(bytes.length, input.bytes, input.path); assert.equal(hash(bytes), input.sha256, input.path);
}
}
const files = (root, relative) => fs.readdirSync(path.join(root, relative), { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))
.flatMap(entry => { assert.equal(entry.isSymbolicLink(), false); const filename = path.join(relative, entry.name); return entry.isDirectory() ? files(root, filename) : [filename]; });
const compared = [], repackedMetadata = [];
function compare(leftRoot, rightRoot, relative) {
const names = files(leftRoot, relative); assert.deepEqual(names, files(rightRoot, relative));
for (const filename of names) {
const left = fs.readFileSync(path.join(leftRoot, filename)), right = fs.readFileSync(path.join(rightRoot, filename));
if (!left.equals(right) && filename.replaceAll('\\', '/') === 'runtime/REA-RUNTIME.json') {
const { builtAt: leftBuiltAt, ...a } = JSON.parse(left), { builtAt: rightBuiltAt, ...b } = JSON.parse(right);
assert.ok(Number.isFinite(Date.parse(leftBuiltAt)) && Number.isFinite(Date.parse(rightBuiltAt))); assert.deepEqual(a, b);
repackedMetadata.push({ path: filename.replaceAll('\\', '/'), leftBuiltAt, rightBuiltAt, leftSha256: hash(left), rightSha256: hash(right), difference: 'builtAt only; every other field/hash equal' });
} else if (filename.replaceAll('\\', '/') === portableQa.change.path) {
assert.equal(hash(left), portableQa.change.sha256); assert.equal(hash(right), portableQa.change.originalSha256);
} else assert.ok(left.equals(right), filename);
compared.push(filename.replaceAll('\\', '/'));
}
}
for (const folder of ['src', 'tests', 'scripts', 'public', 'benchmarks', 'runtime']) compare(release.sourceRoot, source.sourceRoot, folder);
for (const folder of ['dist-client', 'dist-server']) { compare(release.portableRoot, source.sourceRoot, folder); compare(process.cwd(), release.portableRoot, folder); }
const ui = read('docs/controlled-engine-all-ui-validation.json'), projects = read('docs/controlled-engine-final-projects-validation.json');
assert.equal(ui.success, true); assert.equal(ui.version, targetVersion); assert.equal(ui.groups, 178); assert.equal(ui.results.length, 23);
assert.equal(projects.success, true); assert.equal(projects.testedVersion, targetVersion); assert.equal(projects.targetVersion, targetVersion); assert.equal(projects.results.length, 3); assert.equal(projects.realModelRequests, 0); assert.ok(projects.results.every(value => value.success));
const directory = path.resolve('.qa/controlled-engine-deployment-' + randomUUID()); fs.mkdirSync(directory);
const url = 'http://127.0.0.1:4318'; let token;
async function api(route) {
const response = await fetch(url + '/api' + route, { headers: { Connection: 'close', ...(token ? { 'X-Workbench-Token': token } : {}) }, signal: AbortSignal.timeout(20000) });
assert.ok(response.ok, route + ': HTTP ' + response.status); return await response.json();
}
const before = await api('/bootstrap'), health = await api('/health'); token = before.token;
assert.equal(before.version, previousVersion); assert.equal(health.pid, preflight.pid); assert.equal(typeof before.config.hasKey, 'boolean');
assert.ok(before.sessions.every(value => !['running', 'awaiting_approval', 'stopping'].includes(value.status)));
const info = read(path.join(process.env.LOCALAPPDATA, 'AgentWorkbench/service-info.json')); assert.equal(info.pid, health.pid);
assert.equal(fs.realpathSync.native(info.appRoot), fs.realpathSync.native(preflight.appRoot));
assert.equal(fs.realpathSync.native(before.runtimeRoot), fs.realpathSync.native(preflight.runtimeRoot));
assert.equal(fs.realpathSync.native(info.dataRoot), fs.realpathSync.native(preflight.dataRoot));
const modelCenterBefore = await api('/model-center');
assert.equal(modelCenterBefore.waiting, 0); assert.ok(modelCenterBefore.connections.every(value => value.activeRequests === 0));
function snapshotDb() {
const db = new DatabaseSync(path.join(info.dataRoot, 'workbench.sqlite'), { readOnly: true }); db.exec('BEGIN');
try {
const tables = {};
for (const { name: table } of db.prepare("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name").all()) {
const rows = db.prepare('SELECT * FROM "' + table.replaceAll('"', '""') + '" ORDER BY rowid').all();
tables[table] = { count: rows.length, sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
}
const sessions = db.prepare("SELECT id,json_extract(payload,'$.archived') AS archived FROM sessions ORDER BY id").all();
const recordKinds = db.prepare('SELECT kind,COUNT(*) AS count FROM records GROUP BY kind ORDER BY kind').all();
return { tables, sessions, recordKinds };
} finally { db.exec('ROLLBACK'); db.close(); }
}
const beforeDb = snapshotDb(), exports = [];
for (const brief of beforeDb.sessions) { const value = await api('/sessions/' + brief.id + '/export'); exports.push({ id: brief.id, session: digest(value.session), project: digest(value.project), execution: digest(value.execution) }); }
fs.writeFileSync(path.join(directory, 'before.json'), JSON.stringify({ version: before.version, pid: health.pid, configSha256: digest(before.config), projectsSha256: digest(before.projects), sessionsSha256: digest(before.sessions), modelCenterSha256: digest(modelCenterBefore), database: beforeDb, exports }, null, 2));
assert.deepEqual(snapshotDb(), beforeDb, 'User state changed during preflight; do not use stale snapshots.');
console.log(JSON.stringify({ stage: 'pre-upgrade', version: before.version, pid: health.pid, hasKey: before.config.hasKey,
counts: Object.fromEntries(Object.entries(beforeDb.tables).map(([name, value]) => [name, value.count])), allSessions: beforeDb.sessions.length, inputs: source.inputFiles, comparedFiles: compared.length }));
const upgraded = await upgradeRunning({ url, pid: health.pid, currentRoot: info.appRoot, ...(before.runtimeRoot ? { handlerRoot: before.runtimeRoot } : {}), newRoot: release.portableRoot });
fs.writeFileSync(path.join(directory, 'upgrade.json'), JSON.stringify(upgraded, null, 2));
assert.equal(upgraded.version, targetVersion); assert.equal(upgraded.verified, true); assert.equal(upgraded.connectionPreserved, true);
const after = await api('/bootstrap'), afterHealth = await api('/health');
assert.equal(afterHealth.pid, health.pid); assert.equal(digest(after.config), digest(before.config));
assert.equal(digest(after.projects), digest(before.projects)); assert.equal(digest(after.sessions), digest(before.sessions));
assert.equal(digest(await api('/model-center')), digest(modelCenterBefore), 'All public connections, pools, imports, credential flags and attempts must remain unchanged.');
assert.deepEqual(snapshotDb(), beforeDb, 'Every persisted row must remain unchanged.');
for (const saved of exports) { const value = await api('/sessions/' + saved.id + '/export'); assert.equal(digest(value.session), saved.session); assert.equal(digest(value.project), saved.project); assert.equal(digest(value.execution), saved.execution); }
await assert.rejects(fetch('http://127.0.0.1:9229/json/list', { signal: AbortSignal.timeout(750) }));
const headers = Object.fromEntries((await fetch(url)).headers); assert.equal(headers['x-frame-options'], 'DENY'); assert.match(headers['content-security-policy'], /frame-ancestors 'none'/);
const rea = await api('/research/availability'); assert.equal(rea.status, 'available'); assert.equal(rea.version, '6.8.0');
assert.equal(fs.realpathSync.native(rea.packageRoot), fs.realpathSync.native(path.join(release.portableRoot, 'runtime/node_modules/rea-agents')));
assert.equal((await api('/engines/deepseek/availability')).status, 'available');
const controlledAvailability = await api('/engines/deepseek/controlled-availability'); assert.equal(controlledAvailability.controlledStatus, 'available');
// Hot upgrade retains the host process and therefore its original execPath.
// Require that exact original executable, plus byte identity with the new bundle.
assert.equal(fs.realpathSync.native(controlledAvailability.node.path), fs.realpathSync.native(path.join(info.appRoot, 'runtime/node.exe')));
assert.equal(hash(fs.readFileSync(controlledAvailability.node.path)), hash(fs.readFileSync(path.join(release.portableRoot, 'runtime/node.exe'))));
assert.equal(controlledAvailability.node.version, '24.22.1');
const purgeSource = await api('/engines/purge/source'); assert.equal(purgeSource.status, 'available'); assert.equal(purgeSource.defaultEnabled, false);
assert.equal((await api('/sessions/' + before.sessions[0].id + '/browser')).availability.status, 'available');
const result = { success: true, version: targetVersion, previousVersion, testedAt: new Date().toISOString(), ...upgraded,
directory, appRoot: release.portableRoot, dataRoot: info.dataRoot, originalAppRoot: info.appRoot,
model: after.config.model, hasKey: after.config.hasKey, allSessionCount: beforeDb.sessions.length, visibleSessionCount: before.sessions.length,
archivedSessionCount: beforeDb.sessions.filter(value => value.archived).length,
database: Object.fromEntries(Object.entries(beforeDb.tables).map(([name, value]) => [name, { count: value.count, sha256: value.sha256 }])),
recordKinds: beforeDb.recordKinds, preservedSessionSnapshots: exports, allRowsAndExportsPreserved: true, inspectorClosed: true,
comparedFiles: compared.length, repackedMetadata, frozenInputs: source.inputFiles, independentSourceRoot: source.sourceRoot,
independentSourceTests: source.tests, uiGroups: ui.groups, projectSamples: projects.results.length, realModelRequests: 0, headers,
comparison: 'Exact canonical hashes of every persisted row and exported project/session/execution, with no omitted compatibility fields.',
preflight, historicalReleasePid: preflight.historicalReleasePid, preservesCurrentObservedProcess: true,
modelCenterPreserved: true, modelCenter: { sha256: digest(modelCenterBefore), connections: modelCenterBefore.connections.length,
pools: modelCenterBefore.pools.length, imports: modelCenterBefore.imports.length, attempts: modelCenterBefore.attempts.length },
credentialsHandling: 'Only public configuration/hasKey and data hashes; original Provider/credentials stay in the process. No model key read/copied/printed/saved and no model request.' };
fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(result, null, 2) + '\n');
fs.writeFileSync('docs/controlled-engine-upgrade-live-validation.json', JSON.stringify(result, null, 2) + '\n');
fs.writeFileSync('docs/deployment.json', JSON.stringify({ ready: true, url, version: targetVersion, mode: after.config.mode, model: after.config.model, hasKey: after.config.hasKey,
pid: health.pid, appRoot: release.portableRoot, originalAppRoot: info.appRoot, dataRoot: info.dataRoot, installedAt: new Date().toISOString(), verification: 'controlled-engine-upgrade-live-validation.json' }, null, 2) + '\n');
console.log(JSON.stringify({ success: true, version: targetVersion, pid: health.pid, hasKey: result.hasKey, directory, allSessions: result.allSessionCount,
counts: Object.fromEntries(Object.entries(result.database).map(([name, value]) => [name, value.count])), allRowsAndExportsPreserved: true, inspectorClosed: true, realModelRequests: 0 }));
@@ -0,0 +1,119 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { DatabaseSync } from 'node:sqlite';
import { execFileSync } from 'node:child_process';
const version = '1.14.0', read = name => JSON.parse(fs.readFileSync(name, 'utf8'));
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object' ? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
const digest = value => hash(JSON.stringify(canonical(value)));
const fileIdentity = file => { const bytes = fs.readFileSync(file); return { path: file.replaceAll('\\', '/'), bytes: bytes.length, sha256: hash(bytes) }; };
const source = read('.qa/source-package-validation.json'), compared = read('.qa/controlled-engine-final-inputs-comparison.json'), baseline = read('docs/controlled-engine-final-code-baseline.json');
const qaChange = read('docs/controlled-engine-qa-path-fix-validation.json');
const portableQa = read('docs/controlled-engine-portable-qa-change.json'), finalBaseline = read('docs/controlled-engine-final-release-baseline.json');
assert.equal(portableQa.success, true); assert.equal(portableQa.change.path, 'scripts/verify-release.mjs');
assert.deepEqual(finalBaseline.sourceValidatedInputs, source.inputs);
const release = read('releases/latest.json'), archive = read('.qa/archives-validation.json'), portable = read('.qa/release-validation.json');
const ui = read('docs/controlled-engine-all-ui-validation.json'), projects = read('docs/controlled-engine-final-projects-validation.json');
const deployed = read('docs/controlled-engine-upgrade-live-validation.json'), smoke = read('.qa/controlled-engine-deployed-ui-validation.json');
for (const [name, report] of Object.entries({ source, compared, baseline, archive, portable, ui, deployed, smoke })) { assert.equal(report.success, true, name); assert.equal(report.version, version, name); }
assert.equal(projects.success, true); assert.equal(projects.targetVersion, version); assert.equal(projects.testedVersion, version);
assert.ok(source.tests.tests > 404); assert.equal(source.tests.pass, source.tests.tests);
for (const name of ['fail', 'cancelled', 'skipped', 'todo']) assert.equal(source.tests[name], 0);
assert.deepEqual(source.inputs, baseline.inputs); assert.equal(source.inputFiles, baseline.inputs.length); assert.equal(source.buildMatchedFiles, baseline.builds.length);
for (const row of [...finalBaseline.inputs, ...baseline.builds, ...baseline.benchmarks]) assert.equal(hash(fs.readFileSync(row.path)), row.sha256, row.path);
for (const row of projects.inputs) {
if (row.path.replaceAll('\\', '/') === qaChange.change.path) {
assert.equal(qaChange.success, true); assert.equal(qaChange.change.path, 'scripts/verify-controlled-release.mjs');
assert.equal(row.sha256, qaChange.change.originalSha256); assert.equal(hash(fs.readFileSync(row.path)), qaChange.change.sha256);
const original = execFileSync('git', ['show', qaChange.productCodeCommit + ':' + qaChange.change.path], { windowsHide: true, maxBuffer: 1048576 });
assert.equal(hash(original), row.sha256);
} else if (row.path.replaceAll('\\', '/') === portableQa.change.path) {
assert.equal(row.sha256, portableQa.change.originalSha256); assert.equal(hash(fs.readFileSync(row.path)), portableQa.change.sha256);
const original = execFileSync('git', ['show', portableQa.sourceValidatedCommit + ':' + portableQa.change.path], { windowsHide: true, maxBuffer: 1048576 });
assert.equal(hash(original), row.sha256);
} else assert.equal(hash(fs.readFileSync(row.path)), row.sha256, row.path);
}
assert.equal(ui.groups, 178); assert.equal(ui.results.length, 23); assert.equal(projects.results.length, 3); assert.equal(projects.cases.length, 13);
for (const [index, sample] of projects.results.entries()) {
assert.equal(sample.success, true); assert.equal(sample.version, version); assert.equal(sample.realModelRequests, 0); assert.equal(sample.parentCheck.status, 'passed'); assert.ok(sample.commit);
assert.equal(sample.parentCheck.results[0].tests.passed, [8, 9, 10][index]);
assert.ok(sample.checks.some(check => check.status === 'failed' && check.results.some(result => result.tests?.failed > 0)));
for (const run of sample.engineRuns) { assert.equal(run.status, 'completed'); assert.equal(run.native.cleanup.treeConfirmed, true); }
assert.equal(sample.metrics.unknownRequests, 0); assert.equal(sample.metrics.requests, sample.modelRequests.length);
for (const job of sample.browserJobs) { assert.equal(job.status, 'passed'); assert.equal(job.cleanup.exited, true); assert.equal(job.assertions.passed, 8); }
}
assert.equal(source.actualControlled.success, true); assert.equal(source.actualControlled.cases, 4); assert.equal(source.actualControlled.realModelRequests, 0); assert.equal(source.actualControlled.rootExited, true);
assert.equal(portable.actualControlled.success, true); assert.equal(portable.actualControlled.cases.length, 4); assert.equal(portable.actualControlled.contained, true); assert.equal(portable.actualControlled.realModelRequests, 0);
for (const native of [source.actualRea, source.actualEngine, source.actualBrowser]) assert.equal(native.success, true);
assert.equal(smoke.results.length, 14); assert.equal(smoke.pid, deployed.pid);
for (const field of ['pageErrors', 'requestFailures', 'httpErrors', 'blockedWrites']) assert.deepEqual(smoke[field], []);
assert.equal(deployed.allRowsAndExportsPreserved, true); assert.equal(deployed.connectionPreserved, true); assert.equal(deployed.modelCenterPreserved, true);
assert.equal(deployed.preservesCurrentObservedProcess, true); assert.equal(deployed.realModelRequests, 0); assert.equal(smoke.modelRequests, 0);
for (const kind of ['source', 'portable']) {
const item = archive.archives.find(value => value.kind === kind); assert.equal(item.sha256, release[kind].sha256); assert.equal(hash(fs.readFileSync(release[kind].path)), item.sha256);
}
const sourceLogs = source.logs.map(row => {
const bytes = fs.readFileSync(row.path); assert.equal(bytes.length, row.bytes); assert.equal(hash(bytes), row.sha256);
const suffix = row.stage === 'tests' ? 'tests.tap' : row.stage.replaceAll(/[^a-z0-9-]+/gi, '-').toLowerCase() + '-log.txt';
const destination = 'docs/controlled-engine-source-' + suffix; fs.writeFileSync(destination, bytes);
return { ...fileIdentity(destination), sourcePath: row.path, stage: row.stage };
});
const uiLogs = ui.results.map(row => { const destination = 'docs/controlled-engine-final-ui-' + row.script.replace('.mjs', '-log.txt'); fs.copyFileSync(row.log, destination); return { ...fileIdentity(destination), sourcePath: row.log }; });
const images = new Map();
const pngSignature = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
function addImage(file, expected, destination) {
const bytes = fs.readFileSync(file); assert.ok(bytes.subarray(0, 8).equals(pngSignature), file); if (expected) assert.equal(hash(bytes), expected, file);
if (destination) { fs.mkdirSync(path.dirname(destination), { recursive: true }); fs.writeFileSync(destination, bytes); }
images.set(destination ?? file, { ...fileIdentity(destination ?? file), sourcePath: file });
}
for (const row of smoke.results) addImage(row.screenshot, row.screenshotSha256, 'docs/screenshots/controlled-engine-deployed-' + path.basename(row.screenshot));
for (const item of ui.results) {
const proof = read(item.evidence);
if (Array.isArray(proof.screenshots)) for (const row of proof.screenshots) {
if (row && typeof row === 'object' && row.file && row.sha256) addImage(row.file, row.sha256, 'docs/screenshots/controlled-engine-final-' + item.script.replace('verify-', '').replace('.mjs', '') + '-' + path.basename(row.file));
}
}
for (const sample of projects.results) for (const job of sample.browserJobs) for (const row of job.screenshots) {
assert.ok([1280, 390].includes(row.width)); assert.ok([900, 844].includes(row.height));
const file = path.join(projects.directory, sample.sampleName, 'page-' + row.width + '-' + row.artifactId + '.png');
addImage(file, row.sha256, 'docs/screenshots/controlled-engine-project-' + path.basename(file));
}
const db = new DatabaseSync(path.join(deployed.dataRoot, 'workbench.sqlite'), { readOnly: true }); db.exec('BEGIN');
try {
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name").all().map(row => row.name); assert.deepEqual(tables, Object.keys(deployed.database).sort());
for (const table of tables) { const rows = db.prepare('SELECT * FROM "' + table.replaceAll('"', '""') + '" ORDER BY rowid').all(); assert.equal(rows.length, deployed.database[table].count); assert.equal(digest(rows), deployed.database[table].sha256); }
} finally { db.exec('ROLLBACK'); db.close(); }
const base = 'http://127.0.0.1:4318', bootstrap = await (await fetch(base + '/api/bootstrap', { signal: AbortSignal.timeout(10000) })).json();
assert.equal(bootstrap.version, version); assert.equal((await (await fetch(base + '/api/health')).json()).pid, deployed.pid);
for (const row of deployed.preservedSessionSnapshots) {
const value = await (await fetch(base + '/api/sessions/' + row.id + '/export', { headers: { 'X-Workbench-Token': bootstrap.token, Connection: 'close' }, signal: AbortSignal.timeout(20000) })).json();
for (const kind of ['project', 'session', 'execution']) assert.equal(digest(value[kind]), row[kind]);
}
await assert.rejects(fetch('http://127.0.0.1:9229/json/list', { signal: AbortSignal.timeout(1000) }));
const copies = [
['.qa/archives-validation.json', 'docs/controlled-engine-archives-validation.json'], ['.qa/release-validation.json', 'docs/controlled-engine-release-validation.json'],
['.qa/source-package-validation.json', 'docs/controlled-engine-source-package-validation.json'], ['.qa/controlled-engine-final-inputs-comparison.json', 'docs/controlled-engine-git-inputs.json'],
['.qa/controlled-engine-source-tested-candidate.json', 'docs/controlled-engine-source-tested-candidate.json'], ['.qa/controlled-engine-source-candidate-archives-validation.json', 'docs/controlled-engine-source-candidate-archives-validation.json'],
['.qa/controlled-engine-deployed-ui-validation.json', 'docs/controlled-engine-deployed-ui-validation.json'],
];
for (const [from, to] of copies) fs.copyFileSync(from, to);
const reportNames = fs.readdirSync('docs').filter(name => name.startsWith('controlled-engine-') && /\.(json|tap|txt|mjs)$/.test(name) && name !== 'controlled-engine-release-identity.json').sort();
const reports = reportNames.map(name => fileIdentity('docs/' + name));
const identity = { success: true, version, sealedAt: new Date().toISOString(), codeCommit: finalBaseline.codeCommit, productCodeCommit: finalBaseline.productCodeCommit,
evidenceCommitBeforeSeal: execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8', windowsHide: true }).trim(),
tests: source.tests, uiGroups: ui.groups, uiTypes: ui.results.length, projectSamples: projects.results.length, projectCases: projects.cases.length, validationOnlyChange: qaChange,
postSourceValidationOnlyChange: portableQa, sourceInputsExactToFinal: compared.sourceInputsExactToFinal,
sourceInputFiles: source.inputFiles, buildFiles: baseline.builds.length, benchmarkFiles: baseline.benchmarks.length, comparedFiles: compared.comparedFiles,
gitExactInputs: compared.exactBytes, gitLfOnlyInputs: compared.normalized, release, deployedPid: deployed.pid, database: deployed.database,
preservedSessionSnapshots: deployed.preservedSessionSnapshots, modelCenter: deployed.modelCenter, allRowsAndExportsPreserved: true,
reports, logs: [...sourceLogs, ...uiLogs], images: [...images.values()], realModelRequests: 0,
acceptance: { controlledCompiledSource: source.actualControlled, controlledPortable: { cases: portable.actualControlled.cases.length, contained: true, fixtureModelRequests: portable.actualControlled.fixtureModelRequests },
purgeDefaultEnabled: false, purgeReasoningBenefit: 'not-measured-owned-response-fixture', desktopInstaller: 'planned-1.15', phonePairing: 'not-implemented' },
scope: 'Pinned controlled DeepSeek Harness and default-off source-pinned prompt experiment, owned local HTTP fixtures, actual three functional projects/reviews/checks/Edge/Git, complete independent source/portable/UI and original-host deployment. Historical A–E failures/results retain their original version; real inference benefit and other engine adapters remain separately unverified.' };
fs.writeFileSync('docs/controlled-engine-release-identity.json', JSON.stringify(identity, null, 2));
console.log(JSON.stringify({ success: true, tests: source.tests.tests, uiGroups: ui.groups, projects: projects.results.length, reports: reports.length, logs: identity.logs.length, images: identity.images.length, pid: deployed.pid }));
+90
View File
@@ -0,0 +1,90 @@
{
"success": true,
"version": "1.14.0",
"testedAt": "2026-10-30T23:57:35.267Z",
"codeCommit": "57d075ef5b09f70cf3a7b296df5d48c4b740b233",
"commit": "e135523721fc143b81ca023c03e1571735fb694a",
"finalSourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-source-20261030235440461",
"finalPortableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"independentSourceRoot": "D:\\awb\\source-check-d0bb01d3d6cb4d94b37e8a78fbccf8cf\\Agent-Workbench-1.14.0-source-20261030232056161",
"tests": {
"tests": 445,
"pass": 445,
"fail": 0,
"cancelled": 0,
"skipped": 0,
"todo": 0
},
"inputFiles": 253,
"exactBytes": 249,
"normalized": [
{
"path": "scripts/verify-ui.mjs",
"sourceSha256": "d9e7b3e8eb0ff80168acfd5d320685db6d4e1f53827cac4b96cffd5e54c758b6",
"gitBlobSha256": "cd57dd67aada66f667a4e62b7a8f76a79d3c09acd7ba7c658b89e6d38dc6be9f",
"difference": "Previously recorded unchanged file; exact bytes match after CRLF to LF only."
},
{
"path": "src/client/SkillCenter.tsx",
"sourceSha256": "b227ffdccf1d90ac969f1e4e2a56c592b7c9eac13746bf0c90ee9d9e702e9f10",
"gitBlobSha256": "de7a4426aef468a73a9522da9883592ab0cc29a1f2b3786b764cd51a304347b2",
"difference": "Previously recorded unchanged file; exact bytes match after CRLF to LF only."
},
{
"path": "src/client/styles.css",
"sourceSha256": "2712f7bb0a0145a6945ea904ba95a1a189831fef40108bdc4300400cd4d20218",
"gitBlobSha256": "734193e1a166024f1418c021bbd56255412d49268386c2c688e5766ef118e438",
"difference": "Previously recorded unchanged file; exact bytes match after CRLF to LF only."
},
{
"path": "tests/skills.test.mjs",
"sourceSha256": "c7228c190337bb5f2b9ab5a85ad34b78fd03541854e83197d7c4d2506bb3c6c6",
"gitBlobSha256": "977e987ccdeab5bf07fd3dd1788d8ba866a3dc3715c9dd947982a9abfbab7e06",
"difference": "Previously recorded unchanged file; exact bytes match after CRLF to LF only."
}
],
"buildMatchedFiles": 6,
"comparedFiles": 8836,
"comparedFolders": [
"src",
"tests",
"scripts",
"public",
"benchmarks",
"runtime"
],
"repackedMetadata": [
{
"path": "runtime/REA-RUNTIME.json",
"finalBuiltAt": "2026-10-30T23:54:40.460Z",
"testedBuiltAt": "2026-10-30T23:20:56.160Z",
"finalSha256": "425d5c163697788e5e31480db9af7e9fa4b1ba760d45a97b110514f98017f3ee",
"testedSha256": "324f7b57778da6a0d9e2c82abfb30a4f1f6056e76cab3c732c242476b8261cbd",
"difference": "builtAt only; all other fields and dependency hashes equal."
}
],
"logsVerified": 7,
"validationOnlyDifferences": [
{
"path": "scripts/verify-release.mjs",
"originalSha256": "5147a52e8fbe0cc5f10825479a3b1e75c208ae671ec7a21d5bc97849dbb8be46",
"sha256": "987dca1eae2077916f3a62ec58f6b59a4faeec4092b53a5c1e376ff25b8c8ab1",
"originalBytes": 15164,
"bytes": 16062,
"originalSourceRoot": "D:\\awb\\source-check-d0bb01d3d6cb4d94b37e8a78fbccf8cf\\Agent-Workbench-1.14.0-source-20261030232056161",
"finalSourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-source-20261030235440461"
}
],
"sourceInputsExactToFinal": 252,
"finalReleaseCodeCommit": "b3111160e24c78325a0888b112fb334e30778756",
"validationNode": {
"path": "D:\\Ai-project\\REA逆向\\tools\\node-v24.22.1-win-x64\\node.exe",
"version": "v24.22.1",
"sha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5"
},
"portableNode": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe",
"sha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5"
},
"scope": "Every product/test/UI/benchmark/native/build byte matches independently validated source. The single post-source portable QA PATH change is recorded with original/new hashes and actual portable acceptance. All final source inputs match current Git except four previously recorded unchanged CRLF/LF files."
}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
{"success":true,"version":"1.14.0","pid":23172,"hasKey":true,"allSessions":28,"counts":{"events":4568,"metadata":6,"outbox":4568,"projects":16,"records":2551,"sessions":28,"sqlite_sequence":1},"allRowsAndExportsPreserved":true,"retainedNodeExact":true,"inspectorClosed":true,"upgradeReplayed":false,"realModelRequests":0}
@@ -0,0 +1,125 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { DatabaseSync } from 'node:sqlite';
// Verification of an already completed upgrade. This script has no installer,
// inspector, model, project command, or task/tool execution entry point.
const version = '1.14.0', previousVersion = '1.13.0';
const read = file => JSON.parse(fs.readFileSync(file, 'utf8').replace(/^\uFEFF/, ''));
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object'
? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
const digest = value => hash(JSON.stringify(canonical(value)));
const directory = path.resolve('.qa/controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94');
const before = read(path.join(directory, 'before.json')), upgraded = read(path.join(directory, 'upgrade.json'));
const preflight = read('docs/controlled-engine-service-preflight.json');
const release = read('releases/latest.json'), source = read('.qa/source-package-validation.json');
const archives = read('.qa/archives-validation.json'), portable = read('.qa/release-validation.json');
const baseline = read('docs/controlled-engine-final-release-baseline.json'), compared = read('.qa/controlled-engine-final-inputs-comparison.json');
const qaChange = read('docs/controlled-engine-portable-qa-change.json');
const node = read('.qa/controlled-engine-retained-node-observation.json');
assert.equal(before.version, previousVersion); assert.equal(preflight.version, previousVersion);
assert.equal(before.pid, preflight.pid); assert.equal(preflight.pid, preflight.registeredPid);
assert.equal(upgraded.version, version); assert.equal(upgraded.verified, true); assert.equal(upgraded.connectionPreserved, true);
assert.equal(qaChange.success, true); assert.equal(qaChange.change.path, 'scripts/verify-release.mjs');
assert.deepEqual(source.inputs, baseline.sourceValidatedInputs);
for (const [name, report] of Object.entries({ source, archives, portable, compared })) {
assert.equal(report.success, true, name); assert.equal(report.version, version, name);
}
assert.deepEqual(source.tests, { tests: 445, pass: 445, fail: 0, cancelled: 0, skipped: 0, todo: 0 });
assert.equal(source.buildMatchedFiles, 6); assert.equal(source.actualControlled.success, true);
assert.equal(source.actualControlled.cases, 4); assert.equal(source.actualControlled.realModelRequests, 0); assert.equal(source.actualControlled.rootExited, true);
assert.equal(portable.actualControlled.success, true); assert.equal(portable.actualControlled.cases.length, 4);
assert.equal(portable.actualControlled.realModelRequests, 0); assert.equal(portable.actualControlled.contained, true);
assert.equal(fs.realpathSync.native(portable.appRoot), fs.realpathSync.native(release.portableRoot));
for (const kind of ['source', 'portable']) {
const archive = archives.archives.find(value => value.kind === kind);
assert.equal(archive.sha256, release[kind].sha256); assert.equal(hash(fs.readFileSync(release[kind].path)), archive.sha256);
}
for (const row of baseline.inputs) for (const root of [process.cwd(), release.sourceRoot]) {
const bytes = fs.readFileSync(path.join(root, row.path)); assert.equal(bytes.length, row.bytes); assert.equal(hash(bytes), row.sha256, row.path);
}
assert.equal(compared.finalPortableRoot, release.portableRoot); assert.equal(compared.finalSourceRoot, release.sourceRoot);
assert.equal(compared.buildMatchedFiles, 6); assert.equal(compared.comparedFiles, 8836);
assert.equal(compared.sourceInputsExactToFinal, 252); assert.deepEqual(compared.validationOnlyDifferences.map(value => value.path), ['scripts/verify-release.mjs']);
const ui = read('docs/controlled-engine-all-ui-validation.json'), projects = read('docs/controlled-engine-final-projects-validation.json');
assert.equal(ui.success, true); assert.equal(ui.version, version); assert.equal(ui.groups, 178); assert.equal(ui.results.length, 23);
assert.equal(projects.success, true); assert.equal(projects.testedVersion, version); assert.equal(projects.targetVersion, version);
assert.equal(projects.results.length, 3); assert.equal(projects.realModelRequests, 0); assert.ok(projects.results.every(value => value.success));
const base = 'http://127.0.0.1:4318'; let token;
async function api(route) {
const response = await fetch(base + '/api' + route, { headers: { Connection: 'close', ...(token ? { 'X-Workbench-Token': token } : {}) }, signal: AbortSignal.timeout(20000) });
assert.ok(response.ok, route + ': HTTP ' + response.status); return response.json();
}
const after = await api('/bootstrap'); token = after.token;
const health = await api('/health'), info = read(path.join(process.env.LOCALAPPDATA, 'AgentWorkbench/service-info.json'));
assert.equal(after.version, version); assert.equal(health.version, version); assert.equal(health.pid, before.pid); assert.equal(info.pid, before.pid);
assert.equal(fs.realpathSync.native(info.appRoot), fs.realpathSync.native(preflight.appRoot));
assert.equal(fs.realpathSync.native(info.runtimeRoot), fs.realpathSync.native(release.portableRoot));
assert.equal(fs.realpathSync.native(after.runtimeRoot), fs.realpathSync.native(release.portableRoot));
assert.equal(fs.realpathSync.native(info.dataRoot), fs.realpathSync.native(preflight.dataRoot));
assert.equal(digest(after.config), before.configSha256); assert.equal(digest(after.projects), before.projectsSha256); assert.equal(digest(after.sessions), before.sessionsSha256);
const modelCenter = await api('/model-center'); assert.equal(digest(modelCenter), before.modelCenterSha256);
assert.equal(modelCenter.waiting, 0); assert.ok(modelCenter.connections.every(value => value.activeRequests === 0));
function snapshotDb() {
const db = new DatabaseSync(path.join(info.dataRoot, 'workbench.sqlite'), { readOnly: true }); db.exec('BEGIN');
try {
const tables = {};
for (const { name: table } of db.prepare("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name").all()) {
const rows = db.prepare('SELECT * FROM "' + table.replaceAll('"', '""') + '" ORDER BY rowid').all();
tables[table] = { count: rows.length, sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
}
return { tables, sessions: db.prepare("SELECT id,json_extract(payload,'$.archived') AS archived FROM sessions ORDER BY id").all(),
recordKinds: db.prepare('SELECT kind,COUNT(*) AS count FROM records GROUP BY kind ORDER BY kind').all() };
} finally { db.exec('ROLLBACK'); db.close(); }
}
assert.deepEqual(canonical(snapshotDb()), canonical(before.database), 'All original rows, schemas, counts and hashes must match exactly.');
for (const saved of before.exports) {
const value = await api('/sessions/' + saved.id + '/export');
for (const kind of ['project', 'session', 'execution']) assert.equal(digest(value[kind]), saved[kind], saved.id + ':' + kind);
}
await assert.rejects(fetch('http://127.0.0.1:9229/json/list', { signal: AbortSignal.timeout(1000) }));
const headers = Object.fromEntries((await fetch(base)).headers);
assert.equal(headers['x-frame-options'], 'DENY'); assert.match(headers['content-security-policy'], /frame-ancestors 'none'/);
const rea = await api('/research/availability'); assert.equal(rea.status, 'available'); assert.equal(rea.version, '6.8.0');
assert.equal(fs.realpathSync.native(rea.packageRoot), fs.realpathSync.native(path.join(release.portableRoot, 'runtime/node_modules/rea-agents')));
assert.equal((await api('/engines/deepseek/availability')).status, 'available');
const controlled = await api('/engines/deepseek/controlled-availability'); assert.equal(controlled.controlledStatus, 'available');
assert.equal(node.pid, health.pid); assert.ok(Date.parse(node.createdAt) < Date.parse(preflight.observedAt));
assert.equal(fs.realpathSync.native(controlled.node.path), fs.realpathSync.native(node.executablePath));
assert.equal(fs.realpathSync.native(node.executablePath), fs.realpathSync.native(path.join(info.appRoot, 'runtime/node.exe')));
assert.equal(fs.realpathSync.native(node.finalBundledNodePath), fs.realpathSync.native(path.join(release.portableRoot, 'runtime/node.exe')));
assert.equal(hash(fs.readFileSync(node.executablePath)), node.executableSha256);
assert.equal(hash(fs.readFileSync(node.finalBundledNodePath)), node.finalBundledNodeSha256);
assert.equal(node.executableSha256, node.finalBundledNodeSha256); assert.equal(controlled.node.sha256, node.executableSha256);
assert.equal(controlled.node.version, '24.22.1');
const purge = await api('/engines/purge/source'); assert.equal(purge.status, 'available'); assert.equal(purge.defaultEnabled, false);
assert.equal((await api('/sessions/' + after.sessions[0].id + '/browser')).availability.status, 'available');
assert.deepEqual(canonical(snapshotDb()), canonical(before.database), 'Read-only re-verification must not change the original database.');
const result = { success: true, version, previousVersion, testedAt: new Date().toISOString(), ...upgraded, directory,
appRoot: release.portableRoot, dataRoot: info.dataRoot, originalAppRoot: info.appRoot, pid: health.pid,
model: after.config.model, hasKey: after.config.hasKey, allSessionCount: before.database.sessions.length, visibleSessionCount: after.sessions.length,
archivedSessionCount: before.database.sessions.filter(value => value.archived).length,
database: Object.fromEntries(Object.entries(before.database.tables).map(([name, value]) => [name, { count: value.count, sha256: value.sha256 }])),
recordKinds: before.database.recordKinds, preservedSessionSnapshots: before.exports, allRowsAndExportsPreserved: true, inspectorClosed: true,
comparedFiles: compared.comparedFiles, repackedMetadata: compared.repackedMetadata, frozenInputs: source.inputFiles, independentSourceRoot: source.sourceRoot,
independentSourceTests: source.tests, uiGroups: ui.groups, projectSamples: projects.results.length, realModelRequests: 0, headers,
comparison: 'Exact original canonical hashes of all database rows and all session/project/execution exports, no omitted fields.',
preflight, historicalReleasePid: preflight.historicalReleasePid, preservesCurrentObservedProcess: true,
modelCenterPreserved: true, modelCenter: { sha256: digest(modelCenter), connections: modelCenter.connections.length, pools: modelCenter.pools.length,
imports: modelCenter.imports.length, attempts: modelCenter.attempts.length }, retainedHostNode: node,
verificationResumed: { beforePath: path.join(directory, 'before.json'), upgradePath: path.join(directory, 'upgrade.json'),
originalFailureLog: '.qa/controlled-engine-deployment-log.txt', upgradeReplayed: false,
correctedExpectation: 'Retained PID uses its actual original process.execPath. Both actual and new bundled Node binaries match exact SHA256/version.' },
credentialsHandling: 'Only public configuration flags and data hashes. Original Provider stays in the process; no model credentials read/copied/printed/saved and no model requests.' };
fs.writeFileSync(path.join(directory, 'verification-after-upgrade.json'), JSON.stringify(result, null, 2) + '\n');
fs.writeFileSync('docs/controlled-engine-upgrade-live-validation.json', JSON.stringify(result, null, 2) + '\n');
fs.writeFileSync('docs/deployment.json', JSON.stringify({ ready: true, url: base, version, mode: after.config.mode, model: after.config.model, hasKey: after.config.hasKey,
pid: health.pid, appRoot: release.portableRoot, originalAppRoot: info.appRoot, dataRoot: info.dataRoot, installedAt: new Date().toISOString(), verification: 'controlled-engine-upgrade-live-validation.json' }, null, 2) + '\n');
console.log(JSON.stringify({ success: true, version, pid: health.pid, hasKey: after.config.hasKey, allSessions: result.allSessionCount,
counts: Object.fromEntries(Object.entries(result.database).map(([name, value]) => [name, value.count])), allRowsAndExportsPreserved: true,
retainedNodeExact: true, inspectorClosed: true, upgradeReplayed: false, realModelRequests: 0 }));
@@ -0,0 +1,10 @@
{
"pid": 23172,
"createdAt": "2026-10-30T14:33:10.3641640Z",
"executablePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517\\runtime\\node.exe",
"executableSha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"finalBundledNodePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe",
"finalBundledNodeSha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"observedAt": "2026-10-31T00:05:47.8683896Z",
"scope": "Actual retained PID creation and executable identity only. No command line, process environment or model credentials read."
}
@@ -0,0 +1,369 @@
{
"success": true,
"version": "1.14.0",
"previousVersion": "1.13.0",
"testedAt": "2026-10-31T00:07:13.990Z",
"pid": 23172,
"hasKey": true,
"projects": 16,
"sessions": 28,
"appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"verified": true,
"connectionPreserved": true,
"url": "http://127.0.0.1:4318",
"directory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench",
"originalAppRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517",
"model": "gpt-6.1-sol",
"allSessionCount": 28,
"visibleSessionCount": 20,
"archivedSessionCount": 8,
"database": {
"events": {
"count": 4568,
"sha256": "c0cb9f12e8c3e47b0749dae36db9adad5e690176a668c43a888232502f3043db"
},
"metadata": {
"count": 6,
"sha256": "416865d094cace049c29fc8ded6554051da05ac0f9e873a5037ad4e17f0f2cfa"
},
"outbox": {
"count": 4568,
"sha256": "37da12a8d514bdf60d12facfa27cf1b58e52e047a60221401d05bde85546ca74"
},
"projects": {
"count": 16,
"sha256": "37ed3d50150c7847e9687746fd77aa64360ee07402fa8511290e83f7155274db"
},
"records": {
"count": 2551,
"sha256": "6a0b0cb56af8deb260d7cae2c9e01bbfe61565d4c4fd082ad880bcff8f98a683"
},
"sessions": {
"count": 28,
"sha256": "db1deb569949d161344c7af5044d248cedd43b8143336d0633ba65f0be519b1b"
},
"sqlite_sequence": {
"count": 1,
"sha256": "228d639e621aed650fa023c6bb1c49dc3441602f68a9a0b077242adf37700acc"
}
},
"recordKinds": [
{
"kind": "artifact",
"count": 1438
},
{
"kind": "browser_job",
"count": 5
},
{
"kind": "browser_plan",
"count": 5
},
{
"kind": "change_set",
"count": 5
},
{
"kind": "check_job",
"count": 16
},
{
"kind": "check_plan",
"count": 17
},
{
"kind": "context_plan",
"count": 207
},
{
"kind": "delivery_job",
"count": 7
},
{
"kind": "delivery_plan",
"count": 7
},
{
"kind": "engine_job",
"count": 1
},
{
"kind": "run",
"count": 48
},
{
"kind": "step",
"count": 266
},
{
"kind": "task",
"count": 26
},
{
"kind": "tool",
"count": 500
},
{
"kind": "workspace",
"count": 3
}
],
"preservedSessionSnapshots": [
{
"id": "03d6acd3-01ee-46fb-aa1c-90483307737e",
"session": "ce12fab8fa32c200b16851a66d7af6eea99ddb4783aa5c2ebd2211f7fbbfcb4b",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "0c9601a4-cc20-476c-aa28-ea010c222f70",
"session": "915912a528aa7578b56b5b1329518201102b4229a28a457a6916695cbd7eb287",
"project": "8de47871c83677c90f046ab4ef11b10f2bf6602e4e7683a68034f91665f18ae7",
"execution": "e826073aa1f1535941fe334dfc660aef9b3d888b192730d03dd314bd1a8c050d"
},
{
"id": "0f3ace68-4988-4370-bf22-aac01f33a8ab",
"session": "462ab9235f6132141aab9b6fc9c03966d256970c8e19b98a17a38d1a0812b4b4",
"project": "b62f016403188e605f211acf90e6435af951fa772e339f5a967078dc49341dc9",
"execution": "ee93daaa7a1318ab0f98df6378d0afdbf8df5ead6d7e8a48b38c5ea5223fbd5c"
},
{
"id": "1102be26-9799-4f0f-9a28-7a4ce552f3a9",
"session": "3303bc0113392be74ba3091f133a247b86acf7fdd935a9d3d7692a12a555f928",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "1cf22a27-ac13-4c95-a878-9b4356ccb5b3",
"session": "519eea1e103fd081279a82d4b4e72d17857a18b027eb0b156972855c90349552",
"project": "0a1d247fb4e3fc9dfc35ec2e4902e107c8ccc8efcc33e61e556cd5230e4777d1",
"execution": "1fdf39f6d6876e362cc130d621ddf22ae0887395fdaa21be822742e9d2c3367d"
},
{
"id": "3fffee63-edc6-4538-b1dd-941354535e85",
"session": "0a30562724493eee8b93fad3abdacbee57230ba2627ac578a030a9d43c86bc60",
"project": "cebd4478e20bbbcf23872e94adaa0b7967f55a16b9343eabae4ee99855989bec",
"execution": "b33ab1fd33f041833c85292a72a035e212d7d72055e3d8aeab4fafc40939a38c"
},
{
"id": "4442eee6-8b68-4bb5-a39c-9cafbaeb9eb8",
"session": "7c45225f6ace5f5397584a92e5303db762acdb2bfa311cc3d16e8fd6aaeb5253",
"project": "5ec499d561c29586cc0f4d4237d361d144bcbee14c1fc262479172a77d93b1a1",
"execution": "d1a01e32fbb6295a6aba6b788057eaa2354fd208610d9fbda1465ab96531fa71"
},
{
"id": "4abc4201-549e-46e0-947c-3d3f5b53ffae",
"session": "2868af7181ce7ecbc903932c9f25fcaba421100317017dd9e3c94b5aebd5ebe5",
"project": "91f80e1c4cec343d0b632ad7e0b9eb8f732ca39c8290e40a8dc085f113339ffd",
"execution": "4e3ca3e707c618ae28d4ff8c6738c80a8b8dbbc6e272b9203a79219ed5c5f702"
},
{
"id": "50c279be-66ad-48b8-a483-4e11c814db47",
"session": "9abdcf0865de6578dbfda995836e7e913f4f65ee38c0f40af90f7bb8a9f0ae87",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "569c9457-d399-46e6-b53e-4b1fdbb02109",
"session": "4daa494a90d4ed6d5161e4ea2cfe7ae60703b7c7722cb31621859d66bbb32677",
"project": "91f80e1c4cec343d0b632ad7e0b9eb8f732ca39c8290e40a8dc085f113339ffd",
"execution": "16b8c268db9de78d3f44461496f022371d0bd8345e124e27e20a08618c9cb0c3"
},
{
"id": "57aee35b-7e64-46cf-a685-4867de8f4e0b",
"session": "61d32b2fdf93e5c4eec42d9f4cab28f3c24e7c7b0cf308e21f7ff3884870daec",
"project": "76532f9c3e309accdb4e46a50552ed347d089d63096efedf1372444527ae1ea3",
"execution": "cf40e7826c922323a84e7a5260000992527eb8956bbc8c6f1632bab358aa408c"
},
{
"id": "596df050-d490-44da-be1c-bcaf58c88dc0",
"session": "870300930ed9b8791b2d3381df7bd9c6ae7578aa39ba0fed72b606c9af548adb",
"project": "3b83f6c68b0af564e8732559ff71514f738252a0fd2d097db61c9a023f179d79",
"execution": "68fc0ee38d3101de7d2d75a8d821ec71ec97fbaf996fa5924b413bac20adb4b9"
},
{
"id": "72d3d22f-14d9-4bca-bb6a-ab686bc96b26",
"session": "707ebc4a9c4dd210eacb5f3c2b119fe999085e6b157df50dd89180706df812e0",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "339307371999d6e01c107c102d0b0e17609f263aed6eb05cd48eb63dd17df7e5"
},
{
"id": "776d488f-18a7-41aa-96a4-91dd1f19d374",
"session": "dc9824b3cd6e7203e6e805ab7291bd6c4b514c7524637a937e487c32853aab1d",
"project": "bcaad9ff6ce07b52fbe8f23009bc72f8928c2f2a4859099bfbd3121d52d0bca3",
"execution": "9e11585ede5558f130e22f01deb51d7d1f1f35582ab390fcd1a749378fa221a5"
},
{
"id": "77f7237d-b7b4-4725-b82b-0781a669740b",
"session": "27f35a1b6db0905f20b758abc68c79286a703c6557eeef7bcb95bc17c13eafa0",
"project": "d881bf752b0e14b37c0325d077a459b08be741605aef0db775195d2de66c4595",
"execution": "66dcd67380219986a70e663e87a38d6d511dab82b4873beb1628ff4f193d6581"
},
{
"id": "87a48440-804e-4ac4-8a9f-5ba38a55c082",
"session": "b4e9c835232835730d601c1a327795602c5bc21bf330d30b67acd0f5b57720fa",
"project": "3b83f6c68b0af564e8732559ff71514f738252a0fd2d097db61c9a023f179d79",
"execution": "a2748e42a4fd85c61e5f9ad9c604c33996592039f5268fdaec4529e60fc17377"
},
{
"id": "997213e9-ccd7-485e-a099-ad348b626610",
"session": "7edddb9135e4c0694e9e375d00d0db38f889b47c3cd8ce9c118873e3ab17c9a8",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "af2827eb-b31c-456e-b9ab-6f34ab8f600e",
"session": "8b5fcd43f63f2dcb5a2bf65c9503b02147f3e0a76ca5da6c84cb588b53b1714c",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "b045829c-377b-4f69-ad0b-513fe797b421",
"session": "44040c046fd23053228a203745112b277acfcb191ae5a5ce957dd7090c983a2f",
"project": "0a1d247fb4e3fc9dfc35ec2e4902e107c8ccc8efcc33e61e556cd5230e4777d1",
"execution": "e441f4dbf00fbe867072c0cf89134eb81e33bce2ad87848bc573d6fb577a491f"
},
{
"id": "c25669d5-9c3b-4548-80d5-51c58a3c5e73",
"session": "e662f26079c573528662fe5a144142fc938f8a316a74afea9a4eaffd4fa25e69",
"project": "e5048b792e2681faf68f83b4cd35a7e321dce4ac0dafd07d8b6007d430db66bf",
"execution": "b3c9912482a56bda774344e7da9db4b7e05a661896f15554c1f95d9f56075f5d"
},
{
"id": "c32c9c87-8239-4606-a4c0-783529603bc7",
"session": "5a9d028a1054136e85c2037d4151709c3d835d9edb2e67476e3dd9becb493e83",
"project": "6b00a6786f0a47fc81edbcdb39300b0d486deea338d1c4c327395da64238f331",
"execution": "989ea006d275a3a8127409ac55d2efffb0990a11c9b825ae970a2e2f3fe8392a"
},
{
"id": "c52d620a-dbaa-4bbd-9039-0eabe53ba03d",
"session": "019799045a657a75bf74f2cb659ca00aa31e55a8c1609df64ac007ee4b1a9c61",
"project": "4eaa22c28bc011f866c6fd49ad44169d8c6eb14e3e3a6a23e916d25545d5e3fa",
"execution": "fc07423c0785459b1860eca780a5f50d0d8da5237062fc9c77dfcfeac348f6aa"
},
{
"id": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8",
"session": "00018e8b18ba8311b139cce9ab5c5414c26b8893b3234efd8f54804711978ed1",
"project": "844f1c9a520e159edb9e76a169d674484386ca30a141e47de720a8c2ec4d4acd",
"execution": "d1c4dc43bbcfec94500e51d23ba4f995c55f798fd27a53fa2d3d63172a7e4b1c"
},
{
"id": "dfe8ad2b-1346-42e4-a597-602784371692",
"session": "fa23f538a563db8cf0fc5aa0620af15fc1475648de2cf5da6ad3ec06ceed1dc8",
"project": "91f80e1c4cec343d0b632ad7e0b9eb8f732ca39c8290e40a8dc085f113339ffd",
"execution": "a81d70245229a6a84b2ba0e02d9577c7bb2793ff25b0e36339d3b1f1bd677f3c"
},
{
"id": "e8846c6e-1ba2-497e-b0db-ca5778181eb0",
"session": "81477eeefcdf965fdd9091e05670df99e3817f7cbc6ab56605c215262ec3cd5c",
"project": "0a1d247fb4e3fc9dfc35ec2e4902e107c8ccc8efcc33e61e556cd5230e4777d1",
"execution": "7a000c717f543db70875d9f163766606a1bc9ec8747881e5d91a9fafa7d2a084"
},
{
"id": "ea5ec3cb-b074-41ac-989c-34c6515bd742",
"session": "983e92750affa53234ea805de39889e58c5a2a1b4e016e8a84d1ff15d83bb918",
"project": "3b83f6c68b0af564e8732559ff71514f738252a0fd2d097db61c9a023f179d79",
"execution": "3d6af5dd21d62fa98fd36ce353111b08bb48194985d16262d7bd9a7ca036e0a6"
},
{
"id": "f8a5a714-183d-4d6c-af27-ed56c60225b2",
"session": "cff80cd569d20f8294703ad3fce75555a21b911e07339220a5bb2a31c01eb78d",
"project": "d3025c877b071c0815d63323d883f68be4e778ba4392ab2bae91cf24cd34e29f",
"execution": "daab52abf10ac06e6a0e1b2b13cd4bd0f9de620e9b6404392041212d63df8808"
},
{
"id": "fc87c3f6-a108-4095-ae41-4ef56bc789c3",
"session": "49dbf09c02b74d867df47a65185c60f5fac173ed114ccd6e7adf261a93e71b1f",
"project": "72cc4e0235d860965503c3b4f7d0a59f5f8a8720592e10578c4da7ab36bf1af1",
"execution": "4dce8aa90154d21f6f34e2a562cc567cc37f0eb06dd600094b1b47278b97b5df"
}
],
"allRowsAndExportsPreserved": true,
"inspectorClosed": true,
"comparedFiles": 8836,
"repackedMetadata": [
{
"path": "runtime/REA-RUNTIME.json",
"finalBuiltAt": "2026-10-30T23:54:40.460Z",
"testedBuiltAt": "2026-10-30T23:20:56.160Z",
"finalSha256": "425d5c163697788e5e31480db9af7e9fa4b1ba760d45a97b110514f98017f3ee",
"testedSha256": "324f7b57778da6a0d9e2c82abfb30a4f1f6056e76cab3c732c242476b8261cbd",
"difference": "builtAt only; all other fields and dependency hashes equal."
}
],
"frozenInputs": 253,
"independentSourceRoot": "D:\\awb\\source-check-d0bb01d3d6cb4d94b37e8a78fbccf8cf\\Agent-Workbench-1.14.0-source-20261030232056161",
"independentSourceTests": {
"tests": 445,
"pass": 445,
"fail": 0,
"cancelled": 0,
"skipped": 0,
"todo": 0
},
"uiGroups": 178,
"projectSamples": 3,
"realModelRequests": 0,
"headers": {
"cache-control": "no-store",
"connection": "keep-alive",
"content-security-policy": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'",
"content-type": "text/html; charset=utf-8",
"date": "Sat, 31 Oct 2026 00:07:13 GMT",
"keep-alive": "timeout=5",
"referrer-policy": "no-referrer",
"transfer-encoding": "chunked",
"x-content-type-options": "nosniff",
"x-frame-options": "DENY"
},
"comparison": "Exact original canonical hashes of all database rows and all session/project/execution exports, no omitted fields.",
"preflight": {
"success": true,
"observedAt": "2026-10-30T22:45:53.655Z",
"version": "1.13.0",
"pid": 23172,
"registeredPid": 23172,
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517",
"runtimeRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.13.0-win-x64-20261030193314594",
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench",
"busySessions": 0,
"historicalReleasePid": 19084,
"hasKey": true,
"model": "gpt-6.1-sol",
"connections": 2,
"pools": 1,
"inspectorClosed": true,
"credentialsHandling": "Public identity/counts only. No Provider key read, copied or sent; no model request."
},
"historicalReleasePid": 19084,
"preservesCurrentObservedProcess": true,
"modelCenterPreserved": true,
"modelCenter": {
"sha256": "3b45c5899533fa560a6c6b69afc149df7252656efd6730eb0d2105c3ca64845d",
"connections": 2,
"pools": 1,
"imports": 0,
"attempts": 6
},
"retainedHostNode": {
"pid": 23172,
"createdAt": "2026-10-30T14:33:10.3641640Z",
"executablePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517\\runtime\\node.exe",
"executableSha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"finalBundledNodePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe",
"finalBundledNodeSha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"observedAt": "2026-10-31T00:05:47.8683896Z",
"scope": "Actual retained PID creation and executable identity only. No command line, process environment or model credentials read."
},
"verificationResumed": {
"beforePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94\\before.json",
"upgradePath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94\\upgrade.json",
"originalFailureLog": ".qa/controlled-engine-deployment-log.txt",
"upgradeReplayed": false,
"correctedExpectation": "Retained PID uses its actual original process.execPath. Both actual and new bundled Node binaries match exact SHA256/version."
},
"credentialsHandling": "Only public configuration flags and data hashes. Original Provider stays in the process; no model credentials read/copied/printed/saved and no model requests."
}
+4 -4
View File
@@ -1,14 +1,14 @@
{
"ready": true,
"url": "http://127.0.0.1:4318",
"version": "1.13.0",
"version": "1.14.0",
"mode": "compatible",
"model": "gpt-6.1-sol",
"hasKey": true,
"pid": 23172,
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.13.0-win-x64-20261030193314594",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
"originalAppRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.12.0-win-x64-20261030124454517",
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench",
"installedAt": "2026-10-30T19:36:30.478Z",
"verification": "workers-upgrade-live-validation.json"
"installedAt": "2026-10-31T00:07:13.991Z",
"verification": "controlled-engine-upgrade-live-validation.json"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+25
View File
@@ -589,3 +589,28 @@ Claude Code 报告已验证工具输入校验、权限决定、队列并发屏
- 独立完整源码原终态445/445通过,0失败/取消/跳过/todo;7阶段原日志与253输入/6构建/8,836份源码及依赖比对封存,249输入Git原字节相同、4份旧换行差异保留。会话36928已正常结束,不再重跑整轮。
- 便携PATH缺Git的真实ENOENT复现已保存;b311116只修验收脚本显式加入Git2.54.0已观测目录。首个完整便携/随包Node/npm4项、REA/SDK/Edge及受控四节点、7次本地HTTP/原8项检查/父审查/Git与完整停止通过。新final-release-baseline和portable-qa-change明确后于源码回归的一份QA文件变化,source原输入不改写,所有产品/测试/UI/基准/构建保持。准备最终不可变包与保留状态部署。
## 2026-10-31 1.14 最终包接续
- 接续e135523的干净工作区和最终不可变20261030235440461;归档11427便携/9748源码文件及实际便携受控四节点已成功,原独立445/445、178组UI与三工程原证据保持。
- 正式只读实测仍1.13.0/PID23172、16项目/20可见会话、2连接/1池/6原请求摘要、无忙任务。本轮不重跑已完成整轮,从保留状态升级及14页复验继续。
- 首次恢复记录多文件补丁因progress标题猜错被拒绝,未应用;采用准确单文件锚点和追加方式修正。初读输出过大被截断,后续限定最新阶段和原报告字段,未将缺失输出当已核对。
- 最终保留升级已执行:原PID23172、Provider、全部28会话/16项目/2551执行记录/4568事件及其他每表每行/全部导出/模型中心保持。后置验收在受控Node路径断言失败,原before.json/upgrade.json与stdout完整保留于.qa/controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94。
- 源码resolveDeepSeekInstallation明确固定process.execPath,热升级保留进程因此不会换原启动二进制路径;实际旧/新Node24.22.1 SHA256同为d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5。采用实际CIM进程创建身份/可执行文件与最终包SHA核对,修验收契约并从原快照续验,不重放升级或工具。
- 一次rg传入Windows未展开的测试通配符返回路径语法错误,改为目录加-g过滤。没有修改产品代码或原验收输入。
- 升级后只读续验首轮在SQLite行对象原型比较失败:SQLite返回null prototype对象,原before.json经JSON解析为普通对象;所有字段、行SHA与计数一致。续验改为双方按已使用的canonical映射再逐字段deepStrictEqual,保留全部字段/每行并保留原失败输出,不更改数据库或原快照。
- 保留升级后只读续验已通过:实际CIM PID23172/原创建时间/原Node24.22.1与新包二进制SHA一致,全部7表/每行/28导出/2连接1池6请求摘要保持,调试端口关闭,升级未重放。正式版本现为1.14.0/最终不可变20261030235440461。
- 实际Edge1280/390各7页共14页部署后复验通过,0页面异常/请求失败/HTTP异常/写入请求/真实模型请求。桌面受控安装及390pxPurge来源两张PNG已目视核对;范围/版本/默认关闭和仅本计划生效说明清楚,窄屏滚动/触控正常,无横向页面溢出。
- 原升级失败与续验原型失败、原before/upgrade快照、实际Node身份、成功续验与只读界面报告分别保留并复制到controlled-engine独立证据,接下来封存最终身份、里程碑回顾和本地提交。
## 2026-10-31 1.14 正式交付收尾
- A–F现全部complete。最终不可变20261030235440461、正式1.14.0/PID23172/Provider保持、全部7表/28导出/模型中心与14页复验通过;原失败和只读续验记录保留。最终身份封存176份报告、30份当前原日志和31张PNG。
- 已同步QA/回顾/总计划/能力矩阵/NEXT-STEPS/README/CHANGELOG/AGENTS;下一PLAN-1.15从宿主身份/单实例开始,前置通过但桌面壳/本机加密尚未实现。真实模型/Purge收益、其它引擎、手机与多模态仍单独待验。
- 收尾只改文档和独立QA验证器,未改冻结产品/测试/脚本/基准/构建,未重跑原445/445、三工程或178组UI。准备Markdown链接/JSON/语法/diff与Git索引原字节检查及本地提交。
- 最终收尾核验通过:14份Markdown/267本地链接、82份JSON及7份验证器语法正常;176份报告加身份和31张PNG共208份Git索引原字节完全一致,30份原日志/来源、253输入/6构建/40基准保持。1.13历史证据相对60b63bc无差异,正式1.14.0/PID23172、全部7表/28导出/模型中心再次核对一致,9229关闭;身份SHA256=29fbd6bb3476fb09aa97ae75591382e94d9289047c0153758eaaa0459993c5bb。本阶段本地交付完整,下一PLAN-1.15保持未实现。
+25
View File
@@ -613,3 +613,28 @@
- 独立完整源码原终态445/445通过,0失败/取消/跳过/todo;7阶段原日志与253输入/6构建/8,836份源码及依赖比对封存,249输入Git原字节相同、4份旧换行差异保留。会话36928已正常结束,不再重跑整轮。
- 便携PATH缺Git的真实ENOENT复现已保存;b311116只修验收脚本显式加入Git2.54.0已观测目录。首个完整便携/随包Node/npm4项、REA/SDK/Edge及受控四节点、7次本地HTTP/原8项检查/父审查/Git与完整停止通过。新final-release-baseline和portable-qa-change明确后于源码回归的一份QA文件变化,source原输入不改写,所有产品/测试/UI/基准/构建保持。准备最终不可变包与保留状态部署。
## 2026-10-31 1.14 最终包接续
- 接续e135523的干净工作区和最终不可变20261030235440461;归档11427便携/9748源码文件及实际便携受控四节点已成功,原独立445/445、178组UI与三工程原证据保持。
- 正式只读实测仍1.13.0/PID23172、16项目/20可见会话、2连接/1池/6原请求摘要、无忙任务。本轮不重跑已完成整轮,从保留状态升级及14页复验继续。
- 首次恢复记录多文件补丁因progress标题猜错被拒绝,未应用;采用准确单文件锚点和追加方式修正。初读输出过大被截断,后续限定最新阶段和原报告字段,未将缺失输出当已核对。
- 最终保留升级已执行:原PID23172、Provider、全部28会话/16项目/2551执行记录/4568事件及其他每表每行/全部导出/模型中心保持。后置验收在受控Node路径断言失败,原before.json/upgrade.json与stdout完整保留于.qa/controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94。
- 源码resolveDeepSeekInstallation明确固定process.execPath,热升级保留进程因此不会换原启动二进制路径;实际旧/新Node24.22.1 SHA256同为d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5。采用实际CIM进程创建身份/可执行文件与最终包SHA核对,修验收契约并从原快照续验,不重放升级或工具。
- 一次rg传入Windows未展开的测试通配符返回路径语法错误,改为目录加-g过滤。没有修改产品代码或原验收输入。
- 升级后只读续验首轮在SQLite行对象原型比较失败:SQLite返回null prototype对象,原before.json经JSON解析为普通对象;所有字段、行SHA与计数一致。续验改为双方按已使用的canonical映射再逐字段deepStrictEqual,保留全部字段/每行并保留原失败输出,不更改数据库或原快照。
- 保留升级后只读续验已通过:实际CIM PID23172/原创建时间/原Node24.22.1与新包二进制SHA一致,全部7表/每行/28导出/2连接1池6请求摘要保持,调试端口关闭,升级未重放。正式版本现为1.14.0/最终不可变20261030235440461。
- 实际Edge1280/390各7页共14页部署后复验通过,0页面异常/请求失败/HTTP异常/写入请求/真实模型请求。桌面受控安装及390pxPurge来源两张PNG已目视核对;范围/版本/默认关闭和仅本计划生效说明清楚,窄屏滚动/触控正常,无横向页面溢出。
- 原升级失败与续验原型失败、原before/upgrade快照、实际Node身份、成功续验与只读界面报告分别保留并复制到controlled-engine独立证据,接下来封存最终身份、里程碑回顾和本地提交。
## 2026-10-31 1.14 正式交付收尾
- A–F现全部complete。最终不可变20261030235440461、正式1.14.0/PID23172/Provider保持、全部7表/28导出/模型中心与14页复验通过;原失败和只读续验记录保留。最终身份封存176份报告、30份当前原日志和31张PNG。
- 已同步QA/回顾/总计划/能力矩阵/NEXT-STEPS/README/CHANGELOG/AGENTS;下一PLAN-1.15从宿主身份/单实例开始,前置通过但桌面壳/本机加密尚未实现。真实模型/Purge收益、其它引擎、手机与多模态仍单独待验。
- 收尾只改文档和独立QA验证器,未改冻结产品/测试/脚本/基准/构建,未重跑原445/445、三工程或178组UI。准备Markdown链接/JSON/语法/diff与Git索引原字节检查及本地提交。
- 最终收尾核验通过:14份Markdown/267本地链接、82份JSON及7份验证器语法正常;176份报告加身份和31张PNG共208份Git索引原字节完全一致,30份原日志/来源、253输入/6构建/40基准保持。1.13历史证据相对60b63bc无差异,正式1.14.0/PID23172、全部7表/28导出/模型中心再次核对一致,9229关闭;身份SHA256=29fbd6bb3476fb09aa97ae75591382e94d9289047c0153758eaaa0459993c5bb。本阶段本地交付完整,下一PLAN-1.15保持未实现。
+14 -3
View File
@@ -2,18 +2,24 @@
## 2026-10-31 当前任务:1.14 受控外部引擎与增强策略
用户授权进入下一阶段全量开发并及时回顾。接续60b63bc/正式1.13.0,开发使用新分支feat/controlled-engines-1.14;当前正式PID23172、Provider、连接与全部历史保持。沿用PLAN-1.14的六切片和本地Git,不读取真实Key、不发送真实/付费模型请求、不主动委派助手子代理。
用户授权进入下一阶段全量开发并及时回顾。本阶段接续60b63bc/正式1.13.0,在feat/controlled-engines-1.14完成A–F并交付正式1.14.0;原PID23172、Provider、连接与全部历史保持。沿用PLAN-1.14的六切片和本地Git,不读取真实Key、不发送真实/付费模型请求、不主动委派助手子代理。下一阶段PLAN-1.15桌面宿主方案已记录,尚未实现。
1. [complete] A:新受控安装身份固定原SDK/CLI/Node及七份关键运行器,独立profile叠加禁用原生项目/终端/模型/重试插件。7/7边界专项和实际Harness+本地固定模型2请求/1工具、prompt收据/原活动/wait/正常退出通过;完整原输入和日志封存。原SDK缺失单会话取消/反向审批/安全恢复如实保留,尚不计工程交付。
2. [complete] B:原工具/模型桥接自有Runtime/Store/WorkerManager;原调用命名空间与savedToolResult工件反馈,校验/等待审批后来源核对、单次实际尝试记账、原输入/报告/HTTP归属。67项相关兼容及最新25项内核通过;原首轮15/17断言失败保留,关闭原进程的桥请求追加复核。
3. [complete] C:实际Harness+自有本地HTTP模型夹具完成Node/React/Python三工程13节点,父8/8、9/9、10/10与构建/编译/Git通过,React1280/390各8项原断言通过;每个原生Run正常结束、全树关闭、完整原结果/逐请求用量核对。默认16K夹具首轮失败保留,明确64K容量后新冻结轮通过,产品守卫不改动。
4. [complete] D:实际固定Harness和Edge桌面/390px完整9节点通过,分页下载原字节、审批目的导航、原生停止/全树关闭及显式未知核对通过;首四轮CSS/遮罩/响应式等待失败保持。旧workers10节点/engines10组完整兼容通过,原1.13证据与Git原字节一致,新结果单独封存。
5. [complete] E:Purge 1.1.78/1.1.81九关键来源分别锁定,独立提示实验默认关闭,不运行原完整插件。34/34相关专项、两版本八工程36节点同题原生对照及修正旧失败反馈后的桌面/390px9节点通过,原失败与原字节/预算/审批保持;真实模型收益未测,不默认启用。
6. [in_progress] F:升级活动守卫/回滚、同PID所属元数据幂等和旧导出兼容已补,七项第三轮7/7、最新相关整轮80/80与编译宿主四节点通过,原失败保持。53e196a最终构建/253输入/40基准冻结,新三工程13节点及23类178组UI和23份原日志已核对;QA摘要原字段错误已修正。进入新不可变源码离线完整回归、便携及保留状态升级,下一Windows桌面阶段PLAN-1.15已记录,尚未实现。
6. [complete] F:升级活动守卫/回滚、同PID所属元数据幂等和旧导出兼容完成,七项第三轮7/7、最新相关80/80与编译宿主四节点通过,原失败保持。253输入/6构建/40基准、新三工程13节点、23类178组UI和独立445/445及7阶段原日志通过;最终不可变20261030235440461归档/实际便携及保留状态正式1.14.0升级通过。原PID23172/Provider、2连接/1池/6原请求摘要及16项目/28会话/2551记录/4568事件、全部7表每行/全导出保持,部署后14页通过,9229关闭。176份原报告、30份当前阶段日志和31张PNG已封存;原Node路径/SQLite原型QA失败保留,续验未重放升级。下一Windows桌面阶段PLAN-1.15前置已通过,尚未实现。
初步核对:原SDK没有session/cancel,prompt只给入队收据,client/server反向请求审批未实现;sdk-minimal仍包含本机文件/终端工具及danger-full-access策略,不能直接赋予工程写入。本阶段通过自有版本化叠加插件与受限宿主桥接入,实际工具目录和所属账本是验收门槛。完整公开源码使用普通代码工具;需要发行资源与运行观察时复用REA。
当前F接续:57d075e修正独立编译QA路径,6d09ac8封存差异;20261030232056161独立445/445及7阶段全部通过,253输入/6构建/8,836份运行依赖已核对。b311116修正便携QA误移除外部Git,实际完整便携/受控四节点通过;仅这一份源码整轮之后的QA脚本变化另行封存,产品/测试/UI/基准/构建保持。现生成最终不可变发行,再保留正式23172/Provider/所有行与导出升级及14页复验。
F收尾:57d075e修正独立编译QA路径,6d09ac8封存差异;20261030232056161独立445/445及7阶段全部通过,253输入/6构建/8,836份运行依赖已核对。b311116修正便携QA误移除外部Git,实际完整便携/受控四节点通过;仅这一份源码整轮之后的QA脚本变化另行封存,产品/测试/UI/基准/构建保持。最终不可变20261030235440461、正式23172/Provider/所有行及28导出保持升级和14页复验已完成;原失败及验收修复单独封存,源码/原工程/UI整轮没有重复执行。
2026-10-31恢复核对:HEAD e135523、工作区干净,最终不可变20261030235440461已完成归档与实际便携验收(11427便携/9748源码文件、受控四节点),原独立445/445保持。正式服务实测仍1.13.0/PID23172、16项目/20可见会话、2连接/1池/6请求摘要且无活动;下一步直接运行已审核的保留状态升级和14页复验,不重跑已完成的源码/工程/UI整轮。
恢复记录首次多文件补丁误用progress标题,整批拒绝未写入;改为单文件准确锚点及追加记录,没有改动冻结产品/测试/脚本。
升级接续原失败保存于.qa/controlled-engine-deployment-c17f1733-ec1c-4df5-8e9c-d733db09cf94:安装已成功且每行/全导出/连接复核通过,随后验收器错误要求process.execPath来自新版目录。原PID保持必然保留原启动Node路径;实际旧/新二进制SHA256相同。只修复验收器的宿主可执行身份检查,从原before/upgrade快照续验,不重放升级、不更改冻结产品代码。一次rg在Windows使用未展开文件通配符失败,后续使用目录及-g过滤。
本轮QA错误:nativeSummary被误用于raw engine_run、project输入快照的未记录bytes被当必有字段、首个编译验收工程路径过深;分别按实际原schema与exclusive临时工程修正,原失败/日志保留。一次只读verify-archives.mjs和worker-fixture路径猜测不存在,已按实际verify-archives.py及现有导入核对。没有放宽产品权限、路径、完成或进程关闭断言。
@@ -424,3 +430,8 @@
2026-10-30恢复核对:main/eab5ac0;最终源码验收使用独立日志package-validation-1779bd70-28e4-4866-b6a0-f3eb1541c3bf。正式4318实测1.10.1/PID19084、15项目/19个可见会话、hasKey=false且无运行或审批;原PID23080已在断线期间退出,不再沿用旧部署状态。原数据保持,升级前后还须核对全部归档会话、执行记录与事件散列。恢复时过量输出被截断、两个猜测的src根路径不存在,已限定真实路径和短段,不将缺失输出作为通过证据。
本轮错误:恢复时猜测不存在的server/http和check-runner测试路径,已按rg真实清单定位app.mjs与checks.test.mjs;一次过量输出改为限定短段。新增界面首轮可选execution字段TypeScript错误已修正并构建通过;首次TAP重定向因.qa不存在,测试尚未启动,创建目录后执行。
- 升级后只读续验首轮在SQLite行对象原型比较失败:SQLite返回null prototype对象,原before.json经JSON解析为普通对象;所有字段、行SHA与计数一致。续验改为双方按已使用的canonical映射再逐字段deepStrictEqual,保留全部字段/每行并保留原失败输出,不更改数据库或原快照。
- 最终收尾核验通过:14份Markdown/267本地链接、82份JSON及7份验证器语法正常;176份报告加身份和31张PNG共208份Git索引原字节完全一致,30份原日志/来源、253输入/6构建/40基准保持。1.13历史证据相对60b63bc无差异,正式1.14.0/PID23172、全部7表/28导出/模型中心再次核对一致,9229关闭;身份SHA256=29fbd6bb3476fb09aa97ae75591382e94d9289047c0153758eaaa0459993c5bb。本阶段本地交付完整,下一PLAN-1.15保持未实现。