fix: preserve engine activity and host state through 1.14 upgrades
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
产品目标是让用户给出需求后,工作台能保留项目基线,完成定位、计划、修改、检查、必要修复、审查和Git交付,并在停止、故障、断线后明确保留已完成结果。桌面与手机共享同一执行宿主、任务和证据。
|
||||
|
||||
当前接续:1.14的A–E已实现并分别验收,F正在完成升级兼容、编译宿主、完整界面、独立源码/便携及正式状态核对,不跳过发行门槛。下一阶段[Windows桌面与本机加密连接方案](PLAN-1.15.md)已记录六个切片及真实安装/重启/工程/回退标准,尚未开始实现。
|
||||
|
||||
## 执行顺序与完成门槛
|
||||
|
||||
| 顺序 | 开发范围 | 前置条件 | 完成标准 |
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# 1.14 受控外部引擎与增强策略执行方案
|
||||
|
||||
2026-10-31。此文记录1.13隔离协作之后的执行方案,尚未实现或发行。前置是1.13完整独立源码、界面、便携及保留状态升级通过;具体起点以[后续计划](NEXT-STEPS.md)与[1.13回顾](RETROSPECTIVE-1.13.md)为准。
|
||||
2026-10-31。此文记录1.13隔离协作之后的执行方案及接续状态。A–E受控引擎、工具桥、实际工程、恢复界面和默认关闭提示实验已实现并各自验收;F已补升级活动锁/回退、原宿主身份幂等和旧导出兼容,编译宿主完整工程通过,最终完整回归、独立发行与正式升级仍在推进。正式服务目前仍1.13.0;各轮原结果以[1.14验收](QA-1.14.md)与[回顾](RETROSPECTIVE-1.14.md)为准。
|
||||
|
||||
## 要交付的能力
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
## 当前可复用的依据
|
||||
|
||||
- 自有Task/Run、预算、工具账本、原工件、计划、检查点,以及1.13两个受限子任务的工作区、停止、成果归集和父工程审查。
|
||||
- 已安装DeepSeek Harness `0.2.1-rc.2`,1.9–1.13固定SDK探针使用独立目录、所属ready/PID/nonce及六个方法探针。`session/cancel`探针记录的是缺少方法的原错误,不能宣称单会话取消已经可用。当前没有发送引擎prompt或开放引擎工程写入。
|
||||
- 已安装DeepSeek Harness `0.2.1-rc.2`,1.9–1.13固定SDK探针使用独立目录、所属ready/PID/nonce及六个方法探针。`session/cancel`仍缺少方法;1.14通过自有受限工具/模型桥在所属独立工程执行真实prompt/检查/父审查/Git,并用所属进程树停止,不赋予原生项目工具最终写入权限。
|
||||
- REA `6.8.0`内置三项静态分析;既有Claude Code `2.1.312`与Cursor `3.16.29`来源索引。DSH-purge独立`1.1.78`和Desktop内置`1.1.81`分别登记,不能混用身份或结果。
|
||||
|
||||
公开完整源码用普通代码工具核对入口和调用链;发行工件、打包资源或需要运行观察的问题用REA。每份结论记录观测、推断与未知,复用[研究路线](RESEARCH-ROADMAP.md)与原Evidence。
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# 1.15 Windows 桌面宿主与持久连接执行方案
|
||||
|
||||
2026-10-31。此阶段尚未实现。前置为1.14最终独立源码、完整界面、真实本地工程、便携和保留状态升级全部通过;具体结果以[1.14验收](QA-1.14.md)为准。每个切片继续审查、保留原失败、复验并本地Git提交,失败的候选不进入正式服务。
|
||||
|
||||
## 本阶段交付目标
|
||||
|
||||
用户通过一个Windows桌面应用打开现有工作台。窗口和执行宿主各自管理生命周期:关闭、重开窗口可继续观察同一任务;重复启动复用经身份核对的宿主;退出宿主等待所属工具、检查和引擎进程结束。模型连接可由用户选择保存为本机加密凭据,重启后的连接状态有实际核验。安装及升级保持项目、会话、工件和连接,安装失败能退回旧版本。
|
||||
|
||||
沿用一个React客户端和现有Runtime/Store/Provider,不另建一套桌面代理。当前390px网页验收只证明窄屏界面;真实手机配对、Windows安装版和加密凭据尚未交付。
|
||||
|
||||
## 必须延续的现有契约
|
||||
|
||||
- Task/Run/Tool、原工件、检查点、累计预算、计划、unknown和显式恢复继续由执行内核负责。重新打开窗口或宿主恢复不重放已经执行的工具。
|
||||
- 原生引擎仍通过1.14所属独立工作区和受限工具桥执行,文件提案/检查/父成果审查及Git门槛保持。外部SDK没有单会话取消时,保留所属进程树关闭与原结果核对。
|
||||
- 继续区分安装目录、当前runtimeRoot和用户dataRoot。新版在新目录中验收,更新不覆盖正在运行的发行,不把旧启动目录当当前代码版本。
|
||||
- Provider凭据留在所属宿主;渲染页、日志、模型请求工件和Git中不能出现明文Key。新增保存功能仅作用于用户在工作台配置或确认导入的连接。
|
||||
|
||||
## 六个可审查切片
|
||||
|
||||
| 切片 | 实际实现 | 必须取得的证据 |
|
||||
| --- | --- | --- |
|
||||
| A:宿主身份与单实例 | 拆分桌面窗口与Node宿主;固定数据目录、用户身份、创建时间、安装清单及随机实例标识;并发启动经过同一注册锁核对 | 两次启动复用同一实际PID/owner;同名伪服务、旧PID和错误目录拒绝;窗口关闭期间实际任务继续,宿主崩溃后不自动重放 |
|
||||
| B:本机加密凭据 | 使用Windows用户级DPAPI或系统凭据库,版本化保存连接ID/配置修订/加密块;内存与磁盘提交失败一起回退;可关闭保存、删除及重新配置 | 用户显式保存后真实重启可加载;不同用户或损坏块无法解密且状态可见;多连接/导入失败不留部分状态;日志/导出/数据库扫描不含自有明文测试Key |
|
||||
| C:桌面窗口与本机入口 | Electron主进程管理窗口与窄范围preload;渲染页启用contextIsolation/sandbox并关闭Node集成;项目选择、原文件打开、终端/审查入口绑定已登记项目与当前任务 | 原桌面窗口实际完成读取/提案/审批/检查/审查;外部导航、任意IPC通道和越界文件入口拒绝;刷新、隐藏与重开保持同一任务/事件/审批身份 |
|
||||
| D:安装及可回退更新 | 固定程序/依赖/来源清单;安装包、独立新版本目录、更新候选预检、活动阻挡和失败回退;卸载的数据行为明确 | 实际安装、启动、更新及卸载演练;任务/审批或原生进程仍活动时拒绝更新;故障注入后旧程序可继续使用;所有持久行、工件和连接修订逐项核对 |
|
||||
| E:实际工程和生命周期 | 在桌面中完成固定Node/React/Python工程;测试失败后修复、父审查、检查和Git;覆盖窗口退出、后台任务、宿主停止及unknown核对 | 原测试/源码基线保持,实际Git范围正确,子/父结果与原日志一致;重开后的事件从原seq恢复;停止后所属心跳不继续写入 |
|
||||
| F:独立发行和回顾 | 固定代码/测试/基准,完整回归、真实桌面与390px兼容、干净安装/便携/保留数据更新、原失败与当前身份封存 | 源码与安装包分别验收;实际运行与Git原字节/清单一致;连接保留有解密及实际状态证据;未测的真实模型推理/手机/电脑操控不计入通过 |
|
||||
|
||||
## 模块落点
|
||||
|
||||
拟增加desktop/main、desktop/preload、宿主注册与desktop发布脚本;这是拟定目录,不能从本文推断文件已经存在。宿主复用src/server/runtime.mjs、store.mjs、provider.mjs及src/core的执行管理器。加密存储作为ModelHub/ConfigImporter的独立宿主适配层,连接选择、池租约和请求账本不因持久化换成另一套协议。
|
||||
|
||||
已有Start-Workbench.ps1只按健康响应复用端口;桌面阶段必须进一步核对所属数据目录、实例和实际创建身份。普通窗口关闭不会调用现有/api/shutdown;明确退出执行宿主才按当前活动/未知状态完成停止。默认运行仍使用本机loopback,手机网关在后续独立阶段开放。
|
||||
|
||||
## 外部能力与后续顺序
|
||||
|
||||
固定DeepSeek Harness是1.14已实现的受控引擎。Codex实际引擎适配、Claude Code/Cursor/WorkBuddy执行能力继续按具体版本、原工具/模型/审批/取消契约做独立切片;已有静态研究不能替代接入。REA仍用于发行工件及运行证据,完整公开源码直接核对;每项采纳机制需要所属模块、专项和真实工程结果。
|
||||
|
||||
桌面宿主通过后实现手机伴随端:一次性配对、设备作用域、加密传输、撤销、同Run审批和断线seq补发,在真实手机上验收。随后推进跨协议能力路由、视觉/语音附件和版本化缓存,再以隔离分支/固定工程评测/多模型复核实现自我迭代候选。每个阶段有独立版本、验收和回退点。
|
||||
|
||||
真实模型工程及Purge推理收益继续遵循用户先本地验收的选择;本阶段本机存储和生命周期用自有凭据/HTTP夹具验证。需要真实推理或设备测试时单独记录原结果,不从夹具成功外推成功率。
|
||||
@@ -59,3 +59,11 @@
|
||||
实际Edge/Harness的首个2af1c3af界面8节点通过,目视发现重新检测后旧封存失败仍显示;改为当前实验字段更新清除旧失败,新37ca77ef桌面/390px整轮9节点通过。来源缺失/实际变化拒绝、两来源检测/关闭、迟到错误隔离、42px触控和无横向溢出、原字面提示逐请求生效、完整所属树关闭、原SHA报告下载及新目标默认关闭均实际验证。原8节点与3张截图保留,最终9节点/3张截图已核对。
|
||||
|
||||
原证据为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:最终兼容与发行验收(进行中)
|
||||
|
||||
已修复原宿主重复claim改写startedAt、无引擎历史导出增加空字段、worker/原生driver/MCP活动遗漏、旧manager继续使用旧方法和失败升级恢复不完整的问题。原升级七项第三轮7/7通过,初始0/7与第二轮6/7原TAP分别保留。所有数据库表逐行、旧会话导出和Provider/凭据对象按原断言核对;未对正式服务执行升级。
|
||||
|
||||
编译宿主首轮在异步starting状态、第二轮在Git preparing状态被验收器过早判结束。修正等待明确终态,原失败/现场/日志保留;新f3b0aeb5独立整轮四节点通过,实际原生Harness两次Run正常结束及所属树关闭,7次自有HTTP请求单次记账,原失败/修复、子/父8/8与ESM构建、父审查及Git均核对通过。父已有暂存/工作副本/未跟踪原字节与保护文件保持,所属编译宿主正常exit0。此结果仍属于编译专项,不替代最终完整UI、独立源码/便携与正式状态保留升级。
|
||||
|
||||
最新12文件相关回归整轮80/80通过,0失败/取消/跳过/todo;覆盖受控引擎/worker/HTTP/Purge、原隔离worker/停止恢复/父成果与四类升级兼容。原TAP、stderr保存为controlled-engine-final-related,实际QA Python3.12.10/pytest8.4.2;后续最终工程/UI/独立源码使用已重新核对的原独立Python3.10.11/pytest8.4.2,分别登记,不套用目录名或混合统计。
|
||||
|
||||
@@ -27,3 +27,9 @@ Purge完整插件含自愈/宿主修改入口,E独立实验见下方;最终
|
||||
新34/34专项、两版本八工程36节点和最终桌面/390px9节点通过,保持原测试/源码/父审批/Git及全树结束。两版本的各次提示开销真实记录;本地固定回答夹具不能证明推理收益,也不能用相近耗时判定策略有益。真实模型同题实验仍独立待验,默认关闭。
|
||||
|
||||
目视核对发现成功重新检测后旧封存错误仍显示,虽功能流程可继续但反馈有误;字段更新清除旧失败,追加真实可见断言后复验9节点。原8节点报告/截图和失败输出分别保存,局部回归不替代F最终独立发行验收。
|
||||
|
||||
## F:升级兼容与异步阶段不能靠推断
|
||||
|
||||
原宿主身份重复声明必须保留同一owner的原startedAt;无新增引擎记录的旧会话保留原导出字段。运行活动包含worker、尚未结束的原生driver与MCP,外层Task结束不代表子进程结束。安装成功重置旧管理器,失败恢复原对象、处理器与数据库每行,七项原断言第三轮通过,原两轮失败保留。
|
||||
|
||||
编译发行验收必须执行真实引擎工程,原SDK零prompt连接核验只能证明连接。新验收器的两轮失败暴露starting与Git preparing等异步中间状态被当成结束;改为等待明确终态后核对原结果、commit、父HEAD和保护字节。新独立编译四节点通过,后续完整源码/界面/便携/正式升级仍需各自原结果,不用局部结果替代发行。
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"success": false,
|
||||
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench",
|
||||
"directory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\compiled-controlled-215085a4-9c40-4130-bbe9-cdbb13c4ed49",
|
||||
"error": "TypeError: Cannot read properties of undefined (reading 'status')\n at verifyControlledApi (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:104:85)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async verifyControlledRelease (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:166:14)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:186:18",
|
||||
"realModelRequests": 0,
|
||||
"pid": 40404,
|
||||
"rootExited": true
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS compiled host seals actual Harness/source identities and prepares one owned worktree while retaining parent bytes and staging
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\compiled-controlled-215085a4-9c40-4130-bbe9-cdbb13c4ed49
|
||||
@@ -0,0 +1,11 @@
|
||||
file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:104
|
||||
const run = (await api(childRoute + '/engine-runs')).at(-1); assert.equal(run.status, 'completed', run.error); assert.equal(run.nativeSummary.treeConfirmed, true);
|
||||
^
|
||||
|
||||
TypeError: Cannot read properties of undefined (reading 'status')
|
||||
at verifyControlledApi (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:104:85)
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
at async verifyControlledRelease (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:166:14)
|
||||
at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:186:18
|
||||
|
||||
Node.js v24.22.1
|
||||
@@ -0,0 +1 @@
|
||||
{"app":"agent-workbench","ready":true,"url":"http://127.0.0.1:51304","version":"1.14.0"}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"success": false,
|
||||
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench",
|
||||
"directory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\compiled-controlled-4aed7de5-f1f7-467f-a8f8-5cb9c07b1108",
|
||||
"error": "AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n+ actual - expected\n\n+ 'preparing'\n- 'completed'\n\n at verifyControlledApi (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:132:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async verifyControlledRelease (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:171:14)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:191:18",
|
||||
"realModelRequests": 0,
|
||||
"pid": 23088,
|
||||
"rootExited": true,
|
||||
"exit": {
|
||||
"code": 0,
|
||||
"signal": null
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
PASS compiled host seals actual Harness/source identities and prepares one owned worktree while retaining parent bytes and staging
|
||||
PASS compiled native execution retains failing tests, requires original check approvals, seals literal prompt/model/receipts/results and accounts each owned HTTP request once
|
||||
PASS compiled parent review and immutable merge pass the original 8 functional tests and actual ESM build
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\compiled-controlled-4aed7de5-f1f7-467f-a8f8-5cb9c07b1108
|
||||
@@ -0,0 +1,23 @@
|
||||
node:internal/modules/run_main:107
|
||||
triggerUncaughtException(
|
||||
^
|
||||
|
||||
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
|
||||
+ actual - expected
|
||||
|
||||
+ 'preparing'
|
||||
- 'completed'
|
||||
|
||||
at verifyControlledApi (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:132:12)
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
at async verifyControlledRelease (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:171:14)
|
||||
at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-release.mjs:191:18 {
|
||||
generatedMessage: true,
|
||||
code: 'ERR_ASSERTION',
|
||||
actual: 'preparing',
|
||||
expected: 'completed',
|
||||
operator: 'strictEqual',
|
||||
diff: 'simple'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
@@ -0,0 +1,6 @@
|
||||
PASS compiled host seals actual Harness/source identities and prepares one owned worktree while retaining parent bytes and staging
|
||||
PASS compiled native execution retains failing tests, requires original check approvals, seals literal prompt/model/receipts/results and accounts each owned HTTP request once
|
||||
PASS compiled parent review and immutable merge pass the original 8 functional tests and actual ESM build
|
||||
PASS compiled Git delivery contains only reviewed modules, preserves staged/unstaged/untracked owner bytes and completes the parent with sealed original evidence
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\compiled-controlled-f3b0aeb5-b05d-46e1-8f03-8435b237f261
|
||||
{"success":true,"version":"1.14.0","directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\compiled-controlled-f3b0aeb5-b05d-46e1-8f03-8435b237f261","cases":4,"rootExited":true,"fixtureModelRequests":7,"realModelRequests":0}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,14 @@
|
||||
|
||||
> local-agent-workbench@1.14.0 build
|
||||
> tsc --noEmit && vite build && node scripts/build-server.mjs
|
||||
|
||||
vite v7.3.7 building client environment for production...
|
||||
transforming...
|
||||
✓ 1716 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
dist-client/index.html 0.50 kB │ gzip: 0.37 kB
|
||||
dist-client/assets/index-D4d9CZO8.css 129.14 kB │ gzip: 24.78 kB
|
||||
dist-client/assets/index-Bf9kaC4h.js 485.57 kB │ gzip: 143.15 kB
|
||||
✓ built in 1.46s
|
||||
Server bundle built.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,490 @@
|
||||
TAP version 13
|
||||
# Subtest: controlled installation pins the native kernel and bridge independently of the existing connection-probe identity
|
||||
ok 1 - controlled installation pins the native kernel and bridge independently of the existing connection-probe identity
|
||||
---
|
||||
duration_ms: 1151.9707
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract
|
||||
ok 2 - controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract
|
||||
---
|
||||
duration_ms: 3.3788
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations
|
||||
ok 3 - owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations
|
||||
---
|
||||
duration_ms: 9.0229
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch
|
||||
ok 4 - bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch
|
||||
---
|
||||
duration_ms: 721.6352
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect
|
||||
ok 5 - bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect
|
||||
---
|
||||
duration_ms: 724.1132
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity
|
||||
ok 6 - bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity
|
||||
---
|
||||
duration_ms: 639.9443
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: stopped and oversized bridge requests never reach a local model or tool callback
|
||||
ok 7 - stopped and oversized bridge requests never reach a local model or tool callback
|
||||
---
|
||||
duration_ms: 619.7513
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse
|
||||
ok 8 - controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse
|
||||
---
|
||||
duration_ms: 12684.1
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: native text and call IDs preserve original result pairing while unsupported content fails closed
|
||||
ok 9 - native text and call IDs preserve original result pairing while unsupported content fails closed
|
||||
---
|
||||
duration_ms: 0.7982
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: one engine child freezes real installation identity before creating tasks and rejects a changed source
|
||||
ok 10 - one engine child freezes real installation identity before creating tasks and rejects a changed source
|
||||
---
|
||||
duration_ms: 6166.9441
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs
|
||||
ok 11 - owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs
|
||||
---
|
||||
duration_ms: 20342.7705
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: forged native scope cannot change a parent file and a final completion claim cannot replace worker proof
|
||||
ok 12 - forged native scope cannot change a parent file and a final completion claim cannot replace worker proof
|
||||
---
|
||||
duration_ms: 10503.1743
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: duplicate native IDs are rejected without replaying a saved tool
|
||||
ok 13 - duplicate native IDs are rejected without replaying a saved tool
|
||||
---
|
||||
duration_ms: 9769.3062
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: native input exceeding the context budget is retained and sends no model request
|
||||
ok 14 - native input exceeding the context budget is retained and sends no model request
|
||||
---
|
||||
duration_ms: 8368.3851
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: stop retains a late reported model usage once and executes no tool from that output
|
||||
ok 15 - stop retains a late reported model usage once and executes no tool from that output
|
||||
---
|
||||
duration_ms: 8832.5885
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a source change after the original model intent stops before native tools execute
|
||||
ok 16 - a source change after the original model intent stops before native tools execute
|
||||
---
|
||||
duration_ms: 8770.6273
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an engine source change while approval is pending invalidates the old permission before any check starts
|
||||
ok 17 - an engine source change while approval is pending invalidates the old permission before any check starts
|
||||
---
|
||||
duration_ms: 12517.1317
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text
|
||||
ok 18 - missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text
|
||||
---
|
||||
duration_ms: 0.6144
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: closed root with an original live descendant remains unknown and retains its process tree
|
||||
ok 19 - closed root with an original live descendant remains unknown and retains its process tree
|
||||
---
|
||||
duration_ms: 0.265
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes
|
||||
ok 20 - host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes
|
||||
---
|
||||
duration_ms: 11895.6241
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: corrupted model reservation cannot reduce recovered budget or permit a new engine request
|
||||
ok 21 - corrupted model reservation cannot reduce recovered budget or permit a new engine request
|
||||
---
|
||||
duration_ms: 11084.0353
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
|
||||
ok 22 - two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default
|
||||
---
|
||||
duration_ms: 590.0825
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: incomplete, unsupported, relative and oversized sources cannot enable the experiment
|
||||
ok 23 - incomplete, unsupported, relative and oversized sources cannot enable the experiment
|
||||
---
|
||||
duration_ms: 566.0959
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
|
||||
ok 24 - invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created
|
||||
---
|
||||
duration_ms: 1797.8737
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source edits between detection and plan are rejected without creating a parent Task
|
||||
ok 25 - source edits between detection and plan are rejected without creating a parent Task
|
||||
---
|
||||
duration_ms: 1664.9114
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source edits after sealing cannot launch a child and do not reset its cumulative budget
|
||||
ok 26 - source edits after sealing cannot launch a child and do not reset its cumulative budget
|
||||
---
|
||||
duration_ms: 6790.4646
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
|
||||
ok 27 - literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required
|
||||
---
|
||||
duration_ms: 20563.1615
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source changes after a model response stop before any native tool is accepted, retaining the actual usage once
|
||||
ok 28 - source changes after a model response stop before any native tool is accepted, retaining the actual usage once
|
||||
---
|
||||
duration_ms: 8754.3529
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source changes while approval is pending invalidate the old permission before an engineering check starts
|
||||
ok 29 - source changes while approval is pending invalidate the old permission before an engineering check starts
|
||||
---
|
||||
duration_ms: 11209.6943
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
|
||||
ok 30 - altered text, interpolation, section order and policy flags cannot reuse a sealed experiment
|
||||
---
|
||||
duration_ms: 1936.8173
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy
|
||||
ok 31 - the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy
|
||||
---
|
||||
duration_ms: 2074.857
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a missing or duplicated experimental section in the actual input is rejected before any model dispatch
|
||||
ok 32 - a missing or duplicated experimental section in the actual input is rejected before any model dispatch
|
||||
---
|
||||
duration_ms: 17380.2444
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: experimental prompt overhead still participates in the original complete-input budget guard
|
||||
ok 33 - experimental prompt overhead still participates in the original complete-input budget guard
|
||||
---
|
||||
duration_ms: 7880.6256
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source detection HTTP remains local-authenticated and read-only with no configured model requests
|
||||
ok 34 - source detection HTTP remains local-authenticated and read-only with no configured model requests
|
||||
---
|
||||
duration_ms: 1674.4081
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a live SQLite host with the actual 1.9 artifact object upgrades, keeps its original blobs and verifies real browser PNG bytes
|
||||
ok 35 - a live SQLite host with the actual 1.9 artifact object upgrades, keeps its original blobs and verifies real browser PNG bytes
|
||||
---
|
||||
duration_ms: 3990.0537
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: failed upgrade restores the original artifact object, provider and request handler
|
||||
ok 36 - failed upgrade restores the original artifact object, provider and request handler
|
||||
---
|
||||
duration_ms: 650.2843
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
ok 37 - claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
---
|
||||
duration_ms: 786.1772
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
ok 38 - sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
---
|
||||
duration_ms: 885.3583
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
ok 39 - live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
---
|
||||
duration_ms: 719.9001
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
ok 40 - an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
---
|
||||
duration_ms: 715.3545
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
ok 41 - an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
---
|
||||
duration_ms: 608.5167
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
ok 42 - the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
---
|
||||
duration_ms: 718.2548
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
ok 43 - release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
---
|
||||
duration_ms: 778.1488
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: hot upgrade refreshes retained model and importer methods while preserving credential and routing objects
|
||||
ok 44 - hot upgrade refreshes retained model and importer methods while preserving credential and routing objects
|
||||
---
|
||||
duration_ms: 720.2096
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: hot upgrade refuses active probes and restores retained model methods if installation fails
|
||||
ok 45 - hot upgrade refuses active probes and restores retained model methods if installation fails
|
||||
---
|
||||
duration_ms: 607.1572
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider
|
||||
ok 46 - a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider
|
||||
---
|
||||
duration_ms: 2297.5297
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection
|
||||
ok 47 - the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection
|
||||
---
|
||||
duration_ms: 7872.0945
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: HTTP worker identities require a current sealed plan, reject overrides and close unused plans without touching source
|
||||
ok 48 - HTTP worker identities require a current sealed plan, reject overrides and close unused plans without touching source
|
||||
---
|
||||
duration_ms: 12890.5654
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: HTTP unknown recovery only accepts the original evidence SHA and preserves changed source for explicit retention
|
||||
ok 49 - HTTP unknown recovery only accepts the original evidence SHA and preserves changed source for explicit retention
|
||||
---
|
||||
duration_ms: 14937.169
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: verified isolated outputs form a new parent batch, rerun real checks and commit only reviewed source
|
||||
ok 50 - verified isolated outputs form a new parent batch, rerun real checks and commit only reviewed source
|
||||
---
|
||||
duration_ms: 39646.6209
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: overlapping worker paths are explicit conflicts even if each independent task checks successfully
|
||||
ok 51 - overlapping worker paths are explicit conflicts even if each independent task checks successfully
|
||||
---
|
||||
duration_ms: 25921.6378
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: source edits after isolated work preserve the owner file and invalidate collection without proposing a merge
|
||||
ok 52 - source edits after isolated work preserve the owner file and invalidate collection without proposing a merge
|
||||
---
|
||||
duration_ms: 24966.3418
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: changed child bytes after parent preview block the entire batch before any parent write
|
||||
ok 53 - changed child bytes after parent preview block the entire batch before any parent write
|
||||
---
|
||||
duration_ms: 32278.4325
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: corrupt original check logs cannot become collected outputs or a parent review
|
||||
ok 54 - corrupt original check logs cannot become collected outputs or a parent review
|
||||
---
|
||||
duration_ms: 23980.1217
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: stopping a parent accounts late responses and executes none of their proposed tools
|
||||
ok 55 - stopping a parent accounts late responses and executes none of their proposed tools
|
||||
---
|
||||
duration_ms: 11578.974
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: unreported interrupted requests reserve estimated usage and the total deadline cannot reset on resume
|
||||
ok 56 - unreported interrupted requests reserve estimated usage and the total deadline cannot reset on resume
|
||||
---
|
||||
duration_ms: 11701.1139
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a response exceeding the cumulative token allocation stops before registering or executing its tools
|
||||
ok 57 - a response exceeding the cumulative token allocation stops before registering or executing its tools
|
||||
---
|
||||
duration_ms: 11891.4924
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: cumulative tool allocation rejects the entire returned batch before any tool side effect
|
||||
ok 58 - cumulative tool allocation rejects the entire returned batch before any tool side effect
|
||||
---
|
||||
duration_ms: 11005.762
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: single response 16 tool ceiling rejects the entire returned batch before any tool side effect
|
||||
ok 59 - single response 16 tool ceiling rejects the entire returned batch before any tool side effect
|
||||
---
|
||||
duration_ms: 11839.3924
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: consumed request steps remain consumed across explicit worker resumes
|
||||
ok 60 - consumed request steps remain consumed across explicit worker resumes
|
||||
---
|
||||
duration_ms: 13171.7007
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a saved completed response with missing usage is conservatively accounted exactly once during recovery
|
||||
ok 61 - a saved completed response with missing usage is conservatively accounted exactly once during recovery
|
||||
---
|
||||
duration_ms: 9790.602
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an unexecuted second workspace plan resumes its original identity without recreating the first checkout
|
||||
ok 62 - an unexecuted second workspace plan resumes its original identity without recreating the first checkout
|
||||
---
|
||||
duration_ms: 11411.6379
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a verified interrupted parent proposal resumes sealing without duplicating or replacing its original change
|
||||
ok 63 - a verified interrupted parent proposal resumes sealing without duplicating or replacing its original change
|
||||
---
|
||||
duration_ms: 35390.0937
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: recovery attaches a sealed parent batch saved before its group reference without creating another batch
|
||||
ok 64 - recovery attaches a sealed parent batch saved before its group reference without creating another batch
|
||||
---
|
||||
duration_ms: 31619.1511
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: explicitly retaining an unexecuted parent merge cancels its batch and frees the next parent goal
|
||||
ok 65 - explicitly retaining an unexecuted parent merge cancels its batch and frees the next parent goal
|
||||
---
|
||||
duration_ms: 34596.5256
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: unknown collaboration blocks ordinary proposals but permits only original batch recovery and rollback
|
||||
ok 66 - unknown collaboration blocks ordinary proposals but permits only original batch recovery and rollback
|
||||
---
|
||||
duration_ms: 31390.4102
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: after a restart the batch application lazily reinstates the worker result guard before any parent write
|
||||
ok 67 - after a restart the batch application lazily reinstates the worker result guard before any parent write
|
||||
---
|
||||
duration_ms: 27310.6374
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: unknown original tool inputs must match before acknowledgement, and reviewed checkpoint IDs preserve the unknown fact
|
||||
ok 68 - unknown original tool inputs must match before acknowledgement, and reviewed checkpoint IDs preserve the unknown fact
|
||||
---
|
||||
duration_ms: 11003.5207
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a parent stop observes and waits for a manually approved child check and its real descendant process
|
||||
ok 69 - a parent stop observes and waits for a manually approved child check and its real descendant process
|
||||
---
|
||||
duration_ms: 10319.0931
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a real host crash preserves unknown checks, refuses a still living owned PID and never replays a model or tool
|
||||
ok 70 - a real host crash preserves unknown checks, refuses a still living owned PID and never replays a model or tool
|
||||
---
|
||||
duration_ms: 18487.4985
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a persisted child initialization resumes the original control run after a failure before its worker record
|
||||
ok 71 - a persisted child initialization resumes the original control run after a failure before its worker record
|
||||
---
|
||||
duration_ms: 9501.9025
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: failed request intent persistence never dispatches a worker request or changes source
|
||||
ok 72 - failed request intent persistence never dispatches a worker request or changes source
|
||||
---
|
||||
duration_ms: 10081.7626
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: failed usage persistence rolls back the uncommitted usage and conservatively reserves one unknown request without tools
|
||||
ok 73 - failed usage persistence rolls back the uncommitted usage and conservatively reserves one unknown request without tools
|
||||
---
|
||||
duration_ms: 10433.9083
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a child file change after observation prevents acknowledgement even when the tool inputs did not change
|
||||
ok 74 - a child file change after observation prevents acknowledgement even when the tool inputs did not change
|
||||
---
|
||||
duration_ms: 9608.3476
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow
|
||||
ok 75 - worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow
|
||||
---
|
||||
duration_ms: 484.9588
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes
|
||||
ok 76 - two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes
|
||||
---
|
||||
duration_ms: 9834.5953
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims
|
||||
ok 77 - real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims
|
||||
---
|
||||
duration_ms: 25746.6165
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: forged worker tools cannot execute terminal or Git even when absent from the advertised tool list
|
||||
ok 78 - forged worker tools cannot execute terminal or Git even when absent from the advertised tool list
|
||||
---
|
||||
duration_ms: 10457.6447
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: a completion-only model pauses each worker without fabricated changes or checks
|
||||
ok 79 - a completion-only model pauses each worker without fabricated changes or checks
|
||||
---
|
||||
duration_ms: 12938.9405
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: restart retains frozen scope and marks interrupted parent and workers unknown without sending requests
|
||||
ok 80 - restart retains frozen scope and marks interrupted parent and workers unknown without sending requests
|
||||
---
|
||||
duration_ms: 10242.9614
|
||||
type: 'test'
|
||||
...
|
||||
1..80
|
||||
# tests 80
|
||||
# suites 0
|
||||
# pass 80
|
||||
# fail 0
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 472534.7525
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"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."
|
||||
}
|
||||
@@ -0,0 +1,320 @@
|
||||
TAP version 13
|
||||
# Subtest: claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
not ok 1 - claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
---
|
||||
duration_ms: 838.6823
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:34:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
Expected values to be strictly deep-equal:
|
||||
+ actual - expected
|
||||
|
||||
{
|
||||
id: '9b86da44-aa96-4623-b56a-6856399b8e8b',
|
||||
pid: 40452,
|
||||
+ startedAt: '2026-10-30T22:19:33.412Z'
|
||||
- startedAt: '2026-01-01T00:00:00.000Z'
|
||||
}
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected:
|
||||
pid: 40452
|
||||
id: '9b86da44-aa96-4623-b56a-6856399b8e8b'
|
||||
startedAt: '2026-01-01T00:00:00.000Z'
|
||||
actual:
|
||||
pid: 40452
|
||||
id: '9b86da44-aa96-4623-b56a-6856399b8e8b'
|
||||
startedAt: '2026-10-30T22:19:33.412Z'
|
||||
operator: 'deepStrictEqual'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:40:10)
|
||||
Test.runInAsyncScope (node:async_hooks:227:14)
|
||||
Test.run (node:internal/test_runner/test:1402:25)
|
||||
Test.start (node:internal/test_runner/test:1262:17)
|
||||
startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17)
|
||||
...
|
||||
# Subtest: sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
not ok 2 - sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
---
|
||||
duration_ms: 629.0196
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:43:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
Expected values to be strictly equal:
|
||||
|
||||
true !== false
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected: false
|
||||
actual: true
|
||||
operator: 'strictEqual'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:45:10)
|
||||
Test.runInAsyncScope (node:async_hooks:227:14)
|
||||
Test.run (node:internal/test_runner/test:1402:25)
|
||||
Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||||
Test.postRun (node:internal/test_runner/test:1542:19)
|
||||
Test.run (node:internal/test_runner/test:1467:12)
|
||||
async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3)
|
||||
...
|
||||
# Subtest: live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
not ok 3 - live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
---
|
||||
duration_ms: 703.0919
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:51:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: 'Missing expected exception.'
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected:
|
||||
operator: 'throws'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:57:12)
|
||||
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
async Test.run (node:internal/test_runner/test:1409:7)
|
||||
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
||||
...
|
||||
# Subtest: an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
not ok 4 - an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
---
|
||||
duration_ms: 803.5062
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:63:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
Expected values to be strictly equal:
|
||||
+ actual - expected
|
||||
|
||||
+ {
|
||||
+ active: Map(0) {}
|
||||
+ }
|
||||
- null
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected: ~
|
||||
actual:
|
||||
active:
|
||||
operator: 'strictEqual'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:71:10)
|
||||
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
async Test.run (node:internal/test_runner/test:1409:7)
|
||||
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
||||
...
|
||||
# Subtest: an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
not ok 5 - an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
---
|
||||
duration_ms: 698.5559
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:79:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
Expected values to be strictly deep-equal:
|
||||
+ actual - expected
|
||||
... Skipped lines
|
||||
|
||||
{
|
||||
events: [
|
||||
[Object: null prototype] {
|
||||
created_at: '2026-10-30T22:19:36.169Z',
|
||||
id: '3b63c4ab-ebbb-49d8-a5d7-52dfac909de1',
|
||||
...
|
||||
key: 'runtimeOwner',
|
||||
+ value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.224Z"}'
|
||||
- value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.194Z"}'
|
||||
}
|
||||
],
|
||||
outbox: [
|
||||
[Object: null prototype] {
|
||||
published_at: null,
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected:
|
||||
events:
|
||||
0:
|
||||
seq: 1
|
||||
id: '3b63c4ab-ebbb-49d8-a5d7-52dfac909de1'
|
||||
session_id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
||||
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
||||
task_id: ~
|
||||
run_id: ~
|
||||
type: 'session.updated'
|
||||
revision: 1
|
||||
created_at: '2026-10-30T22:19:36.169Z'
|
||||
payload: '{"status":"idle"}'
|
||||
metadata:
|
||||
0:
|
||||
key: 'config'
|
||||
value: '{"mode":"demo","baseUrl":"http://127.0.0.1:11434/v1","model":"","contextLimit":16000,"maxSteps":12,"maxOutputTokens":2048,"maxRunDurationMs":600000,"maxRunTokens":200000,"maxTaskTokens":1000000,"configRevision":1}'
|
||||
1:
|
||||
key: 'migration'
|
||||
value: 'null'
|
||||
2:
|
||||
key: 'initialized'
|
||||
value: 'true'
|
||||
3:
|
||||
key: 'runtimeOwner'
|
||||
value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.194Z"}'
|
||||
outbox:
|
||||
0:
|
||||
seq: 1
|
||||
published_at: ~
|
||||
projects:
|
||||
0:
|
||||
id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
||||
position: 0
|
||||
payload: '{"id":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","root":"D:\\\\Ai-project\\\\REA逆向\\\\Agent-Workbench\\\\.qa\\\\test-R5Bf5u\\\\project","name":"project","addedAt":"2026-10-30T22:19:36.145Z"}'
|
||||
records:
|
||||
sessions:
|
||||
0:
|
||||
id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
||||
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
||||
revision: 1
|
||||
payload: '{"id":"4e58ca4d-32d7-435c-a967-bdd03273aef6","projectId":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","title":"新任务","status":"idle","createdAt":"2026-10-30T22:19:36.169Z","updatedAt":"2026-10-30T22:19:36.169Z","messages":[],"providerMessages":[],"events":[],"changes":[],"approvals":[],"failure":null,"lastFailure":null,"compactions":0,"estimatedTokens":0,"usage":null,"archived":false,"revision":1,"eventSeq":1}'
|
||||
sqlite_sequence:
|
||||
0:
|
||||
name: 'events'
|
||||
seq: 1
|
||||
actual:
|
||||
events:
|
||||
0:
|
||||
seq: 1
|
||||
id: '3b63c4ab-ebbb-49d8-a5d7-52dfac909de1'
|
||||
session_id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
||||
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
||||
task_id: ~
|
||||
run_id: ~
|
||||
type: 'session.updated'
|
||||
revision: 1
|
||||
created_at: '2026-10-30T22:19:36.169Z'
|
||||
payload: '{"status":"idle"}'
|
||||
metadata:
|
||||
0:
|
||||
key: 'config'
|
||||
value: '{"mode":"demo","baseUrl":"http://127.0.0.1:11434/v1","model":"","contextLimit":16000,"maxSteps":12,"maxOutputTokens":2048,"maxRunDurationMs":600000,"maxRunTokens":200000,"maxTaskTokens":1000000,"configRevision":1}'
|
||||
1:
|
||||
key: 'migration'
|
||||
value: 'null'
|
||||
2:
|
||||
key: 'initialized'
|
||||
value: 'true'
|
||||
3:
|
||||
key: 'runtimeOwner'
|
||||
value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.224Z"}'
|
||||
outbox:
|
||||
0:
|
||||
seq: 1
|
||||
published_at: ~
|
||||
projects:
|
||||
0:
|
||||
id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
||||
position: 0
|
||||
payload: '{"id":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","root":"D:\\\\Ai-project\\\\REA逆向\\\\Agent-Workbench\\\\.qa\\\\test-R5Bf5u\\\\project","name":"project","addedAt":"2026-10-30T22:19:36.145Z"}'
|
||||
records:
|
||||
sessions:
|
||||
0:
|
||||
id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
||||
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
||||
revision: 1
|
||||
payload: '{"id":"4e58ca4d-32d7-435c-a967-bdd03273aef6","projectId":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","title":"新任务","status":"idle","createdAt":"2026-10-30T22:19:36.169Z","updatedAt":"2026-10-30T22:19:36.169Z","messages":[],"providerMessages":[],"events":[],"changes":[],"approvals":[],"failure":null,"lastFailure":null,"compactions":0,"estimatedTokens":0,"usage":null,"archived":false,"revision":1,"eventSeq":1}'
|
||||
sqlite_sequence:
|
||||
0:
|
||||
name: 'events'
|
||||
seq: 1
|
||||
operator: 'deepStrictEqual'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:88:69)
|
||||
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
async Test.run (node:internal/test_runner/test:1409:7)
|
||||
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
||||
...
|
||||
# Subtest: the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
not ok 6 - the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
---
|
||||
duration_ms: 552.6337
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:91:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
Expected values to be strictly equal:
|
||||
|
||||
false !== true
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected: true
|
||||
actual: false
|
||||
operator: 'strictEqual'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:94:48)
|
||||
Test.runInAsyncScope (node:async_hooks:227:14)
|
||||
Test.run (node:internal/test_runner/test:1402:25)
|
||||
Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||||
Test.postRun (node:internal/test_runner/test:1542:19)
|
||||
Test.run (node:internal/test_runner/test:1467:12)
|
||||
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
||||
...
|
||||
# Subtest: release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
not ok 7 - release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
---
|
||||
duration_ms: 756.1136
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:99:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
node:fs:483
|
||||
return binding.readFileUtf8(path, stringToFlags(options.flag));
|
||||
^
|
||||
|
||||
Error: ENOENT: no such file or directory, open 'D:\Ai-project\REA逆向\Agent-Workbench\.qa\test-y5A0Ly\package.json'
|
||||
at Object.readFileSync (node:fs:483:20)
|
||||
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/package.mjs:9:28
|
||||
at ModuleJob.run (node:internal/modules/esm/module_job:561:25)
|
||||
at async node:internal/modules/esm/loader:647:26
|
||||
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
|
||||
errno: -4058,
|
||||
code: 'ENOENT',
|
||||
syscall: 'open',
|
||||
path: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-y5A0Ly\\package.json'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
|
||||
|
||||
1 !== 0
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected: 0
|
||||
actual: 1
|
||||
operator: 'strictEqual'
|
||||
stack: |-
|
||||
Object.readFileSync (node:fs:483:20)
|
||||
file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/package.mjs:9:28
|
||||
ModuleJob.run (node:internal/modules/esm/module_job:561:25)
|
||||
async node:internal/modules/esm/loader:647:26
|
||||
async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:103:12)
|
||||
Test.runInAsyncScope (node:async_hooks:227:14)
|
||||
Test.run (node:internal/test_runner/test:1402:25)
|
||||
Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||||
Test.postRun (node:internal/test_runner/test:1542:19)
|
||||
Test.run (node:internal/test_runner/test:1467:12)
|
||||
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
||||
...
|
||||
1..7
|
||||
# tests 7
|
||||
# suites 0
|
||||
# pass 0
|
||||
# fail 7
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 5109.7403
|
||||
@@ -0,0 +1,103 @@
|
||||
TAP version 13
|
||||
# Subtest: claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
ok 1 - claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
---
|
||||
duration_ms: 765.6274
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
ok 2 - sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
---
|
||||
duration_ms: 670.9611
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
ok 3 - live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
---
|
||||
duration_ms: 721.7782
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
not ok 4 - an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
---
|
||||
duration_ms: 657.6824
|
||||
type: 'test'
|
||||
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:63:1'
|
||||
failureType: 'testCodeFailure'
|
||||
error: |-
|
||||
Expected values to be strictly deep-equal:
|
||||
+ actual - expected
|
||||
|
||||
{
|
||||
calls: [],
|
||||
id: '1c46624d-b1fe-496d-b456-e8cc4bc6a5ee',
|
||||
native: null,
|
||||
projectId: 'f092c945-9ed4-43cd-a4d5-63dbe43d63c3',
|
||||
requests: [],
|
||||
requiresVerification: true,
|
||||
- runId: undefined,
|
||||
schemaVersion: 1,
|
||||
sessionId: '9e3fa09b-2233-4bee-8d0e-575c8a33e589',
|
||||
startedAt: '2026-01-01T00:00:00.000Z',
|
||||
status: 'unknown',
|
||||
- taskId: undefined
|
||||
}
|
||||
|
||||
code: 'ERR_ASSERTION'
|
||||
name: 'AssertionError'
|
||||
expected:
|
||||
id: '1c46624d-b1fe-496d-b456-e8cc4bc6a5ee'
|
||||
schemaVersion: 1
|
||||
sessionId: '9e3fa09b-2233-4bee-8d0e-575c8a33e589'
|
||||
projectId: 'f092c945-9ed4-43cd-a4d5-63dbe43d63c3'
|
||||
status: 'unknown'
|
||||
requiresVerification: true
|
||||
native: ~
|
||||
requests:
|
||||
calls:
|
||||
startedAt: '2026-01-01T00:00:00.000Z'
|
||||
actual:
|
||||
id: '1c46624d-b1fe-496d-b456-e8cc4bc6a5ee'
|
||||
schemaVersion: 1
|
||||
sessionId: '9e3fa09b-2233-4bee-8d0e-575c8a33e589'
|
||||
projectId: 'f092c945-9ed4-43cd-a4d5-63dbe43d63c3'
|
||||
status: 'unknown'
|
||||
requiresVerification: true
|
||||
native: ~
|
||||
requests:
|
||||
calls:
|
||||
startedAt: '2026-01-01T00:00:00.000Z'
|
||||
operator: 'deepStrictEqual'
|
||||
stack: |-
|
||||
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:73:10)
|
||||
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
async Test.run (node:internal/test_runner/test:1409:7)
|
||||
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
||||
...
|
||||
# Subtest: an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
ok 5 - an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
---
|
||||
duration_ms: 597.1449
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
ok 6 - the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
---
|
||||
duration_ms: 671.3551
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
ok 7 - release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
---
|
||||
duration_ms: 850.5229
|
||||
type: 'test'
|
||||
...
|
||||
1..7
|
||||
# tests 7
|
||||
# suites 0
|
||||
# pass 6
|
||||
# fail 1
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 5054.4683
|
||||
@@ -0,0 +1,52 @@
|
||||
TAP version 13
|
||||
# Subtest: claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
ok 1 - claiming the same runtime owner twice preserves its original metadata and every database row
|
||||
---
|
||||
duration_ms: 667.3825
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
ok 2 - sessions without controlled-engine history retain their prior export shape and never expose another session record
|
||||
---
|
||||
duration_ms: 724.7
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
ok 3 - live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
||||
---
|
||||
duration_ms: 674.961
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
ok 4 - an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
||||
---
|
||||
duration_ms: 759.3005
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
ok 5 - an installation failure restores old managers, original record maps, handlers and all existing database rows
|
||||
---
|
||||
duration_ms: 575.1694
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
ok 6 - the owned controlled driver remains an active session and project even after outer task activity has ended
|
||||
---
|
||||
duration_ms: 513.5386
|
||||
type: 'test'
|
||||
...
|
||||
# Subtest: release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
ok 7 - release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
||||
---
|
||||
duration_ms: 871.6494
|
||||
type: 'test'
|
||||
...
|
||||
1..7
|
||||
# tests 7
|
||||
# suites 0
|
||||
# pass 7
|
||||
# fail 0
|
||||
# cancelled 0
|
||||
# skipped 0
|
||||
# todo 0
|
||||
# duration_ms 4904.6183
|
||||
Reference in New Issue
Block a user