docs(release): seal verified 1.25.2 retained upgrade and original failures

This commit is contained in:
Agent Workbench Dev
2026-11-04 22:56:21 +08:00
parent d510cb7049
commit 0667458321
1354 changed files with 1826547 additions and 2 deletions
+4
View File
@@ -262,3 +262,7 @@ docs/task-agreement-1.25-release-identity.json -text
docs/task-agreement-1.25-offline.txt binary
docs/task-agreement-1.25-git-index.txt binary
docs/task-agreement-1.25-index-first.txt binary
docs/reliability-1.25.2-evidence/** binary
docs/reliability-1.25.2-release-identity.json -text
docs/reliability-1.25.2-offline.txt binary
docs/reliability-1.25.2-git-index.txt binary
+1
View File
@@ -51,3 +51,4 @@
!/docs/turn-progress-b-evidence/**/*.log
!/docs/task-agreement-1.25-evidence/**/*.log
!/docs/task-agreement-1.25-supplement/**/*.log
!/docs/reliability-1.25.2-evidence/**/*.log
+2
View File
@@ -1,5 +1,7 @@
# Agent Workbench项目执行规范
1.25.2已完成独立本地发行、真实隔离安装和保留原PID36552/instance/Provider的正式升级,产品来源d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d、候选20261104134035379;正式耗时289669ms,旧1.25.1的156369ms和1.25.0的774098ms保持。67项目83会话6477记录13663事件/outbox及3773原工件、全部原行/导出/公开配置在网页两视口及实际原生回看后再次exact,窗口0/9229关闭、hasKey=true。617冻结输入、源码ZIP622输入独立重建22/22、三归档、便携八套50组及文件9/结果16/读取10、实际安装12组和安装副本十套75组通过。最终完整测试898/899:重启用例在重启前首次审批8秒等待超时;相同源码/原断言/原期限精确补验1/1通过,不宣称整轮全绿。旧TLS/浏览器失败、两次并发背景Harness启动超时与迟到ready均保留;唯一超时根因/高负载稳定性仍未知。1339份126224544字节证据离线通过,见docs/QA-RELIABILITY-1.25.2.md、docs/RETROSPECTIVE-RELIABILITY-1.25.2.md及发行身份。下一按X计划只新冻一次诊断/身份预检/Node,不续跑旧样本;Node闭环后才React/Python及独立原版Purge。真实自主交付、网络间歇根因、真实异常剔除收益和Purge仍未验证。不委派、不推送、不读取/复制/解密/重存Key,不重启正式Provider。以下“验收中/正式1.25.1”等按历史时点理解。
当前1.25.2可靠性修复已开发并分阶段本地提交,正在独立发行验收;正式仍以实际1.25.1状态为准,不把源码修复当正式已升级。用户已在独立复核后全盘授权继续修复/开发/验证/本地提交及修复后新冻有界样本X,计划docs/RELIABILITY-1.25.2.md和docs/LIVE-DELIVERY-X-PLAN.md。预留v3原账本顺序/输出上界、安装扫描后文件检查、升级兼容、明确不检查约定、混合进展停止与纯读取批次吞吐已修;原W的“纯属模型、产品无缺陷”归因被证据纠正:末轮有468新字符且shadow为evidence_growth,原停止和0交付保持。旧v1/v2/原失败不改写,网络间歇根因/真实自主交付/Purge仍各自待验。不委派、不推送、不提取/复制/解密/重存Key,不重启正式Provider;X只新建样本,不续跑W/V/T/R/P/O。以下均按历史时点理解。
1.25.1已完整本地交付:预留异常剔除observed-route-max-v2、安装校验单次realpath提速、purge过时断言修复。来源0a82636d/候选Agent-Workbench-1.25.1-win-x64-20261104103902806,installer SHA e1689a459f950d3a326b0915ced481f769de88f1531082f13e26902ae790f3c6。预算相关103/103、安装桌面31/31、全量886/889(3项为Python/Playwright环境依赖,改动前HEAD同样失败)通过,新增release-efficiency守卫把APP_VERSION钉到package.json。首次打包升级被HOST_VERSION_MISMATCH安全回退(diagnostics.mjs的APP_VERSION漏改),数据零损失、首失败保留;修常量重打包后唯一正式升级成功,沿用原PID36552/instance/Provider,65项目81会话6377记录13484事件及outbox、retention四项exact,指针26→27/previous1.25.0。实测更新156369ms对比1.25.0的774098ms约5×提速(全清单核验每轮214–288s→1.5–3s)。真实样本W另冻(scripts/live-w、证据.qa/live-delivery-w共119份):网络诊断与单次身份预检通过,有界Node在6次只读请求后no_progress暂停、0提案未交付,未复现R的token_limit卡点、未触发v2排除边界(v2收益仍由model-reservation单元测试用R真实回执证明);按计划不跑Purge AB/BA。状态精确恢复,Key未读取/重存,9229关闭。验收docs/QA-OUTLIER-INSTALL-1.25.1.md与docs/QA-LIVE-DELIVERY-W.md,计划docs/LIVE-DELIVERY-W-PLAN.md。继续不委派/推送、不读取/复制/解密/重存真实Key、不重启正式、不续跑旧V/T/R/P/O。以下1.25.0及更早段落按历史时点理解。
+2 -1
View File
@@ -1,12 +1,13 @@
# Agent Workbench 更新记录
## 1.25.2 · 预留证据、安装边界与读取进展(发行验收中)
## 1.25.2 · 预留证据、安装边界与读取进展(已本地交付)
- 用量预留v3封存原消费范围,按所属账本顺序复核,拒绝重排历史来排除最新高值;输入异常不再丢掉已报告输出上界。旧v1/v2与原失败保持可核验。
- 安装扫描后再次核对每个文件的实际路径及硬链接,保持快速realpath方式;升级兼容门包含当前版本,避免新补丁无法继续升级。
- 同一轮取得新内容后,不会因尾部三个重复读取就被当成整轮空转;相同检查、无变化提案与相同状态保护保留。纯读取批次共享小文件剩余预算,提高测试与日志分页吞吐。
- 已封存浏览器结果的纯读取使用与读取行为相符的增长预留,修复小页面被压为每次仅10字符的问题;完整实际请求仍受原上下文预算检查。
- 明确“不运行工程检查”会作为禁止约定保留。真实模型交付、网络间歇异常与Purge收益按新冻结样本分别验收,未完成不改成通过。
- 独立源码ZIP622输入重建22/22、便携/真实隔离安装及安装副本75组界面通过;正式保留PID36552/Provider及全部原数据升级成功,实测289669ms。完整回归898/899加原断言单项1/1,原超时及高负载稳定性限制如实保留,详见[验收](docs/QA-RELIABILITY-1.25.2.md)。
## 1.25.1 · 预留异常剔除与安装校验提速(已本地交付)
+39
View File
@@ -0,0 +1,39 @@
# 1.25.2 可靠性修复与独立发行验收
1.25.2已完成本地发行、真实隔离安装及保留正式PID36552/instance/Provider的升级。产品来源为`d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d`,候选`Agent-Workbench-1.25.2-win-x64-20261104134035379`;验收文档补交不是新的产品来源。真实自主交付仍由另冻X判定,本页发行验收真实模型请求0。
## 已修复及证据边界
- 预留v3把回执历史与原Task账本顺序绑定,重排/重复/跨Task拒绝;输入异常排除不丢弃已报告输出最大值。v1/v2历史核验保留,原R的29623和v2重算15285不改写。专项13/13及关联24/24通过,不能据此宣称真实异常边界收益。
- 安装全扫描后再次逐普通文件检查路径、类型和硬链接,拒绝两阶段间新加入的外部别名。安装12/12;10971文件ABBA原校验8450/8150ms、新11083/9961ms,身份一致。新增约2–3秒安全复核成本,未恢复逐文件重复祖先遍历。
- 升级兼容补齐1.25.1及当前版本守卫,未知版本仍拒绝;首11/13失败与原3/3复验保留。明确“不运行工程检查”按禁止约定处理,原误判及修复后的联合43/43保留。
- 同轮有实际新字符时,尾部重复读取不再触发整轮无进展;全重复、无变化检查/提案及相同状态仍分别有界。shadow继续仅观察。纯文件/原工件批次按预算优先完成小来源,混合副作用动作不重排,16K/2048/1600及完整下一请求守卫不放宽;相关最终38/38。
- 浏览器原结果分页补漏:原1.25.1也复现10/1419字符,不能归因浏览器依赖。v3纯read_browser_result增长预留修正后读全1419字符,最后实际输入12105≤12352,原浏览器4/4、读取9/9通过。两次假设构建缺配套输入的失败与旧分页原件分别保留。
W原六请求71044 tokens、0提案/0交付保持;末轮实际新增468字符,shadow为evidence_growth,仍有1171测试字符未读。因此“纯属模型、产品无缺陷”的旧归因不成立;修复是否足以让真实模型交付需X证据。
## 完整验证与首失败
最终完整源码测试898/899,1失败、0取消/跳过:API重启恢复用例在重启前等待首次awaiting_approval超过原8秒期限(api.test.mjs:101),尚未执行到重启。相同d510源码、原断言及原期限的独立精确补验1/1通过;采用“整轮898/899+同源单项1/1”闭环,不宣称整轮全绿。原严格899/899控制器拒绝记录、失败日志和完整复核full-suite-review.json全部保留,未改产品或测试期限;并发打包背景存在,但唯一超时根因及高负载稳定性仍未知。已补独立Python3.10.11+pytest8.4.2及Playwright Chromium1248,环境依赖不再豁免。
首完整898/899的浏览器分页失败、第二完整898/899的真实TLS短期限调度竞争均保留。TLS测试已改为等待真实ClientHello后才推进mock时钟,原80ms边界、取消和套接字关闭断言保持,最终整轮该项通过。首次最终构建误用npm子进程的全局Node16失败保留,明确Node24 PATH后完整TypeScript/Vite/mobile/server/desktop构建通过。最终候选相对前一候选仅该TLS测试冻结输入变化,22份产品编译字节全部相同。
源码实际预算诊断10组、更新状态7组、基础文件9组,要求/观察/草案/闭环八套50组通过。基础文件首次7/9的刷新iframe脱离被保留;只为只读隔离检查有界重新获取,未重放写入或降低桥接隔离断言,完整复验9/9。
不可变源码ZIP离线安装和实际构建622份输入(617已提交输入+5份既有示例生成文件),22/22编译逐字节相同;三归档CRC、清单、原目录通过。便携八套50组、文件/HTML9、结果16、预算诊断10组通过。原生390草案和网页1440诊断原图实际回看。
前一候选的两次便携受控Harness夹具15秒内未产生就绪信号,初始化/模型/工具均未发出,所属进程树已退出;第二次实际就绪在spawn后约16.36秒。原失败报告、日志和迟到ready保留。PATH与完整目录布局探针约1.1秒,真实编译宿主两种输出方式的四次native启动约0.6秒,完整测试结束后同旧候选的便携验收也通过原15秒门槛;本最终候选全部主要验收串行执行并通过。并发背景关联不等于唯一根因或高负载稳定性证明。实际隔离Windows安装12组和安装副本十套75组全部通过,包括窗口/请求/审批拒绝、清单故障和指针发布后回退、原PID/instance/DPAPI密文和全部数据保留、原生入口、重启凭据恢复、卸载留存。隔离夹具使用自有Key和localhost响应,真实模型0。
## 正式唯一升级及原状态
实际安装器升级耗时289669ms;旧1.25.1为156369ms、1.25.0为774098ms,保留各自收据,不把本地扫描ABBA替代正式耗时。installer SHA256为`259174ae5bdde32c765e8110381541f687f2ad75bd86f8df9be6d59cf5a49929`。
升级前67项目/83会话/6477记录/13663事件及outbox,全部原表schema/每行、全部会话导出、3773原工件文件、公开模型中心与配置在升级后和网页/实际原生回看关窗后再次exact。原PID36552/instance/Provider沿用,hasKey=true,窗口0、9229关闭;Key未提取/复制/解密/重存。
网页1440/390与真实安装入口的原生窗口只读回看,旧Task仍无伪造要求验收或shadow记录。最终独立全对账通过后才封存。发行身份见[identity](reliability-1.25.2-release-identity.json),原件清单见[manifest](reliability-1.25.2-evidence/manifest.json),离线及Git索引核对由[verify](verify-reliability-1.25.2.mjs)执行。
## 阶段回顾与尚未验证
本轮修复均来自可重现反例,预算、权限、真实失败和旧算法证据保持。发行与夹具通过只能证明这些路径,不证明模型权重身份、真实自主工程交付、网络间歇唯一根因、真实异常排除收益或Purge收益。下一按[LIVE-DELIVERY-X-PLAN](LIVE-DELIVERY-X-PLAN.md)执行一次新诊断/预检/Node;原W/V/T/R/P/O不续跑。Node真闭环后才React/Python及另冻原版Purge AB/BA;不循环更换提示、线路或预算筛选成功。
全部本地提交,不推送、不委派。Tianshu C–F及其它引擎/手机/语音按原独立前置,不并入本版完成声明。
+2
View File
@@ -1,5 +1,7 @@
# 1.25.2:预留、安装与读取可靠性
状态:已完成独立发行和正式保留状态升级,来源d510/候选20261104134035379,正式原PID36552/instance/Provider保持。完整898/899加原断言同源单项1/1、源码ZIP622输入/22编译、便携与安装12组及75界面组、网页/原生后全部原数据exact,1339份原件离线通过;详见[验收](QA-RELIABILITY-1.25.2.md)、[发行身份](reliability-1.25.2-release-identity.json)及[阶段回顾](RETROSPECTIVE-RELIABILITY-1.25.2.md)。安装289669ms,旧失败和并发启动/首次审批超时根因未知保持。X尚待另冻执行;真实交付和Purge不由发行验证替代。以下为阶段历史。
基线532b9d60;用户在独立复核后授权修复、开发、验证及本地提交。目标是修复实际反例并推进真实工程闭环,不把新版号、单元测试或一次成功连接当作全部问题解决。
## 阶段与验收
+25
View File
@@ -0,0 +1,25 @@
# 1.25.2 阶段回顾
可靠性修复已经由源码与不可变发行落实到正式1.25.2;产品来源d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d,最终候选20261104134035379。正式仍为原PID36552/instance/Provider,Key未读取、复制、解密或重存。67项目83会话6477记录13663事件/outbox及3773原工件,在升级和网页/原生回看后逐项exact。唯一正式安装退出0,289669ms;比上一补丁156369ms慢,不能把本次写成继续提速。
## 修复是否对应原问题
预留v3用原账本顺序和消费前缀核对历史,并保留已报告输出上界;安装inventory拒绝full扫描后新增硬链接;明确禁止工程检查不再误判required。同轮有真实新字符时不被末尾重复读取误停,纯读共享预算、小来源优先,副作用保持原序。浏览器原结果分页的原1.25.1反例也得到独立复现和修复。原R/W、旧算法和首失败保持,没有修改原用量或历史请求。
这些修复有确定性反例及真实localhost协议证据。它们没有证明代理usage差异的唯一原因,也没有证明模型自主交付已成功。W末轮有468新字符、shadow为evidence_growth且仍有1171字符未读,旧“纯属模型、产品无缺陷”的归因被撤回;W的六请求71044tokens与0提案/交付不改。
## 验证与方法限制
617冻结输入,源码ZIP622输入离线重建22/22字节一致,三归档核对通过。源码与便携要求/观察/草案/闭环各八套50组,便携文件9/结果16/读取10,真实隔离安装12组及安装副本十套75组通过。实际原图和正式网页/原生已回看,不能用总测试数代替这些用户路径。
最终完整测试为898/899,0取消/跳过。唯一失败位于api.test.mjs:101,在重启前首次awaiting_approval的原8秒等待;相同d510源码、原断言和原期限独立补验1/1通过。采用整轮原结果加精确同源补验,不宣称899/899。严格控制器的拒绝、原完整日志和补验均进入封存。旧TLS短期限断言用真实ClientHello配mock时钟修正后在最终整轮通过,未改产品期限。
前一候选两次Harness启动15秒超时与完整回归并行,第二次在16.36秒迟到ready;初始化/模型/工具0,所属树退出。独立PATH/原布局探针约1.1秒,编译宿主两输出方式四次约0.6秒,同旧候选在完整测试结束后原门槛通过。最终候选主要验收串行全部通过;这些结果不能证明并发负载下稳定或唯一超时根因,新增待验项保留。
封存器首次误以为失败日志也是单行JSON,停止且未生成清单;原partial移入.qa保留。补识别完整多行结果后重新建立新封存,没有重放安装、修改产品或抹掉首失败。1339份126224544字节原件离线通过,限定目录的Git原字节核对另留收据。
## 下一步与前置
先本地提交发行证据,再按既有X冻结计划只跑一次新诊断、单次身份预检和有界Node。任务原文与W相同,8请求/90000tokens/600000ms及16K/2048/1600保持;监督只审原检查、模型变更及模型Git计划。失败即封存,不能增加实现提示或扩大预算筛成功。
Node真实闭环后才React/Python,之后才独立原版Purge AB/BA。真实异常剔除边界收益、网络间歇根因和Purge收益保持未知;Tianshu C–F继续独立排期。不委派、不推送、不续跑W/V/T/R/P/O。
@@ -0,0 +1,30 @@
{
"_approval-presentation-QyCkfhWb.js": {
"file": "assets/approval-presentation-QyCkfhWb.js",
"name": "approval-presentation"
},
"index.html": {
"file": "assets/desktop-BsgAY2GE.js",
"name": "desktop",
"src": "index.html",
"isEntry": true,
"imports": [
"_approval-presentation-QyCkfhWb.js"
],
"css": [
"assets/desktop-BNW-hkaW.css"
]
},
"mobile.html": {
"file": "assets/mobile-DdtBN08G.js",
"name": "mobile",
"src": "mobile.html",
"isEntry": true,
"imports": [
"_approval-presentation-QyCkfhWb.js"
],
"css": [
"assets/mobile-joLHctQw.css"
]
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="2" y="2" width="60" height="60" rx="14" fill="#154b4a"/><path d="M12 44l8-25h6l8 25h-6l-2-6H18l-2 6zm8-11h5l-2.5-8zm14-14h5l3 17 3-13h5l3 13 3-17h5l-5 25h-6l-2.5-13L45 44h-6z" fill="#fcfdfc"/></svg>

After

Width:  |  Height:  |  Size: 268 B

@@ -0,0 +1,8 @@
<!doctype html>
<html lang="zh-CN">
<head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#154b4a" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" /><title>Agent Workbench · 本地编程工作台</title> <script type="module" crossorigin src="/assets/desktop-BsgAY2GE.js"></script>
<link rel="modulepreload" crossorigin href="/assets/approval-presentation-QyCkfhWb.js">
<link rel="stylesheet" crossorigin href="/assets/desktop-BNW-hkaW.css">
</head>
<body><div id="root"></div></body>
</html>
@@ -0,0 +1,5 @@
[
"/assets/approval-presentation-QyCkfhWb.js",
"/assets/mobile-DdtBN08G.js",
"/assets/mobile-joLHctQw.css"
]
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 192"><rect width="192" height="192" rx="36" fill="#172b43"/><path d="M42 55h108v82H42z" fill="none" stroke="#f3f6fa" stroke-width="9"/><path d="m60 78 16 18-16 18m32 0h35" fill="none" stroke="#8bd0b9" stroke-width="9" stroke-linecap="square"/></svg>

After

Width:  |  Height:  |  Size: 307 B

@@ -0,0 +1,12 @@
const CACHE = 'workbench-mobile-65469da75610f50cf284';
const FILES = ["/","/mobile.webmanifest","/mobile-icon.svg","/mobile-touch-icon.png","/assets/approval-presentation-QyCkfhWb.js","/assets/mobile-DdtBN08G.js","/assets/mobile-joLHctQw.css"];
self.addEventListener('install', event => event.waitUntil(caches.open(CACHE).then(cache => cache.addAll(FILES)).then(() => self.skipWaiting())));
self.addEventListener('activate', event => event.waitUntil(caches.keys().then(names => Promise.all(names.filter(name => name.startsWith('workbench-mobile-') && name !== CACHE).map(name => caches.delete(name)))).then(() => self.clients.claim())));
self.addEventListener('fetch', event => {
const url = new URL(event.request.url);
if (event.request.method !== 'GET' || url.origin !== self.location.origin || url.search || !FILES.includes(url.pathname)) return;
event.respondWith(fetch(event.request).then(response => {
if (response.ok) { const copy = response.clone(); event.waitUntil(caches.open(CACHE).then(cache => cache.put(event.request, copy))); }
return response;
}).catch(async () => (await caches.match(event.request)) || Response.error()));
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1,5 @@
<!doctype html>
<html lang="zh-CN"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /><meta name="theme-color" content="#172b43" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="apple-mobile-web-app-title" content="Workbench" /><link rel="manifest" href="/mobile.webmanifest" /><link rel="icon" type="image/svg+xml" href="/mobile-icon.svg" /><link rel="apple-touch-icon" href="/mobile-touch-icon.png" /><title>Agent Workbench · 手机伴随端</title> <script type="module" crossorigin src="/assets/mobile-DdtBN08G.js"></script>
<link rel="modulepreload" crossorigin href="/assets/approval-presentation-QyCkfhWb.js">
<link rel="stylesheet" crossorigin href="/assets/mobile-joLHctQw.css">
</head><body><div id="mobile-root"></div></body></html>
@@ -0,0 +1 @@
{"id":"/","name":"Agent Workbench 手机伴随端","short_name":"Workbench","lang":"zh-CN","start_url":"/","scope":"/","display":"standalone","background_color":"#f1f4f7","theme_color":"#172b43","icons":[{"src":"/mobile-icon.svg","sizes":"any","type":"image/svg+xml","purpose":"any"},{"src":"/mobile-touch-icon.png","sizes":"256x256","type":"image/png","purpose":"any"}]}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

File diff suppressed because it is too large Load Diff
@@ -0,0 +1,15 @@
"use strict";
// src/desktop/preload.cjs
var { contextBridge, ipcRenderer } = require("electron");
contextBridge.exposeInMainWorld("desktopWorkbench", Object.freeze({
protocol: "agent-workbench-desktop-v1",
status: () => ipcRenderer.invoke("awb:desktop-status"),
pickProject: () => ipcRenderer.invoke("awb:desktop-pick-project"),
projectFolder: (projectId) => ipcRenderer.invoke("awb:desktop-project-folder", { projectId }),
openFilePreview: (input) => ipcRenderer.invoke("awb:desktop-file-preview", input),
reviewTask: (input) => ipcRenderer.invoke("awb:desktop-review-task", input),
revealFile: (input) => ipcRenderer.invoke("awb:desktop-reveal-file", input),
stopHost: () => ipcRenderer.invoke("awb:desktop-stop-host"),
browsingLayout: (input) => ipcRenderer.invoke("awb:browsing-layout", input)
}));
@@ -0,0 +1,478 @@
// src/desktop/host-cli.mjs
import fs5 from "node:fs";
import path6 from "node:path";
import os from "node:os";
import { fileURLToPath } from "node:url";
// src/core/desktop/host-controller.mjs
import fs4 from "node:fs";
import path5 from "node:path";
import { spawn, execFileSync as execFileSync2 } from "node:child_process";
import { randomBytes, randomUUID as randomUUID2 } from "node:crypto";
import { setTimeout as delay } from "node:timers/promises";
// src/shared/contracts/desktop-host.mjs
import { createHmac, timingSafeEqual } from "node:crypto";
var HOST_PROTOCOL = "agent-workbench-host-v1";
var HOST_REGISTRATION_FILE = "host-authority-v1.json";
var hostError = (message, code = "HOST_IDENTITY_REJECTED", status = 409) => Object.assign(new Error(message), { code, status });
var canonicalHost = (value) => Array.isArray(value) ? value.map(canonicalHost) : value && typeof value === "object" ? Object.fromEntries(Object.keys(value).sort().map((key) => [key, canonicalHost(value[key])])) : value;
function hostProof(identity, challenge, secret) {
if (!/^[a-f0-9]{64}$/.test(challenge) || !Buffer.isBuffer(secret) || secret.length !== 32) throw hostError("\u5BBF\u4E3B\u6838\u9A8C\u6311\u6218\u683C\u5F0F\u65E0\u6548\u3002", "HOST_CHALLENGE_INVALID", 400);
return createHmac("sha256", secret).update(JSON.stringify(canonicalHost({ identity, challenge }))).digest("hex");
}
function verifyHostProof(reply, challenge, secret) {
if (!reply?.identity || reply.challenge !== challenge || !/^[a-f0-9]{64}$/.test(reply.proof ?? "")) throw hostError("\u5BBF\u4E3B\u6CA1\u6709\u63D0\u4F9B\u5339\u914D\u7684\u5B9E\u4F8B\u6838\u9A8C\u3002");
const actual = Buffer.from(reply.proof, "hex"), expected = Buffer.from(hostProof(reply.identity, challenge, secret), "hex");
if (!timingSafeEqual(actual, expected)) throw hostError("\u7AEF\u53E3\u54CD\u5E94\u4E0D\u5C5E\u4E8E\u767B\u8BB0\u7684\u6267\u884C\u5BBF\u4E3B\u3002");
return reply.identity;
}
// src/core/process-environment.mjs
import path from "node:path";
function projectEnvironment(extra = {}) {
const allowed = /^(path|pathext|systemroot|systemdrive|windir|comspec|temp|tmp|userprofile|homedrive|homepath|home|appdata|localappdata|programfiles(?:\(x86\))?|commonprogramfiles(?:\(x86\))?|lang|lc_all)$/i;
const environment = Object.fromEntries(Object.entries(process.env).filter(([name]) => allowed.test(name)));
const inheritedPath = Object.entries(environment).find(([name]) => name.toLowerCase() === "path")?.[1] || "";
for (const name of Object.keys(environment)) if (name.toLowerCase() === "path") delete environment[name];
return { ...environment, PATH: [path.dirname(process.execPath), inheritedPath].filter(Boolean).join(path.delimiter), ...extra };
}
// src/core/desktop/process-identity.mjs
import fs2 from "node:fs";
import path3 from "node:path";
import { execFileSync } from "node:child_process";
import { createHash } from "node:crypto";
// src/core/desktop/file-state.mjs
import fs from "node:fs";
import path2 from "node:path";
import { randomUUID } from "node:crypto";
var normalized = (value) => process.platform === "win32" ? value.toLowerCase() : value;
var samePath = (a, b) => normalized(path2.resolve(a)) === normalized(path2.resolve(b));
function assertLocalTree(absolute, { missing = false } = {}) {
const resolved = path2.resolve(absolute), parsed = path2.parse(resolved);
let current = parsed.root;
const components = resolved.slice(parsed.root.length).split(path2.sep).filter(Boolean);
for (const component of components) {
if (component.includes(":") || component.includes("\0")) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u683C\u5F0F\u65E0\u6548\u3002");
current = path2.join(current, component);
let stat;
try {
stat = fs.lstatSync(current);
} catch (cause) {
if (missing && cause.code === "ENOENT") return resolved;
throw cause;
}
if (stat.isSymbolicLink() || !samePath(current, fs.realpathSync.native(current))) throw hostError("\u672C\u673A\u72B6\u6001\u4E0D\u63A5\u53D7\u94FE\u63A5\u6216\u91CD\u89E3\u6790\u76EE\u5F55\u3002");
if (stat.isFile() && stat.nlink !== 1) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u5177\u6709\u591A\u4E2A\u8DEF\u5F84\u3002");
}
return resolved;
}
function ownedChild(root, relative, { missing = false } = {}) {
if (typeof relative !== "string") throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u65E0\u6548\u3002");
assertLocalTree(root);
const base = fs.realpathSync.native(root), target = path2.resolve(base, relative);
if (path2.isAbsolute(relative) || path2.win32.isAbsolute(relative) || relative.includes("\0") || !normalized(target).startsWith(normalized(base + path2.sep))) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u8D85\u51FA\u6240\u5C5E\u76EE\u5F55\u3002");
let existing = target;
while (!fs.existsSync(existing)) {
if (!missing) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u4E0D\u5B58\u5728\u3002", "HOST_REGISTRATION_MISSING");
const parent = path2.dirname(existing);
if (parent === existing) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u65E0\u6CD5\u6838\u5BF9\u3002");
existing = parent;
}
const real = fs.realpathSync.native(existing);
if (!samePath(base, real) && !normalized(real).startsWith(normalized(base + path2.sep))) throw hostError("\u672C\u673A\u72B6\u6001\u94FE\u63A5\u8D85\u51FA\u6240\u5C5E\u76EE\u5F55\u3002");
if (fs.lstatSync(existing).isSymbolicLink()) throw hostError("\u672C\u673A\u72B6\u6001\u4E0D\u63A5\u53D7\u94FE\u63A5\u6216\u91CD\u89E3\u6790\u76EE\u5F55\u3002");
const stat = fs.statSync(existing);
if (stat.isFile() && stat.nlink !== 1) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u5177\u6709\u591A\u4E2A\u8DEF\u5F84\u3002");
return assertLocalTree(target, { missing });
}
function treeFile(base, relative) {
if (typeof relative !== "string" || !relative || path2.isAbsolute(relative) || path2.win32.isAbsolute(relative) || relative.includes("\0") || relative.includes(":")) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u65E0\u6548\u3002");
const target = path2.resolve(base, relative);
if (!normalized(target).startsWith(normalized(base + path2.sep))) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u8D85\u51FA\u6240\u5C5E\u76EE\u5F55\u3002");
let stat, real;
try {
stat = fs.lstatSync(target);
real = fs.realpathSync.native(target);
} catch (cause) {
if (cause.code === "ENOENT") throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u4E0D\u5B58\u5728\u3002", "HOST_REGISTRATION_MISSING");
throw cause;
}
if (stat.isSymbolicLink() || !samePath(target, real)) throw hostError("\u672C\u673A\u72B6\u6001\u4E0D\u63A5\u53D7\u94FE\u63A5\u6216\u91CD\u89E3\u6790\u76EE\u5F55\u3002");
if (!stat.isFile()) throw hostError("\u672C\u673A\u72B6\u6001\u8DEF\u5F84\u4E0D\u662F\u5E38\u89C4\u6587\u4EF6\u3002");
if (stat.nlink !== 1) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u5177\u6709\u591A\u4E2A\u8DEF\u5F84\u3002");
return { path: target, stat };
}
function readState(file, maximum = 4 * 1024 * 1024) {
assertLocalTree(file);
const stat = fs.lstatSync(file);
if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink !== 1 || stat.size > maximum) throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u683C\u5F0F\u6216\u4F5C\u7528\u8303\u56F4\u65E0\u6548\u3002");
try {
return JSON.parse(fs.readFileSync(file, "utf8").replace(/^\uFEFF/, ""));
} catch {
throw hostError("\u672C\u673A\u72B6\u6001\u6587\u4EF6\u635F\u574F\uFF0C\u8BF7\u6838\u5BF9\u539F\u8BB0\u5F55\u3002");
}
}
function writeState(file, value) {
assertLocalTree(file, { missing: true });
const directory = path2.dirname(file), temporary = path2.join(directory, "." + path2.basename(file) + "-" + randomUUID() + ".tmp");
if (fs.existsSync(file)) readState(file);
try {
const descriptor = fs.openSync(temporary, "wx", 384);
try {
fs.writeFileSync(descriptor, JSON.stringify(value, null, 2) + "\n");
fs.fsyncSync(descriptor);
} finally {
fs.closeSync(descriptor);
}
assertLocalTree(file, { missing: true });
fs.renameSync(temporary, file);
} finally {
if (fs.existsSync(temporary)) fs.unlinkSync(temporary);
}
}
// src/core/desktop/process-identity.mjs
function windowsProcessObservationScript(pid) {
if (!Number.isInteger(pid) || pid < 1 || pid > 2147483647) throw hostError("\u5BBF\u4E3BPID\u65E0\u6548\u3002");
const query = 'Get-CimInstance Win32_Process -Filter "ProcessId=' + pid + '"';
return "$ErrorActionPreference='Stop';$ProgressPreference='SilentlyContinue';[Console]::OutputEncoding=New-Object System.Text.UTF8Encoding($false);$awbProcess=" + query + ';if($null -eq $awbProcess){Write-Output "null";exit 0};try{$awbOwner=Invoke-CimMethod -InputObject $awbProcess -MethodName GetOwnerSid;if($awbOwner.ReturnValue -ne 0 -or -not $awbOwner.Sid){throw "Owner identity unavailable"};}catch{$awbRemaining=' + query + ';if($null -eq $awbRemaining){Write-Output "null";exit 0};throw};[pscustomobject]@{pid=[int]$awbProcess.ProcessId;parentPid=[int]$awbProcess.ParentProcessId;createdAt=$awbProcess.CreationDate.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ");executable=$awbProcess.ExecutablePath;userSid=$awbOwner.Sid}|ConvertTo-Json -Compress';
}
function observeWindowsProcess(pid) {
if (process.platform !== "win32") throw hostError("\u6B64\u684C\u9762\u5BBF\u4E3B\u6838\u9A8C\u9700\u8981Windows\u3002", "HOST_PLATFORM_UNSUPPORTED");
const script = windowsProcessObservationScript(pid);
try {
const shell = path3.join(process.env.SystemRoot || "C:\\Windows", "System32/WindowsPowerShell/v1.0/powershell.exe");
const output = execFileSync(
shell,
["-NoProfile", "-NonInteractive", "-EncodedCommand", Buffer.from(script, "utf16le").toString("base64")],
{ windowsHide: true, encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 15e3, maxBuffer: 65536, env: projectEnvironment() }
);
const value = JSON.parse(output.trim().replace(/^\uFEFF/, ""));
if (value === null) return null;
if (value.pid !== pid || !Number.isFinite(Date.parse(value.createdAt)) || !/^S-1-\d+(?:-\d+)+$/.test(value.userSid) || !value.executable || !fs2.existsSync(value.executable)) throw new Error("Invalid observation");
return { ...value, executable: fs2.realpathSync.native(value.executable) };
} catch {
throw hostError("\u65E0\u6CD5\u6838\u5BF9Windows\u5BBF\u4E3B\u521B\u5EFA\u3001\u7528\u6237\u6216\u53EF\u6267\u884C\u8EAB\u4EFD\uFF1B\u4E0D\u4F1A\u590D\u7528\u6216\u505C\u6B62\u672A\u77E5\u8FDB\u7A0B\u3002", "HOST_PROCESS_UNVERIFIED");
}
}
function treeFileIdentity({ path: absolute, stat }) {
if (stat.size > 256 * 1024 * 1024) throw hostError("\u5BBF\u4E3B\u53EF\u6267\u884C\u6587\u4EF6\u8EAB\u4EFD\u65E0\u6548\u3002");
const bytes = fs2.readFileSync(absolute);
if (bytes.length !== stat.size) throw hostError("\u5BBF\u4E3B\u6587\u4EF6\u5728\u6838\u5BF9\u671F\u95F4\u53D1\u751F\u53D8\u5316\u3002");
return { path: absolute, bytes: bytes.length, sha256: createHash("sha256").update(bytes).digest("hex") };
}
function binaryIdentity(file) {
assertLocalTree(file);
const absolute = fs2.realpathSync.native(file), stat = fs2.lstatSync(absolute);
if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink !== 1 || stat.size > 256 * 1024 * 1024) throw hostError("\u5BBF\u4E3B\u53EF\u6267\u884C\u6587\u4EF6\u8EAB\u4EFD\u65E0\u6548\u3002");
return { path: absolute, bytes: stat.size, sha256: createHash("sha256").update(fs2.readFileSync(absolute)).digest("hex") };
}
// src/core/desktop/app-installation.mjs
import fs3 from "node:fs";
import path4 from "node:path";
import { createHash as createHash2 } from "node:crypto";
function inspectHostInstallation(directory, { full = false, onProgress = null } = {}) {
assertLocalTree(directory);
const root = fs3.realpathSync.native(path4.resolve(directory));
if (!fs3.statSync(root).isDirectory()) throw hostError("\u5BBF\u4E3B\u5B89\u88C5\u76EE\u5F55\u65E0\u6548\u3002");
const digest = (value) => createHash2("sha256").update(value).digest("hex");
const manifestFile = path4.join(root, "MANIFEST.json"), manifest = fs3.existsSync(manifestFile) ? readState(manifestFile, 16 * 1024 * 1024) : null;
if (manifest && (manifest.app !== "agent-workbench" || !Array.isArray(manifest.files) || manifest.files.length > 6e4)) throw hostError("\u5BBF\u4E3B\u53D1\u884C\u6E05\u5355\u65E0\u6548\u3002");
const version = manifest?.version ?? (fs3.existsSync(path4.join(root, "package.json")) ? readState(path4.join(root, "package.json")).version : null);
if (typeof version !== "string" || !/^\d+\.\d+\.\d+$/.test(version)) throw hostError("\u5BBF\u4E3B\u5B89\u88C5\u7248\u672C\u65E0\u6548\u3002");
const files = /* @__PURE__ */ new Set(["dist-server/server.mjs", "dist-server/hot-upgrade.mjs", "dist-client/index.html"]);
if (!manifest || fs3.existsSync(path4.join(root, "dist-server/host-launcher.mjs"))) files.add("dist-server/host-launcher.mjs");
if (fs3.existsSync(path4.join(root, "dist-server/install-manager.mjs"))) files.add("dist-server/install-manager.mjs");
for (const relative of ["dist-desktop/main.cjs", "dist-desktop/preload.cjs"]) if (fs3.existsSync(path4.join(root, relative))) files.add(relative);
const names = /* @__PURE__ */ new Map();
for (const row of manifest?.files ?? []) {
if (!row || typeof row.path !== "string" || row.path.includes("\\") || row.path.split("/").includes("..") || names.has(row.path) || !/^[a-f0-9]{64}$/.test(row.sha256 ?? "") || !Number.isSafeInteger(row.bytes) || row.bytes < 0) throw hostError("\u5BBF\u4E3B\u6E05\u5355\u5305\u542B\u91CD\u590D\u6216\u8D8A\u754C\u8F93\u5165\u3002");
names.set(row.path, row);
if (full || /^(dist-client|dist-server|dist-desktop)\//.test(row.path)) files.add(row.path);
}
if (!manifest || manifest.kind === "source") for (const entry of fs3.readdirSync(path4.join(root, "dist-client/assets"))) files.add("dist-client/assets/" + entry);
const selected = [...files].sort(), totalBytes = selected.reduce((sum, name) => sum + (names.get(name)?.bytes ?? 0), 0);
let completedFiles = 0, completedBytes = 0;
const report = (currentPath) => onProgress?.({ scope: full ? "full-manifest" : "loaded-inputs", root, totalFiles: selected.length, totalBytes: manifest ? totalBytes : null, completedFiles, completedBytes, currentPath });
report(null);
const inputs = selected.map((relative) => {
const identity = treeFileIdentity(treeFile(root, relative)), declared = names.get(relative);
if (manifest?.kind === "portable" && !declared) throw hostError("\u5B9E\u9645\u5BBF\u4E3B\u7A0B\u5E8F\u4E0D\u5728\u539F\u53D1\u884C\u6E05\u5355\u4E2D\u3002");
if (declared && (identity.bytes !== declared.bytes || identity.sha256 !== declared.sha256)) throw hostError("\u5B9E\u9645\u5BBF\u4E3B\u7A0B\u5E8F\u4E0E\u539F\u53D1\u884C\u6E05\u5355\u4E0D\u4E00\u81F4\u3002");
completedFiles++;
completedBytes += identity.bytes;
report(relative);
return { path: relative, bytes: identity.bytes, sha256: identity.sha256 };
});
assertLocalTree(root);
if (!samePath(fs3.realpathSync.native(root), root)) throw hostError("\u5BBF\u4E3B\u5B89\u88C5\u76EE\u5F55\u5728\u6838\u5BF9\u671F\u95F4\u53D1\u751F\u53D8\u5316\u3002");
const result = {
root,
version,
kind: manifest?.kind ?? "development-build",
manifestSha256: manifest ? digest(fs3.readFileSync(manifestFile)) : null,
inputs,
verification: full ? "full-manifest" : "loaded-host-and-client-inputs"
};
return { ...result, identitySha256: digest(JSON.stringify(canonicalHost(result))) };
}
// src/core/desktop/host-controller.mjs
var HOST_ENVIRONMENT = Object.freeze(["AGENT_WORKBENCH_DEEPSEEK_ROOT", "AGENT_WORKBENCH_PURGE_ROOT", "AGENT_WORKBENCH_PYTHON_PATH", "AGENT_WORKBENCH_TEST_PYTHON"]);
async function jsonResponse(response) {
if (!response.ok) throw hostError("\u672C\u673A\u5BBF\u4E3B\u63A5\u53E3\u62D2\u7EDD\u64CD\u4F5C\uFF08HTTP " + response.status + "\uFF09\u3002", "HOST_API_REJECTED", response.status);
const chunks = [];
let length = 0;
for await (const chunk of response.body) {
length += chunk.length;
if (length > 4 * 1024 * 1024) throw hostError("\u672C\u673A\u5BBF\u4E3B\u54CD\u5E94\u8FC7\u5927\u3002");
chunks.push(chunk);
}
try {
return JSON.parse(Buffer.concat(chunks).toString("utf8"));
} catch {
throw hostError("\u7AEF\u53E3\u672A\u8FD4\u56DE\u6709\u6548\u7684\u5BBF\u4E3B\u534F\u8BAE\u3002");
}
}
var HostController = class {
constructor({ appRoot: appRoot2, dataRoot: dataRoot2, port = 4318, nodePath: nodePath2 = null, timeoutMs = 45e3, environment = {} }) {
if (!Number.isInteger(port) || port < 1 || port > 65535 || typeof dataRoot2 !== "string" || !path5.isAbsolute(dataRoot2)) throw hostError("\u684C\u9762\u5BBF\u4E3B\u76EE\u5F55\u6216\u7AEF\u53E3\u65E0\u6548\u3002");
this.installation = inspectHostInstallation(appRoot2);
this.appRoot = this.installation.root;
assertLocalTree(dataRoot2, { missing: true });
fs4.mkdirSync(dataRoot2, { recursive: true });
this.dataRoot = fs4.realpathSync.native(dataRoot2);
const bundled = path5.join(this.appRoot, "runtime/node.exe");
const executable = nodePath2 ?? (fs4.existsSync(bundled) ? bundled : !process.versions.electron ? process.execPath : null);
if (!executable) throw hostError("\u684C\u9762\u5B89\u88C5\u7F3A\u5C11\u72EC\u7ACBNode\u5BBF\u4E3B\u3002");
this.node = binaryIdentity(executable);
const version = execFileSync2(this.node.path, ["--version"], { encoding: "utf8", windowsHide: true, timeout: 1e4, env: projectEnvironment() }).trim();
if (!/^v24\./.test(version)) throw hostError("\u684C\u9762\u5BBF\u4E3B\u9700\u8981\u5DF2\u7ECF\u6838\u9A8C\u7684Node24\u8FD0\u884C\u5668\u3002");
this.node.version = version;
this.port = port;
this.url = "http://127.0.0.1:" + port;
this.timeoutMs = Math.min(6e4, Math.max(1e3, timeoutMs));
const allowed = new Set(HOST_ENVIRONMENT);
if (Object.keys(environment).some((key) => !allowed.has(key) || typeof environment[key] !== "string" || !path5.isAbsolute(environment[key]))) throw hostError("\u5BBF\u4E3B\u542F\u52A8\u53EA\u63A5\u53D7\u5DF2\u58F0\u660E\u7684\u672C\u673A\u8FD0\u884C\u5668\u8DEF\u5F84\u3002");
this.environment = environment;
}
async api(route, { method = "GET", input = null, timeoutMs = 15e3 } = {}) {
if (typeof route !== "string" || !route.startsWith("/") || route.startsWith("//")) throw hostError("\u5BBF\u4E3B\u63A5\u53E3\u8DEF\u5F84\u65E0\u6548\u3002");
return jsonResponse(await fetch(this.url + "/api" + route, {
method,
headers: {
Connection: "close",
...this.token ? { "X-Workbench-Token": this.token } : {},
...input ? { "Content-Type": "application/json" } : {}
},
body: input ? JSON.stringify(input) : void 0,
signal: AbortSignal.timeout(timeoutMs)
}));
}
async health() {
try {
return await this.api("/health", { timeoutMs: 1500 });
} catch (cause) {
if (cause.cause?.code === "ECONNREFUSED" || cause.cause?.errors?.every((value) => value.code === "ECONNREFUSED")) return null;
throw hostError("\u7AEF\u53E3\u88AB\u5360\u7528\u6216\u54CD\u5E94\u65E0\u6CD5\u6838\u5BF9\uFF1B\u4E0D\u4F1A\u542F\u52A8\u53E6\u4E00\u5957\u5BBF\u4E3B\u3002", "HOST_PORT_UNVERIFIED");
}
}
async connect() {
const health = await this.health();
if (!health) return null;
if (health.app !== "agent-workbench" || health.ready !== true || !Number.isInteger(health.pid)) throw hostError("\u7AEF\u53E3\u5C5E\u4E8E\u672A\u77E5\u670D\u52A1\u3002");
const bootstrap = await this.api("/bootstrap");
if (bootstrap.version !== this.installation.version || typeof bootstrap.token !== "string") throw hostError("\u8FD0\u884C\u7248\u672C\u4E0D\u5339\u914D\uFF0C\u8BF7\u4F7F\u7528\u660E\u786E\u7684\u5347\u7EA7\u6D41\u7A0B\u3002", "HOST_VERSION_MISMATCH");
this.token = bootstrap.token;
const challenge = randomBytes(32).toString("hex"), reply = await this.api("/host/identity?challenge=" + challenge);
ownedChild(this.dataRoot, ".secrets");
const registration = readState(ownedChild(this.dataRoot, ".secrets/" + HOST_REGISTRATION_FILE), 16384);
if (registration.schema !== 1 || registration.protocol !== HOST_PROTOCOL || !/^[A-Za-z0-9+/]{43}=$/.test(registration.secret ?? "")) throw hostError("\u672C\u673A\u539F\u6CE8\u518C\u683C\u5F0F\u65E0\u6CD5\u6838\u5BF9\u3002");
const identity = verifyHostProof(reply, challenge, Buffer.from(registration.secret, "base64"));
const actual = observeWindowsProcess(identity.pid), caller = observeWindowsProcess(process.pid);
if (!actual || !caller || identity.pid !== health.pid || identity.pid !== registration.pid || identity.createdAt !== actual.createdAt || identity.createdAt !== registration.createdAt || identity.instanceId !== registration.instanceId || identity.ownerId !== registration.ownerId || identity.userSid !== actual.userSid || identity.userSid !== registration.userSid || identity.userSid !== caller.userSid || identity.protocol !== HOST_PROTOCOL || identity.version !== this.installation.version || identity.port !== this.port || !samePath(identity.dataRoot, this.dataRoot) || !samePath(identity.runtimeRoot, this.appRoot) || identity.runtimeIdentity !== this.installation.identitySha256 || !samePath(identity.executable.path, actual.executable) || identity.executable.sha256 !== this.node.sha256 || binaryIdentity(actual.executable).sha256 !== this.node.sha256) throw hostError("\u5B9E\u9645PID\u521B\u5EFA\u3001\u7528\u6237\u3001\u7A0B\u5E8F\u3001\u5B89\u88C5\u6216\u6570\u636E\u76EE\u5F55\u4E0E\u539F\u5BBF\u4E3B\u767B\u8BB0\u4E0D\u4E00\u81F4\u3002");
const info = readState(ownedChild(this.dataRoot, "service-info.json"));
if (info.pid !== identity.pid || info.instanceId !== identity.instanceId || info.createdAt !== identity.createdAt || info.port !== this.port || info.userSid !== identity.userSid || info.ownerId !== identity.ownerId || info.runtimeIdentity !== identity.runtimeIdentity || !samePath(info.appRoot, identity.appRoot) || !samePath(info.dataRoot, this.dataRoot) || !samePath(info.runtimeRoot, this.appRoot)) throw hostError("\u672C\u673A\u5BBF\u4E3B\u7D22\u5F15\u4E0E\u5B9E\u9645\u5B9E\u4F8B\u4E0D\u4E00\u81F4\u3002");
this.identity = identity;
return { url: this.url, identity };
}
async lock(action) {
const lockDirectory = ownedChild(this.dataRoot, ".desktop-launch.lock", { missing: true }), nonce = randomUUID2(), observed = observeWindowsProcess(process.pid);
const deadline = Date.now() + this.timeoutMs;
while (true) {
try {
fs4.mkdirSync(lockDirectory, { mode: 448 });
break;
} catch (cause) {
if (cause.code !== "EEXIST") throw cause;
ownedChild(this.dataRoot, ".desktop-launch.lock");
const ownerFile2 = path5.join(lockDirectory, "owner.json");
if (fs4.existsSync(ownerFile2)) {
ownedChild(this.dataRoot, ".desktop-launch.lock/owner.json");
const owner = readState(ownerFile2, 16384);
if (!Number.isInteger(owner.pid) || typeof owner.createdAt !== "string" || typeof owner.nonce !== "string") throw hostError("\u542F\u52A8\u9501\u7684\u539F\u8EAB\u4EFD\u65E0\u6CD5\u6838\u5BF9\u3002");
const active = observeWindowsProcess(owner.pid);
if (active && active.createdAt === owner.createdAt && (owner.userSid !== active.userSid || owner.userSid !== observed.userSid)) throw hostError("\u542F\u52A8\u9501\u4E0D\u5C5E\u4E8E\u5F53\u524DWindows\u7528\u6237\u3002");
if (!active || active.createdAt !== owner.createdAt) {
if (readState(ownerFile2).nonce !== owner.nonce) continue;
const archive = ownedChild(this.dataRoot, ".desktop-launch-stale-" + randomUUID2(), { missing: true });
try {
fs4.renameSync(lockDirectory, archive);
} catch (error) {
if (!["ENOENT", "EEXIST"].includes(error.code)) throw error;
}
continue;
}
} else if (Date.now() - fs4.statSync(lockDirectory).mtimeMs > 1e4) throw hostError("\u542F\u52A8\u9501\u7F3A\u5C11\u539F\u8BB0\u5F55\uFF0C\u8BF7\u6838\u5BF9\u8BE5\u76EE\u5F55\u3002");
if (Date.now() >= deadline) throw hostError("\u6B63\u5728\u7B49\u5F85\u539F\u542F\u52A8\u64CD\u4F5C\uFF0C\u8BF7\u6838\u5BF9\u5F53\u524D\u5BBF\u4E3B\u3002", "HOST_START_PENDING");
await delay(100);
}
}
const ownerFile = path5.join(lockDirectory, "owner.json");
try {
writeState(ownerFile, { schema: 1, pid: process.pid, createdAt: observed.createdAt, userSid: observed.userSid, nonce });
return await action();
} finally {
if (fs4.existsSync(ownerFile) && readState(ownerFile).nonce === nonce) {
fs4.unlinkSync(ownerFile);
fs4.rmdirSync(lockDirectory);
}
}
}
async start() {
return this.lock(async () => {
const existing = await this.connect();
if (existing) return { ...existing, reused: true };
const intentFile = ownedChild(this.dataRoot, "desktop-launch-state.json", { missing: true });
if (fs4.existsSync(intentFile)) {
const intent = readState(intentFile);
if (intent.pid && !["exited", "failed"].includes(intent.state)) {
const actual = observeWindowsProcess(intent.pid);
if (actual && actual.createdAt === intent.createdAt) throw hostError("\u539F\u542F\u52A8\u8FDB\u7A0B\u4ECD\u6D3B\u52A8\u4F46\u6CA1\u6709\u53EF\u6838\u9A8C\u63A5\u53E3\uFF0C\u8BF7\u6838\u5BF9\u539F\u65E5\u5FD7\uFF1B\u4E0D\u4F1A\u518D\u542F\u52A8\u53E6\u4E00\u8FDB\u7A0B\u3002", "HOST_START_UNVERIFIED");
}
}
const logs = ownedChild(this.dataRoot, "logs", { missing: true });
if (!fs4.existsSync(logs)) fs4.mkdirSync(logs);
const id = randomUUID2(), stdoutPath = path5.join(logs, "desktop-host-" + id + "-stdout.log"), stderrPath = path5.join(logs, "desktop-host-" + id + "-stderr.log");
let output, errors, child;
try {
output = fs4.openSync(stdoutPath, "wx", 384);
errors = fs4.openSync(stderrPath, "wx", 384);
child = spawn(this.node.path, [ownedChild(this.appRoot, "dist-server/server.mjs")], {
cwd: this.appRoot,
windowsHide: true,
detached: true,
env: projectEnvironment({ ...this.environment, AGENT_WORKBENCH_APP_DIR: this.appRoot, AGENT_WORKBENCH_DATA_DIR: this.dataRoot, AGENT_WORKBENCH_PORT: String(this.port) }),
stdio: ["ignore", output, errors]
});
} finally {
if (output !== void 0) fs4.closeSync(output);
if (errors !== void 0) fs4.closeSync(errors);
}
let failure = null;
child.on("error", (cause) => {
failure = cause;
});
child.unref();
const observedChild = child.pid ? observeWindowsProcess(child.pid) : null;
writeState(intentFile, {
schema: 1,
state: observedChild ? "starting" : "failed",
id,
pid: child.pid ?? null,
createdAt: observedChild?.createdAt ?? null,
appRoot: this.appRoot,
dataRoot: this.dataRoot,
port: this.port,
stdoutPath,
stderrPath
});
const deadline = Date.now() + this.timeoutMs;
while (Date.now() < deadline) {
if (failure || child.exitCode !== null) throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u67E5\u770B\u672C\u673A\u542F\u52A8\u8BB0\u5F55\u3002", "HOST_START_FAILED");
await delay(100);
let health;
try {
health = await this.health();
} catch (cause) {
if (cause.code !== "HOST_PORT_UNVERIFIED") throw cause;
const waiting = observeWindowsProcess(child.pid);
if (!waiting || !observedChild || waiting.createdAt !== observedChild.createdAt || waiting.userSid !== observedChild.userSid || !samePath(waiting.executable, this.node.path)) throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u542F\u52A8\u8FDB\u7A0B\u5DF2\u7ED3\u675F\u6216\u8EAB\u4EFD\u53D8\u5316\uFF0C\u8BF7\u6838\u5BF9\u539F\u65E5\u5FD7\u3002", "HOST_START_FAILED");
continue;
}
if (!health) continue;
if (health.pid !== child.pid) throw hostError("\u542F\u52A8\u671F\u95F4\u7AEF\u53E3\u88AB\u5176\u4ED6\u8FDB\u7A0B\u5360\u7528\u3002");
const connected = await this.connect();
if (connected) {
writeState(intentFile, { ...readState(intentFile), state: "ready", instanceId: connected.identity.instanceId });
return { ...connected, reused: false, logs: { stdoutPath, stderrPath } };
}
}
throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u5C1A\u672A\u5B8C\u6210\u6CE8\u518C\uFF1B\u4E0D\u4F1A\u91CD\u65B0\u542F\u52A8\u6216\u7ED3\u675F\u672A\u77E5\u8FDB\u7A0B\u3002", "HOST_START_UNVERIFIED");
});
}
async status() {
if (!await this.connect()) return { state: "not-running", url: this.url };
return this.api("/host/status");
}
async stop() {
return this.lock(async () => {
const connection = await this.connect();
if (!connection) return { state: "not-running", url: this.url };
const original = connection.identity;
await this.api("/host/stop", { method: "POST", input: {
instanceId: original.instanceId,
createdAt: original.createdAt,
runtimeIdentity: original.runtimeIdentity,
confirmation: "stop-owned-host"
}, timeoutMs: this.timeoutMs });
const deadline = Date.now() + this.timeoutMs;
while (Date.now() < deadline) {
await delay(200);
const observed = observeWindowsProcess(original.pid);
if (!observed) {
if (await this.health()) throw hostError("\u539F\u5BBF\u4E3B\u5DF2\u7ED3\u675F\uFF0C\u4F46\u7AEF\u53E3\u5B58\u5728\u5176\u4ED6\u670D\u52A1\u3002");
return { state: "stopped", identity: original, processExited: true };
}
if (observed.createdAt !== original.createdAt) throw hostError("\u539FPID\u5DF2\u88AB\u590D\u7528\uFF0C\u4E0D\u4F1A\u7ED3\u675F\u65B0\u7684\u8FDB\u7A0B\u3002");
}
throw hostError("\u6240\u5C5E\u5BBF\u4E3B\u9000\u51FA\u4ECD\u5F85\u6838\u5BF9\uFF0C\u8BF7\u4FDD\u7559\u539F\u5B9E\u4F8B\u8BB0\u5F55\u3002", "HOST_STOP_UNVERIFIED");
});
}
};
// src/desktop/host-cli.mjs
var args = process.argv.slice(2);
if (args.includes("--help")) {
console.log("node host-launcher.mjs <start|status|stop> [--app-root <absolute>] [--data-root <absolute>] [--node <absolute>] [--port <1..65535>]");
process.exit(0);
}
var command = args.shift();
if (!["start", "status", "stop"].includes(command)) throw new Error("Use --help for a supported desktop host operation.");
var options = {};
while (args.length) {
const flag = args.shift(), value = args.shift();
if (!["--app-root", "--data-root", "--node", "--port"].includes(flag) || !value || options[flag] !== void 0) throw new Error("Invalid or repeated host option.");
options[flag] = value;
}
var defaultRoot = path6.resolve(path6.dirname(fileURLToPath(import.meta.url)), "..");
var appRoot = options["--app-root"] || process.env.AGENT_WORKBENCH_APP_DIR || defaultRoot;
var dataRoot = options["--data-root"] || process.env.AGENT_WORKBENCH_DATA_DIR || path6.join(process.env.LOCALAPPDATA || path6.join(os.homedir(), ".local/share"), "AgentWorkbench");
var nodePath = options["--node"] || (fs5.existsSync(path6.join(appRoot, "runtime/node.exe")) ? path6.join(appRoot, "runtime/node.exe") : process.execPath);
try {
const controller = new HostController({
appRoot,
dataRoot,
nodePath,
port: Number(options["--port"] || process.env.AGENT_WORKBENCH_PORT || 4318),
environment: Object.fromEntries(HOST_ENVIRONMENT.filter((key) => process.env[key]).map((key) => [key, process.env[key]]))
});
console.log(JSON.stringify(await controller[command]()));
} catch (cause) {
console.error(JSON.stringify({ success: false, code: cause.code || "HOST_FAILED", message: cause.message }));
process.exitCode = 1;
}
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,69 @@
# 1.25.2 continuation checkpoint
## Latest continuation (14:23 UTC, supersedes older sections)
Update14:37UTC: acceptance48633 completed0, all13 new candidate stages passed; preinstall-review.json passed with explicit898/899+1/1 fields. New actual install root.qa/desktop-install-16343a1c-a68b-4b89-aa5e-24d9bc161927:12groups+10UI75groups+uninstall retained. Actual selected installed narrow-shadow/wide-diagnostic and portable narrow-draft/wide-diagnostic original images viewed. NEW formal session68558 runs before then one upgrade, logs formal-before.log/formal-upgrade.log, MUST inspect outcome rather than replay. Tracked HEAD clean d510; X still absent0realrequests. Formal final/web/native not executed yet.
Full16421 finished1:899 total/898pass/1fail, no cancelled/skipped. Actual only failure is tests/api.test.mjs:101 first await awaiting_approval BEFORE restart, original until8s. Same exact unchanged test and deadlines already passed1/1 on d510 (api-restart-recheck.*). Original final-validation93404 correctly rejected its899/899 assertion and finished1. Reviewed decision full-suite-review.json binds full/log/supplement/source hashes and records898/899+1/1, never whole-suite all-pass; unique timeout cause/high-load stability unknown. No product or test assertion/timeout changed.
NEW acceptance-continuation session48633: new final candidate portable then actual install then eightUI50groups/files9/results16/reading10 serially. Log acceptance-continuation.log; runner stages remain write-once. register/rebuild/archives previously succeeded and not replayed. preinstall/write-report/seal/verifier corrected to honest898/899+unchanged1/1. One report patch failed context atomically, re-applied successfully with exact text; no tracked changes. Formal untouched1.25.1, X absent/real model0. Keep HEAD clean d510 through formal final; only then update tracked docs/evidence.
## Latest continuation (13:50 UTC, supersedes all older sections)
Update after that checkpoint: package74190 FINISHED0, candidate20261104134035379 registered and latest.json updated. final-validation93404 completed register/rebuild/archives, all successful in release-final receipts; sourceZIP622 inputs/22compiled exact and3archives CRC/manifests/directories exact. It now waits full then will reject expected899/899 because known API failure. api-restart-recheck55242 FINISHED0 after archive work: exact unchanged api.test.mjs single test passed under original deadlines,13s; api-restart-recheck.tap/.log/.json have actual records bound to d510. This does not erase full failure or yet prove unique cause. Main full16421 still running, latest662 passed/1fail in installation-progress tests; final summary/details not yet emitted. Need inspect detailed original API failure at completion before deciding whether a precise retry suffices; avoid another blind full run. No API source change, no new product implementation since4a49, no formal/X work. All source/test inputs currently frozen d510 and tracked clean.
Clean tracked HEAD is now d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d: deterministic TLS timeout test and phase docs. Final full95401 ended898/899; only original TLS80ms scheduling assertion failed tcp!=tls. Original independent11/11 passed. Changed test keeps real two TCP/TLS ClientHellos then advances mock setTimeout79ms/80ms, checks actual active operation's two running TLS trials, then restores real timers for cancellation/closed sockets. Initial strengthened assertion read cloned start snapshot0!=2, fixed to active operation; logs network-clock-target and network-clock-corrected11/11 retained.
Original candidate4a49/20261104123124956: both portable base attempts failed at15s under concurrent full test. Later source adapter minimal PATH and original cwd/temp probes ready~1.1s. Real compiled host pipe and detached-file-output diagnostics BOTH completed full controlled engineering/check/review/Git, native4runs ready~0.6s. Same old candidate full portable verification AFTER previous full ended also passed in original15s, preserved portable-quiescent.log/json, root.qa/release-3ab46475-051f-40c3-a8a8-2bf672802548. Concurrent-load association observed, unique root/high-load reliability UNKNOWN, no timeout increase/product workaround. Original second late ready16.36s retained.
NEW running: package-final session74190 started13:40, new immutable suffix20261104134035379, no final output/latest update yet. freeze .qa/reliability-1.25.2/release-final/freeze.json has617 inputs/22compiled source d510. Only changed frozen input is tests/network-diagnostics.test.mjs; all22compiled exact (candidate-input-delta.json).
NEW full source session16421 log full-release-final.tap started~13:40, still running. It ALREADY HAS ONE FAILURE: api.test.mjs 'a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume'21946ms. Spec reporter defers detailed error until end. Do not ignore; inspect real error at finish and independently recheck exact test with TAP reporter AFTER packaging/archives stop. Source/runtime unchanged from4a49. No new product hypothesis yet. Main full suite concurrency2 and packaging overlapped; acknowledge possible test contention without claiming cause. Do NOT blindly rerun full for stochastic deadlines if a specific exact recheck proves identity/semantics; report raw results honestly. All prior complete full logs retained.
NEW final-validation session93404 log final-validation.log waits package latest sourceCommit d510, then runs runner register/rebuild/archives using release-final root. It waits full-release-final completion and currently requires899/899, so it WILL STOP if current known API failure remains. No automatic formal installation. After resolving actual API failure, adapt exact gate honestly rather than erase original. Then continue portable/install/eightportableUI/files/results/reading sequentially. Old release receipts and frozen dirs intact.
preinstall-review/write-report/seal/verify-evidence in ignored root now point FINAL candidate gates at release-final; raw old release first/recheck failures remain separately checked. They still assume899/899 in full-release-final and must be corrected ONLY based on final actual failure+evidence if not rerunning. seal copies both release directories; second native report/late-ready and standalone startup diagnostics added. verifier now verifies second late readiness and four successful diagnostic starts and candidate delta.
No formal before/upgrade/final executed, formal remains1.25.1/PID36552/Provider/Key untouched; X dir absent/no real model. Native skill read guidance/api/confirmations completely, no automation initialized. Subsequent order: final candidates genuine gates -> formal before/upgrade -> formal readonly web and actual native review -> close idle own window -> final -> accurate report/evidence/offline/index/scoped local commit -> X initial/network/preflight/node/seal once. See older sections for bounded X details and prepared scripts.
Repository D:/Ai-project/REA逆向/Agent-Workbench; Node D:/Ai-project/REA逆向/tools/node-v24.22.1-win-x64/node.exe. Branch feat/task-agreement-1.25, clean HEAD 4a49f02daf5fab542ef4009c6849915a5a7e0cd1. No delegation/push, no real Key extraction/save, no formal restart. User authorized implementation, validation, scoped local commits and a fresh bounded X. Respect the latest boundary reminder; stay within these frozen stages.
Formal last read-only check: 1.25.1, PID36552, hasKey=true, idle, windows0; original installed root ends Agent-Workbench-1.25.1-win-x64-20261104103902806. No formal mutation or real model call yet this turn.
New commits after the prior context: b4e1569c formal candidate-version QA fix; 401a39a8 bounded reacquisition for read-only iframe isolation check (original 7/9 preserved, new9/9); a3210fa5 X binds actual installed candidate/sourceCommit and records reviewedHead separately; 4a49f02d browser-result paging growth fix and stronger original HTTP test.
First full run .qa/reliability-1.25.2/full.tap finished899 tests/898pass/1fail, 2093116ms. Failure was actual browser-result paging10/1419 chars; original1.25.1 immutable build reproduced the same issue. Not a missing browser. See browser-paging-comparison.json: old/current-before-fix six fixture HTTP requests, hypothesis four; actual next input12105<=12352, full1419 chars. Hypothesis had two setup failures (missing host companion files, then missing Playwright) preserved separately. Actual changed source independently compiled, original browserAPI4/4 and read-budget9/9 passed (browser-growth-source.tap, browser-growth-read-related.tap).
Source UI: budget reading10, update status Edge/Electron7, basic files9, requirements/shadow/draft/closure eight suites50 groups all passed. Selected actual1440/390 screenshots viewed. source-ui.json seals result/log SHA and client files; final-client-verification.json confirms final client exact. Initial source files7/9 iframe-detach failure and corrected complete9/9 preserved.
Final build first failed because npm child selected global Node16; final-build.log preserved. Explicit Node24 PATH rebuild passed (final-build-node24.log). Do not rebuild shared dist while final suite runs.
Current running sessions:
- 95401: final exact source full suite, .qa/reliability-1.25.2/full-final.tap. Started about12:31UTC; no failure seen as of12:40UTC. Explicit Python .qa/reliability-1.25.2/python-env/Scripts/python.exe (3.10.11,pytest8.4.2); Chromium1248 installed. Concurrency2.
- 44287: package.mjs --immutable; .qa/reliability-1.25.2/package.log. New candidate suffix20261104123124956. Source docs24615 copied; evidence docs copy progressing (~20858 files at last check); latest.json not yet registered. No replay while this operation runs. Full source/evidence copy has substantial per-file cost.
Freeze .qa/reliability-1.25.2/release/freeze.json:617 tracked compile inputs,22 outputs, sourceCommit4a49f02d. .qa/reliability-1.25.2/release-runner.mjs adapted reviewed task-agreement runner to1.25.2/current Python. Modes register,rebuild,archives,portable,install,source/portable a,b,c,d (+desktop),portable-files. It verifies frozen hashes and writes wx logs/receipts. Freeze already done, do not repeat. Candidate latest must remain same and HEAD unchanged through formal before/upgrade/final.
Next: finish packaging, register; run independent exact-source-ZIP rebuild22 and all3 archive checks, actual portable, portable UI/reading/files, full isolated12-stage installer with installed10 UI suites. Avoid overlapping installer9229 with final suite upgrade9229 (those are late in full run). Full final must pass before formal upgrade. Keep all original failures. If a genuine issue requires code, new scoped commit and immutable candidate; never refresh old release folders.
Formal driver scripts/reliability-formal-release.mjs before/upgrade/final is now correctly1.25.1->1.25.2, one retained operation, exact rows/exports/artifacts/model-center, PID/instance/Key presence, no inspector left open. Candidate sourceCommit must equal HEAD during these modes. No formal operation started yet.
After formal+actual UI/state checks: phase4 report/review/local commit, then scripts/live-x/initial.mjs ->network.mjs ->preflight.mjs ->node.mjs once only. X fixed same W task,8requests/90000tokens/600000ms,16K/2048/1600; no hints, no old replay. Driver waits for actual changes/Git decision files; review original proposal thoroughly before approving, only permitted three modules. Restore original config/selection/identity, Key revision unchanged. Seal with scripts/live-x/seal.mjs after completeness checks. Node success prerequisite for React/Python, then independent balanced Purge. No X evidence directory or model request yet. Do not run historical live-engineering/E/H scripts as-is (different budgets/routes); only read for context.
Original unknowns remain: network intermittent cause, real autonomous delivery, actual outlier exclusion benefit, Purge AB/BA. No claim all solved by test counts.
## Continuation at 13:04 UTC (supersedes running-session section above)
HEAD unchanged clean4a49f02d; no formal change/model request. Package44287 completed and registered immutable20261104123124956. Independent sourceZIP622 inputs/22 compiled exact, all3 archive CRC/manifests/directories exact. Original package log retained.
Final full95401 remains running, no failure marker; near checkpoint/Task tests. Installer5611 running actual .qa/desktop-install-35ee960e-fec4-4512-9e04-aaf0291108d7; first6 groups passed, update-setup started13:03:31. Follow with installed10UI75groups/restart/uninstall. Avoid formal9229 until this and full end.
Portable eight A/B/C/D web/native50groups + files9/results16/reading10 passed; session1901 completed. Actual selected390 draft/1440diagnostic images viewed, visual-review.json records observations. Source617 inputs/22 compile frozen unchanged. Ignore runner extended portable-results/portable-reading.
First portable base31221 FAILED: real controlled Harness did not emit ready in15s, init/model/tools0, native tree closed. .qa/release-8be20a04-fedb-4379-8a3b-435bdd20e391/compiled-api-failure.json and artifacts/99/99c30c696d5141b11228aacf953ad35cb68f446ee374b4562862bd03d03dee73.blob hold original. No product cause established; no changed candidate. Wait full test completion, then new isolated `release-runner.mjs portable-recheck` ONCE (prepared but never executed), preserve failed receipt portable.json. Check result before formal. No replay of real samples involved.
Prepared ignored QA: preinstall-review.mjs (requires899/899/full, portable-recheck and complete install); formal-web.mjs adapted reviewed read-only1.25 actuallegacyTask1440/390 flow; write-report.mjs (generates docs only after formal/final and preinstall true); seal.mjs (selected sources/logs/results/UI/current formal, no Python/node_modules/privatecredential dirs); verify-evidence.mjs (eventually copy as docs/verify-reliability-1.25.2.mjs). Syntax checked. Do not execute seal/report until all gates. Review new scripts and any actual schema mismatches without rewriting prior failure evidence.
computer-use skill fully read with guidance/api/confirmations; user notified. Native final review will use @oai/sky in mcp__node_repl__js (discovered tool). No UI automation initialized yet. Use unique actual formal window only, no terminal UI, no security/key controls. Save screenshots for audit (not solely inspection), text tree, native result then close idle window; formal `final` after web/native closure. `.qa/reliability-1.25.2/formal-web.mjs` prepared not executed.
Remaining sequence: full/install finish; portable-recheck; preinstall review; scripts/reliability-formal-release.mjs before/upgrade; read-onlyweb/native/close; final; generate QA/report, seal and offline/index checks, scoped local commit; X initial/network/preflight/node once (driver review files await supervisor original changes/Git review). X root still absent. X goal exact byte-equal W goal confirmed SHAea3eaee0a94112085b6e41f528397f32fb2640a963a40add9bd3549b9eb642e0. ActualX model delivery unknown. Keep no subagent/push/key extraction/formalrestart boundaries.
@@ -0,0 +1,40 @@
START portable
START portable
{"success":true,"mode":"portable","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\release-validation.json"}
START install
START install
{"success":true,"mode":"install","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\install.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-install-16343a1c-a68b-4b89-aa5e-24d9bc161927\\result.json"}
START portable-a
START portable-a
{"success":true,"mode":"portable-a","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-a.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\requirements-progress\\ui-0a1463ec-b112-4e72-9bd3-82b4c0d3b71b\\result.json"}
START portable-a-desktop
START portable-a-desktop
{"success":true,"mode":"portable-a-desktop","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-a-desktop.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\requirements-progress\\electron-7d26f2b4-6ac9-4bd7-bf70-c68b5a2f4b09\\result.json"}
START portable-b
START portable-b
{"success":true,"mode":"portable-b","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-b.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\requirements-progress\\shadow-ui-5cc13250-5012-4db3-b905-1281fdcd45a2\\result.json"}
START portable-b-desktop
START portable-b-desktop
{"success":true,"mode":"portable-b-desktop","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-b-desktop.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\requirements-progress\\shadow-electron-f9ce3945-dff7-4126-ada1-d2e4cb7789ce\\result.json"}
START portable-c
START portable-c
{"success":true,"mode":"portable-c","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-c.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\task-agreement\\web-757d916f-7bb0-4137-bbba-daea43affc23\\result.json"}
START portable-c-desktop
START portable-c-desktop
{"success":true,"mode":"portable-c-desktop","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-c-desktop.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\task-agreement\\electron-4a029a34-a2ce-44fb-a3b0-1280c199033e\\result.json"}
START portable-d
START portable-d
{"success":true,"mode":"portable-d","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-d.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\task-agreement\\closure-web-19a48acd-5439-4a14-a38e-0d59d156f417\\result.json"}
START portable-d-desktop
START portable-d-desktop
{"success":true,"mode":"portable-d-desktop","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-d-desktop.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\task-agreement\\closure-electron-09572c61-b7d1-40bc-b5b8-ff36b72de5db\\result.json"}
START portable-files
START portable-files
{"success":true,"mode":"portable-files","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-files.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-2ada0379-224f-4af2-9343-c62577e2478d\\result.json"}
START portable-results
START portable-results
{"success":true,"mode":"portable-results","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-results.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\file-results-ui-d7b24e5d-4040-4de7-b46e-ae6f368636ec\\result.json"}
START portable-reading
START portable-reading
{"success":true,"mode":"portable-reading","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\portable-reading.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reading-s-ui-0a2fc1ba-3a91-4f77-858f-d0995bf75c74\\result.json"}
{"success":true,"sourceCommit":"d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d","stages":13,"wholeSuite":{"tests":899,"passed":898,"failed":1,"cancelled":0,"skipped":0,"file":".qa/reliability-1.25.2/full-release-final.tap","sha256":"4ae37e9115ae57a5ef0c2c8269222b0e97cb27722a09a08c80d6f22af46d19c3"},"supplementPassed":1,"realModelRequests":0,"formalTouched":false}
@@ -0,0 +1,18 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { spawn } from 'node:child_process';
import { projectEnvironment } from '../../src/core/process-environment.mjs';
const root = path.resolve('.qa/reliability-1.25.2');
const review = JSON.parse(fs.readFileSync(path.join(root, 'full-suite-review.json')));
assert.equal(review.success, true); assert.equal(review.wholeSuite.failed, 1); assert.equal(review.supplement.passed, 1);
const stages = ['portable', 'install', 'portable-a', 'portable-a-desktop', 'portable-b', 'portable-b-desktop', 'portable-c', 'portable-c-desktop', 'portable-d', 'portable-d-desktop', 'portable-files', 'portable-results', 'portable-reading'];
for (const stage of stages) {
console.log('START ' + stage);
const code = await new Promise((resolve, reject) => {
const child = spawn(process.execPath, [path.join(root, 'release-runner.mjs'), stage, 'release-final'], { windowsHide: true, env: projectEnvironment(), stdio: ['ignore', 'inherit', 'inherit'] });
child.once('error', reject); child.once('close', resolve);
});
assert.equal(code, 0, 'Inspect preserved ' + stage + ' receipt before any further action.');
}
console.log(JSON.stringify({ success: true, sourceCommit: review.sourceCommit, stages: stages.length, wholeSuite: review.wholeSuite, supplementPassed: 1, realModelRequests: 0, formalTouched: false }));
@@ -0,0 +1 @@
{"success":true,"code":0,"startedAt":"2026-11-04T13:54:59.153Z","finishedAt":"2026-11-04T13:55:12.171Z","sourceCommit":"d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d","scope":"One exact unchanged API restart/approval test, original QA deadlines; no real model/formal state.","log":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\api-restart-recheck.log","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\api-restart-recheck.tap","realModelRequests":0}
@@ -0,0 +1,11 @@
{
"success": true,
"code": 0,
"startedAt": "2026-11-04T13:54:59.153Z",
"finishedAt": "2026-11-04T13:55:12.171Z",
"sourceCommit": "d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d",
"scope": "One exact unchanged API restart/approval test, original QA deadlines; no real model/formal state.",
"log": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\api-restart-recheck.log",
"output": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\api-restart-recheck.tap",
"realModelRequests": 0
}
@@ -0,0 +1,9 @@
✔ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (12606.2573ms)
ℹ tests 1
ℹ suites 0
ℹ pass 1
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 12888.643
@@ -0,0 +1,19 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { spawn } from 'node:child_process';
import { createHash } from 'node:crypto';
import { projectEnvironment } from '../../src/core/process-environment.mjs';
const root=path.resolve('.qa/reliability-1.25.2'),deadline=Date.now()+35*60000;
const archive=path.join(root,'release-final/receipts/archives.json');
while(!fs.existsSync(archive)){assert.ok(Date.now()<deadline,'Waited too long for package/archive completion.');await new Promise(resolve=>setTimeout(resolve,3000));}
assert.equal(JSON.parse(fs.readFileSync(archive)).success,true,'Do not add test load during unfinished packaging.');
const freeze=JSON.parse(fs.readFileSync(path.join(root,'release-final/freeze.json')));
for(const row of freeze.inputs)assert.equal(createHash('sha256').update(fs.readFileSync(row.path)).digest('hex'),row.sha256);
const output=path.join(root,'api-restart-recheck.tap'),log=path.join(root,'api-restart-recheck.log');
const fd=fs.openSync(log,'wx'),startedAt=new Date().toISOString();
const code=await new Promise((resolve,reject)=>{const child=spawn(process.execPath,['--test','--test-name-pattern=a real bundle restart preserves proposals','--test-reporter=spec','--test-reporter-destination=stdout','--test-reporter=tap','--test-reporter-destination='+output,'tests/api.test.mjs'],{windowsHide:true,env:projectEnvironment(),stdio:['ignore',fd,fd]});child.once('error',reject);child.once('close',resolve);});
fs.closeSync(fd);
const receipt={success:code===0,code,startedAt,finishedAt:new Date().toISOString(),sourceCommit:freeze.sourceCommit,scope:'One exact unchanged API restart/approval test, original QA deadlines; no real model/formal state.',log,output,realModelRequests:0};
fs.writeFileSync(path.join(root,'api-restart-recheck.json'),JSON.stringify(receipt,null,2)+'\n',{flag:'wx'});
console.log(JSON.stringify(receipt));assert.equal(code,0,'Inspect original TAP and exact assertion before continuing.');
@@ -0,0 +1,16 @@
TAP version 13
# Subtest: a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume
ok 1 - a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume
---
duration_ms: 12606.2573
type: 'test'
...
1..1
# tests 1
# suites 0
# pass 1
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 12888.643
File diff suppressed because one or more lines are too long
@@ -0,0 +1,34 @@
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (15837.1979ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 15939.7392
✖ failing tests:
test at .qa\reliability-1.25.2\browser-debug.test.mjs:38:1
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (15837.1979ms)
AssertionError [ERR_ASSERTION]: 模型服务暂时无法处理请求(HTTP 500)。 The expression evaluated to a falsy value:
assert.ok(latest.content.includes('已完成'))
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/reliability-1.25.2/browser-debug.test.mjs:61:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,98 @@
import fs from 'node:fs';
import test from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fixture, launchWorkbench, until, compatibleFixture, call, completion, assertToolPairs, workspace } from '../../tests/helpers.mjs';
import { createBrowserProject, browserSteps } from '../../tests/fixtures/browser-project.mjs';
import { BrowserManager } from '../../src/core/browser/browser-manager.mjs';
import { Store } from '../../src/server/store.mjs';
test('real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
assert.equal(host.bootstrap.capabilities.browserChecks, 'sealed-static-build-and-real-edge-assertions');
assert.equal((await host.api(route + '/browser')).availability.status, 'available');
let session = await host.api(route + '/browser-plans', { steps: browserSteps, viewport: { width: 390, height: 844 } });
const plan = session.execution.browserPlans.at(-1), other = await host.api('/sessions', { projectId: f.project.id });
assert.equal(plan.build.files, 2); assert.equal(session.execution.browserJobs.length, 0);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs', { planId: plan.id }), /当前工程Task|不属于/);
await host.api(route + '/browser-jobs', { planId: plan.id });
await until(async () => { session = await host.api(route); return session.execution.browserJobs.at(-1)?.finishedAt; }, 20000);
const job = session.execution.browserJobs.at(-1); assert.equal(job.status, 'passed', job.summary); assert.equal(job.cleanup.exited, true);
let text = '', offset = 0, page;
do { page = await host.api(route + '/browser-jobs/' + job.id + '/record?offset=' + offset + '&limit=1700'); text += page.content; offset += page.content.length; } while (page.truncated);
assert.equal(createHash('sha256').update(text).digest('hex'), job.resultSha256); const original = JSON.parse(text);
assert.equal(original.pages.at(-1).viewport.width, 390); assert.equal(original.pages.at(-1).viewport.scrollWidth <= 390, true);
const image = job.screenshots.at(-1), imageRoute = '/api' + route + '/browser-jobs/' + job.id + '/images/' + image.artifactId;
const response = await fetch(host.url + imageRoute, { headers: { 'X-Workbench-Token': host.bootstrap.token } });
assert.equal(response.headers.get('content-type'), 'image/png'); const bytes = Buffer.from(await response.arrayBuffer());
assert.equal(bytes.length, image.bytes); assert.equal(createHash('sha256').update(bytes).digest('hex'), image.sha256);
assert.equal((await fetch(host.url + imageRoute)).status, 403);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs/' + job.id + '/record'), /不属于/);
const duplicate = await host.api(route + '/browser-jobs', { planId: plan.id }); assert.equal(duplicate.execution.browserJobs.length, 1);
await host.close(); host = await launchWorkbench(t, f.data);
assert.deepEqual((await host.api(route)).execution.browserJobs.at(-1), job);
assert.equal((await host.api(route + '/browser-jobs/' + job.id + '/record?limit=1700')).content, text.slice(0, 1700));
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
test('self harness browser tools require approval and feed verified actual page fields back to the original Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let phase = 0;
const model = await compatibleFixture(t, (url, input) => {
if (!input?.messages) return { data: [{ id: 'browser-protocol-fixture' }] };
assert.ok(input.tools.some(tool => tool.function.name === 'run_browser'));
const last = input.messages.filter(value => value.role === 'tool').at(-1);
const latest = last ? JSON.parse(last.content) : null;
fs.appendFileSync('.qa/reliability-1.25.2/browser-debug.jsonl', JSON.stringify({phase,latest,input}) + '\n');
if (phase++ === 0) return completion([call('browser-fixture-plan', 'plan_browser', { steps: browserSteps })]);
if (phase === 2) return completion([call('browser-fixture-run', 'run_browser', { plan_id: latest.id })]);
if (phase === 3) { assert.equal(latest.browser_status, 'passed'); assert.equal(latest.evidence_verified, true); return completion([call('browser-fixture-read', 'read_browser_result', { browser_job_id: latest.browser_job_id, section: 'page', limit: 6000 })]); }
assert.ok(latest.content.includes('已完成')); return completion([], '已核对当前Task实际页面和原断言。');
});
const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
await host.api('/config', { mode: 'compatible', baseUrl: model.baseUrl, model: 'browser-protocol-fixture', apiKey: 'SYNTHETIC-BROWSER-QA-ONLY' });
await host.api(route + '/messages', { content: '请验证当前工程的填写、选择和状态切换,读取真实页面结果。' });
let session;
await until(async () => { session = await host.api(route); return session.status === 'awaiting_approval'; }, 15000);
const taskId = session.execution.task.id, approval = session.approvals.at(-1);
assert.ok(approval.browserPlanId); assert.equal(approval.checkPlanId, undefined); assert.equal(session.execution.browserJobs.length, 0);
assert.equal(approval.browserSummary.steps.length, browserSteps.length);
await host.api(route + '/approvals/' + approval.id, { allow: true });
await until(async () => { session = await host.api(route); return ['completed', 'failed', 'paused'].includes(session.status); }, 25000);
assert.equal(session.status, 'completed', session.failure?.message); assert.equal(session.execution.task.id, taskId);
assert.equal(session.execution.browserJobs.at(-1).status, 'passed'); assert.equal(session.execution.browserJobs.at(-1).taskId, taskId);
assert.equal(session.events.filter(value => value.kind === 'tool' && value.phase === 'completed').length, 3);
assertToolPairs((await host.api(route + '/export')).session.providerMessages);
});
test('browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement', async t => {
const f = createBrowserProject(fixture(t)), manager = new BrowserManager(f.store, { appDirectory: workspace });
const plan = await manager.plan(f.session, { steps: browserSteps }), now = new Date().toISOString();
const job = { id: '42424242-4242-4242-4242-424242424242', sessionId: f.session.id, projectId: f.project.id, taskId: f.session.taskId, runId: f.session.runId,
planId: plan.id, planFingerprint: plan.fingerprint, sourceFingerprint: plan.sourceFingerprint, buildSha256: plan.build.sha256,
status: 'running', browserDispatched: true, requiresVerification: false, startedAt: now, finishedAt: null, steps: [{ index: 0, status: 'passed', actual: 'before host exit' }], screenshots: [] };
f.store.putRecord('browser_job', f.session, job, 'browser.test_crash'); f.store.close();
const reopened = new Store(f.data); f.onCleanup(() => reopened.close()); const session = reopened.session(f.session.id), restored = reopened.core.browser_job.get(job.id);
assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, true); assert.equal(restored.steps[0].actual, 'before host exit');
const next = new BrowserManager(reopened, { appDirectory: workspace }); f.onCleanup(() => next.stopAll());
const newPlan = await next.plan(session, { steps: browserSteps }); assert.throws(() => next.start(session, newPlan.id), /原记录/);
assert.throws(() => next.acknowledge(session, restored.id, '0'.repeat(64)), /已经变化/);
next.acknowledge(session, restored.id, restored.planFingerprint); assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, false);
const actual = await next.start(session, newPlan.id).promise; assert.equal(actual.status, 'passed', actual.summary); assert.equal(restored.status, 'unknown');
});
test('late HTTP stop of a finished browser job cannot interrupt a later job in the same Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
const planned = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_count', selector: 'button', count: 1 }] });
await host.api(route + '/browser-jobs', { planId: planned.execution.browserPlans.at(-1).id }); let first;
await until(async () => { first = (await host.api(route)).execution.browserJobs.at(-1); return !!first.finishedAt; }, 20000); assert.equal(first.status, 'passed');
const next = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_visible', selector: '#state' }, { action: 'assert_count', selector: '.not-present', count: 1 }] });
const started = await host.api(route + '/browser-jobs', { planId: next.execution.browserPlans.at(-1).id }), jobId = started.execution.browserJobs.at(-1).id;
await until(async () => (await host.api(route)).execution.browserJobs.at(-1).steps.length === 1, 15000);
const late = await host.api(route + '/browser-jobs/' + first.id + '/stop', {});
assert.notEqual(late.execution.browserJobs.at(-1).status, 'interrupted', 'Stale stop affected a later job.');
assert.equal(late.execution.browserJobs[0].status, 'passed');
await host.api(route + '/browser-jobs/' + jobId + '/stop', {});
const finished = (await host.api(route)).execution.browserJobs.at(-1);
assert.equal(finished.status, 'interrupted'); assert.equal(finished.cleanup.exited, true);
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
@@ -0,0 +1,17 @@
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (0.9831ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (5835.4233ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.3235ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.4254ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (9.6649ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.425ms)
✔ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (7563.3468ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (8798.8667ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (6124.2034ms)
ℹ tests 9
ℹ suites 0
ℹ pass 9
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 28532.6858
@@ -0,0 +1,12 @@
✔ real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart (7561.5393ms)
✔ self harness browser tools require approval and feed verified actual page fields back to the original Task (14139.029ms)
✔ browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement (4740.7617ms)
✔ late HTTP stop of a finished browser job cannot interrupt a later job in the same Task (8641.3541ms)
ℹ tests 4
ℹ suites 0
ℹ pass 4
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 35287.8446
@@ -0,0 +1,104 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fixture, launchWorkbench as launchSourceWorkbench, until, compatibleFixture, call, completion, assertToolPairs, workspace } from '../../tests/helpers.mjs';
import { createBrowserProject, browserSteps } from '../../tests/fixtures/browser-project.mjs';
import { BrowserManager } from '../../src/core/browser/browser-manager.mjs';
import { Store } from '../../src/server/store.mjs';
import { requestMetrics } from '../../src/shared/contracts/model-request.mjs';
test('real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
assert.equal(host.bootstrap.capabilities.browserChecks, 'sealed-static-build-and-real-edge-assertions');
assert.equal((await host.api(route + '/browser')).availability.status, 'available');
let session = await host.api(route + '/browser-plans', { steps: browserSteps, viewport: { width: 390, height: 844 } });
const plan = session.execution.browserPlans.at(-1), other = await host.api('/sessions', { projectId: f.project.id });
assert.equal(plan.build.files, 2); assert.equal(session.execution.browserJobs.length, 0);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs', { planId: plan.id }), /当前工程Task|不属于/);
await host.api(route + '/browser-jobs', { planId: plan.id });
await until(async () => { session = await host.api(route); return session.execution.browserJobs.at(-1)?.finishedAt; }, 20000);
const job = session.execution.browserJobs.at(-1); assert.equal(job.status, 'passed', job.summary); assert.equal(job.cleanup.exited, true);
let text = '', offset = 0, page;
do { page = await host.api(route + '/browser-jobs/' + job.id + '/record?offset=' + offset + '&limit=1700'); text += page.content; offset += page.content.length; } while (page.truncated);
assert.equal(createHash('sha256').update(text).digest('hex'), job.resultSha256); const original = JSON.parse(text);
assert.equal(original.pages.at(-1).viewport.width, 390); assert.equal(original.pages.at(-1).viewport.scrollWidth <= 390, true);
const image = job.screenshots.at(-1), imageRoute = '/api' + route + '/browser-jobs/' + job.id + '/images/' + image.artifactId;
const response = await fetch(host.url + imageRoute, { headers: { 'X-Workbench-Token': host.bootstrap.token } });
assert.equal(response.headers.get('content-type'), 'image/png'); const bytes = Buffer.from(await response.arrayBuffer());
assert.equal(bytes.length, image.bytes); assert.equal(createHash('sha256').update(bytes).digest('hex'), image.sha256);
assert.equal((await fetch(host.url + imageRoute)).status, 403);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs/' + job.id + '/record'), /不属于/);
const duplicate = await host.api(route + '/browser-jobs', { planId: plan.id }); assert.equal(duplicate.execution.browserJobs.length, 1);
await host.close(); host = await launchWorkbench(t, f.data);
assert.deepEqual((await host.api(route)).execution.browserJobs.at(-1), job);
assert.equal((await host.api(route + '/browser-jobs/' + job.id + '/record?limit=1700')).content, text.slice(0, 1700));
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
test('self harness browser tools require approval and feed verified actual page fields back to the original Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let phase = 0;
const model = await compatibleFixture(t, (url, input) => {
if (!input?.messages) return { data: [{ id: 'browser-protocol-fixture' }] };
assert.ok(requestMetrics(input).estimatedInputTokens <= 12352, 'The complete actual request must fit the fixed 16K/2048/1600 budget.');
assert.ok(input.tools.some(tool => tool.function.name === 'run_browser'));
const last = input.messages.filter(value => value.role === 'tool').at(-1);
const latest = last ? JSON.parse(last.content) : null;
if (phase++ === 0) return completion([call('browser-fixture-plan', 'plan_browser', { steps: browserSteps })]);
if (phase === 2) return completion([call('browser-fixture-run', 'run_browser', { plan_id: latest.id })]);
if (phase === 3) { assert.equal(latest.browser_status, 'passed'); assert.equal(latest.evidence_verified, true); return completion([call('browser-fixture-read', 'read_browser_result', { browser_job_id: latest.browser_job_id, section: 'page', limit: 6000 })]); }
assert.equal(latest.evidence_verified, true); assert.equal(latest.truncated, false, 'This small original page must fit without repeated ten-character reads.');
const page = JSON.parse(latest.content);
assert.ok(page.text.includes('已完成')); assert.equal(page.controls.find(control => control.id === 'query').value, '真实输入');
return completion([], '已核对当前Task实际页面和原断言。');
});
const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
await host.api('/config', { mode: 'compatible', baseUrl: model.baseUrl, model: 'browser-protocol-fixture', apiKey: 'SYNTHETIC-BROWSER-QA-ONLY', contextLimit: 16000, maxOutputTokens: 2048 });
await host.api(route + '/messages', { content: '请验证当前工程的填写、选择和状态切换,读取真实页面结果。' });
let session;
await until(async () => { session = await host.api(route); return session.status === 'awaiting_approval'; }, 15000);
const taskId = session.execution.task.id, approval = session.approvals.at(-1);
assert.ok(approval.browserPlanId); assert.equal(approval.checkPlanId, undefined); assert.equal(session.execution.browserJobs.length, 0);
assert.equal(approval.browserSummary.steps.length, browserSteps.length);
await host.api(route + '/approvals/' + approval.id, { allow: true });
await until(async () => { session = await host.api(route); return ['completed', 'failed', 'paused'].includes(session.status); }, 25000);
assert.equal(session.status, 'completed', session.failure?.message); assert.equal(session.execution.task.id, taskId);
assert.equal(session.execution.browserJobs.at(-1).status, 'passed'); assert.equal(session.execution.browserJobs.at(-1).taskId, taskId);
assert.equal(session.events.filter(value => value.kind === 'tool' && value.phase === 'completed').length, 3);
assert.equal(model.requests.filter(value => value.input?.messages).length, 4, 'No synthetic HTTP failure/retry or extra read is needed.');
assertToolPairs((await host.api(route + '/export')).session.providerMessages);
});
test('browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement', async t => {
const f = createBrowserProject(fixture(t)), manager = new BrowserManager(f.store, { appDirectory: workspace });
const plan = await manager.plan(f.session, { steps: browserSteps }), now = new Date().toISOString();
const job = { id: '42424242-4242-4242-4242-424242424242', sessionId: f.session.id, projectId: f.project.id, taskId: f.session.taskId, runId: f.session.runId,
planId: plan.id, planFingerprint: plan.fingerprint, sourceFingerprint: plan.sourceFingerprint, buildSha256: plan.build.sha256,
status: 'running', browserDispatched: true, requiresVerification: false, startedAt: now, finishedAt: null, steps: [{ index: 0, status: 'passed', actual: 'before host exit' }], screenshots: [] };
f.store.putRecord('browser_job', f.session, job, 'browser.test_crash'); f.store.close();
const reopened = new Store(f.data); f.onCleanup(() => reopened.close()); const session = reopened.session(f.session.id), restored = reopened.core.browser_job.get(job.id);
assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, true); assert.equal(restored.steps[0].actual, 'before host exit');
const next = new BrowserManager(reopened, { appDirectory: workspace }); f.onCleanup(() => next.stopAll());
const newPlan = await next.plan(session, { steps: browserSteps }); assert.throws(() => next.start(session, newPlan.id), /原记录/);
assert.throws(() => next.acknowledge(session, restored.id, '0'.repeat(64)), /已经变化/);
next.acknowledge(session, restored.id, restored.planFingerprint); assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, false);
const actual = await next.start(session, newPlan.id).promise; assert.equal(actual.status, 'passed', actual.summary); assert.equal(restored.status, 'unknown');
});
test('late HTTP stop of a finished browser job cannot interrupt a later job in the same Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
const planned = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_count', selector: 'button', count: 1 }] });
await host.api(route + '/browser-jobs', { planId: planned.execution.browserPlans.at(-1).id }); let first;
await until(async () => { first = (await host.api(route)).execution.browserJobs.at(-1); return !!first.finishedAt; }, 20000); assert.equal(first.status, 'passed');
const next = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_visible', selector: '#state' }, { action: 'assert_count', selector: '.not-present', count: 1 }] });
const started = await host.api(route + '/browser-jobs', { planId: next.execution.browserPlans.at(-1).id }), jobId = started.execution.browserJobs.at(-1).id;
await until(async () => (await host.api(route)).execution.browserJobs.at(-1).steps.length === 1, 15000);
const late = await host.api(route + '/browser-jobs/' + first.id + '/stop', {});
assert.notEqual(late.execution.browserJobs.at(-1).status, 'interrupted', 'Stale stop affected a later job.');
assert.equal(late.execution.browserJobs[0].status, 'passed');
await host.api(route + '/browser-jobs/' + jobId + '/stop', {});
const finished = (await host.api(route)).execution.browserJobs.at(-1);
assert.equal(finished.status, 'interrupted'); assert.equal(finished.cleanup.exited, true);
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
const launchWorkbench = (t, data, env = {}, options = {}) => launchSourceWorkbench(t, data, env, { ...options, appRoot: "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\browser-growth-source-build" });
@@ -0,0 +1,39 @@
Downloading Chrome for Testing 156.0.8078.4 (playwright chromium v1248) from https://cdn.playwright.dev/builds/cft/156.0.8078.4/win64/chrome-win64.zip
| | 0% of 197.5 MiB
|■■■■■■■■ | 10% of 197.5 MiB
|■■■■■■■■■■■■■■■■ | 20% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 197.5 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 197.5 MiB
Chrome for Testing 156.0.8078.4 (playwright chromium v1248) downloaded to C:\Users\wangy\AppData\Local\ms-playwright\chromium-1248
Downloading FFmpeg (playwright ffmpeg v1013) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1013/ffmpeg-win64.zip
| | 0% of 1.6 MiB
|■■■■■■■■ | 10% of 1.6 MiB
|■■■■■■■■■■■■■■■■ | 20% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 1.6 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 1.6 MiB
FFmpeg (playwright ffmpeg v1013) downloaded to C:\Users\wangy\AppData\Local\ms-playwright\ffmpeg-1013
Downloading Chrome Headless Shell 156.0.8078.4 (playwright chromium-headless-shell v1248) from https://cdn.playwright.dev/builds/cft/156.0.8078.4/win64/chrome-headless-shell-win64.zip
| | 0% of 118.1 MiB
|■■■■■■■■ | 10% of 118.1 MiB
|■■■■■■■■■■■■■■■■ | 20% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 118.1 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 118.1 MiB
Chrome Headless Shell 156.0.8078.4 (playwright chromium-headless-shell v1248) downloaded to C:\Users\wangy\AppData\Local\ms-playwright\chromium_headless_shell-1248
File diff suppressed because one or more lines are too long
@@ -0,0 +1,34 @@
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (20576.6608ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 20796.0169
✖ failing tests:
test at .qa\reliability-1.25.2\browser-old-debug.test.mjs:38:1
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (20576.6608ms)
AssertionError [ERR_ASSERTION]: 模型服务暂时无法处理请求(HTTP 500)。 The expression evaluated to a falsy value:
assert.ok(latest.content.includes('已完成'))
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/reliability-1.25.2/browser-old-debug.test.mjs:61:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,98 @@
import fs from 'node:fs';
import test from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fixture, launchWorkbench, until, compatibleFixture, call, completion, assertToolPairs, workspace } from '../../tests/helpers.mjs';
import { createBrowserProject, browserSteps } from '../../tests/fixtures/browser-project.mjs';
import { BrowserManager } from '../../src/core/browser/browser-manager.mjs';
import { Store } from '../../src/server/store.mjs';
test('real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
assert.equal(host.bootstrap.capabilities.browserChecks, 'sealed-static-build-and-real-edge-assertions');
assert.equal((await host.api(route + '/browser')).availability.status, 'available');
let session = await host.api(route + '/browser-plans', { steps: browserSteps, viewport: { width: 390, height: 844 } });
const plan = session.execution.browserPlans.at(-1), other = await host.api('/sessions', { projectId: f.project.id });
assert.equal(plan.build.files, 2); assert.equal(session.execution.browserJobs.length, 0);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs', { planId: plan.id }), /当前工程Task|不属于/);
await host.api(route + '/browser-jobs', { planId: plan.id });
await until(async () => { session = await host.api(route); return session.execution.browserJobs.at(-1)?.finishedAt; }, 20000);
const job = session.execution.browserJobs.at(-1); assert.equal(job.status, 'passed', job.summary); assert.equal(job.cleanup.exited, true);
let text = '', offset = 0, page;
do { page = await host.api(route + '/browser-jobs/' + job.id + '/record?offset=' + offset + '&limit=1700'); text += page.content; offset += page.content.length; } while (page.truncated);
assert.equal(createHash('sha256').update(text).digest('hex'), job.resultSha256); const original = JSON.parse(text);
assert.equal(original.pages.at(-1).viewport.width, 390); assert.equal(original.pages.at(-1).viewport.scrollWidth <= 390, true);
const image = job.screenshots.at(-1), imageRoute = '/api' + route + '/browser-jobs/' + job.id + '/images/' + image.artifactId;
const response = await fetch(host.url + imageRoute, { headers: { 'X-Workbench-Token': host.bootstrap.token } });
assert.equal(response.headers.get('content-type'), 'image/png'); const bytes = Buffer.from(await response.arrayBuffer());
assert.equal(bytes.length, image.bytes); assert.equal(createHash('sha256').update(bytes).digest('hex'), image.sha256);
assert.equal((await fetch(host.url + imageRoute)).status, 403);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs/' + job.id + '/record'), /不属于/);
const duplicate = await host.api(route + '/browser-jobs', { planId: plan.id }); assert.equal(duplicate.execution.browserJobs.length, 1);
await host.close(); host = await launchWorkbench(t, f.data);
assert.deepEqual((await host.api(route)).execution.browserJobs.at(-1), job);
assert.equal((await host.api(route + '/browser-jobs/' + job.id + '/record?limit=1700')).content, text.slice(0, 1700));
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
test('self harness browser tools require approval and feed verified actual page fields back to the original Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let phase = 0;
const model = await compatibleFixture(t, (url, input) => {
if (!input?.messages) return { data: [{ id: 'browser-protocol-fixture' }] };
assert.ok(input.tools.some(tool => tool.function.name === 'run_browser'));
const last = input.messages.filter(value => value.role === 'tool').at(-1);
const latest = last ? JSON.parse(last.content) : null;
fs.appendFileSync('.qa/reliability-1.25.2/browser-old-debug.jsonl', JSON.stringify({phase,latest,input}) + '\n');
if (phase++ === 0) return completion([call('browser-fixture-plan', 'plan_browser', { steps: browserSteps })]);
if (phase === 2) return completion([call('browser-fixture-run', 'run_browser', { plan_id: latest.id })]);
if (phase === 3) { assert.equal(latest.browser_status, 'passed'); assert.equal(latest.evidence_verified, true); return completion([call('browser-fixture-read', 'read_browser_result', { browser_job_id: latest.browser_job_id, section: 'page', limit: 6000 })]); }
assert.ok(latest.content.includes('已完成')); return completion([], '已核对当前Task实际页面和原断言。');
});
const host = await launchWorkbench(t, f.data, {}, { appRoot: "D:/Ai-project/REA\u9006\u5411/Agent-Workbench/releases/Agent-Workbench-1.25.1-win-x64-20261104103902806" }), route = '/sessions/' + f.session.id;
await host.api('/config', { mode: 'compatible', baseUrl: model.baseUrl, model: 'browser-protocol-fixture', apiKey: 'SYNTHETIC-BROWSER-QA-ONLY' });
await host.api(route + '/messages', { content: '请验证当前工程的填写、选择和状态切换,读取真实页面结果。' });
let session;
await until(async () => { session = await host.api(route); return session.status === 'awaiting_approval'; }, 15000);
const taskId = session.execution.task.id, approval = session.approvals.at(-1);
assert.ok(approval.browserPlanId); assert.equal(approval.checkPlanId, undefined); assert.equal(session.execution.browserJobs.length, 0);
assert.equal(approval.browserSummary.steps.length, browserSteps.length);
await host.api(route + '/approvals/' + approval.id, { allow: true });
await until(async () => { session = await host.api(route); return ['completed', 'failed', 'paused'].includes(session.status); }, 25000);
assert.equal(session.status, 'completed', session.failure?.message); assert.equal(session.execution.task.id, taskId);
assert.equal(session.execution.browserJobs.at(-1).status, 'passed'); assert.equal(session.execution.browserJobs.at(-1).taskId, taskId);
assert.equal(session.events.filter(value => value.kind === 'tool' && value.phase === 'completed').length, 3);
assertToolPairs((await host.api(route + '/export')).session.providerMessages);
});
test('browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement', async t => {
const f = createBrowserProject(fixture(t)), manager = new BrowserManager(f.store, { appDirectory: workspace });
const plan = await manager.plan(f.session, { steps: browserSteps }), now = new Date().toISOString();
const job = { id: '42424242-4242-4242-4242-424242424242', sessionId: f.session.id, projectId: f.project.id, taskId: f.session.taskId, runId: f.session.runId,
planId: plan.id, planFingerprint: plan.fingerprint, sourceFingerprint: plan.sourceFingerprint, buildSha256: plan.build.sha256,
status: 'running', browserDispatched: true, requiresVerification: false, startedAt: now, finishedAt: null, steps: [{ index: 0, status: 'passed', actual: 'before host exit' }], screenshots: [] };
f.store.putRecord('browser_job', f.session, job, 'browser.test_crash'); f.store.close();
const reopened = new Store(f.data); f.onCleanup(() => reopened.close()); const session = reopened.session(f.session.id), restored = reopened.core.browser_job.get(job.id);
assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, true); assert.equal(restored.steps[0].actual, 'before host exit');
const next = new BrowserManager(reopened, { appDirectory: workspace }); f.onCleanup(() => next.stopAll());
const newPlan = await next.plan(session, { steps: browserSteps }); assert.throws(() => next.start(session, newPlan.id), /原记录/);
assert.throws(() => next.acknowledge(session, restored.id, '0'.repeat(64)), /已经变化/);
next.acknowledge(session, restored.id, restored.planFingerprint); assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, false);
const actual = await next.start(session, newPlan.id).promise; assert.equal(actual.status, 'passed', actual.summary); assert.equal(restored.status, 'unknown');
});
test('late HTTP stop of a finished browser job cannot interrupt a later job in the same Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
const planned = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_count', selector: 'button', count: 1 }] });
await host.api(route + '/browser-jobs', { planId: planned.execution.browserPlans.at(-1).id }); let first;
await until(async () => { first = (await host.api(route)).execution.browserJobs.at(-1); return !!first.finishedAt; }, 20000); assert.equal(first.status, 'passed');
const next = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_visible', selector: '#state' }, { action: 'assert_count', selector: '.not-present', count: 1 }] });
const started = await host.api(route + '/browser-jobs', { planId: next.execution.browserPlans.at(-1).id }), jobId = started.execution.browserJobs.at(-1).id;
await until(async () => (await host.api(route)).execution.browserJobs.at(-1).steps.length === 1, 15000);
const late = await host.api(route + '/browser-jobs/' + first.id + '/stop', {});
assert.notEqual(late.execution.browserJobs.at(-1).status, 'interrupted', 'Stale stop affected a later job.');
assert.equal(late.execution.browserJobs[0].status, 'passed');
await host.api(route + '/browser-jobs/' + jobId + '/stop', {});
const finished = (await host.api(route)).execution.browserJobs.at(-1);
assert.equal(finished.status, 'interrupted'); assert.equal(finished.cleanup.exited, true);
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
@@ -0,0 +1,83 @@
{
"original1251": {
"requests": 6,
"inputs": [
8204,
9339,
10470,
11344,
11344,
11344
],
"pages": [
{
"returned": 10,
"total": 1419,
"truncated": true,
"maximumMessageBytes": 478
},
{
"returned": 10,
"total": 1419,
"truncated": true,
"maximumMessageBytes": 478
},
{
"returned": 10,
"total": 1419,
"truncated": true,
"maximumMessageBytes": 478
}
]
},
"current1252BeforeFix": {
"requests": 6,
"inputs": [
8204,
9339,
10470,
11344,
11344,
11344
],
"pages": [
{
"returned": 10,
"total": 1419,
"truncated": true,
"maximumMessageBytes": 478
},
{
"returned": 10,
"total": 1419,
"truncated": true,
"maximumMessageBytes": 478
},
{
"returned": 10,
"total": 1419,
"truncated": true,
"maximumMessageBytes": 478
}
]
},
"isolatedHypothesis": {
"requests": 4,
"inputs": [
8204,
9339,
10470,
12105
],
"pages": [
{
"returned": 1419,
"total": 1419,
"truncated": false,
"maximumMessageBytes": 6622
}
]
},
"scope": "Synthetic HTTP, actual Edge, isolated hypothesis server. Not a shipped build or real model sample.",
"realModelRequests": 0
}
@@ -0,0 +1,20 @@
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (18508.2385ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 18623.905
✖ failing tests:
test at .qa\reliability-1.25.2\browser-paging-probe.test.mjs:38:1
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (18508.2385ms)
Error: Timed out waiting for test state.
at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/reliability-1.25.2/browser-paging-probe.test.mjs:55:3)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3)
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
✔ self harness browser tools require approval and feed verified actual page fields back to the original Task (17228.2462ms)
ℹ tests 1
ℹ suites 0
ℹ pass 1
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 17329.9698
@@ -0,0 +1,98 @@
import fs from 'node:fs';
import test from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fixture, launchWorkbench, until, compatibleFixture, call, completion, assertToolPairs, workspace } from '../../tests/helpers.mjs';
import { createBrowserProject, browserSteps } from '../../tests/fixtures/browser-project.mjs';
import { BrowserManager } from '../../src/core/browser/browser-manager.mjs';
import { Store } from '../../src/server/store.mjs';
test('real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
assert.equal(host.bootstrap.capabilities.browserChecks, 'sealed-static-build-and-real-edge-assertions');
assert.equal((await host.api(route + '/browser')).availability.status, 'available');
let session = await host.api(route + '/browser-plans', { steps: browserSteps, viewport: { width: 390, height: 844 } });
const plan = session.execution.browserPlans.at(-1), other = await host.api('/sessions', { projectId: f.project.id });
assert.equal(plan.build.files, 2); assert.equal(session.execution.browserJobs.length, 0);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs', { planId: plan.id }), /当前工程Task|不属于/);
await host.api(route + '/browser-jobs', { planId: plan.id });
await until(async () => { session = await host.api(route); return session.execution.browserJobs.at(-1)?.finishedAt; }, 20000);
const job = session.execution.browserJobs.at(-1); assert.equal(job.status, 'passed', job.summary); assert.equal(job.cleanup.exited, true);
let text = '', offset = 0, page;
do { page = await host.api(route + '/browser-jobs/' + job.id + '/record?offset=' + offset + '&limit=1700'); text += page.content; offset += page.content.length; } while (page.truncated);
assert.equal(createHash('sha256').update(text).digest('hex'), job.resultSha256); const original = JSON.parse(text);
assert.equal(original.pages.at(-1).viewport.width, 390); assert.equal(original.pages.at(-1).viewport.scrollWidth <= 390, true);
const image = job.screenshots.at(-1), imageRoute = '/api' + route + '/browser-jobs/' + job.id + '/images/' + image.artifactId;
const response = await fetch(host.url + imageRoute, { headers: { 'X-Workbench-Token': host.bootstrap.token } });
assert.equal(response.headers.get('content-type'), 'image/png'); const bytes = Buffer.from(await response.arrayBuffer());
assert.equal(bytes.length, image.bytes); assert.equal(createHash('sha256').update(bytes).digest('hex'), image.sha256);
assert.equal((await fetch(host.url + imageRoute)).status, 403);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs/' + job.id + '/record'), /不属于/);
const duplicate = await host.api(route + '/browser-jobs', { planId: plan.id }); assert.equal(duplicate.execution.browserJobs.length, 1);
await host.close(); host = await launchWorkbench(t, f.data);
assert.deepEqual((await host.api(route)).execution.browserJobs.at(-1), job);
assert.equal((await host.api(route + '/browser-jobs/' + job.id + '/record?limit=1700')).content, text.slice(0, 1700));
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
test('self harness browser tools require approval and feed verified actual page fields back to the original Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let phase = 0;
const model = await compatibleFixture(t, (url, input) => {
if (!input?.messages) return { data: [{ id: 'browser-protocol-fixture' }] };
assert.ok(input.tools.some(tool => tool.function.name === 'run_browser'));
const last = input.messages.filter(value => value.role === 'tool').at(-1);
const latest = last ? JSON.parse(last.content) : null;
fs.appendFileSync('.qa/reliability-1.25.2/browser-paging-probe-runtime.jsonl', JSON.stringify({phase,latest,input}) + '\n');
if (phase++ === 0) return completion([call('browser-fixture-plan', 'plan_browser', { steps: browserSteps })]);
if (phase === 2) return completion([call('browser-fixture-run', 'run_browser', { plan_id: latest.id })]);
if (phase === 3) { assert.equal(latest.browser_status, 'passed'); assert.equal(latest.evidence_verified, true); return completion([call('browser-fixture-read', 'read_browser_result', { browser_job_id: latest.browser_job_id, section: 'page', limit: 6000 })]); }
assert.ok(latest.content.includes('已完成')); return completion([], '已核对当前Task实际页面和原断言。');
});
const host = await launchWorkbench(t, f.data, {}, { appRoot: "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\browser-paging-probe" }), route = '/sessions/' + f.session.id;
await host.api('/config', { mode: 'compatible', baseUrl: model.baseUrl, model: 'browser-protocol-fixture', apiKey: 'SYNTHETIC-BROWSER-QA-ONLY' });
await host.api(route + '/messages', { content: '请验证当前工程的填写、选择和状态切换,读取真实页面结果。' });
let session;
await until(async () => { session = await host.api(route); return session.status === 'awaiting_approval'; }, 15000);
const taskId = session.execution.task.id, approval = session.approvals.at(-1);
assert.ok(approval.browserPlanId); assert.equal(approval.checkPlanId, undefined); assert.equal(session.execution.browserJobs.length, 0);
assert.equal(approval.browserSummary.steps.length, browserSteps.length);
await host.api(route + '/approvals/' + approval.id, { allow: true });
await until(async () => { session = await host.api(route); return ['completed', 'failed', 'paused'].includes(session.status); }, 25000);
assert.equal(session.status, 'completed', session.failure?.message); assert.equal(session.execution.task.id, taskId);
assert.equal(session.execution.browserJobs.at(-1).status, 'passed'); assert.equal(session.execution.browserJobs.at(-1).taskId, taskId);
assert.equal(session.events.filter(value => value.kind === 'tool' && value.phase === 'completed').length, 3);
assertToolPairs((await host.api(route + '/export')).session.providerMessages);
});
test('browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement', async t => {
const f = createBrowserProject(fixture(t)), manager = new BrowserManager(f.store, { appDirectory: workspace });
const plan = await manager.plan(f.session, { steps: browserSteps }), now = new Date().toISOString();
const job = { id: '42424242-4242-4242-4242-424242424242', sessionId: f.session.id, projectId: f.project.id, taskId: f.session.taskId, runId: f.session.runId,
planId: plan.id, planFingerprint: plan.fingerprint, sourceFingerprint: plan.sourceFingerprint, buildSha256: plan.build.sha256,
status: 'running', browserDispatched: true, requiresVerification: false, startedAt: now, finishedAt: null, steps: [{ index: 0, status: 'passed', actual: 'before host exit' }], screenshots: [] };
f.store.putRecord('browser_job', f.session, job, 'browser.test_crash'); f.store.close();
const reopened = new Store(f.data); f.onCleanup(() => reopened.close()); const session = reopened.session(f.session.id), restored = reopened.core.browser_job.get(job.id);
assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, true); assert.equal(restored.steps[0].actual, 'before host exit');
const next = new BrowserManager(reopened, { appDirectory: workspace }); f.onCleanup(() => next.stopAll());
const newPlan = await next.plan(session, { steps: browserSteps }); assert.throws(() => next.start(session, newPlan.id), /原记录/);
assert.throws(() => next.acknowledge(session, restored.id, '0'.repeat(64)), /已经变化/);
next.acknowledge(session, restored.id, restored.planFingerprint); assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, false);
const actual = await next.start(session, newPlan.id).promise; assert.equal(actual.status, 'passed', actual.summary); assert.equal(restored.status, 'unknown');
});
test('late HTTP stop of a finished browser job cannot interrupt a later job in the same Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
const planned = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_count', selector: 'button', count: 1 }] });
await host.api(route + '/browser-jobs', { planId: planned.execution.browserPlans.at(-1).id }); let first;
await until(async () => { first = (await host.api(route)).execution.browserJobs.at(-1); return !!first.finishedAt; }, 20000); assert.equal(first.status, 'passed');
const next = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_visible', selector: '#state' }, { action: 'assert_count', selector: '.not-present', count: 1 }] });
const started = await host.api(route + '/browser-jobs', { planId: next.execution.browserPlans.at(-1).id }), jobId = started.execution.browserJobs.at(-1).id;
await until(async () => (await host.api(route)).execution.browserJobs.at(-1).steps.length === 1, 15000);
const late = await host.api(route + '/browser-jobs/' + first.id + '/stop', {});
assert.notEqual(late.execution.browserJobs.at(-1).status, 'interrupted', 'Stale stop affected a later job.');
assert.equal(late.execution.browserJobs[0].status, 'passed');
await host.api(route + '/browser-jobs/' + jobId + '/stop', {});
const finished = (await host.api(route)).execution.browserJobs.at(-1);
assert.equal(finished.status, 'interrupted'); assert.equal(finished.cleanup.exited, true);
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
File diff suppressed because one or more lines are too long
@@ -0,0 +1,24 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { build } from 'esbuild';
// An explicitly modified isolated hypothesis build. Never a release receipt.
const root = path.resolve('.qa/reliability-1.25.2/browser-paging-probe');
fs.mkdirSync(root);
for (const folder of ['src', 'dist-client', 'public', 'examples']) fs.cpSync(folder, path.join(root, folder), { recursive: true });
fs.copyFileSync('package.json', path.join(root, 'package.json'));
const file = path.join(root, 'src/core/context/read-budget.mjs');
const original = fs.readFileSync(file, 'utf8');
const before = "plan.readBudgetPolicyVersion === 3 && pooledReads(message.tool_calls)";
assert.equal(original.split(before).length, 3);
const updated = original.replace(before, "plan.readBudgetPolicyVersion === 3 && (pooledReads(message.tool_calls) || message.tool_calls.every(call => call.function.name === 'read_browser_result'))");
fs.writeFileSync(file, updated);
await build({ entryPoints: [path.join(root, 'src/server/index.mjs')], outfile: path.join(root, 'dist-server/server.mjs'), bundle: true,
platform: 'node', target: 'node24', format: 'esm', sourcemap: false, legalComments: 'eof',
banner: { js: "import { createRequire as __awbCreateRequire } from 'node:module'; const require = __awbCreateRequire(import.meta.url);" } });
let test = fs.readFileSync('.qa/reliability-1.25.2/browser-debug.test.mjs', 'utf8');
test = test.replace('browser-debug.jsonl', 'browser-paging-probe.jsonl');
test = test.replace('const host = await launchWorkbench(t, f.data), route', 'const host = await launchWorkbench(t, f.data, {}, { appRoot: ' + JSON.stringify(root) + ' }), route');
fs.writeFileSync('.qa/reliability-1.25.2/browser-paging-probe.test.mjs', test, { flag: 'wx' });
console.log(root);
@@ -0,0 +1,27 @@
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (3067.9925ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3168.8497
✖ failing tests:
test at .qa\reliability-1.25.2\browser-paging-probe.test.mjs:38:1
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (3067.9925ms)
AssertionError [ERR_ASSERTION]: Workbench launch failed: Workbench registration failed: 本机状态文件不存在。
at launchWorkbench (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:94:10)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/reliability-1.25.2/browser-paging-probe.test.mjs:51:16)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: '',
expected: true,
operator: '==',
diff: 'simple'
}
@@ -0,0 +1,98 @@
import fs from 'node:fs';
import test from 'node:test';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fixture, launchWorkbench, until, compatibleFixture, call, completion, assertToolPairs, workspace } from '../../tests/helpers.mjs';
import { createBrowserProject, browserSteps } from '../../tests/fixtures/browser-project.mjs';
import { BrowserManager } from '../../src/core/browser/browser-manager.mjs';
import { Store } from '../../src/server/store.mjs';
test('real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
assert.equal(host.bootstrap.capabilities.browserChecks, 'sealed-static-build-and-real-edge-assertions');
assert.equal((await host.api(route + '/browser')).availability.status, 'available');
let session = await host.api(route + '/browser-plans', { steps: browserSteps, viewport: { width: 390, height: 844 } });
const plan = session.execution.browserPlans.at(-1), other = await host.api('/sessions', { projectId: f.project.id });
assert.equal(plan.build.files, 2); assert.equal(session.execution.browserJobs.length, 0);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs', { planId: plan.id }), /当前工程Task|不属于/);
await host.api(route + '/browser-jobs', { planId: plan.id });
await until(async () => { session = await host.api(route); return session.execution.browserJobs.at(-1)?.finishedAt; }, 20000);
const job = session.execution.browserJobs.at(-1); assert.equal(job.status, 'passed', job.summary); assert.equal(job.cleanup.exited, true);
let text = '', offset = 0, page;
do { page = await host.api(route + '/browser-jobs/' + job.id + '/record?offset=' + offset + '&limit=1700'); text += page.content; offset += page.content.length; } while (page.truncated);
assert.equal(createHash('sha256').update(text).digest('hex'), job.resultSha256); const original = JSON.parse(text);
assert.equal(original.pages.at(-1).viewport.width, 390); assert.equal(original.pages.at(-1).viewport.scrollWidth <= 390, true);
const image = job.screenshots.at(-1), imageRoute = '/api' + route + '/browser-jobs/' + job.id + '/images/' + image.artifactId;
const response = await fetch(host.url + imageRoute, { headers: { 'X-Workbench-Token': host.bootstrap.token } });
assert.equal(response.headers.get('content-type'), 'image/png'); const bytes = Buffer.from(await response.arrayBuffer());
assert.equal(bytes.length, image.bytes); assert.equal(createHash('sha256').update(bytes).digest('hex'), image.sha256);
assert.equal((await fetch(host.url + imageRoute)).status, 403);
await assert.rejects(host.api('/sessions/' + other.id + '/browser-jobs/' + job.id + '/record'), /不属于/);
const duplicate = await host.api(route + '/browser-jobs', { planId: plan.id }); assert.equal(duplicate.execution.browserJobs.length, 1);
await host.close(); host = await launchWorkbench(t, f.data);
assert.deepEqual((await host.api(route)).execution.browserJobs.at(-1), job);
assert.equal((await host.api(route + '/browser-jobs/' + job.id + '/record?limit=1700')).content, text.slice(0, 1700));
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
test('self harness browser tools require approval and feed verified actual page fields back to the original Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); let phase = 0;
const model = await compatibleFixture(t, (url, input) => {
if (!input?.messages) return { data: [{ id: 'browser-protocol-fixture' }] };
assert.ok(input.tools.some(tool => tool.function.name === 'run_browser'));
const last = input.messages.filter(value => value.role === 'tool').at(-1);
const latest = last ? JSON.parse(last.content) : null;
fs.appendFileSync('.qa/reliability-1.25.2/browser-paging-probe.jsonl', JSON.stringify({phase,latest,input}) + '\n');
if (phase++ === 0) return completion([call('browser-fixture-plan', 'plan_browser', { steps: browserSteps })]);
if (phase === 2) return completion([call('browser-fixture-run', 'run_browser', { plan_id: latest.id })]);
if (phase === 3) { assert.equal(latest.browser_status, 'passed'); assert.equal(latest.evidence_verified, true); return completion([call('browser-fixture-read', 'read_browser_result', { browser_job_id: latest.browser_job_id, section: 'page', limit: 6000 })]); }
assert.ok(latest.content.includes('已完成')); return completion([], '已核对当前Task实际页面和原断言。');
});
const host = await launchWorkbench(t, f.data, {}, { appRoot: "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\browser-paging-probe" }), route = '/sessions/' + f.session.id;
await host.api('/config', { mode: 'compatible', baseUrl: model.baseUrl, model: 'browser-protocol-fixture', apiKey: 'SYNTHETIC-BROWSER-QA-ONLY' });
await host.api(route + '/messages', { content: '请验证当前工程的填写、选择和状态切换,读取真实页面结果。' });
let session;
await until(async () => { session = await host.api(route); return session.status === 'awaiting_approval'; }, 15000);
const taskId = session.execution.task.id, approval = session.approvals.at(-1);
assert.ok(approval.browserPlanId); assert.equal(approval.checkPlanId, undefined); assert.equal(session.execution.browserJobs.length, 0);
assert.equal(approval.browserSummary.steps.length, browserSteps.length);
await host.api(route + '/approvals/' + approval.id, { allow: true });
await until(async () => { session = await host.api(route); return ['completed', 'failed', 'paused'].includes(session.status); }, 25000);
assert.equal(session.status, 'completed', session.failure?.message); assert.equal(session.execution.task.id, taskId);
assert.equal(session.execution.browserJobs.at(-1).status, 'passed'); assert.equal(session.execution.browserJobs.at(-1).taskId, taskId);
assert.equal(session.events.filter(value => value.kind === 'tool' && value.phase === 'completed').length, 3);
assertToolPairs((await host.api(route + '/export')).session.providerMessages);
});
test('browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement', async t => {
const f = createBrowserProject(fixture(t)), manager = new BrowserManager(f.store, { appDirectory: workspace });
const plan = await manager.plan(f.session, { steps: browserSteps }), now = new Date().toISOString();
const job = { id: '42424242-4242-4242-4242-424242424242', sessionId: f.session.id, projectId: f.project.id, taskId: f.session.taskId, runId: f.session.runId,
planId: plan.id, planFingerprint: plan.fingerprint, sourceFingerprint: plan.sourceFingerprint, buildSha256: plan.build.sha256,
status: 'running', browserDispatched: true, requiresVerification: false, startedAt: now, finishedAt: null, steps: [{ index: 0, status: 'passed', actual: 'before host exit' }], screenshots: [] };
f.store.putRecord('browser_job', f.session, job, 'browser.test_crash'); f.store.close();
const reopened = new Store(f.data); f.onCleanup(() => reopened.close()); const session = reopened.session(f.session.id), restored = reopened.core.browser_job.get(job.id);
assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, true); assert.equal(restored.steps[0].actual, 'before host exit');
const next = new BrowserManager(reopened, { appDirectory: workspace }); f.onCleanup(() => next.stopAll());
const newPlan = await next.plan(session, { steps: browserSteps }); assert.throws(() => next.start(session, newPlan.id), /原记录/);
assert.throws(() => next.acknowledge(session, restored.id, '0'.repeat(64)), /已经变化/);
next.acknowledge(session, restored.id, restored.planFingerprint); assert.equal(restored.status, 'unknown'); assert.equal(restored.requiresVerification, false);
const actual = await next.start(session, newPlan.id).promise; assert.equal(actual.status, 'passed', actual.summary); assert.equal(restored.status, 'unknown');
});
test('late HTTP stop of a finished browser job cannot interrupt a later job in the same Task', async t => {
const f = createBrowserProject(fixture(t)); f.store.close(); const host = await launchWorkbench(t, f.data), route = '/sessions/' + f.session.id;
const planned = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_count', selector: 'button', count: 1 }] });
await host.api(route + '/browser-jobs', { planId: planned.execution.browserPlans.at(-1).id }); let first;
await until(async () => { first = (await host.api(route)).execution.browserJobs.at(-1); return !!first.finishedAt; }, 20000); assert.equal(first.status, 'passed');
const next = await host.api(route + '/browser-plans', { steps: [{ action: 'assert_visible', selector: '#state' }, { action: 'assert_count', selector: '.not-present', count: 1 }] });
const started = await host.api(route + '/browser-jobs', { planId: next.execution.browserPlans.at(-1).id }), jobId = started.execution.browserJobs.at(-1).id;
await until(async () => (await host.api(route)).execution.browserJobs.at(-1).steps.length === 1, 15000);
const late = await host.api(route + '/browser-jobs/' + first.id + '/stop', {});
assert.notEqual(late.execution.browserJobs.at(-1).status, 'interrupted', 'Stale stop affected a later job.');
assert.equal(late.execution.browserJobs[0].status, 'passed');
await host.api(route + '/browser-jobs/' + jobId + '/stop', {});
const finished = (await host.api(route)).execution.browserJobs.at(-1);
assert.equal(finished.status, 'interrupted'); assert.equal(finished.cleanup.exited, true);
assert.equal((await host.api(route)).execution.task.usage.requests, 0);
});
@@ -0,0 +1,34 @@
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (17620.9891ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 17725.0878
✖ failing tests:
test at tests\browser-api.test.mjs:37:1
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (17620.9891ms)
AssertionError [ERR_ASSERTION]: 模型服务暂时无法处理请求(HTTP 500)。 The expression evaluated to a falsy value:
assert.ok(latest.content.includes('已完成'))
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/browser-api.test.mjs:59:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1 @@
Server bundle built.
@@ -0,0 +1,14 @@
{
"success": true,
"before": "4a49f02daf5fab542ef4009c6849915a5a7e0cd1",
"after": "d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d",
"changes": [
{
"path": "tests/network-diagnostics.test.mjs",
"bytes": 15193,
"sha256": "18286a7d17f02b7d0553ec6b6cb28b38a87c76d7b7a38160e4086703a1ae2f4e"
}
],
"compiledExact": 22,
"productInputsUnchanged": true
}
@@ -0,0 +1,6 @@
DIAGNOSTIC START D:\Ai-project\REA逆向\Agent-Workbench\.qa\reliability-1.25.2\compiled-startup-detached
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
{"success":true,"elapsedMs":75358,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\compiled-startup-detached"}
@@ -0,0 +1,6 @@
DIAGNOSTIC START D:\Ai-project\REA逆向\Agent-Workbench\.qa\reliability-1.25.2\compiled-startup-diagnostic
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
{"success":true,"elapsedMs":68624,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\compiled-startup-diagnostic"}
@@ -0,0 +1,43 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { spawn, execFileSync } from 'node:child_process';
import { gitEnvironment } from '../../src/core/git-process.mjs';
import { verifyControlledApi } from '../../scripts/verify-controlled-release.mjs';
const mode = process.argv[2] ?? 'profile'; assert.ok(['profile','detached'].includes(mode));
const root = path.resolve('.qa/reliability-1.25.2/compiled-startup-' + (mode === 'profile' ? 'diagnostic' : mode));
assert.equal(fs.existsSync(root), false); fs.mkdirSync(root);
const candidate = JSON.parse(fs.readFileSync('releases/latest.json')).portableRoot;
const environment = gitEnvironment({ AGENT_WORKBENCH_APP_DIR: candidate, AGENT_WORKBENCH_DATA_DIR: path.join(root, 'data'), AGENT_WORKBENCH_PORT: '0' });
const git = fs.realpathSync.native(execFileSync('where.exe', ['git.exe'], { encoding:'utf8', windowsHide:true }).trim().split(/\r?\n/)[0]);
for (const name of Object.keys(environment)) if (name.toLowerCase() === 'path') delete environment[name];
environment.PATH = [path.dirname(git), 'C:/Windows', 'C:/Windows/System32', 'C:/Windows/System32/WindowsPowerShell/v1.0'].join(path.delimiter);
const outputFd=mode==='detached'?fs.openSync(path.join(root,'live-stdout.txt'),'wx'):null;
const errorFd=mode==='detached'?fs.openSync(path.join(root,'live-stderr.txt'),'wx'):null;
const started = Date.now(), child = spawn(path.join(candidate, 'runtime/node.exe'), ['--cpu-prof', '--cpu-prof-dir=' + root, path.join(candidate, 'dist-server/server.mjs')], { cwd:candidate, env:environment, windowsHide:true, detached:mode==='detached', stdio:mode==='detached'?['ignore',outputFd,errorFd]:['ignore','pipe','pipe'] });
let output='', errors='', url='', bootstrap, result;
const requests=[];
const decodeOutput=()=>{for(const line of output.split('\n')){try{const row=JSON.parse(line);if(row.ready)url=row.url;}catch{}}};
if(mode==='profile'){
child.stdout.on('data', bytes => { output+=bytes;decodeOutput(); });
child.stderr.on('data', bytes => { errors+=bytes; });
}
const readFiles=()=>{if(mode==='detached'){output=fs.readFileSync(path.join(root,'live-stdout.txt'),'utf8');errors=fs.readFileSync(path.join(root,'live-stderr.txt'),'utf8');decodeOutput();}};
const outputTimer=mode==='detached'?setInterval(readFiles,50):null;
const wait = ms => new Promise(resolve => setTimeout(resolve,ms));
async function until(predicate,limit=15000) { const deadline=Date.now()+limit; while(!predicate()) { assert.ok(Date.now()<deadline, 'Diagnostic host deadline'); await wait(50); } }
const api=async(route,input)=> { const start=Date.now(); try { const response=await fetch(url+'/api'+route,{method:input===undefined?'GET':'POST', signal:AbortSignal.timeout(30000), headers:{'Content-Type':'application/json','X-Workbench-Token':bootstrap.token,Connection:'close'},...(input===undefined?{}:{body:JSON.stringify(input)})}); const value=await response.json(); assert.ok(response.ok,value.error);return value; } finally { requests.push({route,method:input===undefined?'GET':'POST',elapsedMs:Date.now()-start,at:Date.now()-started}); } };
try {
await until(()=>url||child.exitCode!==null); assert.ok(url,errors);
bootstrap=await(await fetch(url+'/api/bootstrap')).json(); assert.equal((await api('/health')).pid,child.pid);
console.log('DIAGNOSTIC START '+root);
result=await verifyControlledApi({api,url,token:bootstrap.token,directory:root,appRoot:candidate,contained:true});
} catch(error) { result={success:false,error:error.stack}; process.exitCode=1; }
finally {
if(url&&bootstrap&&child.exitCode===null) { try {await api('/shutdown',{}); await until(()=>child.exitCode!==null||child.signalCode!==null);} catch(error) { result.shutdownError=error.stack; } }
assert.ok(child.exitCode!==null||child.signalCode!==null,'Own diagnostic host must exit');
clearInterval(outputTimer); readFiles();if(outputFd!==null){fs.closeSync(outputFd);fs.closeSync(errorFd);}
fs.writeFileSync(path.join(root,'stdout.txt'),output,{flag:'wx'});fs.writeFileSync(path.join(root,'stderr.txt'),errors,{flag:'wx'});
fs.writeFileSync(path.join(root,'result.json'),JSON.stringify({...result,requests,elapsedMs:Date.now()-started,realModelRequests:0},null,2)+'\n',{flag:'wx'});
console.log(JSON.stringify({success:result.success,error:result.error,elapsedMs:Date.now()-started,root}));
}
@@ -0,0 +1,41 @@
import fs from 'node:fs';
import path from 'node:path';
import os from 'node:os';
import assert from 'node:assert/strict';
import { randomUUID } from 'node:crypto';
import { ControlledDeepSeekSession } from '../../src/core/engines/controlled-session.mjs';
import { resolveControlledInstallation } from '../../src/core/engines/controlled-installation.mjs';
const label = process.argv[2], timeoutMs = Number(process.argv[3] ?? 15000);
assert.match(label, /^[a-z0-9-]+$/); assert.ok([15000, 45000].includes(timeoutMs));
const root = path.resolve('.qa/reliability-1.25.2/startup-' + label); assert.equal(fs.existsSync(root), false); fs.mkdirSync(root);
let cwd = path.join(root, 'project'); fs.mkdirSync(cwd); fs.writeFileSync(path.join(cwd, 'README.md'), '# Owned readiness-only probe\n');
const failure = JSON.parse(fs.readFileSync('.qa/release-bf42f32d-eeac-47aa-8fa5-5167208d9035/compiled-api-failure.json'));
const original = failure.sessions.flatMap(session => session.execution.engineRuns ?? [])[0];
const originalReady = JSON.parse(fs.readFileSync('C:/Users/wangy/AppData/Local/Temp/AgentWorkbench-Engine-Runs/' + original.id + '/ready.json'));
const variant = process.argv[4] ?? 'normal'; assert.ok(['normal', 'temp', 'temp-original-cwd'].includes(variant));
if (variant === 'temp-original-cwd') {
const failureRoot = path.resolve('.qa/release-bf42f32d-eeac-47aa-8fa5-5167208d9035');
const native = JSON.parse(fs.readFileSync(path.join(failureRoot, 'artifacts', original.reportSha256.slice(0,2), original.reportSha256 + '.blob'))).native;
cwd = native.launchInputs.cwd;
}
const invocation = variant === 'normal' ? path.join(root, 'invocation') : path.join(os.tmpdir(), 'AgentWorkbench-Engine-Runs', randomUUID());
const installation = resolveControlledInstallation(process.cwd(), original.installation.root); assert.equal(installation.controlledStatus, 'available');
const driver = new ControlledDeepSeekSession(installation, { timeoutMs });
const owner = Object.fromEntries(['sessionId', 'projectId', 'taskId', 'runId', 'jobId'].map(name => [name, randomUUID()]));
const started = Date.now(), observations = []; let result, opened = false;
try {
await driver.open({ directory: invocation, cwd, owner, sdkSessionId: randomUUID(), tools: originalReady.catalogue,
config: { model: 'owned-readiness-probe', contextLimit: 64000, maxOutputTokens: 2048 }, strategy: original.installation.strategy,
signal: AbortSignal.timeout(timeoutMs + 10000),
onModel: () => { throw Error('No model request authorized in readiness probe.'); }, onTool: () => { throw Error('No tool execution authorized in readiness probe.'); },
onState: (state, value) => { observations.push({ state, elapsedMs: Date.now() - started, pid: value?.pid }); console.log(JSON.stringify(observations.at(-1))); } });
opened = true; result = { success: true, elapsedMs: Date.now() - started };
} catch (error) { result = { success: false, elapsedMs: Date.now() - started, error: error.stack }; process.exitCode = 1; }
finally {
const report = await driver.close({ force: !opened });
const marker = path.join(invocation, 'ready.json');
result = { ...result, label, timeoutMs, variant, invocation, cwd, scope: 'Diagnostic only, no product wait change, no remote model; original pure prompt experiment and catalogue.',
ready: fs.existsSync(marker) ? JSON.parse(fs.readFileSync(marker)) : null, observations, report, realModelRequests: 0 };
fs.writeFileSync(path.join(root, 'result.json'), JSON.stringify(result, null, 2) + '\n', { flag: 'wx' });
console.log(JSON.stringify({ success: result.success, label, timeoutMs, elapsedMs: result.elapsedMs, readyAt: result.ready?.readyAt, error: result.error }));
}
@@ -0,0 +1,20 @@
> local-agent-workbench@1.25.2 build
> tsc --noEmit && vite build && node scripts/build-mobile.mjs && node scripts/build-server.mjs
vite v7.3.7 building client environment for production...
transforming...
✓ 1767 modules transformed.
rendering chunks...
computing gzip size...
dist-client/index.html 0.60 kB │ gzip: 0.41 kB
dist-client/.vite/manifest.json 0.65 kB │ gzip: 0.24 kB
dist-client/mobile.html 0.84 kB │ gzip: 0.47 kB
dist-client/assets/mobile-joLHctQw.css 12.39 kB │ gzip: 3.22 kB
dist-client/assets/desktop-BNW-hkaW.css 176.35 kB │ gzip: 33.35 kB
dist-client/assets/mobile-DdtBN08G.js 26.97 kB │ gzip: 9.31 kB
dist-client/assets/approval-presentation-QyCkfhWb.js 227.03 kB │ gzip: 71.74 kB
dist-client/assets/desktop-BsgAY2GE.js 437.15 kB │ gzip: 123.85 kB
✓ built in 1.25s
Mobile shell built: 3 allowed assets; API and project data are never cached.
Server bundle built.
@@ -0,0 +1,14 @@
> local-agent-workbench@1.25.2 build
> tsc --noEmit && vite build && node scripts/build-mobile.mjs && node scripts/build-server.mjs
You are using Node.js 16.13.1. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/node_modules/vite/dist/node/chunks/config.js:8
import fsp, { constants } from "node:fs/promises";
^^^^^^^^^
SyntaxError: The requested module 'node:fs/promises' does not provide an export named 'constants'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:181:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
at async CAC.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/node_modules/vite/dist/node/cli.js:626:28)
@@ -0,0 +1,16 @@
{
"success": true,
"version": "1.25.2",
"candidate": "Agent-Workbench-1.25.2-win-x64-20261104134035379",
"installed": [
{
"path": ".qa/requirements-progress/shadow-electron-f24cfbb2-8cbd-4614-af94-46cb4c7aeac6/narrow-pages.png",
"observed": "Actual installed Electron 390px: tool round limit remains separate from shadow. First and second rounds add10 characters; third records0 new and1 repeated read. Original-data links and full Chinese lines are readable with bounded internal scroll."
},
{
"path": ".qa/task-agreement/closure-electron-97933363-8f16-42e0-8f75-1b4027bc29ea/desktop-diagnostic.png",
"observed": "Actual installed Electron 1440px: pending original engineering goal, unmet requirement and completed diagnostic remain distinct. Original unknown POST wording and original-run link persist; no false delivery completion is shown."
}
],
"scope": "Original images inspected directly; controlled UI acceptance, not real autonomous model delivery."
}
@@ -0,0 +1,6 @@
{
"success": true,
"files": 16,
"sourceUiGroups": 50,
"realModelRequests": 0
}
@@ -0,0 +1,223 @@
START register
{"success":true,"candidate":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104134035379"}
START rebuild
START rebuild
{"success":true,"mode":"rebuild","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\rebuild.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\packaged-build-c1d64acd-de21-46f9-a7d1-5ab6a1dfb81f\\result.json"}
START archives
START archives
{"success":true,"mode":"archives","output":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\release-final\\receipts\\archives.json","resultPath":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\archives-validation.json"}
WAIT exact complete source suite before portable and installer acceptance
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /\bpass 899\b/. Input:
'✔ Messages builds native system/tool history, bounds images, and seals a distinct mixed-pool variant (7.926ms)\r\n' +
'✔ Messages URL and native parameter contracts preserve other protocol paths and hard output budget (0.5547ms)\r\n' +
'✔ native usage includes both cache buckets once, retains raw and rejects invalid counters (0.1555ms)\r\n' +
'✔ real HTTP Messages JSON executes one tool, retains opaque history, actual URL and cache accounting (7050.3755ms)\r\n' +
'✔ real HTTP Messages SSE executes one tool, retains opaque history, actual URL and cache accounting (10008.0698ms)\r\n' +
'✔ Messages api-key authentication is explicit; mismatched model remains blocked with original usage (7.3906ms)\r\n' +
'✔ Messages bearer authentication is explicit; mismatched model remains blocked with original usage (3.9648ms)\r\n' +
'✔ Messages redirect is not followed, either credential stays at the original server (3.916ms)\r\n' +
'✔ strict native SSE reads the nested start model and retains mismatch source without retries (2.7818ms)\r\n' +
'✔ a closed native tool block cannot execute before message_stop, then executes exactly once (11383.4232ms)\r\n' +
'✔ mixed Chat/Messages pool seals both variants and preserves one completed tool on failover (13134.4843ms)\r\n' +
'✔ native JSON rejects incomplete stops, duplicate tools and hosted content (0.2814ms)\r\n' +
'▶ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch\r\n' +
' ✔ reject native stream 0 (1.0664ms)\r\n' +
' ✔ reject native stream 1 (0.2813ms)\r\n' +
' ✔ reject native stream 2 (0.1847ms)\r\n' +
' ✔ reject native stream 3 (0.1762ms)\r\n' +
' ✔ reject native stream 4 (0.1568ms)\r\n' +
' ✔ reject native stream 5 (0.1662ms)\r\n' +
' ✔ reject native stream 6 (0.1673ms)\r\n' +
' ✔ reject native stream 7 (0.1998ms)\r\n' +
' ✔ reject native stream 8 (0.2068ms)\r\n' +
'✔ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch (3.2986ms)\r\n' +
'✔ upstream SSE error retains original type/request ID and initial usage, never retries (4.1501ms)\r\n' +
'✔ stop cancels the owned stream and retains partial consumption without running tool or replaying (55.4438ms)\r\n' +
'✔ saved Messages import preserves auth choice, rejects endpoint duplication, and keeps source file untouched (2259.6322ms)\r\n' +
'✔ large source receipts use cursor-preserving invalidation without filling the event stream or changing the session (5.3974ms)\r\n' +
'✔ small event updates retain the current session and actual cursor (0.1153ms)\r\n' +
'✔ the bundled local service enforces host, origin, token and JSON object contracts (4065.5302ms)\r\n' +
'✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (4504.391ms)\r\n' +
'✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (9120.176ms)\r\n' +
'✖ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (21946.3358ms)\r\n' +
'✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (4813.5141ms)\r\n' +
'✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (16036.4609ms)\r\n' +
'✔ real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart (14081.017ms)\r\n' +
'✔ self harness browser tools require approval and feed verified actual page fields back to the original Task (15337.231ms)\r\n' +
'✔ browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement (4771.232ms)\r\n' +
'✔ late HTTP stop of a finished browser job cannot interrupt a later job in the same Task (8705.0707ms)\r\n' +
'✔ actual failed page blocks source-passed delivery; a new passing page permits a bound commit and preserves both original records (21612.863ms)\r\n' +
'✔ a build-only change after Git review invalidates the actual browser evidence and leaves HEAD and the protected index intact (10707.4397ms)\r\n' +
'✔ actual DOM controls include validated unique CSS selectors across repeated parent buttons and escaped labels (9749.5584ms)\r\n' +
'✔ browser field coverage distinguishes sections and Run windows while retaining original source identity (0.5398ms)\r\n' +
'✔ repeated original browser pages pause a live Task without re-opening the browser or breaking tool pairing (11968.8276ms)\r\n' +
'✔ browser plan rejects outside builds, invalid interaction scope and unbounded steps before execution (0.9144ms)\r\n' +
'✔ real owned Edge interactions, assertions, raw PNG and stopped process survive exact result reuse and host reopen (7815.1652ms)\r\n' +
'✔ failed real page assertion preserves actual value and forbids silent retry of the original plan (11996.5816ms)\r\n' +
'✔ build/source mutation and sealed step tampering reject before browser dispatch; earlier task cannot execute plan (1539.2795ms)\r\n' +
'✔ outside network never reaches another local service, and original JavaScript/console failures remain failures (4042.1913ms)\r\n' +
'✔ stopping a real in-flight browser preserves finished steps, closes its owned root and never replays (3387.9742ms)\r\n' +
'✔ 原PNG损坏使原结果校验失败,不能以已有通过状态复用 (3994.7021ms)\r\n' +
'✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (0.9861ms)\r\n' +
'✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (3103.5236ms)\r\n' +
'✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (1782.0292ms)\r\n' +
'✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (2876.988ms)\r\n' +
'✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1560.5363ms)\r\n' +
'✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (2355.8889ms)\r\n' +
'✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (2393.7594ms)\r\n' +
'✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (8812.4758ms)\r\n' +
'✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (6431.7347ms)\r\n' +
'✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (3194.2235ms)\r\n' +
'✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (3560.4832ms)\r\n' +
'✔ input that fits the engine window but exceeds remaining credit diagnoses the credit limit (0.579ms)\r\n' +
'✔ window overflow and historical pauses retain distinct and honest diagnoses (0.0809ms)\r\n' +
'✔ R observed reservation shortage keeps the window-fit diagnosis separate from Run/Task credit (0.1076ms)\r\n' +
'✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (6419.0989ms)\r\n' +
'✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (13985.8148ms)\r\n' +
'✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (9024.7211ms)\r\n' +
'✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (7386.2967ms)\r\n' +
'✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (7089.8261ms)\r\n' +
'✔ batch APIs enforce ownership and review fingerprints, apply once, and persist the completed batch across restart (12644.9042ms)\r\n' +
'✔ delivery reports bind actual batch identity and reject corrupted snapshot evidence without changing project files (7890.5666ms)\r\n' +
'✔ a compatible model can seal proposals through the real HTTP loop while application stays behind user review (10528.9458ms)\r\n' +
'✔ a sealed batch at the step limit hands off and continues the same Task into actual checks without replaying saved tools (43924.0808ms)\r\n' +
'✔ applied batches cannot turn cancellation, other budgets, restart or unknown commands into a review continuation (7030.3656ms)\r\n' +
'▶ complete sealed batch hands off after all tools settle with no next model request\r\n' +
' ✔ complete (8187.5853ms)\r\n' +
' ✔ later-error (10988.0182ms)\r\n' +
'✔ complete sealed batch hands off after all tools settle with no next model request (19176.4526ms)\r\n' +
'▶ partial, changed, failed or cancelled batches cannot claim complete review handoff\r\n' +
' ✔ partial (18749.404ms)\r\n' +
' ✔ new-proposal (15525.2008ms)\r\n' +
' ✔ failed (13836.1382ms)\r\n' +
' ✔ conflict (15478.9001ms)\r\n' +
' ✔ cancelled (15345.1998ms)\r\n' +
' ✔ unknown (16846.4675ms)\r\n' +
' ✔ tampered (18567.4648ms)\r\n' +
'✔ partial, changed, failed or cancelled batches cannot claim complete review handoff (114350.1302ms)\r\n' +
'✔ actual process exit at file-batch prepared preserves durable identity and never replays writes (5844.4412ms)\r\n' +
'✔ actual process exit at file-batch application_started preserves durable identity and never replays writes (6279.9749ms)\r\n' +
'✔ actual process exit at file-batch write_intent preserves durable identity and never replays writes (5794.6037ms)\r\n' +
'✔ actual process exit at file-batch staged preserves durable identity and never replays writes (6237.952ms)\r\n' +
'✔ actual process exit at file-batch replaced preserves durable identity and never replays writes (7524.2532ms)\r\n' +
'✔ actual process exit at file-batch file_recorded preserves durable identity and never replays writes (7428.1676ms)\r\n' +
'✔ actual process exit at file-batch finished preserves durable identity and never replays writes (9816.1178ms)\r\n' +
'✔ actual process exit at file-batch rollback_started preserves durable identity and never replays writes (9386.8227ms)\r\n' +
'✔ actual process exit at file-batch restore_intent preserves durable identity and never replays writes (11192.6789ms)\r\n' +
'✔ actual process exit at file-batch restore_staged preserves durable identity and never replays writes (11560.1703ms)\r\n' +
'✔ actual process exit at file-batch restored preserves durable identity and never replays writes (12592.1243ms)\r\n' +
'✔ actual process exit at file-batch restore_recorded preserves durable identity and n'... 95637 more characters
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/reliability-1.25.2/final-validation.mjs:21:109 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '✔ Messages builds native system/tool history, bounds images, and seals a distinct mixed-pool variant (7.926ms)\r\n' +
'✔ Messages URL and native parameter contracts preserve other protocol paths and hard output budget (0.5547ms)\r\n' +
'✔ native usage includes both cache buckets once, retains raw and rejects invalid counters (0.1555ms)\r\n' +
'✔ real HTTP Messages JSON executes one tool, retains opaque history, actual URL and cache accounting (7050.3755ms)\r\n' +
'✔ real HTTP Messages SSE executes one tool, retains opaque history, actual URL and cache accounting (10008.0698ms)\r\n' +
'✔ Messages api-key authentication is explicit; mismatched model remains blocked with original usage (7.3906ms)\r\n' +
'✔ Messages bearer authentication is explicit; mismatched model remains blocked with original usage (3.9648ms)\r\n' +
'✔ Messages redirect is not followed, either credential stays at the original server (3.916ms)\r\n' +
'✔ strict native SSE reads the nested start model and retains mismatch source without retries (2.7818ms)\r\n' +
'✔ a closed native tool block cannot execute before message_stop, then executes exactly once (11383.4232ms)\r\n' +
'✔ mixed Chat/Messages pool seals both variants and preserves one completed tool on failover (13134.4843ms)\r\n' +
'✔ native JSON rejects incomplete stops, duplicate tools and hosted content (0.2814ms)\r\n' +
'▶ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch\r\n' +
' ✔ reject native stream 0 (1.0664ms)\r\n' +
' ✔ reject native stream 1 (0.2813ms)\r\n' +
' ✔ reject native stream 2 (0.1847ms)\r\n' +
' ✔ reject native stream 3 (0.1762ms)\r\n' +
' ✔ reject native stream 4 (0.1568ms)\r\n' +
' ✔ reject native stream 5 (0.1662ms)\r\n' +
' ✔ reject native stream 6 (0.1673ms)\r\n' +
' ✔ reject native stream 7 (0.1998ms)\r\n' +
' ✔ reject native stream 8 (0.2068ms)\r\n' +
'✔ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch (3.2986ms)\r\n' +
'✔ upstream SSE error retains original type/request ID and initial usage, never retries (4.1501ms)\r\n' +
'✔ stop cancels the owned stream and retains partial consumption without running tool or replaying (55.4438ms)\r\n' +
'✔ saved Messages import preserves auth choice, rejects endpoint duplication, and keeps source file untouched (2259.6322ms)\r\n' +
'✔ large source receipts use cursor-preserving invalidation without filling the event stream or changing the session (5.3974ms)\r\n' +
'✔ small event updates retain the current session and actual cursor (0.1153ms)\r\n' +
'✔ the bundled local service enforces host, origin, token and JSON object contracts (4065.5302ms)\r\n' +
'✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (4504.391ms)\r\n' +
'✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (9120.176ms)\r\n' +
'✖ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (21946.3358ms)\r\n' +
'✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (4813.5141ms)\r\n' +
'✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (16036.4609ms)\r\n' +
'✔ real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart (14081.017ms)\r\n' +
'✔ self harness browser tools require approval and feed verified actual page fields back to the original Task (15337.231ms)\r\n' +
'✔ browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement (4771.232ms)\r\n' +
'✔ late HTTP stop of a finished browser job cannot interrupt a later job in the same Task (8705.0707ms)\r\n' +
'✔ actual failed page blocks source-passed delivery; a new passing page permits a bound commit and preserves both original records (21612.863ms)\r\n' +
'✔ a build-only change after Git review invalidates the actual browser evidence and leaves HEAD and the protected index intact (10707.4397ms)\r\n' +
'✔ actual DOM controls include validated unique CSS selectors across repeated parent buttons and escaped labels (9749.5584ms)\r\n' +
'✔ browser field coverage distinguishes sections and Run windows while retaining original source identity (0.5398ms)\r\n' +
'✔ repeated original browser pages pause a live Task without re-opening the browser or breaking tool pairing (11968.8276ms)\r\n' +
'✔ browser plan rejects outside builds, invalid interaction scope and unbounded steps before execution (0.9144ms)\r\n' +
'✔ real owned Edge interactions, assertions, raw PNG and stopped process survive exact result reuse and host reopen (7815.1652ms)\r\n' +
'✔ failed real page assertion preserves actual value and forbids silent retry of the original plan (11996.5816ms)\r\n' +
'✔ build/source mutation and sealed step tampering reject before browser dispatch; earlier task cannot execute plan (1539.2795ms)\r\n' +
'✔ outside network never reaches another local service, and original JavaScript/console failures remain failures (4042.1913ms)\r\n' +
'✔ stopping a real in-flight browser preserves finished steps, closes its owned root and never replays (3387.9742ms)\r\n' +
'✔ 原PNG损坏使原结果校验失败,不能以已有通过状态复用 (3994.7021ms)\r\n' +
'✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (0.9861ms)\r\n' +
'✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (3103.5236ms)\r\n' +
'✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (1782.0292ms)\r\n' +
'✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (2876.988ms)\r\n' +
'✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1560.5363ms)\r\n' +
'✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (2355.8889ms)\r\n' +
'✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (2393.7594ms)\r\n' +
'✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (8812.4758ms)\r\n' +
'✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (6431.7347ms)\r\n' +
'✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (3194.2235ms)\r\n' +
'✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (3560.4832ms)\r\n' +
'✔ input that fits the engine window but exceeds remaining credit diagnoses the credit limit (0.579ms)\r\n' +
'✔ window overflow and historical pauses retain distinct and honest diagnoses (0.0809ms)\r\n' +
'✔ R observed reservation shortage keeps the window-fit diagnosis separate from Run/Task credit (0.1076ms)\r\n' +
'✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (6419.0989ms)\r\n' +
'✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (13985.8148ms)\r\n' +
'✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (9024.7211ms)\r\n' +
'✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (7386.2967ms)\r\n' +
'✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (7089.8261ms)\r\n' +
'✔ batch APIs enforce ownership and review fingerprints, apply once, and persist the completed batch across restart (12644.9042ms)\r\n' +
'✔ delivery reports bind actual batch identity and reject corrupted snapshot evidence without changing project files (7890.5666ms)\r\n' +
'✔ a compatible model can seal proposals through the real HTTP loop while application stays behind user review (10528.9458ms)\r\n' +
'✔ a sealed batch at the step limit hands off and continues the same Task into actual checks without replaying saved tools (43924.0808ms)\r\n' +
'✔ applied batches cannot turn cancellation, other budgets, restart or unknown commands into a review continuation (7030.3656ms)\r\n' +
'▶ complete sealed batch hands off after all tools settle with no next model request\r\n' +
' ✔ complete (8187.5853ms)\r\n' +
' ✔ later-error (10988.0182ms)\r\n' +
'✔ complete sealed batch hands off after all tools settle with no next model request (19176.4526ms)\r\n' +
'▶ partial, changed, failed or cancelled batches cannot claim complete review handoff\r\n' +
' ✔ partial (18749.404ms)\r\n' +
' ✔ new-proposal (15525.2008ms)\r\n' +
' ✔ failed (13836.1382ms)\r\n' +
' ✔ conflict (15478.9001ms)\r\n' +
' ✔ cancelled (15345.1998ms)\r\n' +
' ✔ unknown (16846.4675ms)\r\n' +
' ✔ tampered (18567.4648ms)\r\n' +
'✔ partial, changed, failed or cancelled batches cannot claim complete review handoff (114350.1302ms)\r\n' +
'✔ actual process exit at file-batch prepared preserves durable identity and never replays writes (5844.4412ms)\r\n' +
'✔ actual process exit at file-batch application_started preserves durable identity and never replays writes (6279.9749ms)\r\n' +
'✔ actual process exit at file-batch write_intent preserves durable identity and never replays writes (5794.6037ms)\r\n' +
'✔ actual process exit at file-batch staged preserves durable identity and never replays writes (6237.952ms)\r\n' +
'✔ actual process exit at file-batch replaced preserves durable identity and never replays writes (7524.2532ms)\r\n' +
'✔ actual process exit at file-batch file_recorded preserves durable identity and never replays writes (7428.1676ms)\r\n' +
'✔ actual process exit at file-batch finished preserves durable identity and never replays writes (9816.1178ms)\r\n' +
'✔ actual process exit at file-batch rollback_started preserves durable identity and never replays writes (9386.8227ms)\r\n' +
'✔ actual process exit at file-batch restore_intent preserves durable identity and never replays writes (11192.6789ms)\r\n' +
'✔ actual process exit at file-batch restore_staged preserves durable identity and never replays writes (11560.1703ms)\r\n' +
'✔ actual process exit at file-batch restored preserves durable identity and never replays writes (12592.1243ms)\r\n' +
'✔ actual process exit at file-batch restore_recorded preserves durable identity and n'... 95637 more characters,
expected: /\bpass 899\b/,
operator: 'match',
diff: 'simple'
}
Node.js v24.22.1
@@ -0,0 +1,23 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { spawn } from 'node:child_process';
import { projectEnvironment } from '../../src/core/process-environment.mjs';
const root=path.resolve('.qa/reliability-1.25.2');
const read=file=>JSON.parse(fs.readFileSync(path.join(root,file),'utf8'));
const before=read('release/freeze.json'),after=read('release-final/freeze.json');
assert.deepEqual(before.compiled,after.compiled,'Tests/docs revision must not alter any compiled product bytes.');
const changes=after.inputs.filter(row=>before.inputs.find(old=>old.path===row.path)?.sha256!==row.sha256);
assert.deepEqual(changes.map(row=>row.path),['tests/network-diagnostics.test.mjs']);
fs.writeFileSync(path.join(root,'candidate-input-delta.json'),JSON.stringify({success:true,before:before.sourceCommit,after:after.sourceCommit,changes,compiledExact:22,productInputsUnchanged:true},null,2)+'\n',{flag:'wx'});
const wait=ms=>new Promise(resolve=>setTimeout(resolve,ms));
async function until(predicate,label,timeout=70*60000){const deadline=Date.now()+timeout;while(!predicate()){assert.ok(Date.now()<deadline,label);await wait(3000);}}
async function stage(name){ console.log('START '+name); const code=await new Promise((resolve,reject)=>{const child=spawn(process.execPath,[path.join(root,'release-runner.mjs'),name,'release-final'],{windowsHide:true,env:projectEnvironment(),stdio:['ignore','inherit','inherit']});child.once('error',reject);child.once('close',resolve);});assert.equal(code,0,'Inspect immutable '+name+' receipt before resuming.'); }
await until(()=>{try{return JSON.parse(fs.readFileSync('releases/latest.json')).documentation.sourceCommit===after.sourceCommit;}catch{return false;}},'Packaging did not complete');
for(const name of ['register','rebuild','archives'])await stage(name);
console.log('WAIT exact complete source suite before portable and installer acceptance');
await until(()=>fs.readFileSync(path.join(root,'full-release-final.tap'),'utf8').includes('duration_ms'),'Full source suite did not complete');
const suite=fs.readFileSync(path.join(root,'full-release-final.tap'),'utf8');
for(const pattern of [/\btests 899\b/,/\bpass 899\b/,/\bfail 0\b/,/\bcancelled 0\b/,/\bskipped 0\b/])assert.match(suite,pattern);
for(const name of ['portable','install','portable-a','portable-a-desktop','portable-b','portable-b-desktop','portable-c','portable-c-desktop','portable-d','portable-d-desktop','portable-files','portable-results','portable-reading'])await stage(name);
console.log(JSON.stringify({success:true,sourceCommit:after.sourceCommit,stages:16,realModelRequests:0,formalTouched:false}));
@@ -0,0 +1,6 @@
{
"success": true,
"mode": "before",
"version": "1.25.1",
"pid": 36552
}
@@ -0,0 +1,6 @@
{
"success": true,
"mode": "final",
"version": "1.25.2",
"pid": 36552
}
@@ -0,0 +1 @@
{"executable":"C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\AgentWorkbench.exe","pid":45124,"code":0,"startedAt":"2026-11-04T14:43:09.056Z","finishedAt":"2026-11-04T14:43:23.401Z","scope":"Launch the attested existing installed native UI for direct Windows review; retained host and Provider must remain unchanged."}
@@ -0,0 +1,20 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { spawn } from 'node:child_process';
const root = '.qa/reliability-1.25.2';
const read = file => JSON.parse(fs.readFileSync(root + '/' + file));
assert.equal(read('formal/upgrade.json').success, true);
const before = read('formal/before.json'), output = path.join(root, 'formal-native');
assert.equal(fs.existsSync(output), false); fs.mkdirSync(output);
const boot = await (await fetch('http://127.0.0.1:4318/api/bootstrap')).json();
const host = await (await fetch('http://127.0.0.1:4318/api/host/status', { headers: { 'X-Workbench-Token': boot.token } })).json();
assert.equal(boot.version, '1.25.2'); assert.equal(host.identity.pid, 36552);
assert.equal(host.activity.active, false); assert.equal(host.desktopWindows.count, 0);
const executable = path.join(before.installRoot, 'AgentWorkbench.exe'), startedAt = new Date().toISOString();
const child = spawn(executable, [], { windowsHide: false, stdio: 'ignore', cwd: before.installRoot });
const pid = child.pid;
const code = await new Promise((resolve, reject) => { child.once('error', reject); child.once('close', resolve); });
const result = { executable, pid, code, startedAt, finishedAt: new Date().toISOString(), scope: 'Launch the attested existing installed native UI for direct Windows review; retained host and Provider must remain unchanged.' };
fs.writeFileSync(path.join(output, 'launch.json'), JSON.stringify(result, null, 2) + '\n', { flag: 'wx' });
assert.equal(code, 0); console.log(JSON.stringify(result));
@@ -0,0 +1,6 @@
{
"success": true,
"mode": "upgrade",
"version": "1.25.2",
"pid": 36552
}
@@ -0,0 +1 @@
{"success":true,"version":"1.25.2","pid":36552,"projectId":"b4de81b1-fe73-48d8-a1c4-7f2aee02cf18","sessionId":"22c90b01-6b82-43d9-b2b6-88a4b245c781","checks":["Original completed Task opens its unconfigured requirement view without backfilling acceptance or shadow receipts"],"views":[{"label":"desktop","width":1440,"height":1080,"requirementItems":0,"legacyShadowPanels":0},{"label":"narrow","width":390,"height":844,"requirementItems":0,"legacyShadowPanels":0}],"errors":[],"rejectedWrites":[],"realModelRequests":0,"scope":"Read-only actual formal web UI after asynchronous follow-up has settled at both viewports; new requirement creation and new shadow runs are verified on isolated source/portable/installed fixtures."}
@@ -0,0 +1,50 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { chromium } from 'playwright';
const root = path.resolve('.qa/reliability-1.25.2/formal-web'), origin = 'http://127.0.0.1:4318';
assert.equal(fs.existsSync(root), false); fs.mkdirSync(root);
const bootstrap = await (await fetch(origin + '/api/bootstrap')).json();
assert.equal(bootstrap.version, '1.25.2');
const projects = bootstrap.projects.filter(row => row.root.replaceAll('\\', '/').endsWith('/releases/Agent-Workbench-0.1.0-win-x64/examples/starter-project'));
assert.equal(projects.length, 1); const project = projects[0];
const sessions = bootstrap.sessions.filter(row => row.projectId === project.id && row.title.startsWith('创建一个HTML'));
assert.equal(sessions.length, 1); const session = sessions[0]; assert.equal(session.status, 'completed');
const browser = await chromium.launch({ channel: 'msedge', headless: true }), context = await browser.newContext({ viewport: { width: 1440, height: 1080 } });
const rejectedWrites = [], errors = [], checks = [], views = []; let result;
await context.route('**/*', async route => {
const request = route.request();
if (request.url().startsWith(origin + '/api/') && !['GET', 'HEAD'].includes(request.method())) {
rejectedWrites.push({ method: request.method(), url: request.url() }); await route.abort();
} else await route.continue();
});
const page = await context.newPage(); page.on('pageerror', error => errors.push(error.message));
try {
await page.goto(origin + '/?release=1.25.2'); await page.locator('.connection.connected').waitFor();
await page.getByLabel('当前项目', { exact: true }).selectOption(project.id);
await page.locator('.session-list button').filter({ hasText: session.title }).click();
await page.getByRole('button', { name: '查看任务记录', exact: true }).click();
const panel = page.getByLabel('要求与证据', { exact: true }); await panel.waitFor();
await panel.getByText('尚未逐项记录要求。模型的完成答复保留在原会话中。', { exact: true }).waitFor();
checks.push('Original completed Task opens its unconfigured requirement view without backfilling acceptance or shadow receipts');
for (const [label, width, height] of [['desktop', 1440, 1080], ['narrow', 390, 844]]) {
await page.setViewportSize({ width, height });
if (!await page.getByLabel('选择运行记录', { exact: true }).isVisible()) await page.getByRole('button', { name: '查看任务记录', exact: true }).click();
await page.getByLabel('当前缺口与下一步', { exact: true }).getByText('当前文件已交付,按约定未测试', { exact: true }).waitFor();
await panel.scrollIntoViewIfNeeded();
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1), true);
assert.equal(await page.getByLabel('单轮观察', { exact: true }).count(), 0);
await page.screenshot({ path: path.join(root, label + '.png'), scale: 'css' });
fs.writeFileSync(path.join(root, label + '.txt'), await page.locator('body').innerText());
views.push({ label, width, height, requirementItems: await panel.locator('.requirement-list li').count(), legacyShadowPanels: 0 });
}
assert.deepEqual(errors, []); assert.deepEqual(rejectedWrites, []);
const health = await (await fetch(origin + '/api/health')).json(); assert.equal(health.pid, 36552); assert.equal(health.version, '1.25.2');
result = { success: true, version: health.version, pid: health.pid, projectId: project.id, sessionId: session.id, checks, views, errors, rejectedWrites,
realModelRequests: 0, scope: 'Read-only actual formal web UI after asynchronous follow-up has settled at both viewports; new requirement creation and new shadow runs are verified on isolated source/portable/installed fixtures.' };
} catch (error) {
await page.screenshot({ path: path.join(root, 'failure.png') }).catch(() => {});
fs.writeFileSync(path.join(root, 'failure.txt'), await page.locator('body').innerText().catch(() => 'Unavailable'));
result = { success: false, error: error.stack, checks, views, errors, rejectedWrites, realModelRequests: 0 }; process.exitCode = 1;
} finally { await browser.close(); }
fs.writeFileSync(path.join(root, 'result.json'), JSON.stringify(result, null, 2) + '\n', { flag: 'wx' }); console.log(JSON.stringify(result));
@@ -0,0 +1,944 @@
✔ Messages builds native system/tool history, bounds images, and seals a distinct mixed-pool variant (8.535ms)
✔ Messages URL and native parameter contracts preserve other protocol paths and hard output budget (0.6341ms)
✔ native usage includes both cache buckets once, retains raw and rejects invalid counters (0.1629ms)
✔ real HTTP Messages JSON executes one tool, retains opaque history, actual URL and cache accounting (3261.1925ms)
✔ real HTTP Messages SSE executes one tool, retains opaque history, actual URL and cache accounting (3075.4012ms)
✔ Messages api-key authentication is explicit; mismatched model remains blocked with original usage (5.2051ms)
✔ Messages bearer authentication is explicit; mismatched model remains blocked with original usage (3.8657ms)
✔ Messages redirect is not followed, either credential stays at the original server (3.5591ms)
✔ strict native SSE reads the nested start model and retains mismatch source without retries (3.0393ms)
✔ a closed native tool block cannot execute before message_stop, then executes exactly once (2820.3363ms)
✔ mixed Chat/Messages pool seals both variants and preserves one completed tool on failover (3778.0575ms)
✔ native JSON rejects incomplete stops, duplicate tools and hosted content (0.3241ms)
▶ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch
✔ reject native stream 0 (1.1216ms)
✔ reject native stream 1 (0.255ms)
✔ reject native stream 2 (0.1729ms)
✔ reject native stream 3 (0.1649ms)
✔ reject native stream 4 (0.1699ms)
✔ reject native stream 5 (0.1694ms)
✔ reject native stream 6 (0.1442ms)
✔ reject native stream 7 (0.1213ms)
✔ reject native stream 8 (0.1797ms)
✔ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch (3.1563ms)
✔ upstream SSE error retains original type/request ID and initial usage, never retries (4.3121ms)
✔ stop cancels the owned stream and retains partial consumption without running tool or replaying (67.0431ms)
✔ saved Messages import preserves auth choice, rejects endpoint duplication, and keeps source file untouched (853.5155ms)
✔ large source receipts use cursor-preserving invalidation without filling the event stream or changing the session (5.1481ms)
✔ small event updates retain the current session and actual cursor (0.1139ms)
✔ the bundled local service enforces host, origin, token and JSON object contracts (2199.8962ms)
✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (2358.8747ms)
✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (4963.6565ms)
✔ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (10924.2605ms)
✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (2360.7049ms)
✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (8734.9721ms)
✔ real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart (7781.0963ms)
✔ self harness browser tools require approval and feed verified actual page fields back to the original Task (15343.8579ms)
✔ browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement (3930.305ms)
✔ late HTTP stop of a finished browser job cannot interrupt a later job in the same Task (7876.5814ms)
✔ actual failed page blocks source-passed delivery; a new passing page permits a bound commit and preserves both original records (19816.1482ms)
✔ a build-only change after Git review invalidates the actual browser evidence and leaves HEAD and the protected index intact (9993.2845ms)
✔ actual DOM controls include validated unique CSS selectors across repeated parent buttons and escaped labels (8363.65ms)
✔ browser field coverage distinguishes sections and Run windows while retaining original source identity (0.4715ms)
✔ repeated original browser pages pause a live Task without re-opening the browser or breaking tool pairing (6778.9127ms)
✔ browser plan rejects outside builds, invalid interaction scope and unbounded steps before execution (0.8915ms)
✔ real owned Edge interactions, assertions, raw PNG and stopped process survive exact result reuse and host reopen (4039.2911ms)
✔ failed real page assertion preserves actual value and forbids silent retry of the original plan (9284.2329ms)
✔ build/source mutation and sealed step tampering reject before browser dispatch; earlier task cannot execute plan (2852.4759ms)
✔ outside network never reaches another local service, and original JavaScript/console failures remain failures (4110.8937ms)
✔ stopping a real in-flight browser preserves finished steps, closes its owned root and never replays (4798.0503ms)
✔ 原PNG损坏使原结果校验失败,不能以已有通过状态复用 (4560.5423ms)
✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (1.0016ms)
✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (1744.0776ms)
✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (1842.991ms)
✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (1815.996ms)
✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1480.4399ms)
✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (2494.7678ms)
✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (2575.5445ms)
✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (8736.3693ms)
✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (2786.3553ms)
✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (2272.1653ms)
✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (1787.8538ms)
✔ input that fits the engine window but exceeds remaining credit diagnoses the credit limit (0.4943ms)
✔ window overflow and historical pauses retain distinct and honest diagnoses (0.0794ms)
✔ R observed reservation shortage keeps the window-fit diagnosis separate from Run/Task credit (0.0938ms)
✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (6791.0088ms)
✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (7004.0034ms)
✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (4108.33ms)
✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (4851.8349ms)
✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (6280.0314ms)
✔ batch APIs enforce ownership and review fingerprints, apply once, and persist the completed batch across restart (9998.9665ms)
✔ delivery reports bind actual batch identity and reject corrupted snapshot evidence without changing project files (5647.3611ms)
✔ a compatible model can seal proposals through the real HTTP loop while application stays behind user review (10295.6929ms)
✔ a sealed batch at the step limit hands off and continues the same Task into actual checks without replaying saved tools (21758.2827ms)
✔ applied batches cannot turn cancellation, other budgets, restart or unknown commands into a review continuation (3136.494ms)
▶ complete sealed batch hands off after all tools settle with no next model request
✔ complete (6633.4934ms)
✔ later-error (7082.6784ms)
✔ complete sealed batch hands off after all tools settle with no next model request (13716.9538ms)
▶ partial, changed, failed or cancelled batches cannot claim complete review handoff
✔ partial (5393.319ms)
✔ new-proposal (7100.977ms)
✔ failed (6950.9569ms)
✔ conflict (10984.6767ms)
✔ cancelled (9096.4512ms)
✔ unknown (6529.6966ms)
✔ tampered (6149.4238ms)
✔ partial, changed, failed or cancelled batches cannot claim complete review handoff (52206.7696ms)
✔ actual process exit at file-batch prepared preserves durable identity and never replays writes (2584.2786ms)
✔ actual process exit at file-batch application_started preserves durable identity and never replays writes (2766.252ms)
✔ actual process exit at file-batch write_intent preserves durable identity and never replays writes (2811.4537ms)
✔ actual process exit at file-batch staged preserves durable identity and never replays writes (3018.469ms)
✔ actual process exit at file-batch replaced preserves durable identity and never replays writes (4621.456ms)
✔ actual process exit at file-batch file_recorded preserves durable identity and never replays writes (7163.4784ms)
✔ actual process exit at file-batch finished preserves durable identity and never replays writes (5958.1769ms)
✔ actual process exit at file-batch rollback_started preserves durable identity and never replays writes (4357.5397ms)
✔ actual process exit at file-batch restore_intent preserves durable identity and never replays writes (4295.9254ms)
✔ actual process exit at file-batch restore_staged preserves durable identity and never replays writes (4109.4092ms)
✔ actual process exit at file-batch restored preserves durable identity and never replays writes (3800.7983ms)
✔ actual process exit at file-batch restore_recorded preserves durable identity and never replays writes (4054.4312ms)
✔ actual process exit at file-batch rollback_finished preserves durable identity and never replays writes (4225.6225ms)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/two.mjs', LF will be replaced by CRLF the next time Git touches it
✔ sealed batches preserve bytes until review, then apply and explicitly restore BOM/CRLF/new files (3237.8421ms)
Switched to a new branch 'owner-branch'
✔ a conflict in the last file or Git branch prevents writing every file in the batch (3917.5918ms)
✔ duplicate canonical paths, ancestor collisions, links, dependencies and Windows aliases never form a batch (1656.5664ms)
✔ fingerprints, changed proposals and corrupt snapshot artifacts cannot write or restore any target (2924.8755ms)
✔ a failure after replacement restores only batch bytes and never retries an old application (2278.8217ms)
✔ rollback preserves owner edits, blocks other project writers, and explicit acknowledgement releases recovery (2579.8502ms)
✔ an unattempted owner-created file identical to a suggestion remains external and is never removed (2387.8837ms)
✔ active batch requests are serialized and cancellation leaves a verifiable ended batch (1967.4662ms)
✔ batch application and rollback preserve unrelated Git index and worktree bytes (3525.6481ms)
✔ recovery reuses exact staged bytes but retains a conflicting temporary file for owner inspection (3360.5267ms)
✔ one Task can seal pending proposals from earlier Runs while snapshots retain each source Run (2704.527ms)
✔ engineering inspection preserves a dirty Git baseline and treats project rules as data (3265.7654ms)
✔ real npm tests and build produce counted results, log artifacts and persistent verification (3272.2014ms)
✔ an actual failing test retains the nonzero exit code and failed count (3101.3505ms)
✔ unchanged automatic checks return original failure evidence, while explicit user reruns and changed source still execute (5820.7951ms)
✔ agent loops cannot hide identical failing checks behind new plan IDs or unrelated reads (13695.5544ms)
✔ zero tests, skipped tests and unrecognized stdout cannot become verification passes (11188.4207ms)
✔ a successful build with no selected tests does not verify the task (3116.6586ms)
✔ stale check plans and forged script names execute no project commands (2146.6904ms)
✔ applying a later proposal invalidates the prior passed engineering snapshot (3161.7513ms)
✔ stopping an actual check terminates its child process and blocks concurrent jobs (2835.0079ms)
✔ check timeout records a failure with its actual termination result (3259.9131ms)
✔ source edits during a successful check make the result stale (4190.522ms)
✔ bounded large logs retain the test footer and readable artifact instead of inventing counts (2799.8124ms)
✔ model-selected checks require a run-bound decision and denial creates no check job (5166.7925ms)
✔ check APIs expose owned plans and jobs and preserve the authoritative results across restart (7871.6252ms)
✔ reviewed changes continue the original task without reopening a generic completed run (4310.8769ms)
✔ concurrent review-continuation API requests accept one run and retain the goal after restart (11501.2097ms)
✔ the model reads owned failure logs without running the check again (8304.4713ms)
✔ process exit at check queued preserves results and never replays commands (5319.4896ms)
✔ process exit at check result_committed preserves results and never replays commands (1881.4826ms)
✔ model code tools keep Task/Run ownership, index evidence and exact proposals across storage recovery (8028.6037ms)
✔ bundled code APIs isolate project results, validate queries and create review-only patches with conflicts (3518.3576ms)
✔ code tool arguments reject malformed ownership-independent inputs before side effects (0.3918ms)
✔ observe-only device authority cannot read, configure or clear project parsing caches (1593.2139ms)
✔ pairing is short lived, single-use, generation-bound and validates exact permissions (1823.2913ms)
✔ device transaction failure neither consumes the ticket nor leaves a credential (1094.4081ms)
✔ devices have project and action boundaries; rotation, expiration, revocation and host changes reject old authority (1640.3441ms)
✔ persistent registry stores hashes and a bounded audit, never raw credentials (1317.656ms)
✔ real TLS verifies IP SAN, CA chain, encrypted restart and public fingerprint (2258.942ms)
✔ TLS sealing failure leaves listener closed and no plaintext or successful TLS registration (865.0898ms)
✔ HTTP pairing is concurrent single-use; secure cookie and strict origin/host checks (985.1782ms)
✔ gateway never exposes management routes, arbitrary assets or unpaired project data (1260.8957ms)
✔ authorized project events paginate from original seq without leaking other project events or payloads (1918.8186ms)
✔ remote task projection excludes raw model history, host configuration, tool input and credentials (968.8877ms)
✔ permission checks apply to direct remote mutation, not only UI controls (1159.0008ms)
✔ approval fingerprint and exact task/revision are bound; duplicate requests never execute twice (1769.807ms)
✔ unknown original operation is recorded and never replayed after response failure (1704.2124ms)
✔ revocation and gateway closure reject old access without invoking runtime stop (1273.2178ms)
✔ rate limits reject pairing brute force and do not persist candidate secrets (1067.7098ms)
✔ real Windows CurrentUser DPAPI persists only a sealed CA and reopens it (2851.7308ms)
✔ mobile approval executes the original Runtime command exactly once and rejects the later desktop decision (3406.2917ms)
✔ desktop rejection wins a concurrent mobile request and original command remains unexecuted (3530.3365ms)
✔ phone stop waits for the original process exit and prevents later heartbeats and command replay (3905.8508ms)
✔ Run replacement during parent-stop wait is rejected rather than stopping the new Run (571.5631ms)
✔ diff pages preserve source SHA; report reads verify blobs and exclude unrelated artifact kinds (1242.0168ms)
✔ hot upgrade refuses an active gateway and restores closed gateway ownership on failure (1216.5799ms)
✔ damaged device permissions or expiry fail closed and never overwrite the original registry (1210.782ms)
✔ device revocation destroys its actual authenticated TLS connection (994.8847ms)
✔ companion observes only current Task screenshots, verifies original PNG bytes and loses access immediately on revoke (1607.6288ms)
✔ mobile browser observation is current Task/project scoped, preserves original PNG and exposes no browser control or profile data (1735.8969ms)
✔ actual config HTTP failure preserves the committed selection, config and volatile credential before a successful retry (1677.8507ms)
✔ controlled installation pins the native kernel and bridge independently of the existing connection-probe identity (1333.648ms)
✔ controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract (0.5662ms)
✔ owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations (5.0918ms)
✔ bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch (867.055ms)
✔ bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect (1327.164ms)
✔ bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity (880.1395ms)
✔ stopped and oversized bridge requests never reach a local model or tool callback (655.9799ms)
✔ a Windows virtual data-directory name binds new storage and credentials to its actual physical root (1931.4451ms)
✔ physical data-root adoption still rejects explicit junctions at the directory or any ancestor (919.6246ms)
✔ actual Windows CurrentUser DPAPI roundtrips owned UTF-8 and rejects damaged bytes and wrong entropy (1601.3842ms)
✔ only explicitly supplied keys persist; new provider restores original revisions and public views contain no key (3562.3972ms)
✔ registry and cipher commit failure restores original routing, keys, block and every database row (2899.2756ms)
✔ a two-key import with a protection failure rolls back all registry and cipher entries and retains its preview (3926.4997ms)
✔ connection revision changes retain the original saved block and report a source mismatch on restart (5364.955ms)
✔ disable skips real restart loading, explicit enable restores, delete preserves memory and forget removes both (3053.1027ms)
✔ corrupt saved block and another SID do not load; failures are visible without returning ciphertext or plaintext (3508.7095ms)
✔ legacy persistence requires a new explicit key and binds config and credential revisions; stale requests cannot save (3001.4008ms)
✔ owned plaintext keys never reach SQLite pages, WAL, config or public execution exports (1968.0122ms)
✔ reviewed application invalidates old checks, names current SHA and advances through a new approved check to Git preview (9364.8798ms)
✔ skip-tests, foreign task, unknown operations, diagnostic and parent review retain their boundaries (4651.4296ms)
✔ before the first change, real baseline failures persist across later reads; passed baselines and changed sources cannot certify delivery (9466.1754ms)
✔ actual process exit at Git queued never replays a commit and can reconcile the durable result (15495.0947ms)
✔ actual process exit at Git preparing never replays a commit and can reconcile the durable result (17222.019ms)
✔ actual process exit at Git index_locked never replays a commit and can reconcile the durable result (16987.3936ms)
✔ actual process exit at Git prepared never replays a commit and can reconcile the durable result (20234.4209ms)
✔ actual process exit at Git ref_prepared never replays a commit and can reconcile the durable result (23193.7848ms)
✔ actual process exit at Git publishing never replays a commit and can reconcile the durable result (19876.6576ms)
✔ actual process exit at Git committed never replays a commit and can reconcile the durable result (19699.0846ms)
✔ actual process exit at Git index_published never replays a commit and can reconcile the durable result (17616.6962ms)
✔ actual process exit at Git finished never replays a commit and can reconcile the durable result (21552.3059ms)
✔ an unknown Git result cannot overwrite an externally changed index or delete an unrelated lock (27035.6132ms)
✔ known publication with a later source edit retains the commit and marks the delivery for inspection (15952.0102ms)
✔ CRLF normalization, multiple applied revisions and unrelated special index flags preserve exact bytes and ownership (22712.9724ms)
✔ adding new durable record kinds to an existing hot Store preserves all existing Maps and records (10717.2786ms)
✔ an unrelated owner deletion is fingerprinted and preserved while linked task paths are rejected (15636.5742ms)
✔ actual failed tests become a reviewed local commit and evidence report while preserving unrelated index and files (17738.664ms)
✔ selected preexisting unstaged, staged and untracked owner edits cannot enter a task commit (23027.4037ms)
Switched to a new branch 'owner-branch'
✔ source, unrelated stage and branch changes after review invalidate a commit plan without changing HEAD (34775.865ms)
Switched to a new branch 'delivery-branch'
✔ a later Git metadata change keeps matching source evidence valid but a real source edit requires checks (16017.8826ms)
✔ a corrupt passed-check log and a pending proposal block Git delivery instead of inventing evidence (9481.9649ms)
HEAD is now at 02901ef Sealed delivery fixture baseline
✔ Git filters, merge state, detached HEAD and old task ownership are explicitly rejected (45597.7416ms)
✔ local snapshot commits disable repository hooks and signing and isolate the Git child environment (16677.3745ms)
✔ stopping before publication cancels safely; stopping after publication preserves the actual completed commit (40886.9405ms)
✔ delivery API confirms exactly one owned plan, serves verified reports and preserves results across restart (23871.4712ms)
✔ the model can prepare an owned Git review and evidence report while publishing remains a separate user action (11870.1198ms)
✔ HTTP Git review pairs deferred calls, survives reload and never requests more work until the saved preview is resolved (11883.7455ms)
✔ a reviewed Git preview can be revised or withdrawn without publishing or losing the current Task (18008.1088ms)
✔ actual Electron debug argument ordering retains exactly the compiled entry and rejects extra or repeated actions (1.3427ms)
✔ native bridge refuses other origins, subframes, other windows and unsupported inputs before connecting (878.7737ms)
✔ desktop preview opening requires a currently registered project preview and rejects iframe callers (990.3412ms)
✔ file reveal binds the current project, task, path, UTF-8 bytes and original SHA without executing the file (1912.3954ms)
✔ file changed during asynchronous task recheck is not revealed as the old bytes (2633.7237ms)
✔ desktop browser profile and aliases stay outside project inventory and file access (2479.0399ms)
✔ native picker cancel and origin change after dialog publish no project registration (2371.0598ms)
✔ pending native action is not dispatched twice, and current task review returns its original seq (2522.061ms)
✔ native stop cancellation and changed original host never stop a replacement process (2247.1076ms)
✔ window register rejects host PID, stale installation, extra fields and missing creation identity (0.4479ms)
✔ a rebuilt source archive binds actual generated client assets and retains its original running identity after disk changes (3400.5931ms)
✔ host challenge proof rejects a stale challenge, changed identity and changed signature (0.7725ms)
✔ stop confirmation binds the original instance, creation and loaded runtime (0.1344ms)
✔ state paths reject escaping, linked ancestors, ambiguous hardlinks and damaged JSON (4578.0655ms)
✔ failed registration publishes no initialized memory and can complete after its actual inputs are supplied (5820.3837ms)
✔ host shutdown cancels an un-signalled HTTP model request and refuses later requests until recovered (1.368ms)
✔ host shutdown cancels model-pool acquisition and releases queue ownership without inventing attempts (4460.1133ms)
✔ full candidate validation returns the exact loaded-input host identity and rejects undeclared or altered files (3767.1946ms)
✔ fast per-file scan still rejects a junctioned subdirectory, a hard-linked file and a stream path with the original bytes intact (3901.2622ms)
✔ installation requires separate absolute program/data directories and a candidate in its own versions namespace (2945.0832ms)
✔ inventory rejects a new hardlink on an optional file after its full-manifest scan and accepts the untouched candidate after removal (4159.1942ms)
✔ staging retains the original data and pointer without querying or restarting a host (5819.1061ms)
✔ a post-pointer failure restores every original pointer byte and persistent row; a first-install failure removes only its published pointer (13667.9947ms)
✔ changed active manifest and concurrent pointer changes are rejected without overwriting the unknown record (4824.2815ms)
✔ an unregistered non-HTTP listener blocks preflight even when service-info is absent (2877.8176ms)
✔ uninstall archives its original pointer and preserves every data row/artifact instead of recursively deleting data (7408.3993ms)
✔ preflight rejects an unrelated program root or changed native bootstrap while preserving its original bytes (4973.7509ms)
✔ a changed owned bootstrap follows its candidate and a post-pointer fault restores both original bytes (29293.6929ms)
✔ an external bootstrap change after preflight is preserved and never overwritten as an update or rollback (13199.2221ms)
✔ owned startup retries only read-only observation after a slow health response and attests the same original child (8306.0955ms)
✔ unverified startup expires with its original live child and never treats timeout or an unrelated health PID as proof (6263.7578ms)
✔ diagnostic failures and repeated questions retain the original execution error, task, checks and read-only authority (3037.6781ms)
✔ diagnostic binding survives reopen, rejects foreign Task references and detects original error or artifact tampering (1485.471ms)
✔ a new Task never adopts a previous Task error from session.lastFailure (1191.5111ms)
✔ verified research and explicit no-test scopes do not demand an unrelated test job or claim engineering success (2875.4389ms)
✔ unknown scope and unknown operations remain actionable even after a diagnostic answer or read proof (1860.365ms)
✔ delivery status HTTP is read-only, selection-bound and equal to the saved report after host restart (5053.0128ms)
✔ routine engineering facts remove duplicate success excerpts while complete diagnostics and errors remain available (639.1449ms)
✔ a question about the previous workbench error receives local error context and current change states (1613.03ms)
✔ an unknown model request stops, and explicit resume never replays the approved command (5365.0347ms)
✔ exhausted refused connections preserve tool results, and explicit resume adds no new user turn or replay (3560.2768ms)
✔ stopping during model backoff cancels further requests and clears the running request state (1373.9775ms)
✔ HTTP authentication errors are classified, redacted and never automatically retried (17.0092ms)
✔ temporary HTTP service errors retry and recover with recorded attempt counts (23.2454ms)
✔ invalid and oversized protocol responses fail once with a useful response-format diagnosis (5.4855ms)
✔ HTTP rate limits expose their source and obey the service retry interval before recovery (1013.1642ms)
✔ Windows commands preserve Chinese through a PowerShell pipeline into Node (1011.6542ms)
✔ Windows shell syntax errors stay readable and native command exit codes are retained (2131.6528ms)
✔ review and completed states do not turn a generic continue click into a new model request (3474.1972ms)
✔ old session data receives a truthful historical connection diagnosis without rewriting history (4046.1437ms)
✔ engine HTTP checks bind the detected installation and current task, page original bytes and preserve them across host restart (8501.3239ms)
✔ HTTP stop seals a pending SDK call, rejects automatic replay and keeps failures attached to the original session (9105.1914ms)
✔ sealed r1-off failure fits its original 16K config with authentic latest status and readable source (12.8336ms)
✔ sealed r1-on failure fits its original 16K config with authentic latest status and readable source (9.8247ms)
✔ sealed r2-on failure fits its original 16K config with authentic latest status and readable source (7.3896ms)
✔ sealed r2-off failure fits its original 16K config with authentic latest status and readable source (7.5272ms)
✔ archived native call pairs require exact saved arguments/results rather than model-written summaries (8.022ms)
✔ full system/user requirements and mandatory current failure can refuse rather than be trimmed (12.3863ms)
✔ small native input is byte-preserving; developer instructions remain mandatory after compaction (0.165ms)
✔ older failing checks and pending proposals remain visible after a later large file read (14.5235ms)
✔ bounded result keeps every check status and cuts Unicode only on whole characters (0.437ms)
✔ controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse (24631.4328ms)
✔ a sealed whole-batch review pauses the owned native session without certifying engine completion or losing the saved host result (20557.1026ms)
✔ a changed review seal still closes the owned native process and cannot claim a verified review handoff (17374.4602ms)
✔ native text and call IDs preserve original result pairing while unsupported content fails closed (0.6023ms)
✔ one engine child freezes real installation identity before creating tasks and rejects a changed source (10652.4469ms)
✔ owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs (43341.0793ms)
✔ forged native scope cannot change a parent file and a final completion claim cannot replace worker proof (20009.7583ms)
✔ duplicate native IDs are rejected without replaying a saved tool (17438.8326ms)
✔ native input exceeding the context budget is retained and sends no model request (14162.8465ms)
✔ bounded native sends verify original tool provenance and reject forged views or missing versions (18519.538ms)
✔ stop retains a late reported model usage once and executes no tool from that output (31605.7779ms)
✔ a source change after the original model intent stops before native tools execute (33295.8601ms)
✔ an engine source change while approval is pending invalidates the old permission before any check starts (34139.8094ms)
✔ missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text (0.5379ms)
✔ closed root with an original live descendant remains unknown and retains its process tree (0.2879ms)
✔ host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes (21091.3717ms)
✔ corrupted model reservation cannot reduce recovered budget or permit a new engine request (15011.5263ms)
✔ engine detection seals the actual CLI, SDK, profile and Node and rejects mixed versions without launch (1097.2604ms)
✔ owned engine probe waits for real ready identity, verifies six native responses and saves immutable task evidence (1615.1767ms)
✔ an invalid startup nonce is rejected before initialize and preserves the process close and partial report (1668.6178ms)
✔ SDK identity and session directory mismatches retain raw responses and never become verified (5813.3515ms)
✔ cancel during a pending initialize closes only the owned process without sending an unsupported MCP cancellation (2074.0923ms)
✔ cancel before readiness sends no protocol request and a user retry creates a different process and record (2359.1698ms)
✔ source or scratch changes and unexpected model traffic fail after preserving the actual observed result (5189.9058ms)
✔ unowned idle notifications stay quarantined and server requests receive a rejection without granting operations (3327.5241ms)
✔ engine probe environment excludes parent secrets and NODE_OPTIONS while preserving operating system paths (2175.4854ms)
✔ foreign sessions and altered reports or task bindings cannot reuse verified engine evidence (1668.2999ms)
✔ restart never replays an active engine check or stops a historical PID, and keeps prior task state (1558.8867ms)
✔ model argument validation and runtime activity do not grant external engine prompt or project execution (532.8222ms)
✔ a follow-up question receives the actual failed engine check from its original Task and keeps its report unchanged (2947.4282ms)
✔ unfixed dependency URLs and invalid integrity are reported without exposing URL credentials or allowing a plan (1254.5083ms)
✔ hot upgrade refuses an active dependency operation or evaluation before changing runtime objects (0.5307ms)
✔ read-only environment diagnosis identifies actual runtime, missing dependencies and sealed inputs without installing or running scripts (9024.4194ms)
✔ diagnosis rejects unsupported managers, lock integrity and credential configuration without reading config content (9239.5456ms)
✔ approved real npm ci runs only in owned worktree, skips scripts, retains logs and binds later actual tests (15359.4469ms)
✔ explicitly allowing lifecycle scripts executes sealed root script and preserves the separate preparation result (10007.3975ms)
✔ stale lockfile, tampered plan/config, cross-session identities and mismatched download sources never dispatch npm (9311.4739ms)
✔ registry failure keeps original npm exit/log and performs no automatic fallback or replay (10840.1437ms)
✔ stopping a hanging dependency download records only its owned process and preserves stopped logs (11258.1566ms)
✔ restart retains unknown preparation, blocks writes and checks, and requires explicit read-only reconciliation (8353.1742ms)
✔ HTTP environment flow survives refresh, requires explicit approval and preserves task and artifact ownership (16307.8994ms)
✔ Python environment diagnosis reads declarations and runtime identity without executing project code or installing packages (1768.1703ms)
✔ empty build cache directories keep dependency identity while added executable files invalidate it (1299.8779ms)
✔ dependency snapshots reject external links and incomplete budgets instead of claiming environment equivalence (986.6924ms)
✔ model-requested environment preparation uses the original approval boundary and never treats preparation as passed engineering checks (30992.9479ms)
✔ timeout and offline cache miss retain actual failures and new attempts require newly sealed plans (25860.4828ms)
✔ both evaluation worktrees can approve fixed dependency preparation and different actual dependencies reject candidate execution (57589.7927ms)
✔ evaluation denominator distinguishes attempted unsealed candidates from unexecuted samples (0.3259ms)
✔ evaluation summary retains sealed outcomes and stopped or failed original attempts (0.4433ms)
✔ evaluation contract fixes bounded samples, source paths, checks and aggregate budget (1150.2156ms)
✔ same-source workspaces seal real commands before execution and preserve original staged and unstaged bytes (21151.0192ms)
✔ actual original failures and candidate success are both preserved, then adoption requires parent review, checks and Git (69230.6444ms)
✔ candidate cannot shrink tests and changing original test bytes rejects execution before any model request (26773.288ms)
✔ missing upstream usage remains unknown and does not become a free run or invented cost (72298.5402ms)
✔ missing raw check logs preserve unknown result and original sample denominator (63620.5621ms)
✔ source and model changes never silently replace an existing batch input (4169.9564ms)
✔ model revision change before preparing a fixed sample cannot silently use the replacement connection (4386.8608ms)
✔ HTTP evaluations require host token, original fingerprint and session ownership; worker API cannot bypass evaluation flow (24200.6106ms)
✔ sample queue cannot skip or reset attempted samples, and reports freeze further writes (49733.502ms)
✔ stop cancels only current candidate and preserves partial results instead of replaying a request (41620.3878ms)
✔ restart recovers interrupted evaluations as unknown and keeps completed checks and plan identity (30735.4841ms)
✔ JSON migration survives process exit before commit and retains exact legacy backups (2171.2236ms)
✔ process exit after_state rolls back state, event and outbox together (1750.1942ms)
✔ process exit after_event rolls back state, event and outbox together (1776.2312ms)
✔ crash recovery at accepted retains execution identity and never replays side effects (1983.2775ms)
✔ crash recovery at queued retains execution identity and never replays side effects (2224.8422ms)
✔ crash recovery at approval_wait retains execution identity and never replays side effects (2906.9201ms)
✔ crash recovery at approved retains execution identity and never replays side effects (2920.2994ms)
✔ crash recovery at effect_unrecorded retains execution identity and never replays side effects (2926.0111ms)
✔ crash recovery at result_committed retains execution identity and never replays side effects (3616.4571ms)
✔ crash recovery at before_next_model retains execution identity and never replays side effects (5037.1273ms)
✔ state and event failures publish no success and preserve the last committed memory snapshot (864.8699ms)
✔ tool result artifacts and event cursors retain project ownership across restart (2049.7476ms)
✔ token budgets pause before tools execute and continuation keeps original task and accumulated usage (1382.1922ms)
✔ a time budget interrupts an unresponsive model and persists a resumable run (669.7987ms)
✔ a corrupted large result artifact cannot become a recovered success (692.1547ms)
✔ hard-link aliases cannot expose protected bytes through reads, proposals, inventory or automatic project rules (787.6511ms)
✔ ambiguous project hard links are explicit and ordinary independent file copies remain readable (669.9358ms)
✔ current-file HTTP receipts bind Task/Run and bytes, persist on restart and end without altering original runs or user Git data (5324.7409ms)
✔ file targets exclude referenced inputs and prohibited subsequent modifications (1.451ms)
✔ full actual read and existing receipt complete a no-test file task without fabricating changes, checks or commits (2752.2816ms)
✔ partial pages, partial lines, wrong hashes and failed reads cannot be adopted; contiguous full paging can (1504.9302ms)
✔ user edits and new requirements invalidate receipts, and a second task must explicitly adopt a source in its own project/session (1014.094ms)
✔ adopting an unchanged file never satisfies an explicit modification or a new modification instruction (899.5299ms)
✔ required checks and stale passing flags cannot be bypassed by current file receipts (990.1139ms)
✔ results plan proofs bind current file receipts while changes proofs still demand real applied change sets (825.0646ms)
✔ duplicate receipts cannot create progress indefinitely or reset no-progress reads (3507.9294ms)
✔ manual completion preserves the failed original run and refuses unknown operations (798.7995ms)
✔ completion refuses active work, files changed during inspection and a newly selected task (1024.4981ms)
✔ unrelated files cannot stand in for named output paths, nor can a late apply satisfy newer instructions with an old proposal (1274.4825ms)
✔ delivery and mobile projections distinguish adopted bytes, new changes, no tests and no commit; mutations cannot rewrite receipts (1649.897ms)
✔ proposals preserve project bytes until review; apply backs up the exact original bytes (590.8594ms)
✔ new nested files are created only on apply and unchanged content creates no proposal (641.8257ms)
✔ stale reads and changed baselines are rejected without overwriting external edits (755.081ms)
✔ file paths reject traversal, absolute paths, credentials and outside junctions (745.9744ms)
✔ read and search expose bounded text scopes and reject non UTF-8 / oversized files (540.8361ms)
✔ project-local junctions cannot expose or create protected Git and credential files (701.6043ms)
✔ Windows trailing-dot and trailing-space path aliases cannot bypass protected paths (605.8545ms)
✔ a starter is copied into user data once; restarting from another program version preserves existing projects and editable bytes (1338.5347ms)
✔ startup does not insert a demo or rewrite/reorder an existing user project registry (916.9893ms)
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (107.3118ms)
✔ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (24.4857ms)
✔ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (1157.0543ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (725.4029ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (1293.362ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (694.8488ms)
✔ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (3289.2605ms)
✔ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (3342.9609ms)
✔ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (3126.8129ms)
✔ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (2300.6577ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (1636.4891ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (1.5664ms)
✔ actual model comes from owned consumption, excludes other Tasks and deduplicates the current Run (1.542ms)
✔ mixed routes retain each original model/protocol/outcome and unknown use is never reported as zero (0.1372ms)
✔ zero dispatch, missing ledger, missing model and truncated Run history never borrow configured model identity (0.2109ms)
✔ repeated attempt identities across Runs and contradictory usage stay explicit instead of inflating successes (0.1129ms)
✔ observed route never certifies returned identity and retains mismatches and original source (0.1512ms)
✔ directory picker reads one level, preserves empty folders, skips credential and linked folders (1047.8843ms)
✔ HTML preview serves encoded names and relative modules on an isolated loopback origin; closing revokes it (1085.0182ms)
✔ HTML preview refuses credentials, hidden inventories, traversal, external junctions, hardlinks and unsupported file types (923.9455ms)
✔ runtime shutdown closes local preview ports and pending starts cannot escape shutdown (944.6324ms)
✔ idle file previews expire and release their loopback servers (1125.2932ms)
✔ directory and preview HTTP controls require workbench authentication; project pages cannot read bootstrap (4107.5007ms)
✔ MCP registration stays disabled until an explicit real stdio probe and schema-based tool selection, with actual process cleanup (3620.8238ms)
✔ MCP probe holds the project operation lock until its owned process and report are settled (2693.2302ms)
✔ MCP validates the declared JSON schema subset and rejects unsupported schemas before external dispatch (0.8355ms)
✔ actual model MCP call approves long schema-valid arguments, validates the sent catalog and stores one original result without leaking environment secrets (8496.3463ms)
✔ denying an MCP call never starts another process or executes the external tool (7096.0467ms)
✔ actual handshake drift rejects tools/call even if program entry hash is unchanged (11017.5439ms)
✔ cancelled dispatched external side effect stays unknown, closes its owned process and cannot replay on reopen (10638.6237ms)
✔ changed executable input, foreign project IDs and corrupted original contracts block enable and dispatch (4436.6331ms)
✔ registered MCP HTTP API uses fixed execution contracts and project-owned probe records with no model requests (7563.3965ms)
✔ unknown MCP pauses later tool calls and all project writers; fingerprinted acknowledgement clears only the review gates and explicit resume does not replay (11300.4194ms)
✔ MCP acknowledgement persistence failure restores both job and tool review gates; corrupt evidence cannot be acknowledged (8266.5751ms)
✔ actual host exit after an external effect restores unknown jobs without a fabricated report, allows source-bound review and never replays the call (9094.4782ms)
✔ changed enabled MCP programs can be explicitly disabled without launching or trusting their changed source (4138.747ms)
✔ stdio preserves split UTF-8 frames and final replies drained after process exit (5843.1516ms)
✔ server-initiated model requests are refused instead of inheriting provider privileges (2185.05ms)
✔ invalid or over-budget protocol invalid closes only its owned process and is not retried (1333.0102ms)
✔ invalid or over-budget protocol oversized closes only its owned process and is not retried (851.5899ms)
✔ cancel and timeout do not resend a dispatched request and pre-cancel has no request trace (953.131ms)
✔ startup failure remains undispatched and has no process PID to terminate (707.3679ms)
✔ REA launch filters a fixture credential canary and rejects changed entry identity before a new connection (1220.3129ms)
✔ schema1 connections remain readable without inventing observed capabilities or migrating original state (701.1348ms)
✔ protocol, unsupported capabilities and stream choice persist; client claims cannot forge verified evidence (761.8827ms)
✔ ability evidence belongs to exact connection and credential revision; unknown and unsupported reject required routing (0.318ms)
✔ invalid declarations and inconsistent stream settings reject before registry, revision and credentials mutate (896.0284ms)
✔ model registry keeps original credentials/endpoint intact, rejects stale edits, and forgets only volatile keys on restart (1381.7267ms)
✔ config import previews exact revisions, keeps secrets volatile, syncs only when enabled and preserves manual edits on conflicts (980.5142ms)
✔ real HTTP pool fails over 429 to another model and never repeats completed tools; attempts seal actual request bytes and Run identity (5996.6844ms)
✔ pool rotation and weights select members on new Runs; disabled and missing credentials are excluded without requests (8427.3588ms)
✔ 401 blocks the credential revision; updating the key restores availability without leaking error echoes (2079.3699ms)
✔ queued request cancellation and in-flight disable release only owned leases and do not dispatch another HTTP request (737.2376ms)
✔ compiled model-center HTTP API persists public profiles, blocks forged origins, and local operations never invoke a model (2443.984ms)
✔ model registry disk failures restore routing, pool profiles and credential references without partial updates (767.3563ms)
✔ model selection and saved configuration commit together and failures preserve the original mode and endpoint (823.6085ms)
✔ configuration imports roll back the entire batch and retain one usable preview after validation or commit failure (804.1644ms)
✔ HTTP quota retains native code/type/param/request id, bounded original and allowlisted headers, never repeats that connection (2021.9135ms)
✔ Retry-After above 90 seconds remains exact and a short local budget cannot trigger an early retry (1.8122ms)
✔ Retry-After date, expired date, huge value and invalid header retain explicit semantics (1.2602ms)
✔ unclassified 429 remains unspecified and every bounded actual retry retains its own original error (2101.094ms)
✔ oversized HTTP error saves exactly the bounded prefix and labels its incomplete range (1796.9858ms)
✔ Chat SSE error preserves upstream fields, original failed event, partial tool and reported usage without executing or retrying (2080.2809ms)
✔ Responses failed SSE retains original event/response identity and usage (2045.8544ms)
✔ Responses incomplete SSE retains original event/response identity and usage (2010.1553ms)
✔ unsupported successful Responses output retains original JSON and usage with a local protocol origin (2331.3182ms)
✔ HTTP 200 native error is still an upstream failure rather than a fabricated successful answer (0.8647ms)
✔ JSON-escaped credential echoes are redacted in the original preview and capture as well as parsed fields (0.6329ms)
✔ quota failover uses another independent pool member and never replays a failed stream (2678.5955ms)
✔ native parameters are isolated by pool member, preserve Responses state and bind the original output reservation (0.3381ms)
✔ unsupported native fields and invalid values reject before dispatch instead of silently dropping or overriding constraints (0.3196ms)
✔ native settings for legacy and registered profiles persist without changing credentials or old records and reject stale edits (971.1164ms)
✔ compiled native settings API saves/restores exact parameters and rejects reserved fields without mutating the profile (2181.8466ms)
✔ legacy connection test sends its saved native fields and selected output limit field without changing the configuration (2698.6582ms)
✔ identity distinguishes missing, invalid, mixed, exact and explicitly declared aliases without guessing (1.2854ms)
✔ chat-completions JSON rejects a different model before tool dispatch, retaining source and reported usage (2192.5279ms)
✔ chat-completions SSE rejects a different model before tool dispatch, retaining source and reported usage (3072.4576ms)
✔ responses JSON rejects a different model before tool dispatch, retaining source and reported usage (1688.1774ms)
✔ responses SSE rejects a different model before tool dispatch, retaining source and reported usage (1901.9721ms)
✔ record policy accepts missing identity but keeps it explicit, and strict declared mapping is frozen in the consumption (1.254ms)
✔ mixed streamed identities cannot pass strict mode, and interrupted streams retain observed identifiers without authenticating them (1.2107ms)
✔ identity refusal never fails over to another pool member and raw response model cannot leak known credentials (1910.5025ms)
✔ strict refusal remains visible even when the same original response exhausts the budget (1749.6126ms)
✔ strict identity crosses the controlled engine bridge with its original source and zero tool dispatch (22436.676ms)
✔ frozen direct connection policy and delivery reports preserve response identity without filling historical gaps (3246.9559ms)
✔ saved engine budgets verify all Chat/Responses route variants and reject a mismatched output allowance (779.2344ms)
✔ owned CC Switch SQLite imports the selected TOML Responses wire_api and leaves unknown clients untouched (801.4548ms)
✔ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (2572.5769ms)
✔ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (3131.3318ms)
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
✔ Reject {"body":{"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial" (1729.5273ms)
✔ Reject {"body":{"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","cal (1599.5377ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","cal (1549.3391ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supporte (1539.9448ms)
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (6419.2104ms)
▶ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay
✔ chat-completions (1601.113ms)
✔ responses (1626.9466ms)
✔ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay (3228.4942ms)
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.1962ms)
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (545.6493ms)
✔ reservation uses actual known usage from the same route, never lowers estimates or rewrites original receipts (1.7911ms)
✔ reservation verification binds original Task/Run consumption and rejects changed usage or foreign provenance (0.6725ms)
✔ known high input calibrates the next request and stops before dispatch while preserving the completed read (1599.0672ms)
✔ one reported overrun stops legacy requests and keeps actual use and excess (1479.2692ms)
✔ one reported overrun stops pool requests and keeps actual use and excess (1702.8327ms)
✔ one reported overrun stops connection requests and keeps actual use and excess (2101.5632ms)
✔ reported usage below the limit prevents an unaffordable legacy retry before another dispatch (1671.0652ms)
✔ reported usage below the limit prevents an unaffordable pool retry before another dispatch (1697.568ms)
✔ native bridge seals calibrated refusal with original consumption and preserves versioned request verification (23943.075ms)
✔ original R v1/v2 stay verifiable while v3 excludes the isolated input outlier and keeps the ledger intact (6.9265ms)
✔ v3 never excludes a repeated high ratio, the latest receipt, or a short history (4.4899ms)
✔ reservation proofs reject reordered latest high receipts, altered history and duplicates while old snapshots survive later consumption (5.4789ms)
✔ input-ratio exclusion preserves independently reported output maxima without rewriting historical v2 (3.4006ms)
✔ capability routing skips text-only members before acquiring a lease and records exact refusal in the original Run (1756.7422ms)
✔ all incompatible members reject with no network request, no lease, preserved Task and explicit non-dispatched ledger (1332.1649ms)
✔ explicit synthetic tool probe verifies only actual matching call, never executes it and loses verification on revision changes (777.2942ms)
✔ plain text probe cannot verify tools; wrong tool nonce and client supplied evidence cannot claim verified support (971.4707ms)
✔ a disabled connection invalidates an in-flight probe even when toggle mutates its original registry object (822.9848ms)
✔ selected connection owns the actual endpoint, credential, wire model and mismatch even when legacy is configured for GPT (4335.7572ms)
✔ budget-only API and demo/real selection preserve routes, reject injected endpoint fields and publish authoritative selection without keys (2845.5875ms)
✔ another session cannot change default model, mode or budgets while a request is active (4675.4207ms)
✔ HTTP download preserves original malformed SSE bytes and artifact SHA instead of decoding invalid UTF8 (3098.4808ms)
✔ terminated SSE adapts empty optional tool arguments, retains the exact wire bytes and executes the validated batch once (3823.3893ms)
✔ reported SSE usage survives rejected required arguments "" without dispatching any tool (2515.3192ms)
✔ reported SSE usage survives rejected required arguments "{\"path\":" without dispatching any tool (2772.3956ms)
✔ reported SSE usage survives rejected required arguments "null" without dispatching any tool (2762.2337ms)
✔ a stream without DONE retains reported usage but cannot adapt or execute even an optional tool (2739.4271ms)
✔ a timeout after reasoning-only fragments creates one unknown receipt and never invents reported tokens (2678.5789ms)
✔ real Chat SSE carries UTF8 and split tool JSON; Runtime executes only after DONE, stores partial progress and original usage (4292.0228ms)
✔ Responses typed SSE validates original item identity, terminal data, raw usage and tool result pair (4235.4ms)
✔ incomplete network stream retains unknown attempt and never automatically switches pool or dispatches fragment tools (4242.3938ms)
✔ stopping an active HTTP stream closes only original request and keeps partial text without executing tools (4186.0521ms)
✔ explicit streaming probe uses actual SSE despite unknown declaration and binds its own original attempt (1518.9498ms)
✔ coalesced initial SSE events publish the latest partial state even when the upstream stays idle (3437.1186ms)
✔ stream timeout closes the original HTTP response, preserves redacted capture and never retries (1413.3896ms)
✔ stream idle timeout preserves incomplete tool arguments, records unknown use and never fails over (3449.4415ms)
✔ SSE accepts CR-only final event boundaries and retains exact invalid UTF8 bytes without dispatch (0.7452ms)
▶ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data
✔ reject 0 (0.194ms)
✔ reject 1 (0.1688ms)
✔ reject 2 (0.1338ms)
✔ reject 3 (4.918ms)
✔ reject 4 (0.3102ms)
✔ reject 5 (0.4496ms)
✔ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data (6.7044ms)
✔ compiled host retains interrupted HTTP 200 and explicitly resumes after the recorded cooldown (15216.4995ms)
✔ compiled host retains interrupted HTTP 503 and explicitly resumes after the recorded cooldown (16831.4319ms)
✔ owned IPv4 service works after a failed IPv6 candidate without a second model POST or global DNS change (26.1669ms)
✔ environment HTTP proxy tunnels the owned request and NO_PROXY sends a separate direct request (10.4356ms)
✔ original connect timeout has a bounded nested cause and does not masquerade as response generation timeout (0.7406ms)
✔ POST accepted then reset is unknown, is charged once and never automatically retried (4.4227ms)
✔ partial HTTP bodies retain original request id and bytes, and an unknown pool attempt never switches model (4798.269ms)
✔ response wait timeout after an accepted POST is unknown; cancellation closes the owned socket and permits explicit reuse (148.9585ms)
✔ older configurations receive bounded wait defaults without changing the original object (1.1812ms)
✔ active stream survives sixty seconds; byte activity resets idle but cannot extend total deadline (0.7713ms)
✔ silent stream has its own accurate deadline; caller cancellation and cleanup preserve their cause (1.3724ms)
✔ waiting for headers is bounded independently of stream-idle time (0.2146ms)
✔ wait settings persist, pin new runs and leave model pool, credentials and old run snapshots intact (2375.2684ms)
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (2237.5763ms)
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (2146.8695ms)
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (2539.7704ms)
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (2975.2871ms)
✖ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1896.9409ms)
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (1535.2252ms)
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (1765.3154ms)
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (1591.3232ms)
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (2116.9606ms)
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (1743.3046ms)
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (1872.7248ms)
✔ unchanged proposals cannot hide repeated original-log reads or identical session inspections (13520.5211ms)
✔ reusing a verified proof never resets identical-state detection or creates a new proof (11288.6535ms)
✔ coverage merges adjacent pages, separates changed sources and never claims old Run coverage in a continuation (0.7203ms)
✔ paged inspection finds a corrupted old artifact outside the recent fifty and retains original evidence without model/tool execution (11049.7503ms)
✔ inspection rejects ambiguous/out-of-range pagination and reports unknown tool/task identity without resolving it (2194.1024ms)
✔ original source locks all 60 byte-identical files including modules outside the nine-file prompt experiment (1670.5499ms)
✔ a new original executable or missing license cannot silently join the fixed trusted-source profile (2549.3617ms)
✔ original mode has a separate source identity and does not accept retry or privilege fields (2646.7148ms)
✔ actual original model input requires the complete postPrompt once in system context and cannot borrow a user or tool copy (0.3482ms)
✔ Windows directory permissions normalize overlapping grants without allowing an unrelated sibling (3138.8086ms)
✔ durability broker rejects foreign authentication, outside paths and wrong file identity before real fsync (2677.6507ms)
✔ exact patches preserve BOM/CRLF, unicode and all unselected bytes and back up the original on apply (3543.2788ms)
✔ several patches are matched against one original snapshot in any input order and keep LF (2056.378ms)
✔ mixed line endings require exact anchors and preserve untouched formatting (1638.4871ms)
✔ ambiguous, overlapping, missing and malformed patch anchors never create a proposal or write (1334.4019ms)
✔ stale original hashes and changes before apply preserve owner edits and mark conflicts (2087.2448ms)
✔ no-op BOM patches/full content produce no change and replacements cannot split Unicode bytes (1164.5026ms)
✔ real owned Vite starts only after approval, records OS ownership and live changes, and stops its tree (17721.5249ms)
✔ occupied ports and approval-time conflicts never take over an unrelated listener (14988.0099ms)
✔ background preview final-log failure retains unknown evidence without an unhandled startup promise (19355.1591ms)
✔ stale source, tampered plans, wrong ownership and arbitrary scripts cannot dispatch a preview (14109.0691ms)
✔ restart retains original unknown preview, blocks mutation, reconciles absent identity without replay (16930.4464ms)
✔ an actual shell command keeps Node and UTF-8 output while omitting host-only credentials (1547.3306ms)
✔ real npm tests and build do not inherit arbitrary host credentials or Node injection settings (4267.4016ms)
✔ real Python tests and compilation keep their sealed inputs without host credentials (5743.6566ms)
✔ a process exiting between the Windows snapshot and owner query is absent only after a fresh query (1944.9621ms)
✔ owner observation errors remain errors while a process is present, replaced, or cannot be rechecked (2498.7336ms)
✔ cache controls require desktop authority, exact inputs and owned project identity while preserving task evidence (5217.9004ms)
✔ cache enablement and derived reuse survive a real host restart without becoming task recovery state (7781.4893ms)
✔ persistent parsing is project/SHA/config bound and produces identical semantic indexes after restart (3632.1514ms)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'main.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'value.ts', LF will be replaced by CRLF the next time Git touches it
✔ same-size restored-mtime changes, additions, renames and deletions cannot reuse stale entries or import targets (3284.9629ms)
Switched to a new branch 'other'
✔ branch and commit changes invalidate even byte-identical sources (7663.2428ms)
✔ corrupt, malformed and schema-invalid records fall back to fresh parsing (1950.3014ms)
✔ disable and clear persist without touching sources, sessions, configuration or original artifacts (2332.5963ms)
✔ cache capacity bounds disk and memory by bytes and LRU project count (3001.5624ms)
✔ incomplete scans do not load or save cached entries; unavailable files leave the current result scope (3239.6621ms)
✔ project and cache junctions cannot expose or delete an outside directory (1598.2733ms)
✔ concurrent file changes refuse a snapshot and clear during pending work cannot repopulate it (1010.6518ms)
✔ file access mode changes invalidate parsed material even when bytes are unchanged (1724.3497ms)
✔ tracked directory replaced by a junction invalidates access scope and never uses its old cache (6750.7696ms)
✔ JS/TS/React AST indexes actual declarations, exports, imports and verified source lines (2286.6896ms)
✔ default expressions, named default exports and declared functions retain their AST evidence (2002.7403ms)
✔ incremental refresh invalidates changed/deleted symbols and recalculates reused import targets (4056.953ms)
✔ Python candidates exclude comments and multiline strings and declare limited evidence (1832.5912ms)
✔ indexes isolate project identity and root and evict bounded caches without sharing results (2227.382ms)
✔ Git ignore, credential paths and links stay outside the index and no project files are executed (4325.2034ms)
✔ malformed, binary, non-UTF8 and bounded files expose partial coverage while good files remain searchable (2065.7105ms)
✔ index query rejects invalid limits/types and does not imply reference or alias resolution (2481.2517ms)
✔ read-only engineering inspection disables configured Git clean filters and preserves index bytes (2092.165ms)
✔ Python multiline declarations retain candidate scope without interpreting expressions as declarations (1103.9554ms)
✔ TypeScript module candidates support import-equals and MTS/CTS while opaque imports stay explicit (1535.411ms)
✔ actual HTTP requests reuse only this project source-checked memory as redacted data and preserve sent evidence after archive/restart (6643.7856ms)
✔ actual HTTP request excludes archived, timed-out and foreign-project memories (6756.1274ms)
✔ actual next HTTP request removes expired memory after a tool observes a source change without replaying that tool (5041.1903ms)
✔ incomplete inventory and excluded-file SHA changes cannot enter actual HTTP memory context or inspect_session snapshots (4782.2261ms)
✔ corrupt original artifact expires its memory and cannot reach an HTTP model request (4465.5112ms)
✔ memory JSON is bounded in escaped UTF-8 bytes and entry count, skips oversized entries and retains complete multilingual values (5959.1201ms)
✔ optional memory yields to the complete goal and original code evidence under the whole-request budget (2232.9808ms)
✔ changed sealed memory artifacts or binding fields fail verification while the original request remains immutable (3352.1692ms)
✔ a malformed project declaration omits optional memory while the repair Task still reaches the owned HTTP service (3929.1793ms)
✔ an expiration persistence failure prevents dispatch and is not hidden as an optional scan failure (2248.5331ms)
✔ project memories persist across restart, keep source provenance, and are visible across tasks (2547.9336ms)
✔ source changes expire current project memories and keep the original evidence (2118.1663ms)
✔ incomplete source scans mark current memories unverified without expiring or reusing them (1678.31ms)
✔ explicit file provenance is rechecked even when the inventory excludes that path (1369.2146ms)
✔ execution snapshots do not expose project memories before their source scope is validated (1739.8817ms)
✔ project memory records stay isolated and archive requires the owning session (2127.5399ms)
✔ project memory HTTP API exposes read-only source status and explicit writes (4022.2253ms)
✔ two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default (991.8789ms)
✔ incomplete, unsupported, relative and oversized sources cannot enable the experiment (714.3799ms)
✔ invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created (4498.5665ms)
✔ source edits between detection and plan are rejected without creating a parent Task (3530.6595ms)
✔ source edits after sealing cannot launch a child and do not reset its cumulative budget (15871.2284ms)
✔ literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required (41230.7864ms)
✔ source changes after a model response stop before any native tool is accepted, retaining the actual usage once (17672.3803ms)
✔ source changes while approval is pending invalidate the old permission before an engineering check starts (17635.8356ms)
✔ altered text, interpolation, section order and policy flags cannot reuse a sealed experiment (1856.1828ms)
✔ the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy (2963.1281ms)
✔ a missing or duplicated experimental section in the actual input is rejected before any model dispatch (25456.0644ms)
✔ experimental prompt overhead still participates in the original complete-input budget guard (14016.2192ms)
✔ source detection HTTP remains local-authenticated and read-only with no configured model requests (2541.5397ms)
✔ Python HTTP plans keep npm defaults, require owned approval and preserve actual results across restart (16790.3128ms)
✔ an isolated three-module Python Task repairs, checks and delivers a source-bound Git report without extra model calls (54611.5373ms)
✔ Python static inspection does not import project code or probe a project interpreter before approval (1500.2454ms)
✔ a real three-module Python failure, reviewed repairs, tests and compilation retain exact structured evidence (5120.1309ms)
✔ unittest counts repeated execution ordinals and subtest skips rather than deduplicating display names (3896.4781ms)
✔ unittest empty, skipped, expected failure and class initialization errors never verify a task (9559.7714ms)
✔ stdout claims cannot replace actual unittest results and an early exit cannot forge a successful collector (3853.1645ms)
✔ compilation reads actual Python source bytes without executing top-level project code (4289.3889ms)
✔ Node and Python mixed projects retain the existing npm default and require an explicit Python selection (3875.8531ms)
✔ changed project interpreters and forged Python plan bindings execute no check (2624.5875ms)
✔ malformed TOML and invalid Python test paths are reported without expanding npm check scope (1619.8239ms)
✔ stopping a real Python check terminates its child and keeps the completed result as cancelled (2794.8434ms)
✔ real pytest pass, failure, skip, collection errors and teardown errors use collected case outcomes (21923.4639ms)
✔ a real project virtual environment is detected statically and its actual version is recorded only during the approved check (10412.1243ms)
✔ a missing interpreter and repeated pytest item objects cannot create a false verification pass (4129.4907ms)
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (0.9738ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (7940.5988ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.2509ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.382ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (9.2867ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.3839ms)
✔ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (10096.1403ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (12202.9064ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (10405.886ms)
✔ continuations distinguish unread source, later original line ranges and already returned result wrappers (1891.5416ms)
✔ pure-file batch returns unused small-page space while mixed and historical allocation stays conservative (0.3217ms)
✔ v3 pools mixed file/log reads, serves small sources first and leaves historical/mutating batches unchanged (0.2783ms)
✔ v3 W-shaped mixed reading returns complete small modules and substantially larger first test pages in the next bounded request (7531.8373ms)
✔ observed upstream high input pauses before a new request, preserves reported usage and distinguishes the limiting ledger (823.3054ms)
✔ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (7605.6841ms)
✔ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5755.9333ms)
✔ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5219.5104ms)
✔ an installed app outside the source drive resolves registered SDK and Purge through actual input verification (953.2724ms)
✔ standalone registration resolves the upstream metadata directory and missing upstream falls back to the other registered source (1009.5534ms)
✔ registered hints keep explicit roots, environment and existing app-relative candidates in their original priority (1210.5887ms)
✔ unknown IDs, duplicate registered IDs, wrong versions and relative or inconsistent metadata are not lookup candidates (1171.2802ms)
✔ oversized, malformed, invalid UTF-8 and non-file registry inputs cannot silently enable a source (786.4229ms)
✔ a linked registry directory is rejected without reading or deleting its external source (580.5688ms)
✔ matching research declarations do not replace actual installed version and critical-source checks (723.0145ms)
✔ runtime guides map archived evidence while all original reports and successful/failed source bytes remain independently verifiable (988.3169ms)
✔ missing required research reports fail packaging rather than creating a successful placeholder (882.2138ms)
✔ full verification reports only verified bytes, complete declared scope and actual directory inventory; changed/deleted files still fail (1100.1285ms)
✔ preflight and activation continue one monotonic operation bound to installer hash; terminal replay and changed origin are rejected (8907.1716ms)
✔ preflight failures and fixed-candidate mismatches retain the actual reason without publishing a pointer (5877.4204ms)
✔ cancel finishes only the original ready preparation, preserves data and pointer and refuses replay (7862.7096ms)
✔ the installation lock rejects concurrent same-id operations before they can overwrite original progress (4832.1673ms)
✔ original post-publication failure is linked to its rollback receipt and every original byte survives (6653.7719ms)
✔ a candidate mutation at the publication boundary still fails even after an earlier successful full validation (9714.0438ms)
✔ public progress marks a lost process unknown without editing its original record or claiming completion (6206.5611ms)
✔ throwing console/UI progress observers cannot decide the installation result (7891.0723ms)
✔ a progress-only write failure after committed publication returns the authoritative receipt and a warning (4271.1913ms)
✔ browser and MCP approvals use actual tool categories; mobile exposes only category while keeping original fingerprint (965.797ms)
✔ the compiled runtime version constant tracks package.json so a release bump cannot ship a stale served version (10.4388ms)
✔ context APIs retain exact request identity, paginate archived groups and reject foreign sessions/runs (3783.1008ms)
✔ delivery reports verify request body, sealed plan and original archived bytes, and show corruption as needing verification (2849.3053ms)
✔ native seed framing reserves capacity before optional history without changing the selected window (1069.1793ms)
✔ direct code evidence remains selected while recent historical-index browsing is archived within the complete request budget (2850.8932ms)
✔ one long user turn becomes bounded complete groups with exact UTF-8 history and recent JSON arguments (5837.6879ms)
✔ tool definitions, exact system bytes, output reserve and remaining Run/Task budget are accounted before requests (810.4583ms)
✔ oversized required user instructions pause intact and can be explicitly resumed after increasing the window (1907.8386ms)
✔ all task instructions, constraints and acceptance remain in the runtime system instead of an eight-item or byte prefix (2101.8304ms)
✔ a newest manageable multi-tool group stays exact even beyond the working target; oversized earlier groups are archived (897.589ms)
✔ invalid orphan result is rejected before archive or network preparation (679.3146ms)
✔ invalid missing result is rejected before archive or network preparation (798.5945ms)
✔ invalid wrong result is rejected before archive or network preparation (1135.9733ms)
✔ invalid duplicate call is rejected before archive or network preparation (879.6104ms)
✔ a group larger than the artifact limit uses verified Unicode-safe chunks without replacing tool JSON (1915.8082ms)
✔ changed or missing archived evidence stops reuse and is never silently recreated (1684.3471ms)
✔ transaction failure prevents publishing a plan and any corresponding model request (1451.5286ms)
✔ the Provider rejects body mutation after a sealed plan before calling HTTP (1474.636ms)
✔ HTTP failure and explicit same-Task resume reuse exact completed results and request hashes without repeating a command (11718.1459ms)
✔ a real process exit after plan persistence marks interruption and never issues an automatic model request (1743.8139ms)
✔ local draft preserves exact original ranges and duplicate source instances without inferring outputs or accepting facts (859.8498ms)
✔ review keeps unknown blocking, references distinct from output and boundaries distinct from compliance evidence (2353.2613ms)
✔ draft adoption must account for every original range and does not fill paths from a reference (1855.3828ms)
✔ source and requirement changes, other Tasks and tampered draft bytes are rejected without losing originals (3617.9817ms)
✔ partial explicit source review leaves the other source unreviewed while old file evidence remains valid (1406.5174ms)
✔ bounded draft does not claim full source coverage and cannot acknowledge an omitted remainder (654.776ms)
✔ draft HTTP preserves its original artifact across restart and rejects stale scope and source versions (5021.7538ms)
✔ requirements HTTP binds selection, enforces optimistic revisions, restores original proofs and leaves provider history untouched (5225.0615ms)
✔ research evidence binds actual original bytes; model completion is not user acceptance (1754.6945ms)
✔ same text with distinct user source instances stays distinct; an appended requirement only invalidates its own revision (1645.326ms)
✔ foreign project, old Task and fabricated evidence strings are rejected with preserved failed proofs (4734.0011ms)
✔ source changes invalidate prior proofs and cannot certify a read that was already stale at binding (4545.9056ms)
✔ missing or tampered artifacts never become evidence and original failures remain after recovery (3325.6357ms)
✔ checks omitted by explicit agreement are reported as not executed and never passed (1501.4365ms)
✔ user confirmation stays separate from engineering evidence, is bounded to current inputs and cannot be silently converted (1775.0524ms)
✔ existing multi-file results keep provenance and invalidate only evidence whose files changed (2745.2533ms)
✔ unrelated additions preserve the checked file facts but remain visible as unreviewed user sources (2275.0992ms)
✔ actual Git preview and publication recheck changed requirement bindings without touching HEAD or the owner index (11576.6488ms)
✔ no-test file application and manual completion keep pending user requirements for explicit review (5608.4254ms)
✔ revision races, forged source ranges, evidence fields and deletion cannot overwrite sealed requirements (1423.8327ms)
✔ requirement binding prevents completion and Git acceptance after a review changes; legacy tasks stay explicit (4694.2939ms)
✔ deep Windows data directories keep REA output within the external path allowance and retain owned evidence (4215.4469ms)
✔ user research registration creates an owned Task without model requests and seals the exact artifact identity (2431.7782ms)
✔ complete research binds original Evidence and Bundle, pages exact fields and reuses verified results after reload (4299.2135ms)
✔ artifact changes before analysis refuse dispatch and changes during analysis preserve unverified original responses (4609.9084ms)
✔ owned cancellation closes the connection, concurrent and automatic retries are refused, explicit new analysis preserves history (3060.1814ms)
✔ a dispatched transport timeout stays unknown and reload never launches or kills a saved PID (2658.2215ms)
✔ corrupt Evidence parts and changed binding records are refused instead of silently re-analysed (3434.0363ms)
✔ research documents over the single-artifact limit preserve exact Unicode bytes with owned verifiable parts (1713.2876ms)
✔ research tools are only sent for registered Task artifacts and actual HTTP uses the sealed tool contract without replay (16297.5742ms)
✔ file identity rejects directory and invalid formats without running a target (1179.5625ms)
✔ a stop from the event loop interrupts immediate model replies before later tools (2855.3288ms)
✔ a stop after the first tool preserves a complete interrupted multi-call protocol group (3062.748ms)
✔ the compatible HTTP loop preserves call IDs, validates errors and waits before executing commands (9426.6608ms)
✔ denial prevents command execution and produces a paired denied result (7098.2124ms)
✔ stopping during approval interrupts pending calls without executing or replaying them (6386.2453ms)
✔ stopping a running fixture command terminates its own process tree and retains uncertain state (6417.833ms)
✔ command output decodes split UTF-8 and excludes the workbench key from child environment (2796.0954ms)
✔ model-list testing uses a tentative key without changing the saved connection and redacts service errors (6.7825ms)
✔ truncated or repeated model calls fail before execution; tool input validation rejects unknown capabilities (11133.4221ms)
✔ request projection keeps exact tool pairs and complete recent user instructions while preserving disk history (3205.9161ms)
✔ local skill revisions require explicit enable, retain original text, survive restart and stay within the selected project (1997.0001ms)
✔ registration rejects non-SKILL paths, oversized/non-UTF8 files, duplicate sources and wrong field shapes without running project code (676.1302ms)
✔ actual HTTP models receive only enabled current-project metadata, then a redacted owned skill page with complete tool pairing (4782.5682ms)
✔ source edits after a catalog request prevent the read and appear as changed on the next request without replay (4541.5743ms)
✔ disabled and foreign skills cannot be read by guessing their IDs from another project (5290.2892ms)
✔ skill catalog takes remaining escaped JSON budget and cannot evict the user goal or current code (4927.0331ms)
✔ multilingual skill body pages fit actual tool JSON bytes and every page uses the same immutable artifact (13021.7247ms)
✔ registry failures roll back enable and refresh state; corrupted snapshots block requests before network (4817.3676ms)
✔ saved skill catalogs retain SHA-bound historical evidence and reject corrupt catalog blobs (7694.9185ms)
✔ HTTP skill administration enforces project scope, revision checks and idle mutation without model calls (6524.9544ms)
✔ JSON state keeps an atomic backup and preserves corrupt primary files (2418.7151ms)
✔ tool-pair recovery fills missing results and drops orphan or duplicate results (0.362ms)
✔ restart pauses unfinished work, retains proposals and never replays a command (2879.4394ms)
✔ public snapshots carry increasing revisions without the private provider transcript or config key (3038.7652ms)
✔ a checkpoint seals all task requirements and original results without a model request and explicit continuation keeps the same Task without replay (11966.6676ms)
✔ checkpoint sources, requirements, plan and original tool changes block continuation and leave original checkpoint bytes intact (3787.9096ms)
✔ unknown tool effects and pending proposals stay blocked in recovery packages rather than being changed into completed work (3564.8139ms)
✔ checkpoint and referenced result corruption are rejected before dispatch and historical blobs are never rebuilt (3355.5881ms)
✔ checkpoint ownership, exact confirmation and concurrent operations reject foreign or stale resumes (4184.8385ms)
✔ Git identity changes and altered plan proofs cannot be accepted as the sealed recovery state (4260.7464ms)
✔ checkpoint records survive SQLite reopen and do not trigger automatic model or tool replay (3240.7365ms)
✔ incomplete scans and in-progress project activity refuse checkpoint creation while private credentials are redacted from saved requirements (4065.6803ms)
✔ oversized recovery evidence is refused before reading or publishing the checkpoint (3941.4461ms)
✔ compiled checkpoint HTTP APIs bind current Task/Run, isolate sessions and only resume on an explicit matching confirmation (9343.8339ms)
✔ actual process exit before checkpoint commit retains only durable records without replay (5467.0528ms)
✔ actual process exit after checkpoint commit retains only durable records without replay (3198.0712ms)
✔ a real two-reply failure replay reaches request three at 16K with complete goal, original sources and sealed tool evidence (12179.5968ms)
✔ request deduplication retains long original intent, extra requirements, constraints and acceptance without changing the stored contract (2338.0065ms)
✔ only the routine context avoids plan echoes; diagnostic API and requests without an included plan keep original observations (756.7482ms)
✔ operational questions are diagnostic while explicit repair requests remain execution instructions (1.0327ms)
✔ an explicit prohibition on running engineering checks is not interpreted as a requirement to run them (1.6901ms)
✔ file delivery requires a positive instruction, not saved evidence or a prohibited write (0.2781ms)
✔ an unsubstantiated text claim cannot complete a requested file delivery (1781.5857ms)
✔ HTML without tests ends at reviewed file delivery and never offers automatic rechecking (3332.2333ms)
✔ diagnostic answers retain the unfinished task, limits and check result, and enforce read-only tools (4196.1251ms)
✔ review continuation is a system action and adds no testing demand or fake user instruction (2895.0686ms)
✔ a provider cannot execute tests against an explicit no-test task even if it ignores advertised tools (2527.6806ms)
✔ a budget pause becomes visible only after its input snapshot can be sealed with the original Run (2071.2139ms)
✔ alternating duplicate file reads and listing files still pauses without treating new pages as duplicates (21275.25ms)
✔ task-plan HTTP mutations bind current Task/Run and retain original evidence through real host restart (5760.7364ms)
✔ concurrent stale HTTP plan revisions cannot replace conditions or attach proofs to a different plan (3906.0056ms)
✔ a real escaped long-file tool message keeps its proof identity within a tight request budget (1393.2209ms)
✔ task plans reject fabricated completion, invalid scopes and cyclic or missing dependencies (0.5344ms)
✔ sealed plans retain goal, contract hash and original steps through SQLite reopen without executing tools (686.2746ms)
✔ proofs require original owned reads, honor dependencies and reject altered invocation arguments and bytes (1510.4229ms)
✔ new user requirements invalidate current proofs and reseal the same original operations in a new revision (1449.015ms)
✔ applied change-set evidence binds reviewed current files and invalidates dependent steps after outside edits (2727.388ms)
✔ actual npm checks are verified by original counted logs and current source, with failure history retained (11984.9957ms)
✔ real desktop and mobile browser proofs bind required actions and PNGs, rejecting source changes, a later failed plan and changed builds (14725.9436ms)
✔ Git delivery blocks incomplete plans and changed preview bindings, preserving HEAD and owner index before a fresh verified commit (21474.6141ms)
✔ the runtime supplies owned read IDs and completes a plan only after original step evidence verification (3043.8499ms)
✔ premature model completion pauses the original Task and resume preserves the existing plan without replay (4385.2135ms)
✔ plan operations participate in project activity and orderly shutdown (1057.0896ms)
✔ actual process exit before plan save restores only committed plan evidence without replay (1332.6705ms)
✔ actual process exit after plan save restores only committed plan evidence without replay (1905.1855ms)
✔ actual process exit before proof save restores only committed plan evidence without replay (1425.0772ms)
✔ actual process exit after proof save restores only committed plan evidence without replay (1298.7105ms)
✔ the latest oversized session result reaches the next request together with already read source modules (3106.7007ms)
✔ every call in a large latest group keeps its actual outcome, including denied and unknown results (2827.2455ms)
✔ a small complete latest tool group is sent once and needs no duplicate feedback view (2049.269ms)
✔ real HTTP repeated state inspection pauses after three identical engineering outcomes and preserves tool pairing (5005.3578ms)
✔ fixed normal exploration, pagination, SHA changes and repeated ranges are external observations, not a score (1.4193ms)
✔ read-only research is valid work; model summaries and unchanged timestamped listings do not become engineering evidence (0.4089ms)
✔ new permissions, network and broken tools are failure evidence; repeated invalid inputs remain candidates (0.4029ms)
✔ waiting for original long checks, review and approvals stays waiting across repeated observations (0.527ms)
✔ baseline facts, real repairs, current-source check results and requirement evidence have distinct growth (0.2135ms)
✔ bounded memory keeps unknown instead of claiming an unretained range is repeated; Task/Run instances cannot mix (12.4683ms)
✔ actual runtime records growing pages then a repeated page without changing model rounds, stop rules or original tool pairs (5679.7906ms)
✔ actual invalid tool calls repeat under the original step budget; observation never adds an early stop (5393.3118ms)
✔ actual command approval is observed as waiting and denial stays a permission failure (5209.9526ms)
✔ network errors remain model failures with shadow failure evidence, never a fabricated no-progress cause (6087.1405ms)
✔ observer receipt failure cannot change tool results, model budget or completion (4900.6358ms)
✔ a later receipt recovers after an observation write failure without misaligning retained source receipts (4961.5963ms)
✔ real applied files, counted checks and current requirement proofs grow after an existing-facts baseline (5894.9459ms)
✔ receipt retention stays aligned at the cap and a foreign step cannot enter the Run (2756.0968ms)
✔ an actual approved long check records its owned running job as waiting before the original counted result (7146.5986ms)
✔ a live SQLite host with the actual 1.9 artifact object upgrades, keeps its original blobs and verifies real browser PNG bytes (7015.3507ms)
✔ failed upgrade restores the original artifact object, provider and request handler (1849.9865ms)
✔ claiming the same runtime owner twice preserves its original metadata and every database row (2620.1193ms)
✔ sessions without controlled-engine history retain their prior export shape and never expose another session record (1524.1151ms)
✔ live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows (1340.6516ms)
✔ an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects (1511.0357ms)
✔ an installation failure restores old managers, original record maps, handlers and all existing database rows (1674.7503ms)
✔ the owned controlled driver remains an active session and project even after outer task activity has ended (619.9124ms)
✔ release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory (928.6172ms)
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1368.9252ms)
✔ failed adoption restores the original virtual data-root name and original open database (863.2031ms)
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (826.4066ms)
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (912.0905ms)
✔ the upgrade compatibility gate includes the served current version and the previous formal patch (0.4321ms)
✔ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (4430.6178ms)
✔ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (8141.1223ms)
✔ HTTP worker identities require a current sealed plan, reject overrides and close unused plans without touching source (28957.9146ms)
✔ HTTP unknown recovery only accepts the original evidence SHA and preserves changed source for explicit retention (43640.0306ms)
✔ verified isolated outputs form a new parent batch, rerun real checks and commit only reviewed source (114773.2939ms)
✔ overlapping worker paths are explicit conflicts even if each independent task checks successfully (76423.4572ms)
✔ source edits after isolated work preserve the owner file and invalidate collection without proposing a merge (49912.5394ms)
✔ changed child bytes after parent preview block the entire batch before any parent write (61604.0309ms)
✔ corrupt original check logs cannot become collected outputs or a parent review (51238.0761ms)
✔ stopping a parent accounts late responses and executes none of their proposed tools (34055.7169ms)
✔ unreported interrupted requests reserve estimated usage and the total deadline cannot reset on resume (32700.4144ms)
✔ a deadline before worker request dispatch records no invented usage and cannot reset on resume (29766.3381ms)
✔ a response exceeding the cumulative token allocation stops before registering or executing its tools (38146.591ms)
✔ cumulative tool allocation rejects the entire returned batch before any tool side effect (24171.7135ms)
✔ single response 16 tool ceiling rejects the entire returned batch before any tool side effect (19063.6254ms)
✔ consumed request steps remain consumed across explicit worker resumes (21710.4055ms)
✔ a saved completed response with missing usage is conservatively accounted exactly once during recovery (16604.7141ms)
✔ an unexecuted second workspace plan resumes its original identity without recreating the first checkout (22414.0758ms)
✔ a verified interrupted parent proposal resumes sealing without duplicating or replacing its original change (80793.2714ms)
✔ recovery attaches a sealed parent batch saved before its group reference without creating another batch (53503.3775ms)
✔ explicitly retaining an unexecuted parent merge cancels its batch and frees the next parent goal (49584.5658ms)
✔ unknown collaboration blocks ordinary proposals but permits only original batch recovery and rollback (54500.2346ms)
✔ after a restart the batch application lazily reinstates the worker result guard before any parent write (50208.8797ms)
✔ unknown original tool inputs must match before acknowledgement, and reviewed checkpoint IDs preserve the unknown fact (18803.0148ms)
✔ a parent stop observes and waits for a manually approved child check and its real descendant process (17762.869ms)
✔ a real host crash preserves unknown checks, refuses a still living owned PID and never replays a model or tool (30953.8024ms)
✔ a persisted child initialization resumes the original control run after a failure before its worker record (17047.1417ms)
✔ failed request intent persistence never dispatches a worker request or changes source (17601.4155ms)
✔ failed usage persistence rolls back the uncommitted usage and conservatively reserves one unknown request without tools (17555.2636ms)
✔ a child file change after observation prevents acknowledgement even when the tool inputs did not change (18820.663ms)
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (596.4504ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (24105.4187ms)
✔ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (43195.8391ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (15710.907ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (19509.1102ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (16036.9658ms)
✔ all actually returned same-version fragments reach the bounded request, including overlap and Unicode, with independent original provenance (4043.3613ms)
✔ unread gaps and different range origins remain separate; partial sending names the precise missing already-observed range (818.119ms)
✔ same-SHA conflicting overlaps and invalid coordinates fail closed, while a new SHA never inherits old fragments (933.8648ms)
✔ versioned old views keep the original single-page semantics and verification (773.6895ms)
✔ small code and actual failed command stay visible when their original multi-tool group cannot fit (991.6556ms)
✔ mixed group retains six distinct small file observations with exact multilingual text and bounded request bytes (1421.3766ms)
✔ working observations are bound to the current Task and stop treating a pre-application file revision as current evidence (1911.3518ms)
✔ a sealed observation rejects changed or missing original result artifacts instead of recreating evidence (1594.0872ms)
✔ a real passed-check observation is excluded after a source edit invalidates the check, while its historical sent evidence remains valid (5337.8457ms)
✔ budgeted file pages reconstruct UTF-8 text including long single lines and surrogate boundaries (4.5903ms)
✔ actual HTTP multi-tool reads survive an oversized runtime snapshot and the sealed evidence survives reopening (10915.2707ms)
✔ actual HTTP file pagination advances over a long file with each returned page visible in the next request (8799.1948ms)
✔ later mixed history pages cannot displace the actual module sources and complete requirements (6530.9916ms)
✔ a later narrow page of the same file revision cannot evict the wider actual observation (3081.4401ms)
✔ six small source files stay complete across metadata turns even when mandatory evidence exceeds the soft target (3017.9778ms)
✔ historical read-artifact navigation points to the original artifact and next page, never its result wrapper (1074.0928ms)
✔ a 1.6.1 full-provenance sent view remains verifiable after introducing the compact view (1168.0826ms)
✔ actual HTTP requests keep four observed modules after a later large history read and preserve all source bytes (10824.1238ms)
✔ workspace HTTP ownership, reviewed creation and reopen survive restart without changing source files (11825.1905ms)
✔ isolated model Task applies a batch, executes real checks and commits at the Git review boundary with a source-bound report (39083.4702ms)
warning: in the working copy of 'src/空 格.mjs', LF will be replaced by CRLF the next time Git touches it
✔ worktree checkout disables hooks, fsmonitor and all filter command variants while honoring built-in EOL conversion (7622.7201ms)
✔ an ignored external file at checkout is observed and never accepted as pristine creation (6023.106ms)
✔ outside content hidden by assume-unchanged cannot pass workspace verification and blocks further source execution (5281.4561ms)
✔ workspace preparation refuses known shared-repository activity and preserves archived child sessions (6522.5275ms)
✔ compact checkout identities create in deep Unicode source directories while retaining the human branch name (7098.32ms)
✔ Windows Git metadata path limits reject creation before publishing a branch or changing source bytes (3204.9868ms)
✔ a pending source snapshot participates in shutdown and completes before storage can close (2265.7442ms)
✔ source configuration values stay private and a configuration change invalidates a saved review (3140.8416ms)
✔ workspace review rejects excluded dependency before any checkout (2804.8093ms)
✔ workspace review rejects large committed blob before any checkout (3045.7656ms)
✔ workspace review rejects case collision before any checkout (3256.1746ms)
✔ workspace review rejects committed symbolic link before any checkout (3106.3361ms)
✔ workspace review rejects external config include before any checkout (2158.2565ms)
✔ actual process exit at workspace intent preserves source and reconciles without creation replay (6052.3212ms)
✔ actual process exit at workspace git_started preserves source and reconciles without creation replay (6991.9786ms)
✔ actual process exit at workspace git_finished preserves source and reconciles without creation replay (8157.66ms)
✔ actual process exit at workspace verifying preserves source and reconciles without creation replay (8240.7338ms)
✔ actual process exit at workspace registering preserves source and reconciles without creation replay (8585.9506ms)
✔ actual process exit at workspace project_registered preserves source and reconciles without creation replay (10100.9075ms)
✔ actual process exit at workspace session_registered preserves source and reconciles without creation replay (10505.0195ms)
✔ actual process exit at workspace ready preserves source and reconciles without creation replay (7629.8737ms)
✔ outside changes at project registration remain unknown and preserve the already registered child identity (9951.1538ms)
✔ managed worktree preserves source index and dirty files, opens a distinct project and binds Run identity (7146.9418ms)
✔ stale review, branch/path collisions and forged ownership do not run worktree creation (3631.9931ms)
✔ workspace project verification is read-only and rejects physical Git identity changes (5305.1841ms)
ℹ tests 899
ℹ suites 0
ℹ pass 898
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2808682.1659
✖ failing tests:
test at tests\network-diagnostics.test.mjs:82:1
✖ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1896.9409ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
'tcp' !== 'tls'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/network-diagnostics.test.mjs:86:49)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'tcp',
expected: 'tls',
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,935 @@
✔ Messages builds native system/tool history, bounds images, and seals a distinct mixed-pool variant (7.926ms)
✔ Messages URL and native parameter contracts preserve other protocol paths and hard output budget (0.5547ms)
✔ native usage includes both cache buckets once, retains raw and rejects invalid counters (0.1555ms)
✔ real HTTP Messages JSON executes one tool, retains opaque history, actual URL and cache accounting (7050.3755ms)
✔ real HTTP Messages SSE executes one tool, retains opaque history, actual URL and cache accounting (10008.0698ms)
✔ Messages api-key authentication is explicit; mismatched model remains blocked with original usage (7.3906ms)
✔ Messages bearer authentication is explicit; mismatched model remains blocked with original usage (3.9648ms)
✔ Messages redirect is not followed, either credential stays at the original server (3.916ms)
✔ strict native SSE reads the nested start model and retains mismatch source without retries (2.7818ms)
✔ a closed native tool block cannot execute before message_stop, then executes exactly once (11383.4232ms)
✔ mixed Chat/Messages pool seals both variants and preserves one completed tool on failover (13134.4843ms)
✔ native JSON rejects incomplete stops, duplicate tools and hosted content (0.2814ms)
▶ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch
✔ reject native stream 0 (1.0664ms)
✔ reject native stream 1 (0.2813ms)
✔ reject native stream 2 (0.1847ms)
✔ reject native stream 3 (0.1762ms)
✔ reject native stream 4 (0.1568ms)
✔ reject native stream 5 (0.1662ms)
✔ reject native stream 6 (0.1673ms)
✔ reject native stream 7 (0.1998ms)
✔ reject native stream 8 (0.2068ms)
✔ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch (3.2986ms)
✔ upstream SSE error retains original type/request ID and initial usage, never retries (4.1501ms)
✔ stop cancels the owned stream and retains partial consumption without running tool or replaying (55.4438ms)
✔ saved Messages import preserves auth choice, rejects endpoint duplication, and keeps source file untouched (2259.6322ms)
✔ large source receipts use cursor-preserving invalidation without filling the event stream or changing the session (5.3974ms)
✔ small event updates retain the current session and actual cursor (0.1153ms)
✔ the bundled local service enforces host, origin, token and JSON object contracts (4065.5302ms)
✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (4504.391ms)
✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (9120.176ms)
✖ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (21946.3358ms)
✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (4813.5141ms)
✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (16036.4609ms)
✔ real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart (14081.017ms)
✔ self harness browser tools require approval and feed verified actual page fields back to the original Task (15337.231ms)
✔ browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement (4771.232ms)
✔ late HTTP stop of a finished browser job cannot interrupt a later job in the same Task (8705.0707ms)
✔ actual failed page blocks source-passed delivery; a new passing page permits a bound commit and preserves both original records (21612.863ms)
✔ a build-only change after Git review invalidates the actual browser evidence and leaves HEAD and the protected index intact (10707.4397ms)
✔ actual DOM controls include validated unique CSS selectors across repeated parent buttons and escaped labels (9749.5584ms)
✔ browser field coverage distinguishes sections and Run windows while retaining original source identity (0.5398ms)
✔ repeated original browser pages pause a live Task without re-opening the browser or breaking tool pairing (11968.8276ms)
✔ browser plan rejects outside builds, invalid interaction scope and unbounded steps before execution (0.9144ms)
✔ real owned Edge interactions, assertions, raw PNG and stopped process survive exact result reuse and host reopen (7815.1652ms)
✔ failed real page assertion preserves actual value and forbids silent retry of the original plan (11996.5816ms)
✔ build/source mutation and sealed step tampering reject before browser dispatch; earlier task cannot execute plan (1539.2795ms)
✔ outside network never reaches another local service, and original JavaScript/console failures remain failures (4042.1913ms)
✔ stopping a real in-flight browser preserves finished steps, closes its owned root and never replays (3387.9742ms)
✔ 原PNG损坏使原结果校验失败,不能以已有通过状态复用 (3994.7021ms)
✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (0.9861ms)
✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (3103.5236ms)
✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (1782.0292ms)
✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (2876.988ms)
✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1560.5363ms)
✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (2355.8889ms)
✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (2393.7594ms)
✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (8812.4758ms)
✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (6431.7347ms)
✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (3194.2235ms)
✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (3560.4832ms)
✔ input that fits the engine window but exceeds remaining credit diagnoses the credit limit (0.579ms)
✔ window overflow and historical pauses retain distinct and honest diagnoses (0.0809ms)
✔ R observed reservation shortage keeps the window-fit diagnosis separate from Run/Task credit (0.1076ms)
✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (6419.0989ms)
✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (13985.8148ms)
✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (9024.7211ms)
✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (7386.2967ms)
✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (7089.8261ms)
✔ batch APIs enforce ownership and review fingerprints, apply once, and persist the completed batch across restart (12644.9042ms)
✔ delivery reports bind actual batch identity and reject corrupted snapshot evidence without changing project files (7890.5666ms)
✔ a compatible model can seal proposals through the real HTTP loop while application stays behind user review (10528.9458ms)
✔ a sealed batch at the step limit hands off and continues the same Task into actual checks without replaying saved tools (43924.0808ms)
✔ applied batches cannot turn cancellation, other budgets, restart or unknown commands into a review continuation (7030.3656ms)
▶ complete sealed batch hands off after all tools settle with no next model request
✔ complete (8187.5853ms)
✔ later-error (10988.0182ms)
✔ complete sealed batch hands off after all tools settle with no next model request (19176.4526ms)
▶ partial, changed, failed or cancelled batches cannot claim complete review handoff
✔ partial (18749.404ms)
✔ new-proposal (15525.2008ms)
✔ failed (13836.1382ms)
✔ conflict (15478.9001ms)
✔ cancelled (15345.1998ms)
✔ unknown (16846.4675ms)
✔ tampered (18567.4648ms)
✔ partial, changed, failed or cancelled batches cannot claim complete review handoff (114350.1302ms)
✔ actual process exit at file-batch prepared preserves durable identity and never replays writes (5844.4412ms)
✔ actual process exit at file-batch application_started preserves durable identity and never replays writes (6279.9749ms)
✔ actual process exit at file-batch write_intent preserves durable identity and never replays writes (5794.6037ms)
✔ actual process exit at file-batch staged preserves durable identity and never replays writes (6237.952ms)
✔ actual process exit at file-batch replaced preserves durable identity and never replays writes (7524.2532ms)
✔ actual process exit at file-batch file_recorded preserves durable identity and never replays writes (7428.1676ms)
✔ actual process exit at file-batch finished preserves durable identity and never replays writes (9816.1178ms)
✔ actual process exit at file-batch rollback_started preserves durable identity and never replays writes (9386.8227ms)
✔ actual process exit at file-batch restore_intent preserves durable identity and never replays writes (11192.6789ms)
✔ actual process exit at file-batch restore_staged preserves durable identity and never replays writes (11560.1703ms)
✔ actual process exit at file-batch restored preserves durable identity and never replays writes (12592.1243ms)
✔ actual process exit at file-batch restore_recorded preserves durable identity and never replays writes (15098.0539ms)
✔ actual process exit at file-batch rollback_finished preserves durable identity and never replays writes (7881.5973ms)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/two.mjs', LF will be replaced by CRLF the next time Git touches it
✔ sealed batches preserve bytes until review, then apply and explicitly restore BOM/CRLF/new files (9626.4556ms)
Switched to a new branch 'owner-branch'
✔ a conflict in the last file or Git branch prevents writing every file in the batch (11329.3457ms)
✔ duplicate canonical paths, ancestor collisions, links, dependencies and Windows aliases never form a batch (7722.602ms)
✔ fingerprints, changed proposals and corrupt snapshot artifacts cannot write or restore any target (8966.8643ms)
✔ a failure after replacement restores only batch bytes and never retries an old application (3015.7526ms)
✔ rollback preserves owner edits, blocks other project writers, and explicit acknowledgement releases recovery (1986.5036ms)
✔ an unattempted owner-created file identical to a suggestion remains external and is never removed (2265.3507ms)
✔ active batch requests are serialized and cancellation leaves a verifiable ended batch (2009.5482ms)
✔ batch application and rollback preserve unrelated Git index and worktree bytes (3939.1981ms)
✔ recovery reuses exact staged bytes but retains a conflicting temporary file for owner inspection (2674.1553ms)
✔ one Task can seal pending proposals from earlier Runs while snapshots retain each source Run (2337.7991ms)
✔ engineering inspection preserves a dirty Git baseline and treats project rules as data (2355.1465ms)
✔ real npm tests and build produce counted results, log artifacts and persistent verification (3692.4431ms)
✔ an actual failing test retains the nonzero exit code and failed count (2800.2864ms)
✔ unchanged automatic checks return original failure evidence, while explicit user reruns and changed source still execute (5156.8449ms)
✔ agent loops cannot hide identical failing checks behind new plan IDs or unrelated reads (12296.0667ms)
✔ zero tests, skipped tests and unrecognized stdout cannot become verification passes (10049.139ms)
✔ a successful build with no selected tests does not verify the task (2149.8955ms)
✔ stale check plans and forged script names execute no project commands (1745.9328ms)
✔ applying a later proposal invalidates the prior passed engineering snapshot (3633.7013ms)
✔ stopping an actual check terminates its child process and blocks concurrent jobs (2233.7377ms)
✔ check timeout records a failure with its actual termination result (2553.4919ms)
✔ source edits during a successful check make the result stale (3826.7829ms)
✔ bounded large logs retain the test footer and readable artifact instead of inventing counts (2997.3221ms)
✔ model-selected checks require a run-bound decision and denial creates no check job (4654.3115ms)
✔ check APIs expose owned plans and jobs and preserve the authoritative results across restart (7402.7251ms)
✔ reviewed changes continue the original task without reopening a generic completed run (4935.7283ms)
✔ concurrent review-continuation API requests accept one run and retain the goal after restart (12002.1713ms)
✔ the model reads owned failure logs without running the check again (4560.4643ms)
✔ process exit at check queued preserves results and never replays commands (1939.8857ms)
✔ process exit at check result_committed preserves results and never replays commands (2450.6425ms)
✔ model code tools keep Task/Run ownership, index evidence and exact proposals across storage recovery (7517.9501ms)
✔ bundled code APIs isolate project results, validate queries and create review-only patches with conflicts (3684.8438ms)
✔ code tool arguments reject malformed ownership-independent inputs before side effects (0.2751ms)
✔ observe-only device authority cannot read, configure or clear project parsing caches (1068.1361ms)
✔ pairing is short lived, single-use, generation-bound and validates exact permissions (1001.1785ms)
✔ device transaction failure neither consumes the ticket nor leaves a credential (705.7614ms)
✔ devices have project and action boundaries; rotation, expiration, revocation and host changes reject old authority (771.8585ms)
✔ persistent registry stores hashes and a bounded audit, never raw credentials (799.8425ms)
✔ real TLS verifies IP SAN, CA chain, encrypted restart and public fingerprint (1070.8548ms)
✔ TLS sealing failure leaves listener closed and no plaintext or successful TLS registration (922.9892ms)
✔ HTTP pairing is concurrent single-use; secure cookie and strict origin/host checks (1566.9948ms)
✔ gateway never exposes management routes, arbitrary assets or unpaired project data (1461.7499ms)
✔ authorized project events paginate from original seq without leaking other project events or payloads (1767.3003ms)
✔ remote task projection excludes raw model history, host configuration, tool input and credentials (1122.0948ms)
✔ permission checks apply to direct remote mutation, not only UI controls (1123.9322ms)
✔ approval fingerprint and exact task/revision are bound; duplicate requests never execute twice (1475.7389ms)
✔ unknown original operation is recorded and never replayed after response failure (1024.4278ms)
✔ revocation and gateway closure reject old access without invoking runtime stop (1366.0682ms)
✔ rate limits reject pairing brute force and do not persist candidate secrets (830.4089ms)
✔ real Windows CurrentUser DPAPI persists only a sealed CA and reopens it (2035.2396ms)
✔ mobile approval executes the original Runtime command exactly once and rejects the later desktop decision (3356.092ms)
✔ desktop rejection wins a concurrent mobile request and original command remains unexecuted (4435.8827ms)
✔ phone stop waits for the original process exit and prevents later heartbeats and command replay (3450.2528ms)
✔ Run replacement during parent-stop wait is rejected rather than stopping the new Run (1065.7337ms)
✔ diff pages preserve source SHA; report reads verify blobs and exclude unrelated artifact kinds (1779.4031ms)
✔ hot upgrade refuses an active gateway and restores closed gateway ownership on failure (644.8366ms)
✔ damaged device permissions or expiry fail closed and never overwrite the original registry (1050.1985ms)
✔ device revocation destroys its actual authenticated TLS connection (1075.3849ms)
✔ companion observes only current Task screenshots, verifies original PNG bytes and loses access immediately on revoke (1443.8132ms)
✔ mobile browser observation is current Task/project scoped, preserves original PNG and exposes no browser control or profile data (1190.4144ms)
✔ actual config HTTP failure preserves the committed selection, config and volatile credential before a successful retry (1642.9537ms)
✔ controlled installation pins the native kernel and bridge independently of the existing connection-probe identity (1333.272ms)
✔ controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract (0.5147ms)
✔ owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations (4.9438ms)
✔ bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch (1466.8716ms)
✔ bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect (928.2891ms)
✔ bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity (948.3985ms)
✔ stopped and oversized bridge requests never reach a local model or tool callback (690.7854ms)
✔ a Windows virtual data-directory name binds new storage and credentials to its actual physical root (2220.5068ms)
✔ physical data-root adoption still rejects explicit junctions at the directory or any ancestor (873.2275ms)
✔ actual Windows CurrentUser DPAPI roundtrips owned UTF-8 and rejects damaged bytes and wrong entropy (1348.5353ms)
✔ only explicitly supplied keys persist; new provider restores original revisions and public views contain no key (3386.934ms)
✔ registry and cipher commit failure restores original routing, keys, block and every database row (2086.8197ms)
✔ a two-key import with a protection failure rolls back all registry and cipher entries and retains its preview (2550.8761ms)
✔ connection revision changes retain the original saved block and report a source mismatch on restart (2751.0184ms)
✔ disable skips real restart loading, explicit enable restores, delete preserves memory and forget removes both (3317.3097ms)
✔ corrupt saved block and another SID do not load; failures are visible without returning ciphertext or plaintext (3207.8473ms)
✔ legacy persistence requires a new explicit key and binds config and credential revisions; stale requests cannot save (2974.3489ms)
✔ owned plaintext keys never reach SQLite pages, WAL, config or public execution exports (1759.5992ms)
✔ reviewed application invalidates old checks, names current SHA and advances through a new approved check to Git preview (8408.9225ms)
✔ skip-tests, foreign task, unknown operations, diagnostic and parent review retain their boundaries (4038.5091ms)
✔ before the first change, real baseline failures persist across later reads; passed baselines and changed sources cannot certify delivery (9457.6641ms)
✔ actual process exit at Git queued never replays a commit and can reconcile the durable result (13753.1587ms)
✔ actual process exit at Git preparing never replays a commit and can reconcile the durable result (20784.4179ms)
✔ actual process exit at Git index_locked never replays a commit and can reconcile the durable result (18665.0157ms)
✔ actual process exit at Git prepared never replays a commit and can reconcile the durable result (16507.2619ms)
✔ actual process exit at Git ref_prepared never replays a commit and can reconcile the durable result (16257.5446ms)
✔ actual process exit at Git publishing never replays a commit and can reconcile the durable result (16183.4231ms)
✔ actual process exit at Git committed never replays a commit and can reconcile the durable result (11020.4125ms)
✔ actual process exit at Git index_published never replays a commit and can reconcile the durable result (12137.7426ms)
✔ actual process exit at Git finished never replays a commit and can reconcile the durable result (11107.3857ms)
✔ an unknown Git result cannot overwrite an externally changed index or delete an unrelated lock (10669.244ms)
✔ known publication with a later source edit retains the commit and marks the delivery for inspection (11124.3288ms)
✔ CRLF normalization, multiple applied revisions and unrelated special index flags preserve exact bytes and ownership (13607.2766ms)
✔ adding new durable record kinds to an existing hot Store preserves all existing Maps and records (7458.0611ms)
✔ an unrelated owner deletion is fingerprinted and preserved while linked task paths are rejected (13619.7579ms)
✔ actual failed tests become a reviewed local commit and evidence report while preserving unrelated index and files (21915.2163ms)
✔ selected preexisting unstaged, staged and untracked owner edits cannot enter a task commit (23711.3011ms)
Switched to a new branch 'owner-branch'
✔ source, unrelated stage and branch changes after review invalidate a commit plan without changing HEAD (24336.802ms)
Switched to a new branch 'delivery-branch'
✔ a later Git metadata change keeps matching source evidence valid but a real source edit requires checks (13101.6545ms)
✔ a corrupt passed-check log and a pending proposal block Git delivery instead of inventing evidence (5977.9169ms)
HEAD is now at c9905ed Sealed delivery fixture baseline
✔ Git filters, merge state, detached HEAD and old task ownership are explicitly rejected (23369.1805ms)
✔ local snapshot commits disable repository hooks and signing and isolate the Git child environment (10197.326ms)
✔ stopping before publication cancels safely; stopping after publication preserves the actual completed commit (19992.1095ms)
✔ delivery API confirms exactly one owned plan, serves verified reports and preserves results across restart (16101.7733ms)
✔ the model can prepare an owned Git review and evidence report while publishing remains a separate user action (9529.5292ms)
✔ HTTP Git review pairs deferred calls, survives reload and never requests more work until the saved preview is resolved (9955.0042ms)
✔ a reviewed Git preview can be revised or withdrawn without publishing or losing the current Task (11935.4077ms)
✔ actual Electron debug argument ordering retains exactly the compiled entry and rejects extra or repeated actions (1.1489ms)
✔ native bridge refuses other origins, subframes, other windows and unsupported inputs before connecting (1537.4058ms)
✔ desktop preview opening requires a currently registered project preview and rejects iframe callers (1646.2497ms)
✔ file reveal binds the current project, task, path, UTF-8 bytes and original SHA without executing the file (1695.0535ms)
✔ file changed during asynchronous task recheck is not revealed as the old bytes (1267.2412ms)
✔ desktop browser profile and aliases stay outside project inventory and file access (1067.6108ms)
✔ native picker cancel and origin change after dialog publish no project registration (596.8926ms)
✔ pending native action is not dispatched twice, and current task review returns its original seq (564.0459ms)
✔ native stop cancellation and changed original host never stop a replacement process (477.1295ms)
✔ window register rejects host PID, stale installation, extra fields and missing creation identity (0.4047ms)
✔ a rebuilt source archive binds actual generated client assets and retains its original running identity after disk changes (2027.1581ms)
✔ host challenge proof rejects a stale challenge, changed identity and changed signature (0.7991ms)
✔ stop confirmation binds the original instance, creation and loaded runtime (0.1397ms)
✔ state paths reject escaping, linked ancestors, ambiguous hardlinks and damaged JSON (773.8496ms)
✔ failed registration publishes no initialized memory and can complete after its actual inputs are supplied (2679.1892ms)
✔ host shutdown cancels an un-signalled HTTP model request and refuses later requests until recovered (1.3975ms)
✔ host shutdown cancels model-pool acquisition and releases queue ownership without inventing attempts (1842.4886ms)
✔ full candidate validation returns the exact loaded-input host identity and rejects undeclared or altered files (1194.1615ms)
✔ fast per-file scan still rejects a junctioned subdirectory, a hard-linked file and a stream path with the original bytes intact (676.3638ms)
✔ installation requires separate absolute program/data directories and a candidate in its own versions namespace (813.7336ms)
✔ inventory rejects a new hardlink on an optional file after its full-manifest scan and accepts the untouched candidate after removal (1711.1354ms)
✔ staging retains the original data and pointer without querying or restarting a host (4756.8933ms)
✔ a post-pointer failure restores every original pointer byte and persistent row; a first-install failure removes only its published pointer (11965.4256ms)
✔ changed active manifest and concurrent pointer changes are rejected without overwriting the unknown record (5287.7243ms)
✔ an unregistered non-HTTP listener blocks preflight even when service-info is absent (2536.8126ms)
✔ uninstall archives its original pointer and preserves every data row/artifact instead of recursively deleting data (8428.84ms)
✔ preflight rejects an unrelated program root or changed native bootstrap while preserving its original bytes (5270.0855ms)
✔ a changed owned bootstrap follows its candidate and a post-pointer fault restores both original bytes (21729.1492ms)
✔ an external bootstrap change after preflight is preserved and never overwritten as an update or rollback (9276.3947ms)
✔ owned startup retries only read-only observation after a slow health response and attests the same original child (5741.4697ms)
✔ unverified startup expires with its original live child and never treats timeout or an unrelated health PID as proof (5421.8103ms)
✔ diagnostic failures and repeated questions retain the original execution error, task, checks and read-only authority (3958.7704ms)
✔ diagnostic binding survives reopen, rejects foreign Task references and detects original error or artifact tampering (1657.3492ms)
✔ a new Task never adopts a previous Task error from session.lastFailure (2022.6424ms)
✔ verified research and explicit no-test scopes do not demand an unrelated test job or claim engineering success (2953.1052ms)
✔ unknown scope and unknown operations remain actionable even after a diagnostic answer or read proof (1303.5396ms)
✔ delivery status HTTP is read-only, selection-bound and equal to the saved report after host restart (4798.4465ms)
✔ routine engineering facts remove duplicate success excerpts while complete diagnostics and errors remain available (1544.7396ms)
✔ a question about the previous workbench error receives local error context and current change states (1906.9583ms)
✔ an unknown model request stops, and explicit resume never replays the approved command (5404.3301ms)
✔ exhausted refused connections preserve tool results, and explicit resume adds no new user turn or replay (5220.1496ms)
✔ stopping during model backoff cancels further requests and clears the running request state (1794.2644ms)
✔ HTTP authentication errors are classified, redacted and never automatically retried (18.4827ms)
✔ temporary HTTP service errors retry and recover with recorded attempt counts (16.5453ms)
✔ invalid and oversized protocol responses fail once with a useful response-format diagnosis (5.5412ms)
✔ HTTP rate limits expose their source and obey the service retry interval before recovery (1013.8058ms)
✔ Windows commands preserve Chinese through a PowerShell pipeline into Node (988.1443ms)
✔ Windows shell syntax errors stay readable and native command exit codes are retained (1131.3793ms)
✔ review and completed states do not turn a generic continue click into a new model request (644.0571ms)
✔ old session data receives a truthful historical connection diagnosis without rewriting history (979.463ms)
✔ engine HTTP checks bind the detected installation and current task, page original bytes and preserve them across host restart (7115.2653ms)
✔ HTTP stop seals a pending SDK call, rejects automatic replay and keeps failures attached to the original session (5339.4642ms)
✔ sealed r1-off failure fits its original 16K config with authentic latest status and readable source (12.6734ms)
✔ sealed r1-on failure fits its original 16K config with authentic latest status and readable source (9.9615ms)
✔ sealed r2-on failure fits its original 16K config with authentic latest status and readable source (7.7069ms)
✔ sealed r2-off failure fits its original 16K config with authentic latest status and readable source (7.4636ms)
✔ archived native call pairs require exact saved arguments/results rather than model-written summaries (8.2225ms)
✔ full system/user requirements and mandatory current failure can refuse rather than be trimmed (12.1818ms)
✔ small native input is byte-preserving; developer instructions remain mandatory after compaction (0.1782ms)
✔ older failing checks and pending proposals remain visible after a later large file read (14.3888ms)
✔ bounded result keeps every check status and cuts Unicode only on whole characters (0.4672ms)
✔ controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse (20689.2027ms)
✔ a sealed whole-batch review pauses the owned native session without certifying engine completion or losing the saved host result (18954.7303ms)
✔ a changed review seal still closes the owned native process and cannot claim a verified review handoff (13579.0209ms)
✔ native text and call IDs preserve original result pairing while unsupported content fails closed (0.4209ms)
✔ one engine child freezes real installation identity before creating tasks and rejects a changed source (8753.8292ms)
✔ owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs (28433.0875ms)
✔ forged native scope cannot change a parent file and a final completion claim cannot replace worker proof (15011.8852ms)
✔ duplicate native IDs are rejected without replaying a saved tool (11410.2452ms)
✔ native input exceeding the context budget is retained and sends no model request (10229.4092ms)
✔ bounded native sends verify original tool provenance and reject forged views or missing versions (12915.0855ms)
✔ stop retains a late reported model usage once and executes no tool from that output (11509.8947ms)
✔ a source change after the original model intent stops before native tools execute (11387.0856ms)
✔ an engine source change while approval is pending invalidates the old permission before any check starts (14376.4051ms)
✔ missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text (0.5691ms)
✔ closed root with an original live descendant remains unknown and retains its process tree (0.2752ms)
✔ host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes (14726.0361ms)
✔ corrupted model reservation cannot reduce recovered budget or permit a new engine request (12550.5771ms)
✔ engine detection seals the actual CLI, SDK, profile and Node and rejects mixed versions without launch (1096.8016ms)
✔ owned engine probe waits for real ready identity, verifies six native responses and saves immutable task evidence (2051.946ms)
✔ an invalid startup nonce is rejected before initialize and preserves the process close and partial report (1783.3695ms)
✔ SDK identity and session directory mismatches retain raw responses and never become verified (4261.7607ms)
✔ cancel during a pending initialize closes only the owned process without sending an unsupported MCP cancellation (1635.6436ms)
✔ cancel before readiness sends no protocol request and a user retry creates a different process and record (1995.556ms)
✔ source or scratch changes and unexpected model traffic fail after preserving the actual observed result (4527.4536ms)
✔ unowned idle notifications stay quarantined and server requests receive a rejection without granting operations (3342.4715ms)
✔ engine probe environment excludes parent secrets and NODE_OPTIONS while preserving operating system paths (1397.3949ms)
✔ foreign sessions and altered reports or task bindings cannot reuse verified engine evidence (1267.8589ms)
✔ restart never replays an active engine check or stops a historical PID, and keeps prior task state (1416.7569ms)
✔ model argument validation and runtime activity do not grant external engine prompt or project execution (654.6532ms)
✔ a follow-up question receives the actual failed engine check from its original Task and keeps its report unchanged (2399.775ms)
✔ unfixed dependency URLs and invalid integrity are reported without exposing URL credentials or allowing a plan (788.4866ms)
✔ hot upgrade refuses an active dependency operation or evaluation before changing runtime objects (0.5209ms)
✔ read-only environment diagnosis identifies actual runtime, missing dependencies and sealed inputs without installing or running scripts (6160.7626ms)
✔ diagnosis rejects unsupported managers, lock integrity and credential configuration without reading config content (6001.194ms)
✔ approved real npm ci runs only in owned worktree, skips scripts, retains logs and binds later actual tests (10789.794ms)
✔ explicitly allowing lifecycle scripts executes sealed root script and preserves the separate preparation result (8341.6406ms)
✔ stale lockfile, tampered plan/config, cross-session identities and mismatched download sources never dispatch npm (7384.5067ms)
✔ registry failure keeps original npm exit/log and performs no automatic fallback or replay (8675.0625ms)
✔ stopping a hanging dependency download records only its owned process and preserves stopped logs (7825.6254ms)
✔ restart retains unknown preparation, blocks writes and checks, and requires explicit read-only reconciliation (6667.5715ms)
✔ HTTP environment flow survives refresh, requires explicit approval and preserves task and artifact ownership (11928.189ms)
✔ Python environment diagnosis reads declarations and runtime identity without executing project code or installing packages (1093.3307ms)
✔ empty build cache directories keep dependency identity while added executable files invalidate it (978.5454ms)
✔ dependency snapshots reject external links and incomplete budgets instead of claiming environment equivalence (1087.1711ms)
✔ model-requested environment preparation uses the original approval boundary and never treats preparation as passed engineering checks (12957.4771ms)
✔ timeout and offline cache miss retain actual failures and new attempts require newly sealed plans (12701.9241ms)
✔ both evaluation worktrees can approve fixed dependency preparation and different actual dependencies reject candidate execution (27953.3601ms)
✔ evaluation denominator distinguishes attempted unsealed candidates from unexecuted samples (0.3445ms)
✔ evaluation summary retains sealed outcomes and stopped or failed original attempts (0.4539ms)
✔ evaluation contract fixes bounded samples, source paths, checks and aggregate budget (688.5547ms)
✔ same-source workspaces seal real commands before execution and preserve original staged and unstaged bytes (14147.6065ms)
✔ actual original failures and candidate success are both preserved, then adoption requires parent review, checks and Git (56092.7033ms)
✔ candidate cannot shrink tests and changing original test bytes rejects execution before any model request (20263.5727ms)
✔ missing upstream usage remains unknown and does not become a free run or invented cost (36870.5705ms)
✔ missing raw check logs preserve unknown result and original sample denominator (39212.9025ms)
✔ source and model changes never silently replace an existing batch input (3749.6239ms)
✔ model revision change before preparing a fixed sample cannot silently use the replacement connection (4124.291ms)
✔ HTTP evaluations require host token, original fingerprint and session ownership; worker API cannot bypass evaluation flow (16512.7271ms)
✔ sample queue cannot skip or reset attempted samples, and reports freeze further writes (27951.7919ms)
✔ stop cancels only current candidate and preserves partial results instead of replaying a request (24393.914ms)
✔ restart recovers interrupted evaluations as unknown and keeps completed checks and plan identity (29216.9587ms)
✔ JSON migration survives process exit before commit and retains exact legacy backups (2208.3387ms)
✔ process exit after_state rolls back state, event and outbox together (1781.6833ms)
✔ process exit after_event rolls back state, event and outbox together (2479.2113ms)
✔ crash recovery at accepted retains execution identity and never replays side effects (2040.4234ms)
✔ crash recovery at queued retains execution identity and never replays side effects (2548.0301ms)
✔ crash recovery at approval_wait retains execution identity and never replays side effects (2785.7936ms)
✔ crash recovery at approved retains execution identity and never replays side effects (2797.2788ms)
✔ crash recovery at effect_unrecorded retains execution identity and never replays side effects (3207.2363ms)
✔ crash recovery at result_committed retains execution identity and never replays side effects (3276.2616ms)
✔ crash recovery at before_next_model retains execution identity and never replays side effects (3813.4398ms)
✔ state and event failures publish no success and preserve the last committed memory snapshot (864.4882ms)
✔ tool result artifacts and event cursors retain project ownership across restart (2125.6299ms)
✔ token budgets pause before tools execute and continuation keeps original task and accumulated usage (1981.8572ms)
✔ a time budget interrupts an unresponsive model and persists a resumable run (1154.2296ms)
✔ a corrupted large result artifact cannot become a recovered success (1000.6833ms)
✔ hard-link aliases cannot expose protected bytes through reads, proposals, inventory or automatic project rules (828.7666ms)
✔ ambiguous project hard links are explicit and ordinary independent file copies remain readable (622.5921ms)
✔ current-file HTTP receipts bind Task/Run and bytes, persist on restart and end without altering original runs or user Git data (4546.3801ms)
✔ file targets exclude referenced inputs and prohibited subsequent modifications (1.475ms)
✔ full actual read and existing receipt complete a no-test file task without fabricating changes, checks or commits (2726.2716ms)
✔ partial pages, partial lines, wrong hashes and failed reads cannot be adopted; contiguous full paging can (1287.0461ms)
✔ user edits and new requirements invalidate receipts, and a second task must explicitly adopt a source in its own project/session (992.4479ms)
✔ adopting an unchanged file never satisfies an explicit modification or a new modification instruction (1116.3624ms)
✔ required checks and stale passing flags cannot be bypassed by current file receipts (824.4809ms)
✔ results plan proofs bind current file receipts while changes proofs still demand real applied change sets (825.99ms)
✔ duplicate receipts cannot create progress indefinitely or reset no-progress reads (3107.5564ms)
✔ manual completion preserves the failed original run and refuses unknown operations (764.6375ms)
✔ completion refuses active work, files changed during inspection and a newly selected task (860.2224ms)
✔ unrelated files cannot stand in for named output paths, nor can a late apply satisfy newer instructions with an old proposal (979.0161ms)
✔ delivery and mobile projections distinguish adopted bytes, new changes, no tests and no commit; mutations cannot rewrite receipts (1185.0765ms)
✔ proposals preserve project bytes until review; apply backs up the exact original bytes (714.7979ms)
✔ new nested files are created only on apply and unchanged content creates no proposal (628.7276ms)
✔ stale reads and changed baselines are rejected without overwriting external edits (759.033ms)
✔ file paths reject traversal, absolute paths, credentials and outside junctions (759.9338ms)
✔ read and search expose bounded text scopes and reject non UTF-8 / oversized files (700.7874ms)
✔ project-local junctions cannot expose or create protected Git and credential files (583.4485ms)
✔ Windows trailing-dot and trailing-space path aliases cannot bypass protected paths (537.5872ms)
✔ a starter is copied into user data once; restarting from another program version preserves existing projects and editable bytes (1199.6793ms)
✔ startup does not insert a demo or rewrite/reorder an existing user project registry (821.7477ms)
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (103.0655ms)
✔ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (24.8421ms)
✔ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (1189.341ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (683.4283ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (1124.6534ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (667.806ms)
✔ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2467.5554ms)
✔ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2769.4587ms)
✔ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (1733.9437ms)
✔ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (927.0969ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (672.9452ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (3.0714ms)
✔ actual model comes from owned consumption, excludes other Tasks and deduplicates the current Run (1.4817ms)
✔ mixed routes retain each original model/protocol/outcome and unknown use is never reported as zero (0.1357ms)
✔ zero dispatch, missing ledger, missing model and truncated Run history never borrow configured model identity (0.202ms)
✔ repeated attempt identities across Runs and contradictory usage stay explicit instead of inflating successes (0.1044ms)
✔ observed route never certifies returned identity and retains mismatches and original source (0.1426ms)
✔ directory picker reads one level, preserves empty folders, skips credential and linked folders (676.8417ms)
✔ HTML preview serves encoded names and relative modules on an isolated loopback origin; closing revokes it (719.4371ms)
✔ HTML preview refuses credentials, hidden inventories, traversal, external junctions, hardlinks and unsupported file types (641.9154ms)
✔ runtime shutdown closes local preview ports and pending starts cannot escape shutdown (615.7329ms)
✔ idle file previews expire and release their loopback servers (706.7203ms)
✔ directory and preview HTTP controls require workbench authentication; project pages cannot read bootstrap (2118.3926ms)
✔ MCP registration stays disabled until an explicit real stdio probe and schema-based tool selection, with actual process cleanup (2157.8802ms)
✔ MCP probe holds the project operation lock until its owned process and report are settled (1614.8247ms)
✔ MCP validates the declared JSON schema subset and rejects unsupported schemas before external dispatch (0.6464ms)
✔ actual model MCP call approves long schema-valid arguments, validates the sent catalog and stores one original result without leaking environment secrets (4462.1937ms)
✔ denying an MCP call never starts another process or executes the external tool (3601.5581ms)
✔ actual handshake drift rejects tools/call even if program entry hash is unchanged (4521.1109ms)
✔ cancelled dispatched external side effect stays unknown, closes its owned process and cannot replay on reopen (3914.7119ms)
✔ changed executable input, foreign project IDs and corrupted original contracts block enable and dispatch (1690.8564ms)
✔ registered MCP HTTP API uses fixed execution contracts and project-owned probe records with no model requests (3490.7819ms)
✔ unknown MCP pauses later tool calls and all project writers; fingerprinted acknowledgement clears only the review gates and explicit resume does not replay (6162.2155ms)
✔ MCP acknowledgement persistence failure restores both job and tool review gates; corrupt evidence cannot be acknowledged (4507.7334ms)
✔ actual host exit after an external effect restores unknown jobs without a fabricated report, allows source-bound review and never replays the call (4239.2371ms)
✔ changed enabled MCP programs can be explicitly disabled without launching or trusting their changed source (1784.7826ms)
✔ stdio preserves split UTF-8 frames and final replies drained after process exit (1758.0835ms)
✔ server-initiated model requests are refused instead of inheriting provider privileges (834.9918ms)
✔ invalid or over-budget protocol invalid closes only its owned process and is not retried (844.1788ms)
✔ invalid or over-budget protocol oversized closes only its owned process and is not retried (829.044ms)
✔ cancel and timeout do not resend a dispatched request and pre-cancel has no request trace (856.4381ms)
✔ startup failure remains undispatched and has no process PID to terminate (549.1342ms)
✔ REA launch filters a fixture credential canary and rejects changed entry identity before a new connection (862.1811ms)
✔ schema1 connections remain readable without inventing observed capabilities or migrating original state (680.6309ms)
✔ protocol, unsupported capabilities and stream choice persist; client claims cannot forge verified evidence (712.4425ms)
✔ ability evidence belongs to exact connection and credential revision; unknown and unsupported reject required routing (0.2836ms)
✔ invalid declarations and inconsistent stream settings reject before registry, revision and credentials mutate (693.9453ms)
✔ model registry keeps original credentials/endpoint intact, rejects stale edits, and forgets only volatile keys on restart (870.0487ms)
✔ config import previews exact revisions, keeps secrets volatile, syncs only when enabled and preserves manual edits on conflicts (857.8976ms)
✔ real HTTP pool fails over 429 to another model and never repeats completed tools; attempts seal actual request bytes and Run identity (3992.3893ms)
✔ pool rotation and weights select members on new Runs; disabled and missing credentials are excluded without requests (5157.0418ms)
✔ 401 blocks the credential revision; updating the key restores availability without leaking error echoes (3039.4895ms)
✔ queued request cancellation and in-flight disable release only owned leases and do not dispatch another HTTP request (1466.0748ms)
✔ compiled model-center HTTP API persists public profiles, blocks forged origins, and local operations never invoke a model (2653.281ms)
✔ model registry disk failures restore routing, pool profiles and credential references without partial updates (2142.8302ms)
✔ model selection and saved configuration commit together and failures preserve the original mode and endpoint (2337.7713ms)
✔ configuration imports roll back the entire batch and retain one usable preview after validation or commit failure (928.1413ms)
✔ HTTP quota retains native code/type/param/request id, bounded original and allowlisted headers, never repeats that connection (2757.7124ms)
✔ Retry-After above 90 seconds remains exact and a short local budget cannot trigger an early retry (1.8288ms)
✔ Retry-After date, expired date, huge value and invalid header retain explicit semantics (1.1279ms)
✔ unclassified 429 remains unspecified and every bounded actual retry retains its own original error (2987.9141ms)
✔ oversized HTTP error saves exactly the bounded prefix and labels its incomplete range (2310.7477ms)
✔ Chat SSE error preserves upstream fields, original failed event, partial tool and reported usage without executing or retrying (2231.3688ms)
✔ Responses failed SSE retains original event/response identity and usage (1996.0481ms)
✔ Responses incomplete SSE retains original event/response identity and usage (1677.4627ms)
✔ unsupported successful Responses output retains original JSON and usage with a local protocol origin (1540.3835ms)
✔ HTTP 200 native error is still an upstream failure rather than a fabricated successful answer (0.8044ms)
✔ JSON-escaped credential echoes are redacted in the original preview and capture as well as parsed fields (0.5845ms)
✔ quota failover uses another independent pool member and never replays a failed stream (2459.695ms)
✔ native parameters are isolated by pool member, preserve Responses state and bind the original output reservation (0.3387ms)
✔ unsupported native fields and invalid values reject before dispatch instead of silently dropping or overriding constraints (0.3054ms)
✔ native settings for legacy and registered profiles persist without changing credentials or old records and reject stale edits (1083.4514ms)
✔ compiled native settings API saves/restores exact parameters and rejects reserved fields without mutating the profile (2553.9344ms)
✔ legacy connection test sends its saved native fields and selected output limit field without changing the configuration (2378.5449ms)
✔ identity distinguishes missing, invalid, mixed, exact and explicitly declared aliases without guessing (1.2584ms)
✔ chat-completions JSON rejects a different model before tool dispatch, retaining source and reported usage (2586.562ms)
✔ chat-completions SSE rejects a different model before tool dispatch, retaining source and reported usage (1829.4412ms)
✔ responses JSON rejects a different model before tool dispatch, retaining source and reported usage (1672.3965ms)
✔ responses SSE rejects a different model before tool dispatch, retaining source and reported usage (1777.2455ms)
✔ record policy accepts missing identity but keeps it explicit, and strict declared mapping is frozen in the consumption (1.2107ms)
✔ mixed streamed identities cannot pass strict mode, and interrupted streams retain observed identifiers without authenticating them (1.1646ms)
✔ identity refusal never fails over to another pool member and raw response model cannot leak known credentials (1607.0677ms)
✔ strict refusal remains visible even when the same original response exhausts the budget (1575.7549ms)
✔ strict identity crosses the controlled engine bridge with its original source and zero tool dispatch (11246.0751ms)
✔ frozen direct connection policy and delivery reports preserve response identity without filling historical gaps (2381.5068ms)
✔ saved engine budgets verify all Chat/Responses route variants and reject a mismatched output allowance (738.1008ms)
✔ owned CC Switch SQLite imports the selected TOML Responses wire_api and leaves unknown clients untouched (1082.5056ms)
✔ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (3168.4963ms)
✔ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (3190.3372ms)
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
✔ Reject {"body":{"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial" (1668.0404ms)
✔ Reject {"body":{"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","cal (1739.2677ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","cal (1758.462ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supporte (1783.6105ms)
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (6950.1766ms)
▶ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay
✔ chat-completions (1568.7734ms)
✔ responses (1763.3977ms)
✔ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay (3332.5375ms)
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.2045ms)
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (547.6983ms)
✔ reservation uses actual known usage from the same route, never lowers estimates or rewrites original receipts (1.7136ms)
✔ reservation verification binds original Task/Run consumption and rejects changed usage or foreign provenance (0.6227ms)
✔ known high input calibrates the next request and stops before dispatch while preserving the completed read (1875.1349ms)
✔ one reported overrun stops legacy requests and keeps actual use and excess (1373.5475ms)
✔ one reported overrun stops pool requests and keeps actual use and excess (1699.8085ms)
✔ one reported overrun stops connection requests and keeps actual use and excess (2075.2234ms)
✔ reported usage below the limit prevents an unaffordable legacy retry before another dispatch (1934.9407ms)
✔ reported usage below the limit prevents an unaffordable pool retry before another dispatch (2108.0469ms)
✔ native bridge seals calibrated refusal with original consumption and preserves versioned request verification (15511.568ms)
✔ original R v1/v2 stay verifiable while v3 excludes the isolated input outlier and keeps the ledger intact (4.0072ms)
✔ v3 never excludes a repeated high ratio, the latest receipt, or a short history (3.228ms)
✔ reservation proofs reject reordered latest high receipts, altered history and duplicates while old snapshots survive later consumption (3.0938ms)
✔ input-ratio exclusion preserves independently reported output maxima without rewriting historical v2 (1.7914ms)
✔ capability routing skips text-only members before acquiring a lease and records exact refusal in the original Run (1550.1513ms)
✔ all incompatible members reject with no network request, no lease, preserved Task and explicit non-dispatched ledger (1449.5114ms)
✔ explicit synthetic tool probe verifies only actual matching call, never executes it and loses verification on revision changes (743.2978ms)
✔ plain text probe cannot verify tools; wrong tool nonce and client supplied evidence cannot claim verified support (844.0315ms)
✔ a disabled connection invalidates an in-flight probe even when toggle mutates its original registry object (817.3693ms)
✔ selected connection owns the actual endpoint, credential, wire model and mismatch even when legacy is configured for GPT (2455.4261ms)
✔ budget-only API and demo/real selection preserve routes, reject injected endpoint fields and publish authoritative selection without keys (2887.9622ms)
✔ another session cannot change default model, mode or budgets while a request is active (4600.7444ms)
✔ HTTP download preserves original malformed SSE bytes and artifact SHA instead of decoding invalid UTF8 (2446.0443ms)
✔ terminated SSE adapts empty optional tool arguments, retains the exact wire bytes and executes the validated batch once (4065.3496ms)
✔ reported SSE usage survives rejected required arguments "" without dispatching any tool (2499.4843ms)
✔ reported SSE usage survives rejected required arguments "{\"path\":" without dispatching any tool (2263.7865ms)
✔ reported SSE usage survives rejected required arguments "null" without dispatching any tool (2415.6023ms)
✔ a stream without DONE retains reported usage but cannot adapt or execute even an optional tool (2422.5901ms)
✔ a timeout after reasoning-only fragments creates one unknown receipt and never invents reported tokens (2383.3451ms)
✔ real Chat SSE carries UTF8 and split tool JSON; Runtime executes only after DONE, stores partial progress and original usage (3860.9375ms)
✔ Responses typed SSE validates original item identity, terminal data, raw usage and tool result pair (3903.2606ms)
✔ incomplete network stream retains unknown attempt and never automatically switches pool or dispatches fragment tools (2817.2902ms)
✔ stopping an active HTTP stream closes only original request and keeps partial text without executing tools (2325.5745ms)
✔ explicit streaming probe uses actual SSE despite unknown declaration and binds its own original attempt (1004.2546ms)
✔ coalesced initial SSE events publish the latest partial state even when the upstream stays idle (2837.7373ms)
✔ stream timeout closes the original HTTP response, preserves redacted capture and never retries (1287.9515ms)
✔ stream idle timeout preserves incomplete tool arguments, records unknown use and never fails over (1577.0492ms)
✔ SSE accepts CR-only final event boundaries and retains exact invalid UTF8 bytes without dispatch (1.2335ms)
▶ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data
✔ reject 0 (0.2368ms)
✔ reject 1 (0.1866ms)
✔ reject 2 (0.1512ms)
✔ reject 3 (4.8353ms)
✔ reject 4 (0.1407ms)
✔ reject 5 (0.3746ms)
✔ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data (6.422ms)
✔ compiled host retains interrupted HTTP 200 and explicitly resumes after the recorded cooldown (10648.7638ms)
✔ compiled host retains interrupted HTTP 503 and explicitly resumes after the recorded cooldown (10131.5539ms)
✔ owned IPv4 service works after a failed IPv6 candidate without a second model POST or global DNS change (25.6583ms)
✔ environment HTTP proxy tunnels the owned request and NO_PROXY sends a separate direct request (10.5225ms)
✔ original connect timeout has a bounded nested cause and does not masquerade as response generation timeout (0.7054ms)
✔ POST accepted then reset is unknown, is charged once and never automatically retried (3.4461ms)
✔ partial HTTP bodies retain original request id and bytes, and an unknown pool attempt never switches model (2871.5972ms)
✔ response wait timeout after an accepted POST is unknown; cancellation closes the owned socket and permits explicit reuse (148.1414ms)
✔ older configurations receive bounded wait defaults without changing the original object (1.2348ms)
✔ active stream survives sixty seconds; byte activity resets idle but cannot extend total deadline (0.7963ms)
✔ silent stream has its own accurate deadline; caller cancellation and cleanup preserve their cause (1.3956ms)
✔ waiting for headers is bounded independently of stream-idle time (0.2305ms)
✔ wait settings persist, pin new runs and leave model pool, credentials and old run snapshots intact (1442.2924ms)
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (1404.7509ms)
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (1158.6971ms)
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (1093.9866ms)
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (1865.5754ms)
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1933.8852ms)
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (1132.5663ms)
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (1216.3385ms)
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (1156.7297ms)
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (1653.0524ms)
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (1253.1827ms)
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (1229.1274ms)
✔ unchanged proposals cannot hide repeated original-log reads or identical session inspections (8295.7799ms)
✔ reusing a verified proof never resets identical-state detection or creates a new proof (7769.976ms)
✔ coverage merges adjacent pages, separates changed sources and never claims old Run coverage in a continuation (1.0514ms)
✔ paged inspection finds a corrupted old artifact outside the recent fifty and retains original evidence without model/tool execution (5040.3493ms)
✔ inspection rejects ambiguous/out-of-range pagination and reports unknown tool/task identity without resolving it (834.516ms)
✔ original source locks all 60 byte-identical files including modules outside the nine-file prompt experiment (950.4792ms)
✔ a new original executable or missing license cannot silently join the fixed trusted-source profile (921.5789ms)
✔ original mode has a separate source identity and does not accept retry or privilege fields (966.9943ms)
✔ actual original model input requires the complete postPrompt once in system context and cannot borrow a user or tool copy (0.304ms)
✔ Windows directory permissions normalize overlapping grants without allowing an unrelated sibling (836.5044ms)
✔ durability broker rejects foreign authentication, outside paths and wrong file identity before real fsync (937.2809ms)
✔ exact patches preserve BOM/CRLF, unicode and all unselected bytes and back up the original on apply (1038.6306ms)
✔ several patches are matched against one original snapshot in any input order and keep LF (904.4896ms)
✔ mixed line endings require exact anchors and preserve untouched formatting (893.8319ms)
✔ ambiguous, overlapping, missing and malformed patch anchors never create a proposal or write (816.891ms)
✔ stale original hashes and changes before apply preserve owner edits and mark conflicts (818.0299ms)
✔ no-op BOM patches/full content produce no change and replacements cannot split Unicode bytes (704.9442ms)
✔ real owned Vite starts only after approval, records OS ownership and live changes, and stops its tree (14060.433ms)
✔ occupied ports and approval-time conflicts never take over an unrelated listener (9125.5557ms)
✔ background preview final-log failure retains unknown evidence without an unhandled startup promise (12136.6281ms)
✔ stale source, tampered plans, wrong ownership and arbitrary scripts cannot dispatch a preview (8086.0124ms)
✔ restart retains original unknown preview, blocks mutation, reconciles absent identity without replay (7550.1986ms)
✔ an actual shell command keeps Node and UTF-8 output while omitting host-only credentials (874.9472ms)
✔ real npm tests and build do not inherit arbitrary host credentials or Node injection settings (3215.4354ms)
✔ real Python tests and compilation keep their sealed inputs without host credentials (2449.1507ms)
✔ a process exiting between the Windows snapshot and owner query is absent only after a fresh query (1877.9231ms)
✔ owner observation errors remain errors while a process is present, replaced, or cannot be rechecked (1572.797ms)
✔ cache controls require desktop authority, exact inputs and owned project identity while preserving task evidence (2211.9683ms)
✔ cache enablement and derived reuse survive a real host restart without becoming task recovery state (4840.3977ms)
✔ persistent parsing is project/SHA/config bound and produces identical semantic indexes after restart (1717.4271ms)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'main.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'value.ts', LF will be replaced by CRLF the next time Git touches it
✔ same-size restored-mtime changes, additions, renames and deletions cannot reuse stale entries or import targets (1217.238ms)
Switched to a new branch 'other'
✔ branch and commit changes invalidate even byte-identical sources (3181.9833ms)
✔ corrupt, malformed and schema-invalid records fall back to fresh parsing (1580.9962ms)
✔ disable and clear persist without touching sources, sessions, configuration or original artifacts (1549.4183ms)
✔ cache capacity bounds disk and memory by bytes and LRU project count (1199.5377ms)
✔ incomplete scans do not load or save cached entries; unavailable files leave the current result scope (1364.1651ms)
✔ project and cache junctions cannot expose or delete an outside directory (818.3606ms)
✔ concurrent file changes refuse a snapshot and clear during pending work cannot repopulate it (999.5056ms)
✔ file access mode changes invalidate parsed material even when bytes are unchanged (833.0544ms)
✔ tracked directory replaced by a junction invalidates access scope and never uses its old cache (2608.9615ms)
✔ JS/TS/React AST indexes actual declarations, exports, imports and verified source lines (656.6544ms)
✔ default expressions, named default exports and declared functions retain their AST evidence (602.8001ms)
✔ incremental refresh invalidates changed/deleted symbols and recalculates reused import targets (1143.205ms)
✔ Python candidates exclude comments and multiline strings and declare limited evidence (726.2277ms)
✔ indexes isolate project identity and root and evict bounded caches without sharing results (899.5382ms)
✔ Git ignore, credential paths and links stay outside the index and no project files are executed (1376.2968ms)
✔ malformed, binary, non-UTF8 and bounded files expose partial coverage while good files remain searchable (897.2575ms)
✔ index query rejects invalid limits/types and does not imply reference or alias resolution (843.7805ms)
✔ read-only engineering inspection disables configured Git clean filters and preserves index bytes (2257.1141ms)
✔ Python multiline declarations retain candidate scope without interpreting expressions as declarations (732.0391ms)
✔ TypeScript module candidates support import-equals and MTS/CTS while opaque imports stay explicit (792.433ms)
✔ actual HTTP requests reuse only this project source-checked memory as redacted data and preserve sent evidence after archive/restart (2082.4495ms)
✔ actual HTTP request excludes archived, timed-out and foreign-project memories (4151.6651ms)
✔ actual next HTTP request removes expired memory after a tool observes a source change without replaying that tool (4378.6752ms)
✔ incomplete inventory and excluded-file SHA changes cannot enter actual HTTP memory context or inspect_session snapshots (3503.0035ms)
✔ corrupt original artifact expires its memory and cannot reach an HTTP model request (2641.502ms)
✔ memory JSON is bounded in escaped UTF-8 bytes and entry count, skips oversized entries and retains complete multilingual values (4013.0023ms)
✔ optional memory yields to the complete goal and original code evidence under the whole-request budget (1219.7407ms)
✔ changed sealed memory artifacts or binding fields fail verification while the original request remains immutable (1838.3875ms)
✔ a malformed project declaration omits optional memory while the repair Task still reaches the owned HTTP service (1720.6496ms)
✔ an expiration persistence failure prevents dispatch and is not hidden as an optional scan failure (1378.6287ms)
✔ project memories persist across restart, keep source provenance, and are visible across tasks (1181.8218ms)
✔ source changes expire current project memories and keep the original evidence (1141.2304ms)
✔ incomplete source scans mark current memories unverified without expiring or reusing them (1234.5631ms)
✔ explicit file provenance is rechecked even when the inventory excludes that path (1565.9326ms)
✔ execution snapshots do not expose project memories before their source scope is validated (1043.5011ms)
✔ project memory records stay isolated and archive requires the owning session (1157.4834ms)
✔ project memory HTTP API exposes read-only source status and explicit writes (3059.4812ms)
✔ two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default (944.9651ms)
✔ incomplete, unsupported, relative and oversized sources cannot enable the experiment (914.318ms)
✔ invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created (2310.4166ms)
✔ source edits between detection and plan are rejected without creating a parent Task (1833.3669ms)
✔ source edits after sealing cannot launch a child and do not reset its cumulative budget (8974.0795ms)
✔ literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required (30396.0479ms)
✔ source changes after a model response stop before any native tool is accepted, retaining the actual usage once (11953.6655ms)
✔ source changes while approval is pending invalidate the old permission before an engineering check starts (16492.5991ms)
✔ altered text, interpolation, section order and policy flags cannot reuse a sealed experiment (2189.8219ms)
✔ the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy (2160.4245ms)
✔ a missing or duplicated experimental section in the actual input is rejected before any model dispatch (21787.4063ms)
✔ experimental prompt overhead still participates in the original complete-input budget guard (11676.6851ms)
✔ source detection HTTP remains local-authenticated and read-only with no configured model requests (2293.6097ms)
✔ Python HTTP plans keep npm defaults, require owned approval and preserve actual results across restart (10675.3223ms)
✔ an isolated three-module Python Task repairs, checks and delivers a source-bound Git report without extra model calls (41157.2387ms)
✔ Python static inspection does not import project code or probe a project interpreter before approval (1395.9224ms)
✔ a real three-module Python failure, reviewed repairs, tests and compilation retain exact structured evidence (4623.0812ms)
✔ unittest counts repeated execution ordinals and subtest skips rather than deduplicating display names (3379.8579ms)
✔ unittest empty, skipped, expected failure and class initialization errors never verify a task (8438.6354ms)
✔ stdout claims cannot replace actual unittest results and an early exit cannot forge a successful collector (3090.7195ms)
✔ compilation reads actual Python source bytes without executing top-level project code (2809.4345ms)
✔ Node and Python mixed projects retain the existing npm default and require an explicit Python selection (2977.5793ms)
✔ changed project interpreters and forged Python plan bindings execute no check (1666.7259ms)
✔ malformed TOML and invalid Python test paths are reported without expanding npm check scope (1424.9374ms)
✔ stopping a real Python check terminates its child and keeps the completed result as cancelled (2075.4776ms)
✔ real pytest pass, failure, skip, collection errors and teardown errors use collected case outcomes (17272.1474ms)
✔ a real project virtual environment is detected statically and its actual version is recorded only during the approved check (8639.192ms)
✔ a missing interpreter and repeated pytest item objects cannot create a false verification pass (2495.702ms)
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (1.0053ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (4852.3591ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.2567ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.3864ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (9.0557ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.3169ms)
✔ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (5444.124ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (6788.9092ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (10198.0262ms)
✔ continuations distinguish unread source, later original line ranges and already returned result wrappers (629.4558ms)
✔ pure-file batch returns unused small-page space while mixed and historical allocation stays conservative (0.3294ms)
✔ v3 pools mixed file/log reads, serves small sources first and leaves historical/mutating batches unchanged (0.2947ms)
✔ v3 W-shaped mixed reading returns complete small modules and substantially larger first test pages in the next bounded request (4928.229ms)
✔ observed upstream high input pauses before a new request, preserves reported usage and distinguishes the limiting ledger (981.0976ms)
✔ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5551.9692ms)
✔ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4974.6677ms)
✔ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5299.0941ms)
✔ an installed app outside the source drive resolves registered SDK and Purge through actual input verification (1048.2117ms)
✔ standalone registration resolves the upstream metadata directory and missing upstream falls back to the other registered source (938.3799ms)
✔ registered hints keep explicit roots, environment and existing app-relative candidates in their original priority (1289.0962ms)
✔ unknown IDs, duplicate registered IDs, wrong versions and relative or inconsistent metadata are not lookup candidates (895.508ms)
✔ oversized, malformed, invalid UTF-8 and non-file registry inputs cannot silently enable a source (852.3122ms)
✔ a linked registry directory is rejected without reading or deleting its external source (1029.434ms)
✔ matching research declarations do not replace actual installed version and critical-source checks (895.6027ms)
✔ runtime guides map archived evidence while all original reports and successful/failed source bytes remain independently verifiable (1044.3827ms)
✔ missing required research reports fail packaging rather than creating a successful placeholder (904.6703ms)
✔ full verification reports only verified bytes, complete declared scope and actual directory inventory; changed/deleted files still fail (975.9704ms)
✔ preflight and activation continue one monotonic operation bound to installer hash; terminal replay and changed origin are rejected (8615.533ms)
✔ preflight failures and fixed-candidate mismatches retain the actual reason without publishing a pointer (5071.7297ms)
✔ cancel finishes only the original ready preparation, preserves data and pointer and refuses replay (7287.6464ms)
✔ the installation lock rejects concurrent same-id operations before they can overwrite original progress (4139.6844ms)
✔ original post-publication failure is linked to its rollback receipt and every original byte survives (4294.1131ms)
✔ a candidate mutation at the publication boundary still fails even after an earlier successful full validation (8689.9842ms)
✔ public progress marks a lost process unknown without editing its original record or claiming completion (4975.738ms)
✔ throwing console/UI progress observers cannot decide the installation result (3632.5836ms)
✔ a progress-only write failure after committed publication returns the authoritative receipt and a warning (4064.3176ms)
✔ browser and MCP approvals use actual tool categories; mobile exposes only category while keeping original fingerprint (573.3761ms)
✔ the compiled runtime version constant tracks package.json so a release bump cannot ship a stale served version (7.9918ms)
✔ context APIs retain exact request identity, paginate archived groups and reject foreign sessions/runs (4272.6733ms)
✔ delivery reports verify request body, sealed plan and original archived bytes, and show corruption as needing verification (2064.8178ms)
✔ native seed framing reserves capacity before optional history without changing the selected window (1042.3673ms)
✔ direct code evidence remains selected while recent historical-index browsing is archived within the complete request budget (1981.7135ms)
✔ one long user turn becomes bounded complete groups with exact UTF-8 history and recent JSON arguments (3424.7413ms)
✔ tool definitions, exact system bytes, output reserve and remaining Run/Task budget are accounted before requests (901.0127ms)
✔ oversized required user instructions pause intact and can be explicitly resumed after increasing the window (1476.7579ms)
✔ all task instructions, constraints and acceptance remain in the runtime system instead of an eight-item or byte prefix (1880.0525ms)
✔ a newest manageable multi-tool group stays exact even beyond the working target; oversized earlier groups are archived (1120.5505ms)
✔ invalid orphan result is rejected before archive or network preparation (635.5709ms)
✔ invalid missing result is rejected before archive or network preparation (680.8761ms)
✔ invalid wrong result is rejected before archive or network preparation (716.1276ms)
✔ invalid duplicate call is rejected before archive or network preparation (700.3659ms)
✔ a group larger than the artifact limit uses verified Unicode-safe chunks without replacing tool JSON (1428.2817ms)
✔ changed or missing archived evidence stops reuse and is never silently recreated (864.8688ms)
✔ transaction failure prevents publishing a plan and any corresponding model request (1013.9851ms)
✔ the Provider rejects body mutation after a sealed plan before calling HTTP (782.7565ms)
✔ HTTP failure and explicit same-Task resume reuse exact completed results and request hashes without repeating a command (8568.4816ms)
✔ a real process exit after plan persistence marks interruption and never issues an automatic model request (1396.465ms)
✔ local draft preserves exact original ranges and duplicate source instances without inferring outputs or accepting facts (986.2448ms)
✔ review keeps unknown blocking, references distinct from output and boundaries distinct from compliance evidence (1036.1705ms)
✔ draft adoption must account for every original range and does not fill paths from a reference (853.9637ms)
✔ source and requirement changes, other Tasks and tampered draft bytes are rejected without losing originals (2011.8871ms)
✔ partial explicit source review leaves the other source unreviewed while old file evidence remains valid (1823.9179ms)
✔ bounded draft does not claim full source coverage and cannot acknowledge an omitted remainder (624.628ms)
✔ draft HTTP preserves its original artifact across restart and rejects stale scope and source versions (4567.3854ms)
✔ requirements HTTP binds selection, enforces optimistic revisions, restores original proofs and leaves provider history untouched (5307.6803ms)
✔ research evidence binds actual original bytes; model completion is not user acceptance (1678.5247ms)
✔ same text with distinct user source instances stays distinct; an appended requirement only invalidates its own revision (2345.7678ms)
✔ foreign project, old Task and fabricated evidence strings are rejected with preserved failed proofs (3474.5465ms)
✔ source changes invalidate prior proofs and cannot certify a read that was already stale at binding (2668.2097ms)
✔ missing or tampered artifacts never become evidence and original failures remain after recovery (1902.2645ms)
✔ checks omitted by explicit agreement are reported as not executed and never passed (796.8691ms)
✔ user confirmation stays separate from engineering evidence, is bounded to current inputs and cannot be silently converted (1522.0988ms)
✔ existing multi-file results keep provenance and invalidate only evidence whose files changed (1867.1021ms)
✔ unrelated additions preserve the checked file facts but remain visible as unreviewed user sources (1464.7048ms)
✔ actual Git preview and publication recheck changed requirement bindings without touching HEAD or the owner index (8277.8285ms)
✔ no-test file application and manual completion keep pending user requirements for explicit review (2111.8582ms)
✔ revision races, forged source ranges, evidence fields and deletion cannot overwrite sealed requirements (1467.5399ms)
✔ requirement binding prevents completion and Git acceptance after a review changes; legacy tasks stay explicit (4530.6977ms)
✔ deep Windows data directories keep REA output within the external path allowance and retain owned evidence (2529.5984ms)
✔ user research registration creates an owned Task without model requests and seals the exact artifact identity (1167.9364ms)
✔ complete research binds original Evidence and Bundle, pages exact fields and reuses verified results after reload (2812.0471ms)
✔ artifact changes before analysis refuse dispatch and changes during analysis preserve unverified original responses (2905.2626ms)
✔ owned cancellation closes the connection, concurrent and automatic retries are refused, explicit new analysis preserves history (2535.7166ms)
✔ a dispatched transport timeout stays unknown and reload never launches or kills a saved PID (1554.9672ms)
✔ corrupt Evidence parts and changed binding records are refused instead of silently re-analysed (2277.0362ms)
✔ research documents over the single-artifact limit preserve exact Unicode bytes with owned verifiable parts (1421.5135ms)
✔ research tools are only sent for registered Task artifacts and actual HTTP uses the sealed tool contract without replay (6298.1516ms)
✔ file identity rejects directory and invalid formats without running a target (1074.0308ms)
✔ a stop from the event loop interrupts immediate model replies before later tools (2138.9655ms)
✔ a stop after the first tool preserves a complete interrupted multi-call protocol group (2954.2971ms)
✔ the compatible HTTP loop preserves call IDs, validates errors and waits before executing commands (9991.1531ms)
✔ denial prevents command execution and produces a paired denied result (3525.3804ms)
✔ stopping during approval interrupts pending calls without executing or replaying them (2586.9024ms)
✔ stopping a running fixture command terminates its own process tree and retains uncertain state (3552.8483ms)
✔ command output decodes split UTF-8 and excludes the workbench key from child environment (1614.9624ms)
✔ model-list testing uses a tentative key without changing the saved connection and redacts service errors (5.9629ms)
✔ truncated or repeated model calls fail before execution; tool input validation rejects unknown capabilities (4667.8737ms)
✔ request projection keeps exact tool pairs and complete recent user instructions while preserving disk history (1780.9205ms)
✔ local skill revisions require explicit enable, retain original text, survive restart and stay within the selected project (1607.2723ms)
✔ registration rejects non-SKILL paths, oversized/non-UTF8 files, duplicate sources and wrong field shapes without running project code (1012.9703ms)
✔ actual HTTP models receive only enabled current-project metadata, then a redacted owned skill page with complete tool pairing (4251.643ms)
✔ source edits after a catalog request prevent the read and appear as changed on the next request without replay (4805.3545ms)
✔ disabled and foreign skills cannot be read by guessing their IDs from another project (4636.7028ms)
✔ skill catalog takes remaining escaped JSON budget and cannot evict the user goal or current code (1711.0588ms)
✔ multilingual skill body pages fit actual tool JSON bytes and every page uses the same immutable artifact (6314.4247ms)
✔ registry failures roll back enable and refresh state; corrupted snapshots block requests before network (1674.587ms)
✔ saved skill catalogs retain SHA-bound historical evidence and reject corrupt catalog blobs (3348.0021ms)
✔ HTTP skill administration enforces project scope, revision checks and idle mutation without model calls (4082.1626ms)
✔ JSON state keeps an atomic backup and preserves corrupt primary files (915.7505ms)
✔ tool-pair recovery fills missing results and drops orphan or duplicate results (0.3398ms)
✔ restart pauses unfinished work, retains proposals and never replays a command (1432.1388ms)
✔ public snapshots carry increasing revisions without the private provider transcript or config key (1061.0854ms)
✔ a checkpoint seals all task requirements and original results without a model request and explicit continuation keeps the same Task without replay (5625.4336ms)
✔ checkpoint sources, requirements, plan and original tool changes block continuation and leave original checkpoint bytes intact (4673.1897ms)
✔ unknown tool effects and pending proposals stay blocked in recovery packages rather than being changed into completed work (4514.1458ms)
✔ checkpoint and referenced result corruption are rejected before dispatch and historical blobs are never rebuilt (4267.4671ms)
✔ checkpoint ownership, exact confirmation and concurrent operations reject foreign or stale resumes (4819.6543ms)
✔ Git identity changes and altered plan proofs cannot be accepted as the sealed recovery state (4577.4067ms)
✔ checkpoint records survive SQLite reopen and do not trigger automatic model or tool replay (4411.4392ms)
✔ incomplete scans and in-progress project activity refuse checkpoint creation while private credentials are redacted from saved requirements (3972.8285ms)
✔ oversized recovery evidence is refused before reading or publishing the checkpoint (4530.6346ms)
✔ compiled checkpoint HTTP APIs bind current Task/Run, isolate sessions and only resume on an explicit matching confirmation (10397.97ms)
✔ actual process exit before checkpoint commit retains only durable records without replay (4524.9791ms)
✔ actual process exit after checkpoint commit retains only durable records without replay (4534.2833ms)
✔ a real two-reply failure replay reaches request three at 16K with complete goal, original sources and sealed tool evidence (11547.7787ms)
✔ request deduplication retains long original intent, extra requirements, constraints and acceptance without changing the stored contract (2710.507ms)
✔ only the routine context avoids plan echoes; diagnostic API and requests without an included plan keep original observations (1131.8509ms)
✔ operational questions are diagnostic while explicit repair requests remain execution instructions (1.0368ms)
✔ an explicit prohibition on running engineering checks is not interpreted as a requirement to run them (1.6781ms)
✔ file delivery requires a positive instruction, not saved evidence or a prohibited write (0.2611ms)
✔ an unsubstantiated text claim cannot complete a requested file delivery (2039.5324ms)
✔ HTML without tests ends at reviewed file delivery and never offers automatic rechecking (3540.7136ms)
✔ diagnostic answers retain the unfinished task, limits and check result, and enforce read-only tools (5814.1655ms)
✔ review continuation is a system action and adds no testing demand or fake user instruction (3973.6182ms)
✔ a provider cannot execute tests against an explicit no-test task even if it ignores advertised tools (2949.6547ms)
✔ a budget pause becomes visible only after its input snapshot can be sealed with the original Run (2747.9847ms)
✔ alternating duplicate file reads and listing files still pauses without treating new pages as duplicates (23690.8479ms)
✔ task-plan HTTP mutations bind current Task/Run and retain original evidence through real host restart (6121.3304ms)
✔ concurrent stale HTTP plan revisions cannot replace conditions or attach proofs to a different plan (4152.9052ms)
✔ a real escaped long-file tool message keeps its proof identity within a tight request budget (1426.7151ms)
✔ task plans reject fabricated completion, invalid scopes and cyclic or missing dependencies (0.5254ms)
✔ sealed plans retain goal, contract hash and original steps through SQLite reopen without executing tools (1879.2673ms)
✔ proofs require original owned reads, honor dependencies and reject altered invocation arguments and bytes (2078.5511ms)
✔ new user requirements invalidate current proofs and reseal the same original operations in a new revision (2472.3348ms)
✔ applied change-set evidence binds reviewed current files and invalidates dependent steps after outside edits (2559.3904ms)
✔ actual npm checks are verified by original counted logs and current source, with failure history retained (8865.6206ms)
✔ real desktop and mobile browser proofs bind required actions and PNGs, rejecting source changes, a later failed plan and changed builds (12889.8019ms)
✔ Git delivery blocks incomplete plans and changed preview bindings, preserving HEAD and owner index before a fresh verified commit (14751.1616ms)
✔ the runtime supplies owned read IDs and completes a plan only after original step evidence verification (4254.0917ms)
✔ premature model completion pauses the original Task and resume preserves the existing plan without replay (3856.7464ms)
✔ plan operations participate in project activity and orderly shutdown (738.3887ms)
✔ actual process exit before plan save restores only committed plan evidence without replay (1710.3265ms)
✔ actual process exit after plan save restores only committed plan evidence without replay (1371.2075ms)
✔ actual process exit before proof save restores only committed plan evidence without replay (1382.3406ms)
✔ actual process exit after proof save restores only committed plan evidence without replay (1542.4539ms)
✔ the latest oversized session result reaches the next request together with already read source modules (3389.002ms)
✔ every call in a large latest group keeps its actual outcome, including denied and unknown results (2051.1476ms)
✔ a small complete latest tool group is sent once and needs no duplicate feedback view (1887.4283ms)
✔ real HTTP repeated state inspection pauses after three identical engineering outcomes and preserves tool pairing (4558.1706ms)
✔ fixed normal exploration, pagination, SHA changes and repeated ranges are external observations, not a score (1.3812ms)
✔ read-only research is valid work; model summaries and unchanged timestamped listings do not become engineering evidence (0.3829ms)
✔ new permissions, network and broken tools are failure evidence; repeated invalid inputs remain candidates (0.4749ms)
✔ waiting for original long checks, review and approvals stays waiting across repeated observations (0.7345ms)
✔ baseline facts, real repairs, current-source check results and requirement evidence have distinct growth (0.2238ms)
✔ bounded memory keeps unknown instead of claiming an unretained range is repeated; Task/Run instances cannot mix (11.7147ms)
✔ actual runtime records growing pages then a repeated page without changing model rounds, stop rules or original tool pairs (5375.5069ms)
✔ actual invalid tool calls repeat under the original step budget; observation never adds an early stop (4451.6604ms)
✔ actual command approval is observed as waiting and denial stays a permission failure (2655.8862ms)
✔ network errors remain model failures with shadow failure evidence, never a fabricated no-progress cause (4364.4586ms)
✔ observer receipt failure cannot change tool results, model budget or completion (2083.4906ms)
✔ a later receipt recovers after an observation write failure without misaligning retained source receipts (3091.3696ms)
✔ real applied files, counted checks and current requirement proofs grow after an existing-facts baseline (5019.1907ms)
✔ receipt retention stays aligned at the cap and a foreign step cannot enter the Run (2639.544ms)
✔ an actual approved long check records its owned running job as waiting before the original counted result (7652.6896ms)
✔ a live SQLite host with the actual 1.9 artifact object upgrades, keeps its original blobs and verifies real browser PNG bytes (4668.7742ms)
✔ failed upgrade restores the original artifact object, provider and request handler (2207.8733ms)
✔ claiming the same runtime owner twice preserves its original metadata and every database row (852.885ms)
✔ sessions without controlled-engine history retain their prior export shape and never expose another session record (1105.1664ms)
✔ live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows (814.8977ms)
✔ an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects (1081.0285ms)
✔ an installation failure restores old managers, original record maps, handlers and all existing database rows (1910.5675ms)
✔ the owned controlled driver remains an active session and project even after outer task activity has ended (849.5869ms)
✔ release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory (857.9308ms)
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1815.5231ms)
✔ failed adoption restores the original virtual data-root name and original open database (877.0526ms)
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (1095.1274ms)
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (757.4883ms)
✔ the upgrade compatibility gate includes the served current version and the previous formal patch (0.4276ms)
✔ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (4200.486ms)
✔ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (8805.4425ms)
✔ HTTP worker identities require a current sealed plan, reject overrides and close unused plans without touching source (23135.3183ms)
✔ HTTP unknown recovery only accepts the original evidence SHA and preserves changed source for explicit retention (22933.4304ms)
✔ verified isolated outputs form a new parent batch, rerun real checks and commit only reviewed source (68350.5512ms)
✔ overlapping worker paths are explicit conflicts even if each independent task checks successfully (38684.5495ms)
✔ source edits after isolated work preserve the owner file and invalidate collection without proposing a merge (44902.9384ms)
✔ changed child bytes after parent preview block the entire batch before any parent write (63421.6721ms)
✔ corrupt original check logs cannot become collected outputs or a parent review (48859.4073ms)
✔ stopping a parent accounts late responses and executes none of their proposed tools (18346.5372ms)
✔ unreported interrupted requests reserve estimated usage and the total deadline cannot reset on resume (17901.6273ms)
✔ a deadline before worker request dispatch records no invented usage and cannot reset on resume (16177.8811ms)
✔ a response exceeding the cumulative token allocation stops before registering or executing its tools (17902.6513ms)
✔ cumulative tool allocation rejects the entire returned batch before any tool side effect (19564.8542ms)
✔ single response 16 tool ceiling rejects the entire returned batch before any tool side effect (21311.3904ms)
✔ consumed request steps remain consumed across explicit worker resumes (24274.9088ms)
✔ a saved completed response with missing usage is conservatively accounted exactly once during recovery (21534.7613ms)
✔ an unexecuted second workspace plan resumes its original identity without recreating the first checkout (22457.741ms)
✔ a verified interrupted parent proposal resumes sealing without duplicating or replacing its original change (68639.4292ms)
✔ recovery attaches a sealed parent batch saved before its group reference without creating another batch (55813.2637ms)
✔ explicitly retaining an unexecuted parent merge cancels its batch and frees the next parent goal (54665.9561ms)
✔ unknown collaboration blocks ordinary proposals but permits only original batch recovery and rollback (58411.8219ms)
✔ after a restart the batch application lazily reinstates the worker result guard before any parent write (59875.2762ms)
✔ unknown original tool inputs must match before acknowledgement, and reviewed checkpoint IDs preserve the unknown fact (18100.5361ms)
✔ a parent stop observes and waits for a manually approved child check and its real descendant process (17975.473ms)
✔ a real host crash preserves unknown checks, refuses a still living owned PID and never replays a model or tool (32192.1522ms)
✔ a persisted child initialization resumes the original control run after a failure before its worker record (20233.7553ms)
✔ failed request intent persistence never dispatches a worker request or changes source (21124.62ms)
✔ failed usage persistence rolls back the uncommitted usage and conservatively reserves one unknown request without tools (16620.065ms)
✔ a child file change after observation prevents acknowledgement even when the tool inputs did not change (15854.2755ms)
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (713.3608ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (15791.3862ms)
✔ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (41502.2487ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (16641.8873ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (24935.0353ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (14102.9297ms)
✔ all actually returned same-version fragments reach the bounded request, including overlap and Unicode, with independent original provenance (4581.9155ms)
✔ unread gaps and different range origins remain separate; partial sending names the precise missing already-observed range (1056.1026ms)
✔ same-SHA conflicting overlaps and invalid coordinates fail closed, while a new SHA never inherits old fragments (1116.1633ms)
✔ versioned old views keep the original single-page semantics and verification (631.1409ms)
✔ small code and actual failed command stay visible when their original multi-tool group cannot fit (1179.0739ms)
✔ mixed group retains six distinct small file observations with exact multilingual text and bounded request bytes (1873.1226ms)
✔ working observations are bound to the current Task and stop treating a pre-application file revision as current evidence (1797.4167ms)
✔ a sealed observation rejects changed or missing original result artifacts instead of recreating evidence (1414.125ms)
✔ a real passed-check observation is excluded after a source edit invalidates the check, while its historical sent evidence remains valid (5348.426ms)
✔ budgeted file pages reconstruct UTF-8 text including long single lines and surrogate boundaries (4.5427ms)
✔ actual HTTP multi-tool reads survive an oversized runtime snapshot and the sealed evidence survives reopening (11654.7316ms)
✔ actual HTTP file pagination advances over a long file with each returned page visible in the next request (12120.8951ms)
✔ later mixed history pages cannot displace the actual module sources and complete requirements (8007.2891ms)
✔ a later narrow page of the same file revision cannot evict the wider actual observation (3791.6762ms)
✔ six small source files stay complete across metadata turns even when mandatory evidence exceeds the soft target (3204.0569ms)
✔ historical read-artifact navigation points to the original artifact and next page, never its result wrapper (1191.9649ms)
✔ a 1.6.1 full-provenance sent view remains verifiable after introducing the compact view (1313.1548ms)
✔ actual HTTP requests keep four observed modules after a later large history read and preserve all source bytes (12711.5343ms)
✔ workspace HTTP ownership, reviewed creation and reopen survive restart without changing source files (16307.4106ms)
✔ isolated model Task applies a batch, executes real checks and commits at the Git review boundary with a source-bound report (45980.1766ms)
warning: in the working copy of 'src/空 格.mjs', LF will be replaced by CRLF the next time Git touches it
✔ worktree checkout disables hooks, fsmonitor and all filter command variants while honoring built-in EOL conversion (7943.2784ms)
✔ an ignored external file at checkout is observed and never accepted as pristine creation (5839.3775ms)
✔ outside content hidden by assume-unchanged cannot pass workspace verification and blocks further source execution (4973.2586ms)
✔ workspace preparation refuses known shared-repository activity and preserves archived child sessions (6597.7928ms)
✔ compact checkout identities create in deep Unicode source directories while retaining the human branch name (6946.666ms)
✔ Windows Git metadata path limits reject creation before publishing a branch or changing source bytes (2603.142ms)
✔ a pending source snapshot participates in shutdown and completes before storage can close (2707.38ms)
✔ source configuration values stay private and a configuration change invalidates a saved review (2987.019ms)
✔ workspace review rejects excluded dependency before any checkout (3033.4995ms)
✔ workspace review rejects large committed blob before any checkout (2709.1063ms)
✔ workspace review rejects case collision before any checkout (3080.2027ms)
✔ workspace review rejects committed symbolic link before any checkout (3002.0711ms)
✔ workspace review rejects external config include before any checkout (2098.162ms)
✔ actual process exit at workspace intent preserves source and reconciles without creation replay (5408.897ms)
✔ actual process exit at workspace git_started preserves source and reconciles without creation replay (7115.7305ms)
✔ actual process exit at workspace git_finished preserves source and reconciles without creation replay (8482.6086ms)
✔ actual process exit at workspace verifying preserves source and reconciles without creation replay (9421.356ms)
✔ actual process exit at workspace registering preserves source and reconciles without creation replay (11213.881ms)
✔ actual process exit at workspace project_registered preserves source and reconciles without creation replay (11371.8855ms)
✔ actual process exit at workspace session_registered preserves source and reconciles without creation replay (9459.6471ms)
✔ actual process exit at workspace ready preserves source and reconciles without creation replay (6708.4742ms)
✔ outside changes at project registration remain unknown and preserve the already registered child identity (8343.5077ms)
✔ managed worktree preserves source index and dirty files, opens a distinct project and binds Run identity (6317.1055ms)
✔ stale review, branch/path collisions and forged ownership do not run worktree creation (3430.7569ms)
✔ workspace project verification is read-only and rejects physical Git identity changes (4718.525ms)
ℹ tests 899
ℹ suites 0
ℹ pass 898
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2361965.779
✖ failing tests:
test at tests\api.test.mjs:96:1
✖ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (21946.3358ms)
Error: Timed out waiting for test state.
at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/api.test.mjs:101:3)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
@@ -0,0 +1,54 @@
{
"success": true,
"version": "1.25.2",
"sourceCommit": "d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d",
"wholeSuite": {
"tests": 899,
"passed": 898,
"failed": 1,
"cancelled": 0,
"skipped": 0,
"file": ".qa/reliability-1.25.2/full-release-final.tap",
"sha256": "4ae37e9115ae57a5ef0c2c8269222b0e97cb27722a09a08c80d6f22af46d19c3"
},
"originalFailure": {
"name": "a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume",
"location": "tests/api.test.mjs:101:3",
"phase": "before restart: first awaiting_approval",
"error": "Timed out waiting for test state.",
"originalDeadlineMs": 8000
},
"supplement": {
"success": true,
"code": 0,
"startedAt": "2026-11-04T13:54:59.153Z",
"finishedAt": "2026-11-04T13:55:12.171Z",
"sourceCommit": "d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d",
"scope": "One exact unchanged API restart/approval test, original QA deadlines; no real model/formal state.",
"log": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\api-restart-recheck.log",
"output": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\reliability-1.25.2\\api-restart-recheck.tap",
"realModelRequests": 0,
"tests": 1,
"passed": 1,
"failed": 0,
"outputSha256": "dc416d4db5e89f49481f7ef4808a10a68e3b61e61f1ad859f585e873624a63c4",
"logSha256": "1ec47725c0260d1356c03cb02661d38a8ae081483a2f8a10c01e57c3360d3e48"
},
"unchangedAssertions": [
{
"path": "tests/api.test.mjs",
"sha256": "d27cfdbbbd933603c94a73bf9b8902648dee55ce508579cc9b1c3897cafc639c"
},
{
"path": "tests/helpers.mjs",
"sha256": "3a98fef9bee3cc363d227a67c28f9177771a01a0f1190e5a63c06d43e8d48d2f"
}
],
"decision": "Proceed to independent candidate acceptance using the original complete run plus exact unchanged semantic-path supplement. This is not a whole-suite all-pass claim; no product/test timeout, assertion, permission or budget is changed.",
"limits": [
"Unique cause of the first-state scheduling timeout remains unproven.",
"Concurrent-load and controlled-Harness startup stability remain unresolved."
],
"realModelRequests": 0,
"reviewedAt": "2026-11-04T14:22:06.588Z"
}
@@ -0,0 +1,949 @@
✔ Messages builds native system/tool history, bounds images, and seals a distinct mixed-pool variant (6.9206ms)
✔ Messages URL and native parameter contracts preserve other protocol paths and hard output budget (0.5573ms)
✔ native usage includes both cache buckets once, retains raw and rejects invalid counters (0.1533ms)
✔ real HTTP Messages JSON executes one tool, retains opaque history, actual URL and cache accounting (3472.2818ms)
✔ real HTTP Messages SSE executes one tool, retains opaque history, actual URL and cache accounting (3214.277ms)
✔ Messages api-key authentication is explicit; mismatched model remains blocked with original usage (5.8812ms)
✔ Messages bearer authentication is explicit; mismatched model remains blocked with original usage (4.1845ms)
✔ Messages redirect is not followed, either credential stays at the original server (3.6778ms)
✔ strict native SSE reads the nested start model and retains mismatch source without retries (3.125ms)
✔ a closed native tool block cannot execute before message_stop, then executes exactly once (3437.2973ms)
✔ mixed Chat/Messages pool seals both variants and preserves one completed tool on failover (5728.1569ms)
✔ native JSON rejects incomplete stops, duplicate tools and hosted content (0.2702ms)
▶ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch
✔ reject native stream 0 (1.2446ms)
✔ reject native stream 1 (0.2565ms)
✔ reject native stream 2 (0.1893ms)
✔ reject native stream 3 (0.2623ms)
✔ reject native stream 4 (0.1775ms)
✔ reject native stream 5 (0.1731ms)
✔ reject native stream 6 (0.1323ms)
✔ reject native stream 7 (0.125ms)
✔ reject native stream 8 (0.1771ms)
✔ strict SSE validates all blocks, terminal, event names, UTF8 and tool JSON before dispatch (3.6049ms)
✔ upstream SSE error retains original type/request ID and initial usage, never retries (5.0795ms)
✔ stop cancels the owned stream and retains partial consumption without running tool or replaying (63.1986ms)
✔ saved Messages import preserves auth choice, rejects endpoint duplication, and keeps source file untouched (796.6827ms)
✔ large source receipts use cursor-preserving invalidation without filling the event stream or changing the session (5.5041ms)
✔ small event updates retain the current session and actual cursor (0.135ms)
✔ the bundled local service enforces host, origin, token and JSON object contracts (2335.0186ms)
✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (2500.194ms)
✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (4905.0536ms)
✔ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (12363.2312ms)
✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (2204.0479ms)
✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (8508.7194ms)
✔ real browser HTTP plans, original field pages and PNG bytes preserve ownership and survive host restart (8411.3937ms)
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (16110.9832ms)
✔ browser host recovery retains unknown root outcome, blocks replay, and requires an explicit owned acknowledgement (3622.2194ms)
✔ late HTTP stop of a finished browser job cannot interrupt a later job in the same Task (7960.7089ms)
✔ actual failed page blocks source-passed delivery; a new passing page permits a bound commit and preserves both original records (20875.835ms)
✔ a build-only change after Git review invalidates the actual browser evidence and leaves HEAD and the protected index intact (8878.7864ms)
✔ actual DOM controls include validated unique CSS selectors across repeated parent buttons and escaped labels (7374.818ms)
✔ browser field coverage distinguishes sections and Run windows while retaining original source identity (0.4994ms)
✔ repeated original browser pages pause a live Task without re-opening the browser or breaking tool pairing (5394.1247ms)
✔ browser plan rejects outside builds, invalid interaction scope and unbounded steps before execution (0.9867ms)
✔ real owned Edge interactions, assertions, raw PNG and stopped process survive exact result reuse and host reopen (4103.2666ms)
✔ failed real page assertion preserves actual value and forbids silent retry of the original plan (8540.5642ms)
✔ build/source mutation and sealed step tampering reject before browser dispatch; earlier task cannot execute plan (1689.2822ms)
✔ outside network never reaches another local service, and original JavaScript/console failures remain failures (3227.7997ms)
✔ stopping a real in-flight browser preserves finished steps, closes its owned root and never replays (3100.5875ms)
✔ 原PNG损坏使原结果校验失败,不能以已有通过状态复用 (3116.5306ms)
✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (0.9995ms)
✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (1618.6872ms)
✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (1310.7955ms)
✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (1524.3801ms)
✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1093.103ms)
✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (2156.6103ms)
✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (1029.5664ms)
✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (5135.2371ms)
✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (1609.6903ms)
✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (1235.6559ms)
✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (1701.5211ms)
✔ input that fits the engine window but exceeds remaining credit diagnoses the credit limit (0.501ms)
✔ window overflow and historical pauses retain distinct and honest diagnoses (0.0802ms)
✔ R observed reservation shortage keeps the window-fit diagnosis separate from Run/Task credit (0.0979ms)
✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (3178.2026ms)
✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (4173.7295ms)
✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (2705.2227ms)
✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (3609.1524ms)
✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (4886.4996ms)
✔ batch APIs enforce ownership and review fingerprints, apply once, and persist the completed batch across restart (6634.8177ms)
✔ delivery reports bind actual batch identity and reject corrupted snapshot evidence without changing project files (4322.1631ms)
✔ a compatible model can seal proposals through the real HTTP loop while application stays behind user review (8267.2292ms)
✔ a sealed batch at the step limit hands off and continues the same Task into actual checks without replaying saved tools (19200.452ms)
✔ applied batches cannot turn cancellation, other budgets, restart or unknown commands into a review continuation (2498.3202ms)
▶ complete sealed batch hands off after all tools settle with no next model request
✔ complete (4985.1445ms)
✔ later-error (5936.6898ms)
✔ complete sealed batch hands off after all tools settle with no next model request (10922.7275ms)
▶ partial, changed, failed or cancelled batches cannot claim complete review handoff
✔ partial (5727.9139ms)
✔ new-proposal (5088.9095ms)
✔ failed (5241.4825ms)
✔ conflict (5388.9402ms)
✔ cancelled (4893.4765ms)
✔ unknown (5514.1401ms)
✔ tampered (5340.639ms)
✔ partial, changed, failed or cancelled batches cannot claim complete review handoff (37196.8257ms)
✔ actual process exit at file-batch prepared preserves durable identity and never replays writes (2152.1565ms)
✔ actual process exit at file-batch application_started preserves durable identity and never replays writes (2129.2665ms)
✔ actual process exit at file-batch write_intent preserves durable identity and never replays writes (2403.1453ms)
✔ actual process exit at file-batch staged preserves durable identity and never replays writes (2102.0432ms)
✔ actual process exit at file-batch replaced preserves durable identity and never replays writes (2749.511ms)
✔ actual process exit at file-batch file_recorded preserves durable identity and never replays writes (2634.7802ms)
✔ actual process exit at file-batch finished preserves durable identity and never replays writes (2638.183ms)
✔ actual process exit at file-batch rollback_started preserves durable identity and never replays writes (3581.3904ms)
✔ actual process exit at file-batch restore_intent preserves durable identity and never replays writes (3484.057ms)
✔ actual process exit at file-batch restore_staged preserves durable identity and never replays writes (3507.0916ms)
✔ actual process exit at file-batch restored preserves durable identity and never replays writes (3230.0401ms)
✔ actual process exit at file-batch restore_recorded preserves durable identity and never replays writes (3380.0581ms)
✔ actual process exit at file-batch rollback_finished preserves durable identity and never replays writes (3403.8842ms)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/two.mjs', LF will be replaced by CRLF the next time Git touches it
✔ sealed batches preserve bytes until review, then apply and explicitly restore BOM/CRLF/new files (2788.8717ms)
Switched to a new branch 'owner-branch'
✔ a conflict in the last file or Git branch prevents writing every file in the batch (3273.2125ms)
✔ duplicate canonical paths, ancestor collisions, links, dependencies and Windows aliases never form a batch (1410.1749ms)
✔ fingerprints, changed proposals and corrupt snapshot artifacts cannot write or restore any target (2409.6815ms)
✔ a failure after replacement restores only batch bytes and never retries an old application (2277.7817ms)
✔ rollback preserves owner edits, blocks other project writers, and explicit acknowledgement releases recovery (2229.6237ms)
✔ an unattempted owner-created file identical to a suggestion remains external and is never removed (1717.5504ms)
✔ active batch requests are serialized and cancellation leaves a verifiable ended batch (1621.859ms)
✔ batch application and rollback preserve unrelated Git index and worktree bytes (4320.6866ms)
✔ recovery reuses exact staged bytes but retains a conflicting temporary file for owner inspection (3646.1592ms)
✔ one Task can seal pending proposals from earlier Runs while snapshots retain each source Run (3406.8928ms)
✔ engineering inspection preserves a dirty Git baseline and treats project rules as data (2702.6266ms)
✔ real npm tests and build produce counted results, log artifacts and persistent verification (3799.2022ms)
✔ an actual failing test retains the nonzero exit code and failed count (2860.0872ms)
✔ unchanged automatic checks return original failure evidence, while explicit user reruns and changed source still execute (6224.3144ms)
✔ agent loops cannot hide identical failing checks behind new plan IDs or unrelated reads (10315.4511ms)
✔ zero tests, skipped tests and unrecognized stdout cannot become verification passes (8939.5065ms)
✔ a successful build with no selected tests does not verify the task (2235.8467ms)
✔ stale check plans and forged script names execute no project commands (1954.9041ms)
✔ applying a later proposal invalidates the prior passed engineering snapshot (3018.8302ms)
✔ stopping an actual check terminates its child process and blocks concurrent jobs (2428.3681ms)
✔ check timeout records a failure with its actual termination result (3279.4059ms)
✔ source edits during a successful check make the result stale (3487.4473ms)
✔ bounded large logs retain the test footer and readable artifact instead of inventing counts (2202.7251ms)
✔ model-selected checks require a run-bound decision and denial creates no check job (4315.1325ms)
✔ check APIs expose owned plans and jobs and preserve the authoritative results across restart (6789.2904ms)
✔ reviewed changes continue the original task without reopening a generic completed run (3547.9944ms)
✔ concurrent review-continuation API requests accept one run and retain the goal after restart (9638.0532ms)
✔ the model reads owned failure logs without running the check again (3206.7473ms)
✔ process exit at check queued preserves results and never replays commands (1414.769ms)
✔ process exit at check result_committed preserves results and never replays commands (2185.9866ms)
✔ model code tools keep Task/Run ownership, index evidence and exact proposals across storage recovery (6246.2446ms)
✔ bundled code APIs isolate project results, validate queries and create review-only patches with conflicts (2846.961ms)
✔ code tool arguments reject malformed ownership-independent inputs before side effects (0.2936ms)
✔ observe-only device authority cannot read, configure or clear project parsing caches (1169.6086ms)
✔ pairing is short lived, single-use, generation-bound and validates exact permissions (838.1304ms)
✔ device transaction failure neither consumes the ticket nor leaves a credential (783.121ms)
✔ devices have project and action boundaries; rotation, expiration, revocation and host changes reject old authority (1126.5411ms)
✔ persistent registry stores hashes and a bounded audit, never raw credentials (797.4511ms)
✔ real TLS verifies IP SAN, CA chain, encrypted restart and public fingerprint (946.1448ms)
✔ TLS sealing failure leaves listener closed and no plaintext or successful TLS registration (853.1165ms)
✔ HTTP pairing is concurrent single-use; secure cookie and strict origin/host checks (874.8764ms)
✔ gateway never exposes management routes, arbitrary assets or unpaired project data (1080.4938ms)
✔ authorized project events paginate from original seq without leaking other project events or payloads (1468.0997ms)
✔ remote task projection excludes raw model history, host configuration, tool input and credentials (1197.0186ms)
✔ permission checks apply to direct remote mutation, not only UI controls (844.1345ms)
✔ approval fingerprint and exact task/revision are bound; duplicate requests never execute twice (1433.4396ms)
✔ unknown original operation is recorded and never replayed after response failure (1135.5444ms)
✔ revocation and gateway closure reject old access without invoking runtime stop (898.7077ms)
✔ rate limits reject pairing brute force and do not persist candidate secrets (774.8743ms)
✔ real Windows CurrentUser DPAPI persists only a sealed CA and reopens it (1926.3946ms)
✔ mobile approval executes the original Runtime command exactly once and rejects the later desktop decision (4442.2339ms)
✔ desktop rejection wins a concurrent mobile request and original command remains unexecuted (2502.7943ms)
✔ phone stop waits for the original process exit and prevents later heartbeats and command replay (3132.2302ms)
✔ Run replacement during parent-stop wait is rejected rather than stopping the new Run (884.8938ms)
✔ diff pages preserve source SHA; report reads verify blobs and exclude unrelated artifact kinds (1011.9823ms)
✔ hot upgrade refuses an active gateway and restores closed gateway ownership on failure (863.0151ms)
✔ damaged device permissions or expiry fail closed and never overwrite the original registry (845.9167ms)
✔ device revocation destroys its actual authenticated TLS connection (1032.5002ms)
✔ companion observes only current Task screenshots, verifies original PNG bytes and loses access immediately on revoke (1355.1641ms)
✔ mobile browser observation is current Task/project scoped, preserves original PNG and exposes no browser control or profile data (1129.8233ms)
✔ actual config HTTP failure preserves the committed selection, config and volatile credential before a successful retry (1028.0856ms)
✔ controlled installation pins the native kernel and bridge independently of the existing connection-probe identity (1014.6676ms)
✔ controlled profiles disable every native project/terminal provider and native model/retry route using the actual include patch contract (0.6893ms)
✔ owned tool catalogues seal full schemas canonically and reject duplicate or malformed declarations (4.9264ms)
✔ bridge authentication, current Run, process, SDK session and browser-origin checks reject before dispatch (691.9354ms)
✔ bridge duplicates, unknown tools, malformed arguments and source changes are refused before a second side effect (592.0143ms)
✔ bridge model requests bind the exact catalogue, route and output bound and preserve raw request/result identity (761.199ms)
✔ stopped and oversized bridge requests never reach a local model or tool callback (885.5092ms)
✔ a Windows virtual data-directory name binds new storage and credentials to its actual physical root (2131.9437ms)
✔ physical data-root adoption still rejects explicit junctions at the directory or any ancestor (760.9312ms)
✔ actual Windows CurrentUser DPAPI roundtrips owned UTF-8 and rejects damaged bytes and wrong entropy (1266.5053ms)
✔ only explicitly supplied keys persist; new provider restores original revisions and public views contain no key (2659.6624ms)
✔ registry and cipher commit failure restores original routing, keys, block and every database row (1840.6193ms)
✔ a two-key import with a protection failure rolls back all registry and cipher entries and retains its preview (1949.527ms)
✔ connection revision changes retain the original saved block and report a source mismatch on restart (2327.5298ms)
✔ disable skips real restart loading, explicit enable restores, delete preserves memory and forget removes both (2552.4832ms)
✔ corrupt saved block and another SID do not load; failures are visible without returning ciphertext or plaintext (2600.6409ms)
✔ legacy persistence requires a new explicit key and binds config and credential revisions; stale requests cannot save (2471.5392ms)
✔ owned plaintext keys never reach SQLite pages, WAL, config or public execution exports (1426.8639ms)
✔ reviewed application invalidates old checks, names current SHA and advances through a new approved check to Git preview (6667.1834ms)
✔ skip-tests, foreign task, unknown operations, diagnostic and parent review retain their boundaries (2879.9307ms)
✔ before the first change, real baseline failures persist across later reads; passed baselines and changed sources cannot certify delivery (7294.7437ms)
✔ actual process exit at Git queued never replays a commit and can reconcile the durable result (10779.9552ms)
✔ actual process exit at Git preparing never replays a commit and can reconcile the durable result (11769.8099ms)
✔ actual process exit at Git index_locked never replays a commit and can reconcile the durable result (11787.2765ms)
✔ actual process exit at Git prepared never replays a commit and can reconcile the durable result (12438.4861ms)
✔ actual process exit at Git ref_prepared never replays a commit and can reconcile the durable result (13478.1339ms)
✔ actual process exit at Git publishing never replays a commit and can reconcile the durable result (13149.9454ms)
✔ actual process exit at Git committed never replays a commit and can reconcile the durable result (11073.9433ms)
✔ actual process exit at Git index_published never replays a commit and can reconcile the durable result (9723.3983ms)
✔ actual process exit at Git finished never replays a commit and can reconcile the durable result (9353.3296ms)
✔ an unknown Git result cannot overwrite an externally changed index or delete an unrelated lock (9280.1273ms)
✔ known publication with a later source edit retains the commit and marks the delivery for inspection (9358.3152ms)
✔ CRLF normalization, multiple applied revisions and unrelated special index flags preserve exact bytes and ownership (10851.6884ms)
✔ adding new durable record kinds to an existing hot Store preserves all existing Maps and records (8538.6954ms)
✔ an unrelated owner deletion is fingerprinted and preserved while linked task paths are rejected (13953.4565ms)
✔ actual failed tests become a reviewed local commit and evidence report while preserving unrelated index and files (12509.7187ms)
✔ selected preexisting unstaged, staged and untracked owner edits cannot enter a task commit (14166.5822ms)
Switched to a new branch 'owner-branch'
✔ source, unrelated stage and branch changes after review invalidate a commit plan without changing HEAD (18716.072ms)
Switched to a new branch 'delivery-branch'
✔ a later Git metadata change keeps matching source evidence valid but a real source edit requires checks (9449.4475ms)
✔ a corrupt passed-check log and a pending proposal block Git delivery instead of inventing evidence (5166.8722ms)
HEAD is now at c01f5cc Sealed delivery fixture baseline
✔ Git filters, merge state, detached HEAD and old task ownership are explicitly rejected (21439.8249ms)
✔ local snapshot commits disable repository hooks and signing and isolate the Git child environment (8533.1882ms)
✔ stopping before publication cancels safely; stopping after publication preserves the actual completed commit (15606.6955ms)
✔ delivery API confirms exactly one owned plan, serves verified reports and preserves results across restart (12199.4924ms)
✔ the model can prepare an owned Git review and evidence report while publishing remains a separate user action (10343.1033ms)
✔ HTTP Git review pairs deferred calls, survives reload and never requests more work until the saved preview is resolved (10504.4469ms)
✔ a reviewed Git preview can be revised or withdrawn without publishing or losing the current Task (8726.3573ms)
✔ actual Electron debug argument ordering retains exactly the compiled entry and rejects extra or repeated actions (1.0978ms)
✔ native bridge refuses other origins, subframes, other windows and unsupported inputs before connecting (535.6535ms)
✔ desktop preview opening requires a currently registered project preview and rejects iframe callers (693.4009ms)
✔ file reveal binds the current project, task, path, UTF-8 bytes and original SHA without executing the file (626.9406ms)
✔ file changed during asynchronous task recheck is not revealed as the old bytes (675.2725ms)
✔ desktop browser profile and aliases stay outside project inventory and file access (651.6063ms)
✔ native picker cancel and origin change after dialog publish no project registration (559.7233ms)
✔ pending native action is not dispatched twice, and current task review returns its original seq (640.5021ms)
✔ native stop cancellation and changed original host never stop a replacement process (650.2883ms)
✔ window register rejects host PID, stale installation, extra fields and missing creation identity (0.3486ms)
✔ a rebuilt source archive binds actual generated client assets and retains its original running identity after disk changes (1938.5009ms)
✔ host challenge proof rejects a stale challenge, changed identity and changed signature (0.8535ms)
✔ stop confirmation binds the original instance, creation and loaded runtime (0.1664ms)
✔ state paths reject escaping, linked ancestors, ambiguous hardlinks and damaged JSON (968.6488ms)
✔ failed registration publishes no initialized memory and can complete after its actual inputs are supplied (2408.6094ms)
✔ host shutdown cancels an un-signalled HTTP model request and refuses later requests until recovered (1.3691ms)
✔ host shutdown cancels model-pool acquisition and releases queue ownership without inventing attempts (600.1567ms)
✔ full candidate validation returns the exact loaded-input host identity and rejects undeclared or altered files (1049.918ms)
✔ fast per-file scan still rejects a junctioned subdirectory, a hard-linked file and a stream path with the original bytes intact (962.917ms)
✔ installation requires separate absolute program/data directories and a candidate in its own versions namespace (1198.7429ms)
✔ inventory rejects a new hardlink on an optional file after its full-manifest scan and accepts the untouched candidate after removal (948.1029ms)
✔ staging retains the original data and pointer without querying or restarting a host (3014.361ms)
✔ a post-pointer failure restores every original pointer byte and persistent row; a first-install failure removes only its published pointer (10819.9612ms)
✔ changed active manifest and concurrent pointer changes are rejected without overwriting the unknown record (4693.9663ms)
✔ an unregistered non-HTTP listener blocks preflight even when service-info is absent (2825.5298ms)
✔ uninstall archives its original pointer and preserves every data row/artifact instead of recursively deleting data (6425.378ms)
✔ preflight rejects an unrelated program root or changed native bootstrap while preserving its original bytes (4555.6187ms)
✔ a changed owned bootstrap follows its candidate and a post-pointer fault restores both original bytes (16800.2755ms)
✔ an external bootstrap change after preflight is preserved and never overwritten as an update or rollback (8210.8844ms)
✔ owned startup retries only read-only observation after a slow health response and attests the same original child (3815.0788ms)
✔ unverified startup expires with its original live child and never treats timeout or an unrelated health PID as proof (5713.5198ms)
✔ diagnostic failures and repeated questions retain the original execution error, task, checks and read-only authority (3008.1439ms)
✔ diagnostic binding survives reopen, rejects foreign Task references and detects original error or artifact tampering (966.5661ms)
✔ a new Task never adopts a previous Task error from session.lastFailure (617.0004ms)
✔ verified research and explicit no-test scopes do not demand an unrelated test job or claim engineering success (3144.0529ms)
✔ unknown scope and unknown operations remain actionable even after a diagnostic answer or read proof (1207.8403ms)
✔ delivery status HTTP is read-only, selection-bound and equal to the saved report after host restart (4523.3144ms)
✔ routine engineering facts remove duplicate success excerpts while complete diagnostics and errors remain available (715.038ms)
✔ a question about the previous workbench error receives local error context and current change states (2410.1536ms)
✔ an unknown model request stops, and explicit resume never replays the approved command (3610.4936ms)
✔ exhausted refused connections preserve tool results, and explicit resume adds no new user turn or replay (3305.6044ms)
✔ stopping during model backoff cancels further requests and clears the running request state (1693.4837ms)
✔ HTTP authentication errors are classified, redacted and never automatically retried (17.2198ms)
✔ temporary HTTP service errors retry and recover with recorded attempt counts (13.4289ms)
✔ invalid and oversized protocol responses fail once with a useful response-format diagnosis (8.2603ms)
✔ HTTP rate limits expose their source and obey the service retry interval before recovery (1007.3791ms)
✔ Windows commands preserve Chinese through a PowerShell pipeline into Node (849.0411ms)
✔ Windows shell syntax errors stay readable and native command exit codes are retained (1183.4222ms)
✔ review and completed states do not turn a generic continue click into a new model request (815.8697ms)
✔ old session data receives a truthful historical connection diagnosis without rewriting history (759.1014ms)
✔ engine HTTP checks bind the detected installation and current task, page original bytes and preserve them across host restart (5332.7614ms)
✔ HTTP stop seals a pending SDK call, rejects automatic replay and keeps failures attached to the original session (4281.088ms)
✔ sealed r1-off failure fits its original 16K config with authentic latest status and readable source (13.0453ms)
✔ sealed r1-on failure fits its original 16K config with authentic latest status and readable source (10.0288ms)
✔ sealed r2-on failure fits its original 16K config with authentic latest status and readable source (7.6635ms)
✔ sealed r2-off failure fits its original 16K config with authentic latest status and readable source (7.3522ms)
✔ archived native call pairs require exact saved arguments/results rather than model-written summaries (8.219ms)
✔ full system/user requirements and mandatory current failure can refuse rather than be trimmed (12.0476ms)
✔ small native input is byte-preserving; developer instructions remain mandatory after compaction (0.18ms)
✔ older failing checks and pending proposals remain visible after a later large file read (14.2207ms)
✔ bounded result keeps every check status and cuts Unicode only on whole characters (0.475ms)
✔ controlled engine HTTP freezes one child, pages original owned input/report, rejects foreign reads and prevents changed-source reuse (15198.217ms)
✔ a sealed whole-batch review pauses the owned native session without certifying engine completion or losing the saved host result (14577.6631ms)
✔ a changed review seal still closes the owned native process and cannot claim a verified review handoff (14618.8289ms)
✔ native text and call IDs preserve original result pairing while unsupported content fails closed (0.4212ms)
✔ one engine child freezes real installation identity before creating tasks and rejects a changed source (9017.8826ms)
✔ owned native tools return saved results, use real approvals/checks and account each actual request once across new engine Runs (28777.6963ms)
✔ forged native scope cannot change a parent file and a final completion claim cannot replace worker proof (14656.5356ms)
✔ duplicate native IDs are rejected without replaying a saved tool (15053.0091ms)
✔ native input exceeding the context budget is retained and sends no model request (10897.0092ms)
✔ bounded native sends verify original tool provenance and reject forged views or missing versions (14128.1501ms)
✔ stop retains a late reported model usage once and executes no tool from that output (11362.3683ms)
✔ a source change after the original model intent stops before native tools execute (11199.5409ms)
✔ an engine source change while approval is pending invalidates the old permission before any check starts (18136.7643ms)
✔ missing or noncompleted turn end cannot be adopted even with an owned receipt and assistant text (0.5895ms)
✔ closed root with an original live descendant remains unknown and retains its process tree (0.2926ms)
✔ host recovery reserves original pending attempts exactly once and explicit review preserves unknown outcomes (14765.0196ms)
✔ corrupted model reservation cannot reduce recovered budget or permit a new engine request (13977.1613ms)
✔ engine detection seals the actual CLI, SDK, profile and Node and rejects mixed versions without launch (755.819ms)
✔ owned engine probe waits for real ready identity, verifies six native responses and saves immutable task evidence (1478.0644ms)
✔ an invalid startup nonce is rejected before initialize and preserves the process close and partial report (1796.9676ms)
✔ SDK identity and session directory mismatches retain raw responses and never become verified (4479.0304ms)
✔ cancel during a pending initialize closes only the owned process without sending an unsupported MCP cancellation (1656.2749ms)
✔ cancel before readiness sends no protocol request and a user retry creates a different process and record (1954.9497ms)
✔ source or scratch changes and unexpected model traffic fail after preserving the actual observed result (4595.9465ms)
✔ unowned idle notifications stay quarantined and server requests receive a rejection without granting operations (2818.3392ms)
✔ engine probe environment excludes parent secrets and NODE_OPTIONS while preserving operating system paths (1800.1727ms)
✔ foreign sessions and altered reports or task bindings cannot reuse verified engine evidence (1539.6377ms)
✔ restart never replays an active engine check or stops a historical PID, and keeps prior task state (1417.6968ms)
✔ model argument validation and runtime activity do not grant external engine prompt or project execution (673.1155ms)
✔ a follow-up question receives the actual failed engine check from its original Task and keeps its report unchanged (2280.1716ms)
✔ unfixed dependency URLs and invalid integrity are reported without exposing URL credentials or allowing a plan (873.7985ms)
✔ hot upgrade refuses an active dependency operation or evaluation before changing runtime objects (0.5256ms)
✔ read-only environment diagnosis identifies actual runtime, missing dependencies and sealed inputs without installing or running scripts (6485.2796ms)
✔ diagnosis rejects unsupported managers, lock integrity and credential configuration without reading config content (5332.9846ms)
✔ approved real npm ci runs only in owned worktree, skips scripts, retains logs and binds later actual tests (10696.8064ms)
✔ explicitly allowing lifecycle scripts executes sealed root script and preserves the separate preparation result (8533.1088ms)
✔ stale lockfile, tampered plan/config, cross-session identities and mismatched download sources never dispatch npm (7077.9823ms)
✔ registry failure keeps original npm exit/log and performs no automatic fallback or replay (8422.7342ms)
✔ stopping a hanging dependency download records only its owned process and preserves stopped logs (9430.6853ms)
✔ restart retains unknown preparation, blocks writes and checks, and requires explicit read-only reconciliation (7261.3613ms)
✔ HTTP environment flow survives refresh, requires explicit approval and preserves task and artifact ownership (13202.8257ms)
✔ Python environment diagnosis reads declarations and runtime identity without executing project code or installing packages (883.7501ms)
✔ empty build cache directories keep dependency identity while added executable files invalidate it (1008.7462ms)
✔ dependency snapshots reject external links and incomplete budgets instead of claiming environment equivalence (722.7873ms)
✔ model-requested environment preparation uses the original approval boundary and never treats preparation as passed engineering checks (12503.7383ms)
✔ timeout and offline cache miss retain actual failures and new attempts require newly sealed plans (12747.9273ms)
✔ both evaluation worktrees can approve fixed dependency preparation and different actual dependencies reject candidate execution (32756.4645ms)
✔ evaluation denominator distinguishes attempted unsealed candidates from unexecuted samples (0.3259ms)
✔ evaluation summary retains sealed outcomes and stopped or failed original attempts (0.4437ms)
✔ evaluation contract fixes bounded samples, source paths, checks and aggregate budget (597.6684ms)
✔ same-source workspaces seal real commands before execution and preserve original staged and unstaged bytes (16526.6775ms)
✔ actual original failures and candidate success are both preserved, then adoption requires parent review, checks and Git (60625.0555ms)
✔ candidate cannot shrink tests and changing original test bytes rejects execution before any model request (21514.3615ms)
✔ missing upstream usage remains unknown and does not become a free run or invented cost (37863.3101ms)
✔ missing raw check logs preserve unknown result and original sample denominator (38744.5009ms)
✔ source and model changes never silently replace an existing batch input (3475.1232ms)
✔ model revision change before preparing a fixed sample cannot silently use the replacement connection (3313.9687ms)
✔ HTTP evaluations require host token, original fingerprint and session ownership; worker API cannot bypass evaluation flow (17908.4156ms)
✔ sample queue cannot skip or reset attempted samples, and reports freeze further writes (30960.4924ms)
✔ stop cancels only current candidate and preserves partial results instead of replaying a request (23971.4018ms)
✔ restart recovers interrupted evaluations as unknown and keeps completed checks and plan identity (22342.1934ms)
✔ JSON migration survives process exit before commit and retains exact legacy backups (3239.1639ms)
✔ process exit after_state rolls back state, event and outbox together (2007.332ms)
✔ process exit after_event rolls back state, event and outbox together (1874.5467ms)
✔ crash recovery at accepted retains execution identity and never replays side effects (1567.5591ms)
✔ crash recovery at queued retains execution identity and never replays side effects (2152.3426ms)
✔ crash recovery at approval_wait retains execution identity and never replays side effects (2945.9365ms)
✔ crash recovery at approved retains execution identity and never replays side effects (2813.9811ms)
✔ crash recovery at effect_unrecorded retains execution identity and never replays side effects (3366.0761ms)
✔ crash recovery at result_committed retains execution identity and never replays side effects (4714.5779ms)
✔ crash recovery at before_next_model retains execution identity and never replays side effects (5241.1726ms)
✔ state and event failures publish no success and preserve the last committed memory snapshot (1031.0308ms)
✔ tool result artifacts and event cursors retain project ownership across restart (2884.324ms)
✔ token budgets pause before tools execute and continuation keeps original task and accumulated usage (2330.5829ms)
✔ a time budget interrupts an unresponsive model and persists a resumable run (794.5335ms)
✔ a corrupted large result artifact cannot become a recovered success (1322.7812ms)
✔ hard-link aliases cannot expose protected bytes through reads, proposals, inventory or automatic project rules (1017.9224ms)
✔ ambiguous project hard links are explicit and ordinary independent file copies remain readable (665.5487ms)
✔ current-file HTTP receipts bind Task/Run and bytes, persist on restart and end without altering original runs or user Git data (5256.7283ms)
✔ file targets exclude referenced inputs and prohibited subsequent modifications (1.5596ms)
✔ full actual read and existing receipt complete a no-test file task without fabricating changes, checks or commits (2581.2213ms)
✔ partial pages, partial lines, wrong hashes and failed reads cannot be adopted; contiguous full paging can (1289.422ms)
✔ user edits and new requirements invalidate receipts, and a second task must explicitly adopt a source in its own project/session (1057.7948ms)
✔ adopting an unchanged file never satisfies an explicit modification or a new modification instruction (918.1169ms)
✔ required checks and stale passing flags cannot be bypassed by current file receipts (1055.8465ms)
✔ results plan proofs bind current file receipts while changes proofs still demand real applied change sets (817.1339ms)
✔ duplicate receipts cannot create progress indefinitely or reset no-progress reads (3670.0635ms)
✔ manual completion preserves the failed original run and refuses unknown operations (836.0311ms)
✔ completion refuses active work, files changed during inspection and a newly selected task (720.9076ms)
✔ unrelated files cannot stand in for named output paths, nor can a late apply satisfy newer instructions with an old proposal (1011.8858ms)
✔ delivery and mobile projections distinguish adopted bytes, new changes, no tests and no commit; mutations cannot rewrite receipts (1341.1956ms)
✔ proposals preserve project bytes until review; apply backs up the exact original bytes (609.1657ms)
✔ new nested files are created only on apply and unchanged content creates no proposal (472.4608ms)
✔ stale reads and changed baselines are rejected without overwriting external edits (882.1597ms)
✔ file paths reject traversal, absolute paths, credentials and outside junctions (696.8982ms)
✔ read and search expose bounded text scopes and reject non UTF-8 / oversized files (746.1416ms)
✔ project-local junctions cannot expose or create protected Git and credential files (607.5555ms)
✔ Windows trailing-dot and trailing-space path aliases cannot bypass protected paths (697.5181ms)
✔ a starter is copied into user data once; restarting from another program version preserves existing projects and editable bytes (1489.0337ms)
✔ startup does not insert a demo or rewrite/reorder an existing user project registry (572.1805ms)
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (104.4037ms)
✔ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (23.8002ms)
✔ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (983.4029ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (604.657ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (1149.032ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (683.515ms)
✔ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2637.0188ms)
✔ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2796.9747ms)
✔ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (1841.1117ms)
✔ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (913.9711ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (724.9261ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (1.9315ms)
✔ actual model comes from owned consumption, excludes other Tasks and deduplicates the current Run (1.5452ms)
✔ mixed routes retain each original model/protocol/outcome and unknown use is never reported as zero (0.1374ms)
✔ zero dispatch, missing ledger, missing model and truncated Run history never borrow configured model identity (0.2165ms)
✔ repeated attempt identities across Runs and contradictory usage stay explicit instead of inflating successes (0.1195ms)
✔ observed route never certifies returned identity and retains mismatches and original source (0.1419ms)
✔ directory picker reads one level, preserves empty folders, skips credential and linked folders (580.6724ms)
✔ HTML preview serves encoded names and relative modules on an isolated loopback origin; closing revokes it (574.3394ms)
✔ HTML preview refuses credentials, hidden inventories, traversal, external junctions, hardlinks and unsupported file types (675.6249ms)
✔ runtime shutdown closes local preview ports and pending starts cannot escape shutdown (531.2016ms)
✔ idle file previews expire and release their loopback servers (734.4028ms)
✔ directory and preview HTTP controls require workbench authentication; project pages cannot read bootstrap (2415.4892ms)
✔ MCP registration stays disabled until an explicit real stdio probe and schema-based tool selection, with actual process cleanup (1887.9485ms)
✔ MCP probe holds the project operation lock until its owned process and report are settled (1406.0223ms)
✔ MCP validates the declared JSON schema subset and rejects unsupported schemas before external dispatch (0.9386ms)
✔ actual model MCP call approves long schema-valid arguments, validates the sent catalog and stores one original result without leaking environment secrets (4445.0181ms)
✔ denying an MCP call never starts another process or executes the external tool (3517.742ms)
✔ actual handshake drift rejects tools/call even if program entry hash is unchanged (4404.9694ms)
✔ cancelled dispatched external side effect stays unknown, closes its owned process and cannot replay on reopen (4128.4538ms)
✔ changed executable input, foreign project IDs and corrupted original contracts block enable and dispatch (1951.0209ms)
✔ registered MCP HTTP API uses fixed execution contracts and project-owned probe records with no model requests (3778.0328ms)
✔ unknown MCP pauses later tool calls and all project writers; fingerprinted acknowledgement clears only the review gates and explicit resume does not replay (5831.7745ms)
✔ MCP acknowledgement persistence failure restores both job and tool review gates; corrupt evidence cannot be acknowledged (4660.6557ms)
✔ actual host exit after an external effect restores unknown jobs without a fabricated report, allows source-bound review and never replays the call (4049.2916ms)
✔ changed enabled MCP programs can be explicitly disabled without launching or trusting their changed source (1530.0726ms)
✔ stdio preserves split UTF-8 frames and final replies drained after process exit (2010.9885ms)
✔ server-initiated model requests are refused instead of inheriting provider privileges (756.1336ms)
✔ invalid or over-budget protocol invalid closes only its owned process and is not retried (907.9047ms)
✔ invalid or over-budget protocol oversized closes only its owned process and is not retried (899.5396ms)
✔ cancel and timeout do not resend a dispatched request and pre-cancel has no request trace (1066.1947ms)
✔ startup failure remains undispatched and has no process PID to terminate (508.7942ms)
✔ REA launch filters a fixture credential canary and rejects changed entry identity before a new connection (932.4176ms)
✔ schema1 connections remain readable without inventing observed capabilities or migrating original state (654.5691ms)
✔ protocol, unsupported capabilities and stream choice persist; client claims cannot forge verified evidence (617.3365ms)
✔ ability evidence belongs to exact connection and credential revision; unknown and unsupported reject required routing (0.2858ms)
✔ invalid declarations and inconsistent stream settings reject before registry, revision and credentials mutate (613.0588ms)
✔ model registry keeps original credentials/endpoint intact, rejects stale edits, and forgets only volatile keys on restart (828.6643ms)
✔ config import previews exact revisions, keeps secrets volatile, syncs only when enabled and preserves manual edits on conflicts (808.8426ms)
✔ real HTTP pool fails over 429 to another model and never repeats completed tools; attempts seal actual request bytes and Run identity (3936.6725ms)
✔ pool rotation and weights select members on new Runs; disabled and missing credentials are excluded without requests (5926.737ms)
✔ 401 blocks the credential revision; updating the key restores availability without leaking error echoes (1583.2206ms)
✔ queued request cancellation and in-flight disable release only owned leases and do not dispatch another HTTP request (766.6438ms)
✔ compiled model-center HTTP API persists public profiles, blocks forged origins, and local operations never invoke a model (1963.8624ms)
✔ model registry disk failures restore routing, pool profiles and credential references without partial updates (651.3252ms)
✔ model selection and saved configuration commit together and failures preserve the original mode and endpoint (756.8667ms)
✔ configuration imports roll back the entire batch and retain one usable preview after validation or commit failure (611.7387ms)
✔ HTTP quota retains native code/type/param/request id, bounded original and allowlisted headers, never repeats that connection (1708.6833ms)
✔ Retry-After above 90 seconds remains exact and a short local budget cannot trigger an early retry (1.9102ms)
✔ Retry-After date, expired date, huge value and invalid header retain explicit semantics (1.1467ms)
✔ unclassified 429 remains unspecified and every bounded actual retry retains its own original error (2208.0629ms)
✔ oversized HTTP error saves exactly the bounded prefix and labels its incomplete range (1984.9474ms)
✔ Chat SSE error preserves upstream fields, original failed event, partial tool and reported usage without executing or retrying (2213.5901ms)
✔ Responses failed SSE retains original event/response identity and usage (1966.9414ms)
✔ Responses incomplete SSE retains original event/response identity and usage (2296.0916ms)
✔ unsupported successful Responses output retains original JSON and usage with a local protocol origin (2091.8233ms)
✔ HTTP 200 native error is still an upstream failure rather than a fabricated successful answer (0.9877ms)
✔ JSON-escaped credential echoes are redacted in the original preview and capture as well as parsed fields (0.9322ms)
✔ quota failover uses another independent pool member and never replays a failed stream (2163.7126ms)
✔ native parameters are isolated by pool member, preserve Responses state and bind the original output reservation (0.3202ms)
✔ unsupported native fields and invalid values reject before dispatch instead of silently dropping or overriding constraints (0.3089ms)
✔ native settings for legacy and registered profiles persist without changing credentials or old records and reject stale edits (1362.7298ms)
✔ compiled native settings API saves/restores exact parameters and rejects reserved fields without mutating the profile (2647.9021ms)
✔ legacy connection test sends its saved native fields and selected output limit field without changing the configuration (3086.6562ms)
✔ identity distinguishes missing, invalid, mixed, exact and explicitly declared aliases without guessing (1.1688ms)
✔ chat-completions JSON rejects a different model before tool dispatch, retaining source and reported usage (2716.1262ms)
✔ chat-completions SSE rejects a different model before tool dispatch, retaining source and reported usage (2976.2807ms)
✔ responses JSON rejects a different model before tool dispatch, retaining source and reported usage (1594.6615ms)
✔ responses SSE rejects a different model before tool dispatch, retaining source and reported usage (1505.5379ms)
✔ record policy accepts missing identity but keeps it explicit, and strict declared mapping is frozen in the consumption (1.9178ms)
✔ mixed streamed identities cannot pass strict mode, and interrupted streams retain observed identifiers without authenticating them (1.5938ms)
✔ identity refusal never fails over to another pool member and raw response model cannot leak known credentials (1821.847ms)
✔ strict refusal remains visible even when the same original response exhausts the budget (1407.2267ms)
✔ strict identity crosses the controlled engine bridge with its original source and zero tool dispatch (12600.6674ms)
✔ frozen direct connection policy and delivery reports preserve response identity without filling historical gaps (2710.7742ms)
✔ saved engine budgets verify all Chat/Responses route variants and reject a mismatched output allowance (700.7559ms)
✔ owned CC Switch SQLite imports the selected TOML Responses wire_api and leaves unknown clients untouched (970.372ms)
✔ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (2442.6344ms)
✔ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (3902.3017ms)
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
✔ Reject {"body":{"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial" (1721.5978ms)
✔ Reject {"body":{"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","cal (1775.2078ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","cal (1595.9199ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supporte (1467.6809ms)
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (6561.4487ms)
▶ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay
✔ chat-completions (1702.7535ms)
✔ responses (1651.9808ms)
✔ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay (3355.2301ms)
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.2027ms)
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (553.7614ms)
✔ reservation uses actual known usage from the same route, never lowers estimates or rewrites original receipts (2.6405ms)
✔ reservation verification binds original Task/Run consumption and rejects changed usage or foreign provenance (0.7746ms)
✔ known high input calibrates the next request and stops before dispatch while preserving the completed read (1772.3878ms)
✔ one reported overrun stops legacy requests and keeps actual use and excess (1483.1177ms)
✔ one reported overrun stops pool requests and keeps actual use and excess (1785.1105ms)
✔ one reported overrun stops connection requests and keeps actual use and excess (2093.9882ms)
✔ reported usage below the limit prevents an unaffordable legacy retry before another dispatch (1534.2998ms)
✔ reported usage below the limit prevents an unaffordable pool retry before another dispatch (2209.571ms)
✔ native bridge seals calibrated refusal with original consumption and preserves versioned request verification (13619.2595ms)
✔ original R v1/v2 stay verifiable while v3 excludes the isolated input outlier and keeps the ledger intact (5.1165ms)
✔ v3 never excludes a repeated high ratio, the latest receipt, or a short history (3.0313ms)
✔ reservation proofs reject reordered latest high receipts, altered history and duplicates while old snapshots survive later consumption (3.6671ms)
✔ input-ratio exclusion preserves independently reported output maxima without rewriting historical v2 (1.9737ms)
✔ capability routing skips text-only members before acquiring a lease and records exact refusal in the original Run (2317.1756ms)
✔ all incompatible members reject with no network request, no lease, preserved Task and explicit non-dispatched ledger (1482.2797ms)
✔ explicit synthetic tool probe verifies only actual matching call, never executes it and loses verification on revision changes (1140.4986ms)
✔ plain text probe cannot verify tools; wrong tool nonce and client supplied evidence cannot claim verified support (1384.6856ms)
✔ a disabled connection invalidates an in-flight probe even when toggle mutates its original registry object (899.6164ms)
✔ selected connection owns the actual endpoint, credential, wire model and mismatch even when legacy is configured for GPT (3925.4528ms)
✔ budget-only API and demo/real selection preserve routes, reject injected endpoint fields and publish authoritative selection without keys (3499.9279ms)
✔ another session cannot change default model, mode or budgets while a request is active (5578.9415ms)
✔ HTTP download preserves original malformed SSE bytes and artifact SHA instead of decoding invalid UTF8 (2745.0242ms)
✔ terminated SSE adapts empty optional tool arguments, retains the exact wire bytes and executes the validated batch once (5524.2544ms)
✔ reported SSE usage survives rejected required arguments "" without dispatching any tool (2492.2931ms)
✔ reported SSE usage survives rejected required arguments "{\"path\":" without dispatching any tool (2140.0483ms)
✔ reported SSE usage survives rejected required arguments "null" without dispatching any tool (2418.7367ms)
✔ a stream without DONE retains reported usage but cannot adapt or execute even an optional tool (2404.9917ms)
✔ a timeout after reasoning-only fragments creates one unknown receipt and never invents reported tokens (6028.1478ms)
✔ real Chat SSE carries UTF8 and split tool JSON; Runtime executes only after DONE, stores partial progress and original usage (6449.3747ms)
✔ Responses typed SSE validates original item identity, terminal data, raw usage and tool result pair (3313.3115ms)
✔ incomplete network stream retains unknown attempt and never automatically switches pool or dispatches fragment tools (2465.4224ms)
✔ stopping an active HTTP stream closes only original request and keeps partial text without executing tools (2305.8716ms)
✔ explicit streaming probe uses actual SSE despite unknown declaration and binds its own original attempt (961.1386ms)
✔ coalesced initial SSE events publish the latest partial state even when the upstream stays idle (2598.6439ms)
✔ stream timeout closes the original HTTP response, preserves redacted capture and never retries (1534.6782ms)
✔ stream idle timeout preserves incomplete tool arguments, records unknown use and never fails over (1432.8411ms)
✔ SSE accepts CR-only final event boundaries and retains exact invalid UTF8 bytes without dispatch (0.7718ms)
▶ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data
✔ reject 0 (0.2399ms)
✔ reject 1 (0.1678ms)
✔ reject 2 (0.1327ms)
✔ reject 3 (5.138ms)
✔ reject 4 (0.2029ms)
✔ reject 5 (0.4543ms)
✔ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data (6.814ms)
✔ compiled host retains interrupted HTTP 200 and explicitly resumes after the recorded cooldown (15257.8656ms)
✔ compiled host retains interrupted HTTP 503 and explicitly resumes after the recorded cooldown (11073.5741ms)
✔ owned IPv4 service works after a failed IPv6 candidate without a second model POST or global DNS change (25.8611ms)
✔ environment HTTP proxy tunnels the owned request and NO_PROXY sends a separate direct request (10.6306ms)
✔ original connect timeout has a bounded nested cause and does not masquerade as response generation timeout (0.737ms)
✔ POST accepted then reset is unknown, is charged once and never automatically retried (3.5143ms)
✔ partial HTTP bodies retain original request id and bytes, and an unknown pool attempt never switches model (2704.8776ms)
✔ response wait timeout after an accepted POST is unknown; cancellation closes the owned socket and permits explicit reuse (150.674ms)
✔ older configurations receive bounded wait defaults without changing the original object (0.9997ms)
✔ active stream survives sixty seconds; byte activity resets idle but cannot extend total deadline (0.8526ms)
✔ silent stream has its own accurate deadline; caller cancellation and cleanup preserve their cause (1.3523ms)
✔ waiting for headers is bounded independently of stream-idle time (0.2239ms)
✔ wait settings persist, pin new runs and leave model pool, credentials and old run snapshots intact (1750.7594ms)
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (1682.1102ms)
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (632.0645ms)
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (1420.425ms)
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (3583.0544ms)
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (2009.1307ms)
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (1135.1931ms)
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (1452.3624ms)
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (1085.3808ms)
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (2302.0013ms)
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (1773.908ms)
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (1433.3446ms)
✔ unchanged proposals cannot hide repeated original-log reads or identical session inspections (11477.9036ms)
✔ reusing a verified proof never resets identical-state detection or creates a new proof (8637.093ms)
✔ coverage merges adjacent pages, separates changed sources and never claims old Run coverage in a continuation (0.7498ms)
✔ paged inspection finds a corrupted old artifact outside the recent fifty and retains original evidence without model/tool execution (5756.4132ms)
✔ inspection rejects ambiguous/out-of-range pagination and reports unknown tool/task identity without resolving it (1531.2294ms)
✔ original source locks all 60 byte-identical files including modules outside the nine-file prompt experiment (1511.4741ms)
✔ a new original executable or missing license cannot silently join the fixed trusted-source profile (1641.6959ms)
✔ original mode has a separate source identity and does not accept retry or privilege fields (1334.6641ms)
✔ actual original model input requires the complete postPrompt once in system context and cannot borrow a user or tool copy (0.3189ms)
✔ Windows directory permissions normalize overlapping grants without allowing an unrelated sibling (1142.3668ms)
✔ durability broker rejects foreign authentication, outside paths and wrong file identity before real fsync (1023.0978ms)
✔ exact patches preserve BOM/CRLF, unicode and all unselected bytes and back up the original on apply (1515.6829ms)
✔ several patches are matched against one original snapshot in any input order and keep LF (1345.045ms)
✔ mixed line endings require exact anchors and preserve untouched formatting (848.1294ms)
✔ ambiguous, overlapping, missing and malformed patch anchors never create a proposal or write (780.8941ms)
✔ stale original hashes and changes before apply preserve owner edits and mark conflicts (705.7007ms)
✔ no-op BOM patches/full content produce no change and replacements cannot split Unicode bytes (574.5645ms)
✔ real owned Vite starts only after approval, records OS ownership and live changes, and stops its tree (10589.553ms)
✔ occupied ports and approval-time conflicts never take over an unrelated listener (6603.5042ms)
✔ background preview final-log failure retains unknown evidence without an unhandled startup promise (10590.2624ms)
✔ stale source, tampered plans, wrong ownership and arbitrary scripts cannot dispatch a preview (12711.4712ms)
✔ restart retains original unknown preview, blocks mutation, reconciles absent identity without replay (6944.5828ms)
✔ an actual shell command keeps Node and UTF-8 output while omitting host-only credentials (844.1261ms)
✔ real npm tests and build do not inherit arbitrary host credentials or Node injection settings (2548.2932ms)
✔ real Python tests and compilation keep their sealed inputs without host credentials (2801.3913ms)
✔ a process exiting between the Windows snapshot and owner query is absent only after a fresh query (1802.3812ms)
✔ owner observation errors remain errors while a process is present, replaced, or cannot be rechecked (1611.1804ms)
✔ cache controls require desktop authority, exact inputs and owned project identity while preserving task evidence (2624.126ms)
✔ cache enablement and derived reuse survive a real host restart without becoming task recovery state (4694.2636ms)
✔ persistent parsing is project/SHA/config bound and produces identical semantic indexes after restart (1534.1064ms)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'main.ts', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'value.ts', LF will be replaced by CRLF the next time Git touches it
✔ same-size restored-mtime changes, additions, renames and deletions cannot reuse stale entries or import targets (1245.1488ms)
Switched to a new branch 'other'
✔ branch and commit changes invalidate even byte-identical sources (3922.0586ms)
✔ corrupt, malformed and schema-invalid records fall back to fresh parsing (944.6124ms)
✔ disable and clear persist without touching sources, sessions, configuration or original artifacts (1862.091ms)
✔ cache capacity bounds disk and memory by bytes and LRU project count (4371.4178ms)
✔ incomplete scans do not load or save cached entries; unavailable files leave the current result scope (1595.2261ms)
✔ project and cache junctions cannot expose or delete an outside directory (710.5191ms)
✔ concurrent file changes refuse a snapshot and clear during pending work cannot repopulate it (881.3984ms)
✔ file access mode changes invalidate parsed material even when bytes are unchanged (673.0932ms)
✔ tracked directory replaced by a junction invalidates access scope and never uses its old cache (1965.5632ms)
✔ JS/TS/React AST indexes actual declarations, exports, imports and verified source lines (897.2442ms)
✔ default expressions, named default exports and declared functions retain their AST evidence (729.1591ms)
✔ incremental refresh invalidates changed/deleted symbols and recalculates reused import targets (1202.1884ms)
✔ Python candidates exclude comments and multiline strings and declare limited evidence (582.8363ms)
✔ indexes isolate project identity and root and evict bounded caches without sharing results (800.8855ms)
✔ Git ignore, credential paths and links stay outside the index and no project files are executed (1385.8451ms)
✔ malformed, binary, non-UTF8 and bounded files expose partial coverage while good files remain searchable (715.5367ms)
✔ index query rejects invalid limits/types and does not imply reference or alias resolution (535.7892ms)
✔ read-only engineering inspection disables configured Git clean filters and preserves index bytes (1764.5701ms)
✔ Python multiline declarations retain candidate scope without interpreting expressions as declarations (922.2956ms)
✔ TypeScript module candidates support import-equals and MTS/CTS while opaque imports stay explicit (697.3401ms)
✔ actual HTTP requests reuse only this project source-checked memory as redacted data and preserve sent evidence after archive/restart (2367.2188ms)
✔ actual HTTP request excludes archived, timed-out and foreign-project memories (4300.2974ms)
✔ actual next HTTP request removes expired memory after a tool observes a source change without replaying that tool (3702.0835ms)
✔ incomplete inventory and excluded-file SHA changes cannot enter actual HTTP memory context or inspect_session snapshots (3082.5517ms)
✔ corrupt original artifact expires its memory and cannot reach an HTTP model request (2623.1578ms)
✔ memory JSON is bounded in escaped UTF-8 bytes and entry count, skips oversized entries and retains complete multilingual values (3921.1929ms)
✔ optional memory yields to the complete goal and original code evidence under the whole-request budget (1272.239ms)
✔ changed sealed memory artifacts or binding fields fail verification while the original request remains immutable (1872.7429ms)
✔ a malformed project declaration omits optional memory while the repair Task still reaches the owned HTTP service (1619.8666ms)
✔ an expiration persistence failure prevents dispatch and is not hidden as an optional scan failure (1345.3277ms)
✔ project memories persist across restart, keep source provenance, and are visible across tasks (1417.1766ms)
✔ source changes expire current project memories and keep the original evidence (1098.6356ms)
✔ incomplete source scans mark current memories unverified without expiring or reusing them (1148.4604ms)
✔ explicit file provenance is rechecked even when the inventory excludes that path (1241.5371ms)
✔ execution snapshots do not expose project memories before their source scope is validated (828.9048ms)
✔ project memory records stay isolated and archive requires the owning session (1171.073ms)
✔ project memory HTTP API exposes read-only source status and explicit writes (2753.2989ms)
✔ two Purge source versions lock nine original inputs without executing JavaScript or postinstall and remain disabled by default (812.3206ms)
✔ incomplete, unsupported, relative and oversized sources cannot enable the experiment (960.2978ms)
✔ invalid source fingerprints and invented privilege or retry fields fail before any parent Task is created (2134.7165ms)
✔ source edits between detection and plan are rejected without creating a parent Task (1697.8019ms)
✔ source edits after sealing cannot launch a child and do not reset its cumulative budget (9388.1698ms)
✔ literal experiment text is sealed into the parent, worker and each new Run while actual host approvals and saved results remain required (31720.7797ms)
✔ source changes after a model response stop before any native tool is accepted, retaining the actual usage once (13319.8519ms)
✔ source changes while approval is pending invalidate the old permission before an engineering check starts (19397.2711ms)
✔ altered text, interpolation, section order and policy flags cannot reuse a sealed experiment (2096.9437ms)
✔ the observed SDK system-message layout and the explicit system field both require exactly one effective section, never a user or tool copy (2269.1082ms)
✔ a missing or duplicated experimental section in the actual input is rejected before any model dispatch (28263.5872ms)
✔ experimental prompt overhead still participates in the original complete-input budget guard (12386.8205ms)
✔ source detection HTTP remains local-authenticated and read-only with no configured model requests (3872.4915ms)
✔ Python HTTP plans keep npm defaults, require owned approval and preserve actual results across restart (9786.7883ms)
✔ an isolated three-module Python Task repairs, checks and delivers a source-bound Git report without extra model calls (44783.7475ms)
✔ Python static inspection does not import project code or probe a project interpreter before approval (1113.3914ms)
✔ a real three-module Python failure, reviewed repairs, tests and compilation retain exact structured evidence (5139.4946ms)
✔ unittest counts repeated execution ordinals and subtest skips rather than deduplicating display names (4289.4564ms)
✔ unittest empty, skipped, expected failure and class initialization errors never verify a task (9270.8109ms)
✔ stdout claims cannot replace actual unittest results and an early exit cannot forge a successful collector (3296.1567ms)
✔ compilation reads actual Python source bytes without executing top-level project code (3753.6419ms)
✔ Node and Python mixed projects retain the existing npm default and require an explicit Python selection (3212.5412ms)
✔ changed project interpreters and forged Python plan bindings execute no check (2311.5264ms)
✔ malformed TOML and invalid Python test paths are reported without expanding npm check scope (1855.2826ms)
✔ stopping a real Python check terminates its child and keeps the completed result as cancelled (2549.5296ms)
✔ real pytest pass, failure, skip, collection errors and teardown errors use collected case outcomes (17376.3004ms)
✔ a real project virtual environment is detected statically and its actual version is recorded only during the approved check (11413.8353ms)
✔ a missing interpreter and repeated pytest item objects cannot create a false verification pass (3419.248ms)
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (0.9781ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (7248.6932ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.3268ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.4343ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (8.6455ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.3673ms)
✔ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (8588.7803ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (10430.8941ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (9993.334ms)
✔ continuations distinguish unread source, later original line ranges and already returned result wrappers (1228.3474ms)
✔ pure-file batch returns unused small-page space while mixed and historical allocation stays conservative (0.4843ms)
✔ v3 pools mixed file/log reads, serves small sources first and leaves historical/mutating batches unchanged (0.3184ms)
✔ v3 W-shaped mixed reading returns complete small modules and substantially larger first test pages in the next bounded request (6679.1617ms)
✔ observed upstream high input pauses before a new request, preserves reported usage and distinguishes the limiting ledger (977.1898ms)
✔ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5544.5779ms)
✔ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5499.6268ms)
✔ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5011.7759ms)
✔ an installed app outside the source drive resolves registered SDK and Purge through actual input verification (1002.7453ms)
✔ standalone registration resolves the upstream metadata directory and missing upstream falls back to the other registered source (918.9392ms)
✔ registered hints keep explicit roots, environment and existing app-relative candidates in their original priority (1565.5776ms)
✔ unknown IDs, duplicate registered IDs, wrong versions and relative or inconsistent metadata are not lookup candidates (1236.0622ms)
✔ oversized, malformed, invalid UTF-8 and non-file registry inputs cannot silently enable a source (1166.8384ms)
✔ a linked registry directory is rejected without reading or deleting its external source (1287.8578ms)
✔ matching research declarations do not replace actual installed version and critical-source checks (1217.4237ms)
✔ runtime guides map archived evidence while all original reports and successful/failed source bytes remain independently verifiable (1531.0933ms)
✔ missing required research reports fail packaging rather than creating a successful placeholder (1325.7602ms)
✔ full verification reports only verified bytes, complete declared scope and actual directory inventory; changed/deleted files still fail (1446.3681ms)
✔ preflight and activation continue one monotonic operation bound to installer hash; terminal replay and changed origin are rejected (9423.147ms)
✔ preflight failures and fixed-candidate mismatches retain the actual reason without publishing a pointer (5310.3884ms)
✔ cancel finishes only the original ready preparation, preserves data and pointer and refuses replay (7149.2255ms)
✔ the installation lock rejects concurrent same-id operations before they can overwrite original progress (4616.1986ms)
✔ original post-publication failure is linked to its rollback receipt and every original byte survives (5264.9695ms)
✔ a candidate mutation at the publication boundary still fails even after an earlier successful full validation (10217.7571ms)
✔ public progress marks a lost process unknown without editing its original record or claiming completion (6349.0196ms)
✔ throwing console/UI progress observers cannot decide the installation result (4762.3876ms)
✔ a progress-only write failure after committed publication returns the authoritative receipt and a warning (4122.9355ms)
✔ browser and MCP approvals use actual tool categories; mobile exposes only category while keeping original fingerprint (553.924ms)
✔ the compiled runtime version constant tracks package.json so a release bump cannot ship a stale served version (8.6483ms)
✔ context APIs retain exact request identity, paginate archived groups and reject foreign sessions/runs (3361.989ms)
✔ delivery reports verify request body, sealed plan and original archived bytes, and show corruption as needing verification (3968.3014ms)
✔ native seed framing reserves capacity before optional history without changing the selected window (1541.3718ms)
✔ direct code evidence remains selected while recent historical-index browsing is archived within the complete request budget (1731.8366ms)
✔ one long user turn becomes bounded complete groups with exact UTF-8 history and recent JSON arguments (3971.4204ms)
✔ tool definitions, exact system bytes, output reserve and remaining Run/Task budget are accounted before requests (881.7259ms)
✔ oversized required user instructions pause intact and can be explicitly resumed after increasing the window (1692.4136ms)
✔ all task instructions, constraints and acceptance remain in the runtime system instead of an eight-item or byte prefix (1116.9479ms)
✔ a newest manageable multi-tool group stays exact even beyond the working target; oversized earlier groups are archived (859.1809ms)
✔ invalid orphan result is rejected before archive or network preparation (719.9476ms)
✔ invalid missing result is rejected before archive or network preparation (967.8696ms)
✔ invalid wrong result is rejected before archive or network preparation (752.4278ms)
✔ invalid duplicate call is rejected before archive or network preparation (736.5484ms)
✔ a group larger than the artifact limit uses verified Unicode-safe chunks without replacing tool JSON (2250.1285ms)
✔ changed or missing archived evidence stops reuse and is never silently recreated (1317.9859ms)
✔ transaction failure prevents publishing a plan and any corresponding model request (1072.4206ms)
✔ the Provider rejects body mutation after a sealed plan before calling HTTP (883.0783ms)
✔ HTTP failure and explicit same-Task resume reuse exact completed results and request hashes without repeating a command (12601.4194ms)
✔ a real process exit after plan persistence marks interruption and never issues an automatic model request (1301.8188ms)
✔ local draft preserves exact original ranges and duplicate source instances without inferring outputs or accepting facts (768.0836ms)
✔ review keeps unknown blocking, references distinct from output and boundaries distinct from compliance evidence (1393.4481ms)
✔ draft adoption must account for every original range and does not fill paths from a reference (1094.9296ms)
✔ source and requirement changes, other Tasks and tampered draft bytes are rejected without losing originals (1990.9217ms)
✔ partial explicit source review leaves the other source unreviewed while old file evidence remains valid (1301.526ms)
✔ bounded draft does not claim full source coverage and cannot acknowledge an omitted remainder (692.5454ms)
✔ draft HTTP preserves its original artifact across restart and rejects stale scope and source versions (4723.2002ms)
✔ requirements HTTP binds selection, enforces optimistic revisions, restores original proofs and leaves provider history untouched (5072.0335ms)
✔ research evidence binds actual original bytes; model completion is not user acceptance (1676.8896ms)
✔ same text with distinct user source instances stays distinct; an appended requirement only invalidates its own revision (1454.7623ms)
✔ foreign project, old Task and fabricated evidence strings are rejected with preserved failed proofs (3253.9241ms)
✔ source changes invalidate prior proofs and cannot certify a read that was already stale at binding (2495.4273ms)
✔ missing or tampered artifacts never become evidence and original failures remain after recovery (1900.5136ms)
✔ checks omitted by explicit agreement are reported as not executed and never passed (1128.684ms)
✔ user confirmation stays separate from engineering evidence, is bounded to current inputs and cannot be silently converted (1349.2194ms)
✔ existing multi-file results keep provenance and invalidate only evidence whose files changed (1767.9853ms)
✔ unrelated additions preserve the checked file facts but remain visible as unreviewed user sources (1708.5016ms)
✔ actual Git preview and publication recheck changed requirement bindings without touching HEAD or the owner index (8749.0856ms)
✔ no-test file application and manual completion keep pending user requirements for explicit review (2241.2265ms)
✔ revision races, forged source ranges, evidence fields and deletion cannot overwrite sealed requirements (1044.033ms)
✔ requirement binding prevents completion and Git acceptance after a review changes; legacy tasks stay explicit (3408.8583ms)
✔ deep Windows data directories keep REA output within the external path allowance and retain owned evidence (3060.2762ms)
✔ user research registration creates an owned Task without model requests and seals the exact artifact identity (1214.9973ms)
✔ complete research binds original Evidence and Bundle, pages exact fields and reuses verified results after reload (2186.366ms)
✔ artifact changes before analysis refuse dispatch and changes during analysis preserve unverified original responses (3049.8943ms)
✔ owned cancellation closes the connection, concurrent and automatic retries are refused, explicit new analysis preserves history (1939.5031ms)
✔ a dispatched transport timeout stays unknown and reload never launches or kills a saved PID (2045.6159ms)
✔ corrupt Evidence parts and changed binding records are refused instead of silently re-analysed (2168.0144ms)
✔ research documents over the single-artifact limit preserve exact Unicode bytes with owned verifiable parts (1129.2927ms)
✔ research tools are only sent for registered Task artifacts and actual HTTP uses the sealed tool contract without replay (5968.592ms)
✔ file identity rejects directory and invalid formats without running a target (858.6699ms)
✔ a stop from the event loop interrupts immediate model replies before later tools (2337.3818ms)
✔ a stop after the first tool preserves a complete interrupted multi-call protocol group (2671.1273ms)
✔ the compatible HTTP loop preserves call IDs, validates errors and waits before executing commands (8041.3713ms)
✔ denial prevents command execution and produces a paired denied result (2508.5775ms)
✔ stopping during approval interrupts pending calls without executing or replaying them (2636.1556ms)
✔ stopping a running fixture command terminates its own process tree and retains uncertain state (3150.6544ms)
✔ command output decodes split UTF-8 and excludes the workbench key from child environment (1116.4883ms)
✔ model-list testing uses a tentative key without changing the saved connection and redacts service errors (6.2523ms)
✔ truncated or repeated model calls fail before execution; tool input validation rejects unknown capabilities (4304.8398ms)
✔ request projection keeps exact tool pairs and complete recent user instructions while preserving disk history (1687.3098ms)
✔ local skill revisions require explicit enable, retain original text, survive restart and stay within the selected project (1338.3291ms)
✔ registration rejects non-SKILL paths, oversized/non-UTF8 files, duplicate sources and wrong field shapes without running project code (879.7803ms)
✔ actual HTTP models receive only enabled current-project metadata, then a redacted owned skill page with complete tool pairing (3780.0937ms)
✔ source edits after a catalog request prevent the read and appear as changed on the next request without replay (3878.4875ms)
✔ disabled and foreign skills cannot be read by guessing their IDs from another project (4259.5565ms)
✔ skill catalog takes remaining escaped JSON budget and cannot evict the user goal or current code (1177.4703ms)
✔ multilingual skill body pages fit actual tool JSON bytes and every page uses the same immutable artifact (5581.2818ms)
✔ registry failures roll back enable and refresh state; corrupted snapshots block requests before network (1887.4324ms)
✔ saved skill catalogs retain SHA-bound historical evidence and reject corrupt catalog blobs (3167.8788ms)
✔ HTTP skill administration enforces project scope, revision checks and idle mutation without model calls (3364.5769ms)
✔ JSON state keeps an atomic backup and preserves corrupt primary files (1179.1444ms)
✔ tool-pair recovery fills missing results and drops orphan or duplicate results (0.332ms)
✔ restart pauses unfinished work, retains proposals and never replays a command (1335.3427ms)
✔ public snapshots carry increasing revisions without the private provider transcript or config key (1058.5131ms)
✔ a checkpoint seals all task requirements and original results without a model request and explicit continuation keeps the same Task without replay (5065.0913ms)
✔ checkpoint sources, requirements, plan and original tool changes block continuation and leave original checkpoint bytes intact (3543.7001ms)
✔ unknown tool effects and pending proposals stay blocked in recovery packages rather than being changed into completed work (4298.1207ms)
✔ checkpoint and referenced result corruption are rejected before dispatch and historical blobs are never rebuilt (4025.5459ms)
✔ checkpoint ownership, exact confirmation and concurrent operations reject foreign or stale resumes (4053.0726ms)
✔ Git identity changes and altered plan proofs cannot be accepted as the sealed recovery state (4422.0629ms)
✔ checkpoint records survive SQLite reopen and do not trigger automatic model or tool replay (4311.1783ms)
✔ incomplete scans and in-progress project activity refuse checkpoint creation while private credentials are redacted from saved requirements (4191.6705ms)
✔ oversized recovery evidence is refused before reading or publishing the checkpoint (3488.8853ms)
✔ compiled checkpoint HTTP APIs bind current Task/Run, isolate sessions and only resume on an explicit matching confirmation (9277.4752ms)
✔ actual process exit before checkpoint commit retains only durable records without replay (4002.2412ms)
✔ actual process exit after checkpoint commit retains only durable records without replay (3969.4571ms)
✔ a real two-reply failure replay reaches request three at 16K with complete goal, original sources and sealed tool evidence (9554.2885ms)
✔ request deduplication retains long original intent, extra requirements, constraints and acceptance without changing the stored contract (2843.6723ms)
✔ only the routine context avoids plan echoes; diagnostic API and requests without an included plan keep original observations (960.8493ms)
✔ operational questions are diagnostic while explicit repair requests remain execution instructions (1.0276ms)
✔ an explicit prohibition on running engineering checks is not interpreted as a requirement to run them (1.7016ms)
✔ file delivery requires a positive instruction, not saved evidence or a prohibited write (0.2714ms)
✔ an unsubstantiated text claim cannot complete a requested file delivery (1651.4261ms)
✔ HTML without tests ends at reviewed file delivery and never offers automatic rechecking (3457.491ms)
✔ diagnostic answers retain the unfinished task, limits and check result, and enforce read-only tools (4866.538ms)
✔ review continuation is a system action and adds no testing demand or fake user instruction (3734.1997ms)
✔ a provider cannot execute tests against an explicit no-test task even if it ignores advertised tools (2876.6852ms)
✔ a budget pause becomes visible only after its input snapshot can be sealed with the original Run (2093.2521ms)
✔ alternating duplicate file reads and listing files still pauses without treating new pages as duplicates (19749.852ms)
✔ task-plan HTTP mutations bind current Task/Run and retain original evidence through real host restart (5654.0971ms)
✔ concurrent stale HTTP plan revisions cannot replace conditions or attach proofs to a different plan (3162.0132ms)
✔ a real escaped long-file tool message keeps its proof identity within a tight request budget (1285.6589ms)
✔ task plans reject fabricated completion, invalid scopes and cyclic or missing dependencies (0.5019ms)
✔ sealed plans retain goal, contract hash and original steps through SQLite reopen without executing tools (666.9819ms)
✔ proofs require original owned reads, honor dependencies and reject altered invocation arguments and bytes (1504.7431ms)
✔ new user requirements invalidate current proofs and reseal the same original operations in a new revision (1388.0933ms)
✔ applied change-set evidence binds reviewed current files and invalidates dependent steps after outside edits (2283.166ms)
✔ actual npm checks are verified by original counted logs and current source, with failure history retained (7891.078ms)
✔ real desktop and mobile browser proofs bind required actions and PNGs, rejecting source changes, a later failed plan and changed builds (12562.1533ms)
✔ Git delivery blocks incomplete plans and changed preview bindings, preserving HEAD and owner index before a fresh verified commit (15235.0864ms)
✔ the runtime supplies owned read IDs and completes a plan only after original step evidence verification (4574.8662ms)
✔ premature model completion pauses the original Task and resume preserves the existing plan without replay (4319.5666ms)
✔ plan operations participate in project activity and orderly shutdown (707.7292ms)
✔ actual process exit before plan save restores only committed plan evidence without replay (1331.8007ms)
✔ actual process exit after plan save restores only committed plan evidence without replay (1572.5009ms)
✔ actual process exit before proof save restores only committed plan evidence without replay (1580.3526ms)
✔ actual process exit after proof save restores only committed plan evidence without replay (1532.6661ms)
✔ the latest oversized session result reaches the next request together with already read source modules (2041.3016ms)
✔ every call in a large latest group keeps its actual outcome, including denied and unknown results (1553.5228ms)
✔ a small complete latest tool group is sent once and needs no duplicate feedback view (1138.4076ms)
✔ real HTTP repeated state inspection pauses after three identical engineering outcomes and preserves tool pairing (4110.3781ms)
✔ fixed normal exploration, pagination, SHA changes and repeated ranges are external observations, not a score (1.2998ms)
✔ read-only research is valid work; model summaries and unchanged timestamped listings do not become engineering evidence (0.3764ms)
✔ new permissions, network and broken tools are failure evidence; repeated invalid inputs remain candidates (0.3856ms)
✔ waiting for original long checks, review and approvals stays waiting across repeated observations (0.4815ms)
✔ baseline facts, real repairs, current-source check results and requirement evidence have distinct growth (0.2111ms)
✔ bounded memory keeps unknown instead of claiming an unretained range is repeated; Task/Run instances cannot mix (12.3188ms)
✔ actual runtime records growing pages then a repeated page without changing model rounds, stop rules or original tool pairs (4407.0144ms)
✔ actual invalid tool calls repeat under the original step budget; observation never adds an early stop (3626.0275ms)
✔ actual command approval is observed as waiting and denial stays a permission failure (2719.1013ms)
✔ network errors remain model failures with shadow failure evidence, never a fabricated no-progress cause (4552.7798ms)
✔ observer receipt failure cannot change tool results, model budget or completion (1967.8721ms)
✔ a later receipt recovers after an observation write failure without misaligning retained source receipts (2909.4723ms)
✔ real applied files, counted checks and current requirement proofs grow after an existing-facts baseline (4869.2003ms)
✔ receipt retention stays aligned at the cap and a foreign step cannot enter the Run (3679.0578ms)
✔ an actual approved long check records its owned running job as waiting before the original counted result (7739.275ms)
✔ a live SQLite host with the actual 1.9 artifact object upgrades, keeps its original blobs and verifies real browser PNG bytes (5325.7741ms)
✔ failed upgrade restores the original artifact object, provider and request handler (2206.6242ms)
✔ claiming the same runtime owner twice preserves its original metadata and every database row (1337.6764ms)
✔ sessions without controlled-engine history retain their prior export shape and never expose another session record (1134.6946ms)
✔ live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows (606.3543ms)
✔ an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects (709.4397ms)
✔ an installation failure restores old managers, original record maps, handlers and all existing database rows (1732.838ms)
✔ the owned controlled driver remains an active session and project even after outer task activity has ended (949.1529ms)
✔ release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory (1116.7019ms)
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1598.2965ms)
✔ failed adoption restores the original virtual data-root name and original open database (924.5442ms)
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (915.6222ms)
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (596.5812ms)
✔ the upgrade compatibility gate includes the served current version and the previous formal patch (0.409ms)
✔ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (4034.1526ms)
✔ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (7094.8168ms)
✔ HTTP worker identities require a current sealed plan, reject overrides and close unused plans without touching source (19260.4398ms)
✔ HTTP unknown recovery only accepts the original evidence SHA and preserves changed source for explicit retention (24008.6373ms)
✔ verified isolated outputs form a new parent batch, rerun real checks and commit only reviewed source (64192.7882ms)
✔ overlapping worker paths are explicit conflicts even if each independent task checks successfully (36688.5032ms)
✔ source edits after isolated work preserve the owner file and invalidate collection without proposing a merge (33114.8232ms)
✔ changed child bytes after parent preview block the entire batch before any parent write (53297.8407ms)
✔ corrupt original check logs cannot become collected outputs or a parent review (40249.0736ms)
✔ stopping a parent accounts late responses and executes none of their proposed tools (16245.7358ms)
✔ unreported interrupted requests reserve estimated usage and the total deadline cannot reset on resume (16003.274ms)
✔ a deadline before worker request dispatch records no invented usage and cannot reset on resume (15999.9026ms)
✔ a response exceeding the cumulative token allocation stops before registering or executing its tools (15673.8625ms)
✔ cumulative tool allocation rejects the entire returned batch before any tool side effect (14971.1908ms)
✔ single response 16 tool ceiling rejects the entire returned batch before any tool side effect (16029.2994ms)
✔ consumed request steps remain consumed across explicit worker resumes (20191.1898ms)
✔ a saved completed response with missing usage is conservatively accounted exactly once during recovery (16391.464ms)
✔ an unexecuted second workspace plan resumes its original identity without recreating the first checkout (19530.9241ms)
✔ a verified interrupted parent proposal resumes sealing without duplicating or replacing its original change (60487.6054ms)
✔ recovery attaches a sealed parent batch saved before its group reference without creating another batch (55273.5028ms)
✔ explicitly retaining an unexecuted parent merge cancels its batch and frees the next parent goal (51101.3994ms)
✔ unknown collaboration blocks ordinary proposals but permits only original batch recovery and rollback (57745.5032ms)
✔ after a restart the batch application lazily reinstates the worker result guard before any parent write (57832.1433ms)
✔ unknown original tool inputs must match before acknowledgement, and reviewed checkpoint IDs preserve the unknown fact (22285.7028ms)
✔ a parent stop observes and waits for a manually approved child check and its real descendant process (20199.7137ms)
✔ a real host crash preserves unknown checks, refuses a still living owned PID and never replays a model or tool (32916.9922ms)
✔ a persisted child initialization resumes the original control run after a failure before its worker record (15258.8816ms)
✔ failed request intent persistence never dispatches a worker request or changes source (15346.6696ms)
✔ failed usage persistence rolls back the uncommitted usage and conservatively reserves one unknown request without tools (15114.4233ms)
✔ a child file change after observation prevents acknowledgement even when the tool inputs did not change (14761.7655ms)
✔ worker scopes and allocated budgets reject aliases, extra permissions and aggregate overflow (557.2358ms)
✔ two sequential Git workspaces freeze a new parent goal, separate owned tasks and preserve all source bytes (16342.2706ms)
✔ real isolated changes, approvals and npm checks produce original owned outputs, not model completion claims (43640.1946ms)
✔ forged worker tools cannot execute terminal or Git even when absent from the advertised tool list (15980.5768ms)
✔ a completion-only model pauses each worker without fabricated changes or checks (19114.0113ms)
✔ restart retains frozen scope and marks interrupted parent and workers unknown without sending requests (16559.4544ms)
✔ all actually returned same-version fragments reach the bounded request, including overlap and Unicode, with independent original provenance (3974.1422ms)
✔ unread gaps and different range origins remain separate; partial sending names the precise missing already-observed range (936.9716ms)
✔ same-SHA conflicting overlaps and invalid coordinates fail closed, while a new SHA never inherits old fragments (1107.3078ms)
✔ versioned old views keep the original single-page semantics and verification (802.2804ms)
✔ small code and actual failed command stay visible when their original multi-tool group cannot fit (1371.2854ms)
✔ mixed group retains six distinct small file observations with exact multilingual text and bounded request bytes (1697.0296ms)
✔ working observations are bound to the current Task and stop treating a pre-application file revision as current evidence (2234.886ms)
✔ a sealed observation rejects changed or missing original result artifacts instead of recreating evidence (1298.4362ms)
✔ a real passed-check observation is excluded after a source edit invalidates the check, while its historical sent evidence remains valid (5236.9947ms)
✔ budgeted file pages reconstruct UTF-8 text including long single lines and surrogate boundaries (4.6201ms)
✔ actual HTTP multi-tool reads survive an oversized runtime snapshot and the sealed evidence survives reopening (10838.9701ms)
✔ actual HTTP file pagination advances over a long file with each returned page visible in the next request (8784.405ms)
✔ later mixed history pages cannot displace the actual module sources and complete requirements (6422.3906ms)
✔ a later narrow page of the same file revision cannot evict the wider actual observation (3384.9257ms)
✔ six small source files stay complete across metadata turns even when mandatory evidence exceeds the soft target (3718.6371ms)
✔ historical read-artifact navigation points to the original artifact and next page, never its result wrapper (1561.911ms)
✔ a 1.6.1 full-provenance sent view remains verifiable after introducing the compact view (1625.8229ms)
✔ actual HTTP requests keep four observed modules after a later large history read and preserve all source bytes (18343.9793ms)
✔ workspace HTTP ownership, reviewed creation and reopen survive restart without changing source files (13750.4626ms)
✔ isolated model Task applies a batch, executes real checks and commits at the Git review boundary with a source-bound report (42168.8597ms)
warning: in the working copy of 'src/空 格.mjs', LF will be replaced by CRLF the next time Git touches it
✔ worktree checkout disables hooks, fsmonitor and all filter command variants while honoring built-in EOL conversion (8803.1152ms)
✔ an ignored external file at checkout is observed and never accepted as pristine creation (7292.8986ms)
✔ outside content hidden by assume-unchanged cannot pass workspace verification and blocks further source execution (5625.9948ms)
✔ workspace preparation refuses known shared-repository activity and preserves archived child sessions (7519.886ms)
✔ compact checkout identities create in deep Unicode source directories while retaining the human branch name (7272.163ms)
✔ Windows Git metadata path limits reject creation before publishing a branch or changing source bytes (2498.3073ms)
✔ a pending source snapshot participates in shutdown and completes before storage can close (3777.2609ms)
✔ source configuration values stay private and a configuration change invalidates a saved review (3186.5027ms)
✔ workspace review rejects excluded dependency before any checkout (3010.724ms)
✔ workspace review rejects large committed blob before any checkout (2832.0531ms)
✔ workspace review rejects case collision before any checkout (3063.1484ms)
✔ workspace review rejects committed symbolic link before any checkout (3375.2629ms)
✔ workspace review rejects external config include before any checkout (2961.7637ms)
✔ actual process exit at workspace intent preserves source and reconciles without creation replay (5218.8592ms)
✔ actual process exit at workspace git_started preserves source and reconciles without creation replay (6497.8491ms)
✔ actual process exit at workspace git_finished preserves source and reconciles without creation replay (7209.5876ms)
✔ actual process exit at workspace verifying preserves source and reconciles without creation replay (6819.4505ms)
✔ actual process exit at workspace registering preserves source and reconciles without creation replay (8611.3051ms)
✔ actual process exit at workspace project_registered preserves source and reconciles without creation replay (8138.8653ms)
✔ actual process exit at workspace session_registered preserves source and reconciles without creation replay (8712.9101ms)
✔ actual process exit at workspace ready preserves source and reconciles without creation replay (6796.094ms)
✔ outside changes at project registration remain unknown and preserve the already registered child identity (7461.6161ms)
✔ managed worktree preserves source index and dirty files, opens a distinct project and binds Run identity (6471.0658ms)
✔ stale review, branch/path collisions and forged ownership do not run worktree creation (3046.0131ms)
✔ workspace project verification is read-only and rejects physical Git identity changes (4913.0754ms)
ℹ tests 899
ℹ suites 0
ℹ pass 898
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2093116.1794
✖ failing tests:
test at tests\browser-api.test.mjs:37:1
✖ self harness browser tools require approval and feed verified actual page fields back to the original Task (16110.9832ms)
AssertionError [ERR_ASSERTION]: 模型服务暂时无法处理请求(HTTP 500)。 The expression evaluated to a falsy value:
assert.ok(latest.content.includes('已完成'))
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/browser-api.test.mjs:59:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,11 @@
import fs from 'node:fs';
import path from 'node:path';
for (const name of ['release-8be20a04-fedb-4379-8a3b-435bdd20e391', 'release-bf42f32d-eeac-47aa-8fa5-5167208d9035']) {
const root = path.resolve('.qa', name), failure = JSON.parse(fs.readFileSync(path.join(root, 'compiled-api-failure.json')));
for (const session of failure.sessions) for (const run of session.execution?.engineRuns ?? []) {
const file = path.join(root, 'artifacts', run.reportSha256.slice(0, 2), run.reportSha256 + '.blob');
const report = JSON.parse(fs.readFileSync(file));
console.log(JSON.stringify({ name, runId: run.id, directory: run.directory, native: { ...report.native, launchInputs: { cwd: report.native.launchInputs?.cwd }, notifications: undefined, rejectedServerRequests: undefined, catalogue: undefined },
events: session.events.filter(row => row.type?.startsWith('engine_run') || row.event?.startsWith('engine_run')).map(row => ({ type: row.type, event: row.event, createdAt: row.createdAt })) }, (key, value) => ['nonce','launchInputs','tools','catalogue'].includes(key) && key !== 'launchInputs' ? undefined : value));
}
}
@@ -0,0 +1,25 @@
{
"success": true,
"readOnly": true,
"candidate": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.25.1-win-x64-20261104103902806",
"manifestFiles": 10971,
"rows": [
{
"name": "before",
"elapsedMs": 8450
},
{
"name": "after",
"elapsedMs": 11083
},
{
"name": "after",
"elapsedMs": 9961
},
{
"name": "before",
"elapsedMs": 8150
}
],
"identitiesExact": true
}
@@ -0,0 +1,21 @@
import fs from 'node:fs';
import path from 'node:path';
import {execFileSync} from 'node:child_process';
import {isDeepStrictEqual} from 'node:util';
import assert from 'node:assert/strict';
import {validateInstalledVersion} from '../../src/core/desktop/install-manager.mjs';
import {inspectHostInstallation} from '../../src/core/desktop/app-installation.mjs';
import {readState,ownedChild} from '../../src/core/desktop/file-state.mjs';
import {hostError} from '../../src/shared/contracts/desktop-host.mjs';
const source=execFileSync('git',['show','532b9d60:src/core/desktop/install-manager.mjs'],{encoding:'utf8'});
const code=source.slice(source.indexOf('export function validateInstalledVersion('),source.indexOf('export function snapshotPersistentData('));
const previous=new Function('inspectHostInstallation','readState','fs','path','fail','ownedChild','isDeepStrictEqual',code.replace('export function validateInstalledVersion','function validateInstalledVersion')+'\nreturn validateInstalledVersion;')
(inspectHostInstallation,readState,fs,path,message=>hostError(message,'INSTALLATION_REJECTED',409),ownedChild,isDeepStrictEqual);
const receipt=JSON.parse(fs.readFileSync('.qa/outlier-release/formal-attempt-2/final.json','utf8'));
const rows=[];let identity;
for(const [name,validate] of [['before',previous],['after',validateInstalledVersion],['after',validateInstalledVersion],['before',previous]]){
const start=performance.now(),actual=validate(receipt.runtimeRoot);if(identity)assert.deepEqual(actual,identity);else identity=actual;
rows.push({name,elapsedMs:Math.round(performance.now()-start)});
}
const result={success:true,readOnly:true,candidate:receipt.runtimeRoot,manifestFiles:JSON.parse(fs.readFileSync(path.join(receipt.runtimeRoot,'MANIFEST.json'),'utf8')).files.length,rows,identitiesExact:true};
fs.writeFileSync('.qa/reliability-1.25.2/install-benchmark.json',JSON.stringify(result,null,2)+'\n');console.log(JSON.stringify(result));
@@ -0,0 +1,41 @@
✔ a rebuilt source archive binds actual generated client assets and retains its original running identity after disk changes (1763.3519ms)
✔ host challenge proof rejects a stale challenge, changed identity and changed signature (0.7937ms)
✔ stop confirmation binds the original instance, creation and loaded runtime (0.1365ms)
✔ state paths reject escaping, linked ancestors, ambiguous hardlinks and damaged JSON (636.1696ms)
✔ failed registration publishes no initialized memory and can complete after its actual inputs are supplied (2825.8741ms)
✔ host shutdown cancels an un-signalled HTTP model request and refuses later requests until recovered (1.3984ms)
✔ host shutdown cancels model-pool acquisition and releases queue ownership without inventing attempts (596.5325ms)
✔ owned startup retries only read-only observation after a slow health response and attests the same original child (4137.016ms)
✔ unverified startup expires with its original live child and never treats timeout or an unrelated health PID as proof (6126.5515ms)
✔ a live SQLite host with the actual 1.9 artifact object upgrades, keeps its original blobs and verifies real browser PNG bytes (3647.6923ms)
✔ failed upgrade restores the original artifact object, provider and request handler (1665.1092ms)
✖ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (2274.7928ms)
✖ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (4599.3722ms)
ℹ tests 13
ℹ suites 0
ℹ pass 11
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 17341.7012
✖ failing tests:
test at tests\upgrade.test.mjs:10:1
✖ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (2274.7928ms)
Error: This migration accepts a supported existing Workbench.
at upgradeRunning (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/upgrade-running.mjs:67:494)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade.test.mjs:24:20)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3)
test at tests\upgrade.test.mjs:38:1
✖ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (4599.3722ms)
Error: This migration accepts a supported existing Workbench.
at upgradeRunning (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/upgrade-running.mjs:67:494)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade.test.mjs:90:18)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
@@ -0,0 +1,20 @@
✔ full candidate validation returns the exact loaded-input host identity and rejects undeclared or altered files (611.1096ms)
✔ fast per-file scan still rejects a junctioned subdirectory, a hard-linked file and a stream path with the original bytes intact (831.9725ms)
✔ installation requires separate absolute program/data directories and a candidate in its own versions namespace (822.4984ms)
✔ inventory rejects a new hardlink on an optional file after its full-manifest scan and accepts the untouched candidate after removal (737.8998ms)
✔ staging retains the original data and pointer without querying or restarting a host (2995.7936ms)
✔ a post-pointer failure restores every original pointer byte and persistent row; a first-install failure removes only its published pointer (9004.1982ms)
✔ changed active manifest and concurrent pointer changes are rejected without overwriting the unknown record (3496.8954ms)
✔ an unregistered non-HTTP listener blocks preflight even when service-info is absent (2341.3637ms)
✔ uninstall archives its original pointer and preserves every data row/artifact instead of recursively deleting data (5601.7109ms)
✔ preflight rejects an unrelated program root or changed native bootstrap while preserving its original bytes (3922.4296ms)
✔ a changed owned bootstrap follows its candidate and a post-pointer fault restores both original bytes (16224.9547ms)
✔ an external bootstrap change after preflight is preserved and never overwritten as an update or rollback (10915.4069ms)
ℹ tests 12
ℹ suites 0
ℹ pass 12
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 57607.4031
@@ -0,0 +1,19 @@
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (907.2746ms)
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (648.5364ms)
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (795.4512ms)
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (1252.0093ms)
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1432.5447ms)
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (800.4309ms)
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (884.0461ms)
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (1024.814ms)
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (1383.9344ms)
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (1031.9202ms)
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (1292.6677ms)
ℹ tests 11
ℹ suites 0
ℹ pass 11
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11877.6833
@@ -0,0 +1,19 @@
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (1182.9849ms)
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (698.6423ms)
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (940.9853ms)
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (1657.9336ms)
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1510.4846ms)
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (837.028ms)
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (1039.311ms)
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (952.6387ms)
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (1566.5692ms)
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (2499.1191ms)
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (1380.3655ms)
ℹ tests 11
ℹ suites 0
ℹ pass 11
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 14583.6994
@@ -0,0 +1,29 @@
✖ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1016.3772ms)
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 1328.6841
✖ failing tests:
test at tests\network-diagnostics.test.mjs:82:1
✖ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1016.3772ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
0 !== 2
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/network-diagnostics.test.mjs:98:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 0,
expected: 2,
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,165 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs';
import http from 'node:http';
import net from 'node:net';
import tls from 'node:tls';
import { fixture, until, workspace } from './helpers.mjs';
import { Provider } from '../src/server/provider.mjs';
import { Runtime } from '../src/server/runtime.mjs';
import { ModelTransport } from '../src/core/models/transport.mjs';
import { NetworkDiagnostics } from '../src/core/models/network-diagnostics.mjs';
import { CompanionTLS } from '../src/core/companion/tls-authority.mjs';
import { createRequestHandler } from '../src/server/app.mjs';
import { hostAuthority } from '../src/core/desktop/host-authority.mjs';
import { installUpgrade } from '../src/server/hot-upgrade.mjs';
async function listener(f, server) {
const sockets = new Set(); server.on('connection', socket => { sockets.add(socket); socket.on('close', () => sockets.delete(socket)); });
await new Promise(resolve => server.listen(0, '127.0.0.1', resolve));
f.onCleanup(async () => { for (const socket of sockets) socket.destroy(); await new Promise(resolve => server.close(resolve)); });
return server.address().port;
}
function setup(t, options = {}) {
const f = fixture(t), provider = new Provider({ transport: options.transport ?? new ModelTransport({ environment: {} }) });
const hub = provider.modelHub(f.store); hub.networkChecks = new NetworkDiagnostics(hub, options);
f.onCleanup(() => provider.abortRequests());
const add = baseUrl => hub.upsert({ name: 'Owned network check', model: 'owned-no-model', baseUrl, requiresKey: true });
const run = async connection => { const { job } = hub.networkChecks.start({ id: connection.id, revision: connection.revision });
await hub.networkChecks.active.get(job.id).promise; return hub.networkChecks.view().jobs.find(row => row.id === job.id); };
return { ...f, provider, hub, add, run, manager: hub.networkChecks };
}
async function material() {
const state = { gatewayId: 'owned-network-test' }, registry = { binding: 'owned-network-test', read: () => state, mutate: action => action(state) };
return new CompanionTLS(registry, { protect: value => Buffer.from(value), unprotect: value => Buffer.from(value) }).material('127.0.0.1');
}
test('plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts', async t => {
const f = setup(t); let bytes = 0;
const port = await listener(f, net.createServer(socket => socket.on('data', chunk => { bytes += chunk.length; })));
const connection = f.add('http://127.0.0.1:' + port + '/v1'), state = structuredClone(f.hub.state), config = structuredClone(f.store.config);
f.hub.credential = () => { throw Error('Credential access forbidden.'); };
f.provider.redact = () => { throw Error('Redaction must not enumerate saved keys.'); };
const job = await f.run(connection);
assert.equal(job.status, 'passed'); assert.equal(job.stages.dns.status, 'passed');
assert.equal(job.trials[0].tls, 'not_applicable'); assert.equal(job.trials[2].status, 'skipped');
assert.equal(job.trials[2].code, 'ADDRESS_FAMILY_UNAVAILABLE');
assert.equal(bytes, 0); assert.deepEqual(f.hub.state, state); assert.deepEqual(f.store.config, config);
assert.deepEqual(f.hub.attempts, []); assert.equal(f.hub.health.size, 0); assert.equal(job.credentialAccess, false);
assert.equal(job.httpRequests, 0); assert.equal(job.modelRequests, 0);
});
test('local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected', async t => {
let lookups = 0;
const f = setup(t, { lookup: (_name, _options, callback) => { lookups++; callback(Object.assign(new Error('owned lookup'), { code: 'ENOTFOUND' })); } });
const connection = f.add('https://owned-dns.invalid/v1');
for (const extra of [{ revision: 99 }, { rejectUnauthorized: false }, { apiKey: 'must-not-read' }, { port: 1 }]) assert.throws(() => f.manager.start({ id: connection.id, revision: connection.revision, ...extra }));
const job = await f.run(connection); assert.equal(lookups, 1); assert.equal(job.status, 'failed');
assert.equal(job.stages.dns.code, 'ENOTFOUND'); assert.ok(job.trials.every(row => row.status === 'skipped'));
assert.equal(job.target.host, 'owned-dns.invalid');
});
test('refused TCP socket preserves its stage and cannot masquerade as a TLS or API response', async t => {
const f = setup(t), server = net.createServer(), port = await listener(f, server);
await new Promise(resolve => server.close(resolve));
const job = await f.run(f.add('https://127.0.0.1:' + port + '/v1'));
assert.equal(job.status, 'failed'); assert.equal(job.trials[0].stage, 'tcp'); assert.equal(job.trials[0].code, 'ECONNREFUSED');
assert.equal(job.trials[0].tlsProtocol, undefined); assert.equal(job.modelRequests, 0);
});
test('TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate', async t => {
const cert = await material(), f = setup(t, { ca: cert.ca });
const server = tls.createServer(cert); server.on('tlsClientError', () => {});
const port = await listener(f, server), connection = f.add('https://127.0.0.1:' + port + '/v1');
const good = await f.run(connection); assert.equal(good.status, 'passed'); assert.equal(good.trials[0].certificateAuthorized, true);
assert.ok(good.trials[0].certificateFingerprint256); assert.ok(good.trials[0].tlsMs >= 0);
delete f.manager.options.ca;
const bad = await f.run(connection); assert.equal(bad.status, 'failed'); assert.equal(bad.trials[0].stage, 'tls');
assert.ok(['SELF_SIGNED_CERT_IN_CHAIN', 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'].includes(bad.trials[0].code), bad.trials[0].code);
assert.notEqual(bad.trials[0].certificateAuthorized, true);
});
test('a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close', async t => {
let open = 0; const f = setup(t, { stageTimeoutMs: 80 });
const server = net.createServer(socket => { open++; socket.on('data', () => {}); socket.on('close', () => open--); });
const port = await listener(f, server), connection = f.add('https://127.0.0.1:' + port + '/v1');
const timed = await f.run(connection); assert.equal(timed.trials[0].stage, 'tls'); assert.equal(timed.trials[0].code, 'TLS_HANDSHAKE_TIMEOUT');
await until(() => open === 0); f.manager.options.stageTimeoutMs = 10000;
const { job } = f.manager.start({ id: connection.id, revision: connection.revision }); await until(() => open > 0);
assert.throws(() => f.manager.start({ id: connection.id, revision: connection.revision }), /等待/);
const stopped = await f.manager.stop(job.id, {}); assert.equal(stopped.job.status, 'cancelled'); assert.equal(f.manager.active.size, 0);
await until(() => open === 0); const repeated = await f.manager.stop(job.id, {}); assert.deepEqual(repeated, stopped);
});
test('a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work', async t => {
let callback; const f = setup(t, { budgetMs: 65, lookup: (_name, _options, done) => { callback = done; } });
const connection = f.add('https://owned-stalled.invalid/v1'), job = await f.run(connection);
assert.equal(job.status, 'failed'); assert.equal(job.code, 'DIAGNOSTIC_DEADLINE'); assert.equal(job.stages.dns.status, 'cancelled');
const frozen = JSON.stringify(f.manager.view()); callback(null, [{ address: '127.0.0.1', family: 4 }]);
await new Promise(resolve => setImmediate(resolve)); assert.equal(JSON.stringify(f.manager.view()), frozen); assert.equal(f.manager.active.size, 0);
});
test('dual-stack fallback and explicit family results remain separate and never change global DNS defaults', async t => {
const lookup = (_name, options, callback) => callback(null, [{ address: '::1', family: 6 }, { address: '127.0.0.1', family: 4 }]);
const f = setup(t, { transport: new ModelTransport({ environment: {}, lookup }) });
const port = await listener(f, net.createServer()), previous = net.getDefaultAutoSelectFamily();
const job = await f.run(f.add('http://owned-dual.invalid:' + port + '/v1'));
assert.equal(job.status, 'partial'); assert.equal(job.trials[0].status, 'passed'); assert.equal(job.trials[0].family, 'IPv4');
assert.equal(job.trials[2].status, 'failed'); assert.equal(job.trials[2].code, 'ECONNREFUSED');
assert.equal(net.getDefaultAutoSelectFamily(), previous); assert.equal(f.hub.attempts.length, 0);
});
test('proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials', async t => {
let contacts = 0; const f = setup(t), proxy = net.createServer(() => { contacts++; }), proxyPort = await listener(f, proxy);
f.provider.transport = new ModelTransport({ environment: { HTTPS_PROXY: 'http://owned-user:owned-secret@127.0.0.1:' + proxyPort, NO_PROXY: '127.0.0.1' } });
const port = await listener(f, net.createServer()), job = await f.run(f.add('http://127.0.0.1:' + port + '/v1'));
assert.equal(job.route.proxyConfigured, true); assert.equal(job.route.noProxyConfigured, true); assert.equal(job.route.kind, 'direct-endpoint-only');
assert.equal(job.route.modelApiRouteVerified, false); assert.equal(contacts, 0); assert.equal(JSON.stringify(job).includes('owned-secret'), false);
});
test('history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets', async t => {
const f = setup(t), connection = f.add('http://127.0.0.1:9/v1');
assert.equal(f.store.storage.meta('modelNetworkDiagnostics', null), null, 'Reading an empty history does not create metadata.');
const job = await f.run(connection); f.hub.toggle(connection.id, false);
assert.equal(f.manager.view().jobs[0].stale, true); assert.equal(job.connectionRevision, connection.revision);
const rows = f.store.storage.meta('modelNetworkDiagnostics', []); rows[0].status = 'running'; rows[0].stages.dns.status = 'running';
f.store.storage.setMeta('modelNetworkDiagnostics', rows); const reopened = new NetworkDiagnostics(f.hub);
assert.equal(reopened.view().jobs[0].status, 'interrupted'); assert.equal(reopened.active.size, 0);
assert.equal(reopened.view().jobs[0].stages.dns.status, 'interrupted');
reopened.jobs = Array.from({ length: 30 }, (_, index) => ({ ...job, id: 'retained-' + index })); f.hub.networkChecks = reopened;
const next = f.hub.connection(connection.id); const result = reopened.start({ id: next.id, revision: next.revision });
await reopened.active.get(result.job.id).promise; assert.equal(reopened.view().jobs.length, 30); assert.equal(reopened.view().jobs.at(-1).id, 'retained-1');
});
test('HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation', async t => {
const f = setup(t), port = await listener(f, net.createServer(socket => socket.on('data', () => {})));
const connection = f.add('https://127.0.0.1:' + port + '/v1'), runtime = new Runtime(f.store, f.provider), server = http.createServer();
await listener(f, server); const token = 'owned-network-token';
const context = { appDirectory: workspace, server, store: f.store, provider: f.provider, runtime, token, clients: new Set(), started: Date.now(),
getPort: () => server.address().port, exampleProject: f.project, shutdown: () => {} };
server.on('request', createRequestHandler(context));
const api = async (route, input, auth = token) => { const response = await fetch('http://127.0.0.1:' + server.address().port + '/api' + route,
{ method: input === undefined ? 'GET' : 'POST', headers: { 'X-Workbench-Token': auth, 'Content-Type': 'application/json', Connection: 'close' },
...(input === undefined ? {} : { body: JSON.stringify(input) }) }); return { status: response.status, value: await response.json() }; };
assert.equal((await api('/model-center/network-diagnostics', undefined, '')).status, 403);
const started = await api('/model-center/network-diagnostics', { id: connection.id, revision: connection.revision }); assert.equal(started.status, 201);
assert.equal(runtime.hasActivity(), true); assert.equal(hostAuthority(context).activity().counts.networkDiagnostics, 1);
assert.equal((await api('/model-center/connections', { name: 'blocked' })).status, 409);
assert.equal((await api('/sessions/' + f.session.id + '/messages', { content: 'Do not start.' })).status, 409);
assert.throws(() => installUpgrade(context, { appDirectory: workspace, updateServiceInfo: false }), /connection diagnostics/);
const stopped = await api('/model-center/network-diagnostics/' + started.value.job.id + '/stop', {}); assert.equal(stopped.value.job.status, 'cancelled');
assert.equal(runtime.hasActivity(), false); assert.equal(hostAuthority(context).activity().active, false);
const network = f.hub.networkChecks, before = JSON.stringify(network.jobs);
installUpgrade(context, { appDirectory: workspace, updateServiceInfo: false }); assert.equal(f.hub.networkChecks, network); assert.equal(JSON.stringify(network.jobs), before);
assert.equal((await api('/model-center/network-diagnostics')).value.jobs[0].id, started.value.job.id);
});
test('provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop', async t => {
const f = setup(t), port = await listener(f, net.createServer(socket => socket.on('data', () => {}))), connection = f.add('https://127.0.0.1:' + port + '/v1');
const { job } = f.manager.start({ id: connection.id, revision: connection.revision });
await until(() => f.manager.jobs[0].trials.some(row => row.stage === 'tls'));
await f.provider.abortRequests(); assert.equal(f.manager.active.size, 0); assert.equal(f.manager.view().jobs[0].status, 'cancelled');
assert.equal(f.manager.view().jobs[0].id, job.id); assert.throws(() => f.manager.start({ id: connection.id, revision: connection.revision }), /停止/);
f.provider.resumeRequests(); const next = f.manager.start({ id: connection.id, revision: connection.revision });
await f.manager.stop(next.job.id, {}); assert.equal(f.manager.view().jobs[0].status, 'cancelled');
});
@@ -0,0 +1,19 @@
✔ plain endpoint checks only TCP, records family coverage and never reads model credentials or writes routing/health/attempts (965.9726ms)
✔ local DNS failure is separate from TCP/TLS and arbitrary input, stale revision and TLS overrides are rejected (757.288ms)
✔ refused TCP socket preserves its stage and cannot masquerade as a TLS or API response (899.3464ms)
✔ TLS validation succeeds for a trusted owned certificate and rejects the same untrusted certificate (1245.1246ms)
✔ a TCP peer that never answers TLS is bounded, and cancellation waits for owned sockets to close (1487.237ms)
✔ a stalled lookup is cancellable and the overall deadline bounds DNS without late socket work (699.8087ms)
✔ dual-stack fallback and explicit family results remain separate and never change global DNS defaults (807.5685ms)
✔ proxy settings are reported as scope only; diagnostics do not contact the proxy or leak its credentials (893.4591ms)
✔ history is bounded, survives reopening, marks interrupted work and reports changed revisions without rewriting frozen targets (1174.9055ms)
✔ HTTP API, host activity, configuration edits, model start and upgrade honor the same active diagnostic and stop operation (905.1474ms)
✔ provider shutdown cancels diagnostics and permits explicit reuse after a failed host stop (1033.9898ms)
ℹ tests 11
ℹ suites 0
ℹ pass 11
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11181.8234
@@ -0,0 +1,84 @@
{
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104134035379",
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-source-20261104134035379",
"evidenceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-evidence-20261104134035379",
"portable": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104134035379.zip",
"bytes": 243277478,
"sha256": "a65ec44763f98a7a24e366c325d64564343a5d6d87137568da013c2587ef3bae"
},
"source": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-source-20261104134035379.zip",
"bytes": 1205283175,
"sha256": "d168a950872cda040d3c3b14c678ba5925e43e17960a270e9f9a99b47e4d1a9e"
},
"evidence": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-evidence-20261104134035379.zip",
"bytes": 963875626,
"sha256": "e9571f659c2be94ab72b826a4be95ca3e494ec32ee9e0db7049cc90e3d45029b"
},
"documentation": {
"sourceCommit": "d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d",
"originalFiles": 25283,
"originalBytes": 3047199989,
"shippedFiles": 181,
"shippedBytes": 1354751,
"evidenceManifestSha256": "04b906eb68acdb93acbca6981bc4952fa0fd12a3b342f1e31101d0f687b09a0b"
},
"installer": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104134035379-Setup.exe",
"bytes": 213650509,
"sha256": "259174ae5bdde32c765e8110381541f687f2ad75bd86f8df9be6d59cf5a49929",
"compiler": {
"version": "6.3.1",
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
},
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-95a1bd63-f8a0-4adf-9af3-ab9d7a2364c8\\installer.iss",
"version": "1.25.2",
"candidateDirectory": "Agent-Workbench-1.25.2-win-x64-20261104134035379",
"qaFixture": null
},
"desktopRuntime": {
"version": "45.2.0",
"sha256": "010ea51bfb528c8143513439aa93fb40754403daa2023f9decd4517da71706ab",
"bytes": 249810432,
"executable": "desktop/AgentWorkbench.exe",
"scope": "Fixed original Windows Electron runtime, full license texts, isolated application loader and native bootstrap; original executable hash unchanged."
},
"nativeLauncher": {
"bytes": 12288,
"sha256": "e3d31cb7ce5009d3ca5a96d04dc16b1add0bd1f5cde7e1304461de6713d37463",
"inputs": {
"compiler": "46809206887326d2d24db1eff1f3064de972c3451abe766b49111450a5e08e00",
"source": "1c8e7d7ee5c383897bec48e9aadb8051b47c09686f74bbf34e0b6b695cd01ae5",
"icon": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
"compiler": "Windows .NET Framework C# compiler; source-bound cached original output, no deterministic-build claim."
},
"nodeVersion": "v24.22.1",
"reaRuntime": {
"version": "6.8.0",
"protocolVersion": "2025-03-26",
"packages": 149,
"files": 8413,
"bytes": 142395402,
"lockSha256": "687fb3fa3089a12f239dd5e87d9fa07df55a87df4935931d495a92600a1b0f6e"
},
"portableFiles": 10976,
"licenseTexts": 135,
"browserRuntime": {
"playwrightVersion": "1.64.1",
"packages": [
{
"name": "playwright",
"version": "1.64.1",
"files": 60
},
{
"name": "playwright-core",
"version": "1.64.1",
"files": 115
}
]
}
}
@@ -0,0 +1,84 @@
{
"portableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104123124956",
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-source-20261104123124956",
"evidenceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-evidence-20261104123124956",
"portable": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104123124956.zip",
"bytes": 243276462,
"sha256": "4e65d80e60c738440039dfece63cf728db338c562b87c550b6d0efbea2701dd7"
},
"source": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-source-20261104123124956.zip",
"bytes": 1205281131,
"sha256": "cc6f6c07a3a487d5a9a0b5f8c74ecae6c02caa896765bcbbfb8eb6799df5a309"
},
"evidence": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-evidence-20261104123124956.zip",
"bytes": 963874598,
"sha256": "1e404195122e7ff407fad8b2217703fd493cf9d249f38ad7766a7e0962209704"
},
"documentation": {
"sourceCommit": "4a49f02daf5fab542ef4009c6849915a5a7e0cd1",
"originalFiles": 25283,
"originalBytes": 3047198108,
"shippedFiles": 181,
"shippedBytes": 1352870,
"evidenceManifestSha256": "18b8b4f567f9ef43643f07c2d596fff3f1e910d1b91399208b4e755c536dce73"
},
"installer": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104123124956-Setup.exe",
"bytes": 213649700,
"sha256": "6ba8ce911c6fbf5da87362dc8f8ce7fb3100ebf1ba0dd7e90aa65f36305270af",
"compiler": {
"version": "6.3.1",
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
},
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-bc3fa7a5-bb05-494b-8fcd-ab206f7d11cc\\installer.iss",
"version": "1.25.2",
"candidateDirectory": "Agent-Workbench-1.25.2-win-x64-20261104123124956",
"qaFixture": null
},
"desktopRuntime": {
"version": "45.2.0",
"sha256": "010ea51bfb528c8143513439aa93fb40754403daa2023f9decd4517da71706ab",
"bytes": 249810432,
"executable": "desktop/AgentWorkbench.exe",
"scope": "Fixed original Windows Electron runtime, full license texts, isolated application loader and native bootstrap; original executable hash unchanged."
},
"nativeLauncher": {
"bytes": 12288,
"sha256": "e3d31cb7ce5009d3ca5a96d04dc16b1add0bd1f5cde7e1304461de6713d37463",
"inputs": {
"compiler": "46809206887326d2d24db1eff1f3064de972c3451abe766b49111450a5e08e00",
"source": "1c8e7d7ee5c383897bec48e9aadb8051b47c09686f74bbf34e0b6b695cd01ae5",
"icon": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
"compiler": "Windows .NET Framework C# compiler; source-bound cached original output, no deterministic-build claim."
},
"nodeVersion": "v24.22.1",
"reaRuntime": {
"version": "6.8.0",
"protocolVersion": "2025-03-26",
"packages": 149,
"files": 8413,
"bytes": 142395402,
"lockSha256": "687fb3fa3089a12f239dd5e87d9fa07df55a87df4935931d495a92600a1b0f6e"
},
"portableFiles": 10976,
"licenseTexts": 135,
"browserRuntime": {
"playwrightVersion": "1.64.1",
"packages": [
{
"name": "playwright",
"version": "1.64.1",
"files": 60
},
{
"name": "playwright-core",
"version": "1.64.1",
"files": 115
}
]
}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
{
"success": true,
"version": "1.25.2",
"sourceCommit": "d510cb7049aea9ca61ddc4cf2c2e21dfc0153f1d",
"candidate": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.25.2-win-x64-20261104134035379",
"inputs": 617,
"independentInputs": 622,
"compiled": 22,
"sourceUISuites": 8,
"sourceUIGroups": 50,
"portableStages": 11,
"isolatedInstallGroups": 12,
"installedUISuites": 10,
"installedUIGroups": 75,
"finalSourceTests": 899,
"originalFullFailurePreserved": true,
"fullSuiteResult": {
"tests": 899,
"passed": 898,
"failed": 1,
"cancelled": 0,
"skipped": 0,
"file": ".qa/reliability-1.25.2/full-release-final.tap",
"sha256": "4ae37e9115ae57a5ef0c2c8269222b0e97cb27722a09a08c80d6f22af46d19c3"
},
"exactSupplementPassed": 1,
"wholeSuiteAllPass": false,
"realModelRequests": 0,
"scope": "Exact immutable candidate gates plus complete 898/899 run and unchanged 1/1 supplement before one retained formal installation; formal UI and final original-state reconciliation follow separately."
}
@@ -0,0 +1,62 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
const root = '.qa/reliability-1.25.2', releaseRoot = root + '/release-final';
const read = file => JSON.parse(fs.readFileSync(file, 'utf8').replace(/^\uFEFF/, ''));
const hash = file => createHash('sha256').update(fs.readFileSync(file)).digest('hex');
const freeze = read(releaseRoot + '/freeze.json'), candidate = read(releaseRoot + '/candidate.json');
assert.equal(freeze.sourceCommit, candidate.documentation.sourceCommit);
assert.deepEqual(read('releases/latest.json'), candidate);
for (const row of freeze.inputs) assert.equal(hash(row.path), row.sha256, row.path);
for (const row of freeze.compiled) assert.equal(hash(path.join(candidate.portableRoot, row.path)), row.sha256, row.path);
const sourceUI = read(root + '/source-ui.json');
assert.equal(sourceUI.success, true); assert.equal(sourceUI.results.length, 8);
for (const item of sourceUI.results) {
assert.equal(hash(item.log), item.logSha256); assert.equal(hash(item.resultFile), item.resultSha256);
const proof = read(item.resultFile); assert.equal(proof.success, true); assert.equal(proof.version, '1.25.2');
assert.equal(proof.passed.length, item.groups); assert.deepEqual(proof.errors, []); assert.equal(proof.realModelRequests, 0);
}
assert.equal(sourceUI.results.reduce((sum, item) => sum + item.groups, 0), 50);
const finalClient = read(root + '/final-client-verification.json'); assert.equal(finalClient.success, true); assert.equal(finalClient.sourceUiGroups, 50);
const stages = ['rebuild', 'archives', 'portable', 'install', 'portable-files', 'portable-results', 'portable-reading',
'portable-a', 'portable-a-desktop', 'portable-b', 'portable-b-desktop', 'portable-c', 'portable-c-desktop', 'portable-d', 'portable-d-desktop'];
const receipts = Object.fromEntries(stages.map(stage => {
const receipt = read(releaseRoot + '/receipts/' + stage + '.json'); assert.equal(receipt.success, true, stage);
assert.equal(receipt.sourceCommit, freeze.sourceCommit); assert.equal(receipt.candidate, candidate.portableRoot);
assert.equal(hash(receipt.log), receipt.logSha256); assert.deepEqual(read(receipt.resultPath), receipt.result);
return [stage, receipt];
}));
const build = receipts.rebuild.result; assert.equal(build.inputCount, freeze.inputs.length + 5); assert.equal(build.compiled.length, 22); assert.deepEqual(build.mismatches, []);
for (const row of freeze.inputs) assert.equal(build.inputs.find(item => item.path === row.path)?.sha256, row.sha256, row.path);
for (const kind of ['portable', 'source', 'evidence', 'installer']) assert.equal(hash(candidate[kind].path), candidate[kind].sha256, kind);
const installation = receipts.install.result; assert.equal(installation.results.length, 12); assert.ok(installation.results.every(item => item.passed));
assert.equal(installation.installedUI.proofs.length, 10);
const expected = [16, 9, 7, 3, 9, 9, 6, 6, 5, 5];
for (const [index, item] of installation.installedUI.proofs.entries()) {
const proof = item.proof; assert.equal(proof.success, true); assert.equal(proof.version, '1.25.2');
assert.equal((proof.checks ?? proof.passed).length, expected[index]); assert.deepEqual(proof.errors, []); assert.equal(proof.realModelRequests, 0);
assert.equal(path.resolve(proof.appRoot), path.resolve(installation.installedUI.installedRoot)); assert.equal(hash(item.log), item.sha256);
}
const suite = fs.readFileSync(root + '/full-release-final.tap', 'utf8');
for (const expression of [/\btests 899\b/, /\bpass 898\b/, /\bfail 1\b/, /\bcancelled 0\b/, /\bskipped 0\b/]) assert.match(suite, expression);
const suiteReview = read(root + '/full-suite-review.json');
assert.equal(suiteReview.success, true); assert.equal(suiteReview.sourceCommit, freeze.sourceCommit);
assert.equal(suiteReview.wholeSuite.sha256, hash(root + '/full-release-final.tap'));
assert.equal(suiteReview.supplement.outputSha256, hash(suiteReview.supplement.output));
assert.equal(suiteReview.supplement.logSha256, hash(suiteReview.supplement.log));
assert.equal(suiteReview.supplement.passed, 1); assert.equal(suiteReview.supplement.failed, 0);
for (const item of suiteReview.unchangedAssertions) assert.equal(hash(item.path), item.sha256);
const original = fs.readFileSync(root + '/full.tap', 'utf8'); assert.match(original, /\bpass 898\b/); assert.match(original, /\bfail 1\b/);
const previousFull = fs.readFileSync(root + '/full-final.tap', 'utf8'); assert.match(previousFull, /\bpass 898\b/); assert.match(previousFull, /\bfail 1\b/); assert.match(previousFull, /'tcp' !== 'tls'/);
for (const stage of ['portable', 'portable-recheck']) {
const firstPortable = read(root + '/release/receipts/' + stage + '.json'); assert.equal(firstPortable.success, false); assert.equal(hash(firstPortable.log), firstPortable.logSha256);
assert.match(fs.readFileSync(firstPortable.log, 'utf8'), /尚未发送initialize/);
}
const result = { success: true, version: '1.25.2', sourceCommit: freeze.sourceCommit, candidate: candidate.portableRoot,
inputs: freeze.inputs.length, independentInputs: build.inputCount, compiled: 22, sourceUISuites: 8, sourceUIGroups: 50,
portableStages: stages.filter(stage => stage.startsWith('portable-')).length, isolatedInstallGroups: 12, installedUISuites: 10,
installedUIGroups: expected.reduce((sum, count) => sum + count, 0), finalSourceTests: 899, originalFullFailurePreserved: true,
fullSuiteResult: suiteReview.wholeSuite, exactSupplementPassed: 1, wholeSuiteAllPass: false,
realModelRequests: 0, scope: 'Exact immutable candidate gates plus complete 898/899 run and unchanged 1/1 supplement before one retained formal installation; formal UI and final original-state reconciliation follow separately.' };
fs.writeFileSync(root + '/preinstall-review.json', JSON.stringify(result, null, 2) + '\n', { flag: 'wx' }); console.log(JSON.stringify(result));
@@ -0,0 +1,23 @@
Collecting pytest==8.4.2
Using cached pytest-8.4.2-py3-none-any.whl (365 kB)
Collecting exceptiongroup>=1
Using cached exceptiongroup-1.3.1-py3-none-any.whl (16 kB)
Collecting pygments>=2.7.2
Using cached pygments-2.21.0-py3-none-any.whl (1.3 MB)
Collecting packaging>=20
Using cached packaging-26.3-py3-none-any.whl (129 kB)
Collecting tomli>=1
Using cached tomli-2.5.0-py3-none-any.whl (14 kB)
Collecting colorama>=0.4
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting pluggy<2,>=1.5
Using cached pluggy-1.7.0-py3-none-any.whl (27 kB)
Collecting iniconfig>=1
Using cached iniconfig-2.3.1-py3-none-any.whl (7.6 kB)
Collecting typing-extensions>=4.6.0
Using cached typing_extensions-4.16.0-py3-none-any.whl (45 kB)
Installing collected packages: typing-extensions, tomli, pygments, pluggy, packaging, iniconfig, colorama, exceptiongroup, pytest
Successfully installed colorama-0.4.6 exceptiongroup-1.3.1 iniconfig-2.3.1 packaging-26.3 pluggy-1.7.0 pygments-2.21.0 pytest-8.4.2 tomli-2.5.0 typing-extensions-4.16.0
[notice] A new release of pip is available: 23.0.1 -> 26.3
[notice] To update, run: D:\Ai-project\REA����\Agent-Workbench\.qa\reliability-1.25.2\python-env\Scripts\python.exe -m pip install --upgrade pip
@@ -0,0 +1,46 @@
✔ unchanged proposals cannot hide repeated original-log reads or identical session inspections (8727.5203ms)
✔ reusing a verified proof never resets identical-state detection or creates a new proof (7073.8788ms)
✔ coverage merges adjacent pages, separates changed sources and never claims old Run coverage in a continuation (0.9348ms)
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (0.9801ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (7324.0678ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.4368ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.3907ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (8.8282ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.3298ms)
✔ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (6298.2014ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (7534.1501ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (9252.4073ms)
✔ continuations distinguish unread source, later original line ranges and already returned result wrappers (692.9945ms)
✔ pure-file batch returns unused small-page space while mixed and historical allocation stays conservative (0.2758ms)
✔ v3 pools mixed file/log reads, serves small sources first and leaves historical/mutating batches unchanged (0.2456ms)
✔ v3 W-shaped mixed reading returns complete small modules and substantially larger first test pages in the next bounded request (4795.401ms)
✔ observed upstream high input pauses before a new request, preserves reported usage and distinguishes the limiting ledger (924.7506ms)
✔ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4601.687ms)
✔ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4612.2865ms)
✔ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4332.7297ms)
✔ all actually returned same-version fragments reach the bounded request, including overlap and Unicode, with independent original provenance (6168.2262ms)
✔ unread gaps and different range origins remain separate; partial sending names the precise missing already-observed range (1062.9035ms)
✔ same-SHA conflicting overlaps and invalid coordinates fail closed, while a new SHA never inherits old fragments (1233.8244ms)
✔ versioned old views keep the original single-page semantics and verification (870.4707ms)
✔ small code and actual failed command stay visible when their original multi-tool group cannot fit (1287.7509ms)
✔ mixed group retains six distinct small file observations with exact multilingual text and bounded request bytes (1726.7214ms)
✔ working observations are bound to the current Task and stop treating a pre-application file revision as current evidence (2007.4743ms)
✔ a sealed observation rejects changed or missing original result artifacts instead of recreating evidence (1384.4446ms)
✔ a real passed-check observation is excluded after a source edit invalidates the check, while its historical sent evidence remains valid (4722.803ms)
✔ budgeted file pages reconstruct UTF-8 text including long single lines and surrogate boundaries (4.5368ms)
✔ actual HTTP multi-tool reads survive an oversized runtime snapshot and the sealed evidence survives reopening (8639.2167ms)
✔ actual HTTP file pagination advances over a long file with each returned page visible in the next request (6993.5216ms)
✔ later mixed history pages cannot displace the actual module sources and complete requirements (6778.9977ms)
✔ a later narrow page of the same file revision cannot evict the wider actual observation (3532.1998ms)
✔ six small source files stay complete across metadata turns even when mandatory evidence exceeds the soft target (3650.3779ms)
✔ historical read-artifact navigation points to the original artifact and next page, never its result wrapper (1114.8215ms)
✔ a 1.6.1 full-provenance sent view remains verifiable after introducing the compact view (1420.4409ms)
✔ actual HTTP requests keep four observed modules after a later large history read and preserve all source bytes (10510.2434ms)
ℹ tests 38
ℹ suites 0
ℹ pass 38
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 93911.923
@@ -0,0 +1,165 @@
✔ unchanged proposals cannot hide repeated original-log reads or identical session inspections (7524.9346ms)
✔ reusing a verified proof never resets identical-state detection or creates a new proof (5825.1227ms)
✔ coverage merges adjacent pages, separates changed sources and never claims old Run coverage in a continuation (1.0118ms)
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (1.0325ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (6189.0538ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.3052ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.3914ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (8.6978ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.3633ms)
✖ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (6254.7991ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (7772.2398ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (8372.4262ms)
✔ continuations distinguish unread source, later original line ranges and already returned result wrappers (652.6425ms)
✔ pure-file batch returns unused small-page space while mixed and historical allocation stays conservative (0.38ms)
✔ v3 pools mixed file/log reads, serves small sources first and leaves historical/mutating batches unchanged (0.2891ms)
✔ v3 W-shaped mixed reading returns complete small modules and substantially larger first test pages in the next bounded request (4865.3042ms)
✔ observed upstream high input pauses before a new request, preserves reported usage and distinguishes the limiting ledger (753.51ms)
✖ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4079.4203ms)
✖ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4067.0213ms)
✖ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5666.2108ms)
✔ all actually returned same-version fragments reach the bounded request, including overlap and Unicode, with independent original provenance (7072.8705ms)
✔ unread gaps and different range origins remain separate; partial sending names the precise missing already-observed range (1292.5662ms)
✔ same-SHA conflicting overlaps and invalid coordinates fail closed, while a new SHA never inherits old fragments (2313.2389ms)
✔ versioned old views keep the original single-page semantics and verification (1082.6003ms)
✔ small code and actual failed command stay visible when their original multi-tool group cannot fit (1247.0403ms)
✔ mixed group retains six distinct small file observations with exact multilingual text and bounded request bytes (1764.5619ms)
✔ working observations are bound to the current Task and stop treating a pre-application file revision as current evidence (1972.4217ms)
✔ a sealed observation rejects changed or missing original result artifacts instead of recreating evidence (1353.1856ms)
✔ a real passed-check observation is excluded after a source edit invalidates the check, while its historical sent evidence remains valid (4770.5144ms)
✔ budgeted file pages reconstruct UTF-8 text including long single lines and surrogate boundaries (4.5482ms)
✔ actual HTTP multi-tool reads survive an oversized runtime snapshot and the sealed evidence survives reopening (8714.2881ms)
✔ actual HTTP file pagination advances over a long file with each returned page visible in the next request (6786.2512ms)
✖ later mixed history pages cannot displace the actual module sources and complete requirements (5345.4434ms)
✔ a later narrow page of the same file revision cannot evict the wider actual observation (3130.1466ms)
✔ six small source files stay complete across metadata turns even when mandatory evidence exceeds the soft target (3292.4164ms)
✔ historical read-artifact navigation points to the original artifact and next page, never its result wrapper (1214.947ms)
✔ a 1.6.1 full-provenance sent view remains verifiable after introducing the compact view (1181.4466ms)
✔ actual HTTP requests keep four observed modules after a later large history read and preserve all source bytes (9991.9037ms)
ℹ tests 38
ℹ suites 0
ℹ pass 33
ℹ fail 5
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 91511.5469
✖ failing tests:
test at tests\read-budget.test.mjs:124:1
✖ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (6254.7991ms)
AssertionError [ERR_ASSERTION]: {"failure":{"id":"ae4aef18-d806-442b-a982-35aa55c997b8","source":"model_connection","origin":"upstream","stage":"model_request","kind":"service","httpStatus":500,"endpoint":"http://127.0.0.1:62670/v1","model":"page-budget-fixture","route":"/chat/completions","attempts":3,"occurredAt":"2026-11-04T11:48:50.926Z","retryable":true,"title":"模型服务暂时无法处理请求","upstream":{"schema":1,"scope":"http-body","httpStatus":500,"code":null,"type":null,"message":"Newest actual result must be sent, not archived before the model sees it","param":null,"reason":null,"requestId":null,"responseId":null,"eventType":null,"headers":{"content-type":"application/json","date":"Wed, 04 Nov 2026 11:48:50 GMT"},"retryAfter":null,"retryAfterMs":null,"rawPreview":"{\"error\":{\"message\":\"Newest actual result must be sent, not archived before the model sees it\"}}","previewTruncated":false,"capture":{"scope":"http-body","receivedBytes":96,"capturedBytes":96,"storedBytes":96,"retention":"artifact","complete":true,"truncated":false,"interrupted":false,"capturedRange":[0,96],"redacted":false,"sha256":"bc1dd20cfb838626ba925ecf33e0b0ee15648ee4b11c588226aac3517a6f7a2d"},"artifactId":"21a9686b-9b42-4890-8a19-308183346b61","artifactSha256":"bc1dd20cfb838626ba925ecf33e0b0ee15648ee4b11c588226aac3517a6f7a2d","artifactScope":"http-body","sessionId":"58598cc2-383d-41e8-b61c-48ed661601fb"},"upstreamRequestId":null,"code":null,"type":null,"limitReason":null,"wireAttemptId":"215d9199-eef9-4d5f-89de-424178289936","message":"模型服务暂时无法处理请求(HTTP 500)。 Newest actual result must be sent, not archived before the model sees it","detail":"Newest actual result must be sent, not archived before the model sees it","suggestion":"稍后重试,或检查模型服务状态。","requestUrl":"http://127.0.0.1:62670/v1/chat/completions","responseUrl":"http://127.0.0.1:62670/v1/chat/completions","redirected":false,"redirectMode":"manual","retryDecision":"attempt_limit","remainingWaitBudgetMs":296918,"projectId":"60f67989-d84a-4471-b692-8158e93a9c67","sessionId":"58598cc2-383d-41e8-b61c-48ed661601fb","taskId":"c04a8fcf-3c7d-48b0-baf3-3fbfba441da7","runId":"2da0566f-edcc-413b-9a8f-282ad8c834e1","messageId":"0b4a8b8f-fb92-47b2-80df-0784705a5d88"},"requests":4,"pages":[]}
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/read-budget.test.mjs:145:10)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:615:9)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}
test at tests\reading-reliability.test.mjs:118:3
✖ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4079.4203ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
3 !== 2
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/reading-reliability.test.mjs:154:14)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:615:9)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 3,
expected: 2,
operator: 'strictEqual',
diff: 'simple'
}
test at tests\reading-reliability.test.mjs:118:3
✖ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4067.0213ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
3 !== 2
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/reading-reliability.test.mjs:154:14)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:615:9)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 3,
expected: 2,
operator: 'strictEqual',
diff: 'simple'
}
test at tests\reading-reliability.test.mjs:118:3
✖ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (5666.2108ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
3 !== 2
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/reading-reliability.test.mjs:154:14)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:615:9)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 3,
expected: 2,
operator: 'strictEqual',
diff: 'simple'
}
test at tests\working-set.test.mjs:244:1
✖ later mixed history pages cannot displace the actual module sources and complete requirements (5345.4434ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
... Skipped lines
'A sealed actual test assertion with Unicode 雪🙂.\n' +
'A sealed actual test assertion with Unicode 雪🙂.\n' +
'A sealed actual test assertion with Unicode 雪🙂.\n' +
'A sealed actual test assertion with Unicode 雪🙂.\n' +
'A sealed actual test assertion with Unicode 雪🙂.\n' +
...
'A sealed actual test assertion with Unicode 雪🙂.\n' +
+ 'A sealed actual test assertion with Unicode 雪🙂'
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n' +
- 'A sealed actual test assertion with Unicode 雪🙂.\n'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/working-set.test.mjs:266:12)
at Test.runInAsyncScope (node:async_hooks:227:14)
at Test.run (node:internal/test_runner/test:1402:25)
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
at Test.postRun (node:internal/test_runner/test:1542:19)
at Test.run (node:internal/test_runner/test:1467:12)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'A sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂',
expected: 'A sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\nA sealed actual test assertion with Unicode 雪🙂.\n',
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,51 @@
✔ unchanged proposals cannot hide repeated original-log reads or identical session inspections (8083.2883ms)
✔ reusing a verified proof never resets identical-state detection or creates a new proof (7473.0495ms)
✔ coverage merges adjacent pages, separates changed sources and never claims old Run coverage in a continuation (0.8894ms)
✔ a mixed turn with new bytes and three repeated modules advances, while repeat-only and independent no-op guards still pause (1.0423ms)
✔ runtime sends the next real HTTP request after a W-shaped mixed-progress turn instead of stopping on its trailing repeats (6647.1744ms)
✔ continuation reads advance through historical pages without a false pause while repeated current-Run pages still pause (1.2804ms)
✔ a new tool page replaces old latest-feedback space and still obeys its escaped protocol budget (0.3703ms)
✔ budgeted artifact pages count escaped protocol bytes and reconstruct original multilingual JSON without losing characters (8.0504ms)
✔ known artifact coverage detects semantic repeats despite changing limits, and advancing pages or direct evidence restore progress (0.307ms)
✔ actual large artifact reads are present in the next bounded HTTP request and next_offset progresses without redoing tools (6622.6739ms)
✔ a real repeated artifact loop pauses the same Task after recorded results, survives reload and only resumes explicitly (8071.6367ms)
✔ actual HTTP continuation after reload sends distinct historically covered pages without false no_progress or replay (9607.0574ms)
✔ continuations distinguish unread source, later original line ranges and already returned result wrappers (644.963ms)
✔ pure-file batch returns unused small-page space while mixed and historical allocation stays conservative (0.2772ms)
✔ observed upstream high input pauses before a new request, preserves reported usage and distinguishes the limiting ledger (748.2003ms)
✔ chat-completions: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4479.5992ms)
✔ responses: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4945.74ms)
✔ anthropic-messages: complete actual Unicode/CRLF pages and small source survive the next bounded wire request (4610.5398ms)
✔ operational questions are diagnostic while explicit repair requests remain execution instructions (1.0341ms)
✔ an explicit prohibition on running engineering checks is not interpreted as a requirement to run them (1.7835ms)
✔ file delivery requires a positive instruction, not saved evidence or a prohibited write (0.272ms)
✔ an unsubstantiated text claim cannot complete a requested file delivery (2145.7003ms)
✔ HTML without tests ends at reviewed file delivery and never offers automatic rechecking (3444.4078ms)
✔ diagnostic answers retain the unfinished task, limits and check result, and enforce read-only tools (5056.5468ms)
✔ review continuation is a system action and adds no testing demand or fake user instruction (3822.1035ms)
✔ a provider cannot execute tests against an explicit no-test task even if it ignores advertised tools (2387.7494ms)
✔ a budget pause becomes visible only after its input snapshot can be sealed with the original Run (2386.2671ms)
✔ alternating duplicate file reads and listing files still pauses without treating new pages as duplicates (19015.1185ms)
✔ fixed normal exploration, pagination, SHA changes and repeated ranges are external observations, not a score (1.2676ms)
✔ read-only research is valid work; model summaries and unchanged timestamped listings do not become engineering evidence (0.5737ms)
✔ new permissions, network and broken tools are failure evidence; repeated invalid inputs remain candidates (0.378ms)
✔ waiting for original long checks, review and approvals stays waiting across repeated observations (0.4953ms)
✔ baseline facts, real repairs, current-source check results and requirement evidence have distinct growth (0.2021ms)
✔ bounded memory keeps unknown instead of claiming an unretained range is repeated; Task/Run instances cannot mix (12.5385ms)
✔ actual runtime records growing pages then a repeated page without changing model rounds, stop rules or original tool pairs (7091.4306ms)
✔ actual invalid tool calls repeat under the original step budget; observation never adds an early stop (6386.6521ms)
✔ actual command approval is observed as waiting and denial stays a permission failure (3953.3036ms)
✔ network errors remain model failures with shadow failure evidence, never a fabricated no-progress cause (4863.5938ms)
✔ observer receipt failure cannot change tool results, model budget or completion (3347.7248ms)
✔ a later receipt recovers after an observation write failure without misaligning retained source receipts (4782.6558ms)
✔ real applied files, counted checks and current requirement proofs grow after an existing-facts baseline (5013.8415ms)
✔ receipt retention stays aligned at the cap and a foreign step cannot enter the Run (3157.4456ms)
✔ an actual approved long check records its owned running job as waiting before the original counted result (5299.788ms)
ℹ tests 43
ℹ suites 0
ℹ pass 43
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 75460.037

Some files were not shown because too many files have changed in this diff Show More