feat: add controlled engine run review and verify desktop mobile workflows

This commit is contained in:
Agent Workbench Dev
2026-10-31 05:38:55 +08:00
parent 213845e72e
commit 48635be1ce
41 changed files with 14539 additions and 36 deletions
+17
View File
@@ -0,0 +1,17 @@
# 1.14 工程执行界面
受众是使用工作台交付本地工程的人。页面负责选择实际执行方式、冻结范围与预算、查看真实执行和审查成果;正式服务在完整验收后升级。
沿用现有工程控制台:深蓝墨色#153047、辅助文字#587087、结构线#c7d3de、动作蓝#2560a3、浅蓝底#edf3fa、核对琥珀#925619。标题使用Segoe UI/Microsoft YaHei的600–700字重,正文13px,原身份与路径使用Cascadia Code/Consolas 11–12px。颜色表示动作、原依据或待核对状态,不增加无依据的成功标记。
父页先显示执行方式与目标,再显示独立工程/允许路径,之后是实际模型、累计预算和父工程审查。工作台双任务保留现有两列;受控引擎为单个全宽工程。引擎运行页采用连续的原依据条:固定安装 → 所属运行 → 真实模型/工具计数 → 进程树关闭 → 父成果审查。原报告分页,完整下载保持原字节。
```
执行方式 · 目标 检测安装 / 刷新
独立工程与允许修改范围
固定模型与预算 | 当前累计用量
实际执行记录与审批 | 原输入 / 原报告
父工程成果审查与本地 Git
```
自评:本阶段采用已有蓝色工程控制台,保证现有视图、表单和动作一致;识别点是实际依据条和范围边界。没有重新堆叠指标卡、装饰动画或泛用大标题。390px单列、长路径换行、短按钮保持单行且最小42px;禁用、失败、未知和恢复均有明确下一步。程序检查仍由宿主审批,界面不以模型文字代替工程证据。
+29 -5
View File
@@ -2,11 +2,27 @@
2026-10-31。本阶段在feat/controlled-engines-1.14开发;正式4318仍为1.13.0,原PID23172及Provider保持。本文件随切片更新,局部通过不等于发行完成。真实模型推理、Purge实际收益继续按用户既有选择独立待验。
## A与B:固定协议和所属执行内核
## A:固定版本与协议
A已由a01c418封存固定Harness0.2.1-rc.2、关键输入、受限叠加插件及原SDK协议。7/7专项和实际原生程序/本地固定模型2请求1工具通过;不支持的单会话取消、反向审批和安全原生续接如实保留。
受控适配器锁定已有Harness 0.2.1-rc.2、sdk-minimal、原SDK/CLI/Node及七份工具/代理/LLM/Include关键运行器。每个Run生成独立home、agents、叠加插件和JSON patch;禁用原生文件、工作目录工具、持久终端、原生模型与重试插件,实际appReady后再次核对完整工具schema、唯一代理provider、所属PID/nonce/SDK session/Run和工作目录。
B由f0eecbd封存原模型/工具桥、自有账本与所属引擎输入、逐请求预算、工具原结果反馈、结束前封存及全树关闭。原首轮17项15通过/2断言失败保留,相关兼容67/67、最新内核与HTTP25/25及已退出桥守卫7/7分别记录,不拼接不同轮统计。最后全量回归仍在F按最终固定输入独立判定。
原SDK不提供单会话取消或反向审批。受控桥通过独立本地HTTP返回工具/模型请求,原SDK仍使用initialize、session/prompt、session/wait与shutdown;收据必须在所属agent/inbox/spliced原事件中出现,输出来自同一活动的assistant/message,不能用idle或回复文字判工程交付。停止/恢复与真实工程的完整接入仍由后续切片验收。
首轮7/7专项通过:关键运行器变化、Include patch、完整目录与重复schema、进程/Run/SDK身份及Origin/认证、重复/越界/格式错误/来源变化、模型目录/输出预算和停止/超长正文守卫。原TAP为controlled-engine-core-first.tap。
实际Harness加本地固定模型夹具通过:完整启动目录核对、两次代理模型请求、一次原工具调用、prompt入队收据、所属原活动输出与正常退出;0真实模型请求、0stderr。原输入/协议/通知/桥数据与退出保存在controlled-engine-native-first.json及对应-log.txt。本轮只读取独立夹具README,没有开放用户工程或现有真实连接。
## B:执行账本与权限接入
原引擎工具进入所属Runtime的校验/审批/原结果账本,调用ID以引擎Run命名空间保存原sourceCallId。下一轮直接核对savedToolResult并封存真正反馈的工件;读取/提案/检查与工作台既有范围一致。引擎来源、所属叠加输入在接收工具、开始工具和批准后执行前复核,等待审批期间的变化不能使用旧许可。模型Key留在工作台Provider,原Native输入与实际兼容Chat请求分别保存。
首轮17项15通过/2断言失败,原spec输出保持;按既有check_status/message契约修正。第二轮相关兼容67/67通过;随后最新内核25/25通过,包括等待审批来源变化、损坏报告拒绝交付、原模型预算恢复单次记账、未知核对和完整HTTP原记录分页/下载/归属。各轮分别保存,不拼接统计。界面代码和原生三工程尚待独立验收。
关闭原SDK进程后的桥请求也拒绝进入模型/工具回调,追加7/7桥专项通过。原记录分别为controlled-engine-worker-first-spec-log.txt、controlled-engine-worker-compatible.tap、controlled-engine-worker-kernel.tap和controlled-engine-live-bridge.tap;来源字节和当前内核输入索引为controlled-engine-kernel-evidence.json。
本轮模型实际尝试由引擎桥记账,外层合成工具步骤不再重复记账。重启对原reservedPerAttempt/maxAttempts工件复核后保守记录未封存尝试,第二次恢复不重复计账;损坏预算不能减少累计用量。正常输出前关闭并封存引擎,worker成果仍需原报告、实际提案/检查和父审查。
已加入启动/运行中原创建时间和后代身份观察,关闭后复核完整所属树;活后代或观察失败保留unknown。原SDK会话不自动resume,人工核对独立保存review,原输出不改写为成功。下一步实际Harness+HTTP固定模型三工程及桌面/390px交付验证。
## C:三个真实功能工程
@@ -20,6 +36,14 @@ B由f0eecbd封存原模型/工具桥、自有账本与所属引擎输入、逐
首轮350b1623使用测试连接默认16K上下文,在完整检查结果反馈后被预算守卫拒绝,整轮失败,原记录/原字节保留。新测试连接在开始前明确64K容量和累计200K预算;产品上下文与超限守卫未改变,每个Run须立即正常完成,不能用后续Run补过失败。原报告见controlled-engine-projects-first、first-node和validation及对应原日志。
## 未完成节点
## D:真实界面与停止核对
D实际桌面/390px界面、停止/显式核对正在验收;E默认关闭的Purge来源/提示实验与同题对照、F最终版本/完整回归/独立发行/保留状态升级仍待完成。
实际Harness和Edge、自有内存Provider夹具的新9f0a2a9c整轮9节点通过,0页面异常/请求失败,源码/脚本/构建冻结一致。桌面与390px覆盖安装拒绝/身份封存、单独工程、原提案、原输入分页与报告原SHA下载、迟到错误隔离、原检查审批、新原生Run、父归集/保留、实际原生停止及未知用量。
未知恢复界面使用明确的夹具状态转换;实际停止/全树关闭是真实运行,宿主崩溃仍由独立内核场景判定。人工核对前须读取原记录,保留原originalOutcome、报告原字节及累计预算,续接不自动恢复旧SDK会话。
修复了390px标题栏刷新42px被通用36px规则覆盖,以及检查审批导航打开Task检视区遮住真正审批。现在按操作目的显示主审批或改动页;76×42/nowrap/无横向溢出、主审批不被覆盖均实测通过。前四轮原CSS/遮罩操作/响应式标签等待失败保留;验收器通过真实关闭入口和响应式标签等待操作,无force或缩减断言。桌面运行、390px父页/审批/恢复截图已目视核对。
旧双任务33cb41d6完整10节点、旧连接516f5ca0完整10组兼容复验通过,0页面异常/请求失败。连接说明恢复为标题下可见正文;前两轮说明断言失败原DOM/日志分别保留。原1.13 workers-ui-validation和workers-engines-ui-validation与Git原字节核对一致,本轮新结果单独保存controlled-engine前缀,不覆盖历史。
原D第九节点日志中的「original unknown outcome」标签不够精确:originalOutcome来自实际cancelled Run,unknown是声明的后续状态转换。实际断言核对原Outcome/报告/预算不变;只修正后续验收标签为「original outcome」,原成功/失败证据不改写。E默认关闭的Purge来源/提示实验与同题对照、F最终版本/完整回归/独立发行/保留状态升级仍待完成。
+9 -1
View File
@@ -10,4 +10,12 @@
一次旧package脚本将--help误作普通打包,已在复制阶段终止,自有临时目录保留且不采用。没有改变本轮冻结输入或正式进程;F需增加参数校验,帮助查询不得产生文件/进程副作用。
下一节点继续实际控制台、原报告分页下载、停止/未知核对和390px操作。Purge完整插件含自愈/宿主修改入口,先实现独立提示装配实验及来源锁定,保留宿主审查权限,未经重复收益不默认启用。
## D:动作目的与实际可操作性
新9f0a2a9c桌面/390px整轮9节点通过,原SHA分页/下载、迟到错误隔离、新Run原检查审批、父归集、原生停止和显式核对均实际执行。CSS同权重覆盖让移动刷新只有36px,已修正;统一Task导航也会遮住真正检查审批,现按动作目的进入审批/改动/Task。不能用「按钮DOM存在」代替实际可点击。
验收器两处移动遮罩操作及桌面标签更新等待失败分别保留,通过真实关闭按钮和按实际viewport等待响应式标签修正。未知恢复是声明夹具状态转换,实际宿主崩溃另验;人工核对不改原Outcome/报告/预算。旧workers10节点和engines10组完整兼容通过,原1.13报告字节保持,新结果独立封存。连接页说明必须实际可见,不能仅存在关闭details内。
恢复场景原Outcome来自cancelled Run,原日志「unknown outcome」标签不够精确;后续标签已修正,原证据不改写。一次收尾脚本假定报告含数字groups而误报失败,按实际success/passed数组及assertions结构复核后确认三个原报告成功;没有重跑或拼接统计。
下一节点Purge完整插件含自愈/宿主修改入口,先实现独立提示装配实验及来源锁定,保留宿主审查权限,未经重复收益不默认启用。最终发行前还需审查升级对新增engine_run/CoreKind的初始化及无引擎历史导出兼容,不能仅复用旧升级器。
@@ -0,0 +1 @@
{"success":false,"version":"1.13.0","groups":0,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-f8ba9b90-1684-4725-aa80-05944bf00c93","pageErrors":[],"requestFailures":[],"error":"Error: Timed out waiting for test state.\n at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)\n at async textContains (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:27:94)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:56:69"}
@@ -0,0 +1,14 @@
{
"success": false,
"version": "1.13.0",
"testedAt": "2026-10-30T21:31:00.322Z",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-f8ba9b90-1684-4725-aa80-05944bf00c93",
"passed": [],
"pageErrors": [],
"requestFailures": [],
"expectedRequestFailures": [],
"screenshots": [
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-f8ba9b90-1684-4725-aa80-05944bf00c93\\screenshots\\engines-initial-failure.png"
],
"error": "Error: Timed out waiting for test state.\n at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)\n at async textContains (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:27:94)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:56:69"
}
@@ -0,0 +1,11 @@
PASS independent desktop engine entry detects the declared installation and clearly separates connection from project execution
PASS missing installations and edited directories cannot launch a check until detection succeeds
PASS UI launch seals the selected installation into the current Task/Run and renders actual startup and process-close facts
PASS original record paging, full download SHA256 and nested-dialog keyboard close preserve the exact evidence
PASS an explicit new check creates a different process and record while retaining the original check unchanged
PASS declared pending-initialize fixture stops its owned process and explicit retry preserves the stopped result
PASS the same product UI verifies the actual installed DeepSeek SDK without a prompt or configured-model call
PASS 390px installation paths, source chain, original record, paging and keyboard close remain readable without page overflow
PASS late detection failure from a closed panel cannot appear in a different task or reveal its prior engine records
PASS actual host restart preserves all native and declared-fixture records with no protocol replay or project modification
{"success":true,"version":"1.13.0","groups":10,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27","pageErrors":[],"requestFailures":[]}
@@ -0,0 +1 @@
{"success":false,"version":"1.13.0","groups":0,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-c0ec4826-398c-448c-9e33-6ec41ea6a89e","pageErrors":[],"requestFailures":[],"error":"Error: Timed out waiting for test state.\n at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)\n at async textContains (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:27:94)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:56:69"}
@@ -0,0 +1,14 @@
{
"success": false,
"version": "1.13.0",
"testedAt": "2026-10-30T21:32:13.465Z",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-c0ec4826-398c-448c-9e33-6ec41ea6a89e",
"passed": [],
"pageErrors": [],
"requestFailures": [],
"expectedRequestFailures": [],
"screenshots": [
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-c0ec4826-398c-448c-9e33-6ec41ea6a89e\\screenshots\\engines-initial-failure.png"
],
"error": "Error: Timed out waiting for test state.\n at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)\n at async textContains (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:27:94)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-engines-ui.mjs:56:69"
}
@@ -0,0 +1,232 @@
{
"success": true,
"version": "1.13.0",
"testedAt": "2026-10-30T21:34:16.920Z",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27",
"browser": "156.0.4314.50",
"passed": [
"independent desktop engine entry detects the declared installation and clearly separates connection from project execution",
"missing installations and edited directories cannot launch a check until detection succeeds",
"UI launch seals the selected installation into the current Task/Run and renders actual startup and process-close facts",
"original record paging, full download SHA256 and nested-dialog keyboard close preserve the exact evidence",
"an explicit new check creates a different process and record while retaining the original check unchanged",
"declared pending-initialize fixture stops its owned process and explicit retry preserves the stopped result",
"the same product UI verifies the actual installed DeepSeek SDK without a prompt or configured-model call",
"390px installation paths, source chain, original record, paging and keyboard close remain readable without page overflow",
"late detection failure from a closed panel cannot appear in a different task or reveal its prior engine records",
"actual host restart preserves all native and declared-fixture records with no protocol replay or project modification"
],
"pageErrors": [],
"requestFailures": [],
"expectedRequestFailures": [],
"screenshots": [
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\screenshots\\engines-native-desktop.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\screenshots\\engines-record-mobile.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\screenshots\\engines-native-mobile.png"
],
"starts": [
{
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\本地 SDK #",
"identitySha256": "45d57174b202c36a54e356baf403f29261457dc728069e9b56b333c6f44ecc2a"
},
{
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\本地 SDK #",
"retry": true
},
{
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\本地 SDK #",
"identitySha256": "45d57174b202c36a54e356baf403f29261457dc728069e9b56b333c6f44ecc2a"
},
{
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\engines-ui-516f5ca0-c216-4a6b-97f9-5f0acdb6df27\\本地 SDK #",
"retry": true
},
{
"root": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness",
"identitySha256": "a60f7733d6eaf91bcd31ce5d1da38d6d267a16ad29bc03bba548f314fddec22a"
}
],
"nativeJob": {
"schemaVersion": 1,
"id": "61bd37f3-9845-498c-8ee1-d3f18012c8ce",
"sessionId": "654d28fb-5a79-43b0-bcac-f344c6e3d975",
"projectId": "79bbfd23-c791-45bd-a0fb-45eccc0933d1",
"taskId": "470918b6-5b66-48d4-b851-dd9852c339aa",
"runId": "da5f5461-c06b-4f93-a82e-1aeed03b26ae",
"engineId": "deepseek-harness",
"scope": "deepseek-sdk-connection-probe",
"source": "user",
"installation": {
"engineId": "deepseek-harness",
"name": "DeepSeek Harness",
"profile": "sdk-minimal",
"expectedVersion": "0.2.1-rc.2",
"root": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness",
"capabilities": {
"connectionProbe": true,
"projectExecution": false,
"prompt": false,
"singleSessionCancel": false,
"protocolVersionNegotiation": false,
"cancellationUnit": "owned-process",
"tokenStreaming": false
},
"limitations": [
"当前接入核验启动、会话目录、协议错误和关闭;工程执行接入开发中。",
"SDK没有单会话cancel或close;停止以所属独立进程为单位。",
"SDK serverInfo.version与发行包版本分别核对,没有有效协议版本协商。",
"SDK事件覆盖运行时会话树,idle事件不能直接判项目交付完成。"
],
"status": "available",
"version": "0.2.1-rc.2",
"entry": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\apps\\cli\\lib\\bin.js",
"inputs": [
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\apps\\cli\\package.json",
"bytes": 8138,
"sha256": "d42efe9f3ff424f602f11598af8805ad25039953ebbbd3c163d67875f7e8658b",
"relative": "apps/cli/package.json"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\apps\\cli\\lib\\bin.js",
"bytes": 11772,
"sha256": "80112efe368efb1a39720c7ada0af00442e5131fb2744edaaff8a3e8bb499e6f",
"relative": "apps/cli/lib/bin.js"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\boot\\cmdline\\lib\\index.js",
"bytes": 6973,
"sha256": "7253190611566485f8b6f836fae6e0f2a7abbc59bb807c42e874844016e6d3a0",
"relative": "packages/boot/cmdline/lib/index.js"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\bundle\\sdk-app\\lib\\index.js",
"bytes": 1921,
"sha256": "cc7e6c38b0b38c0e92a0dffb45210c1dac6ef518547436e805e84b772f91a475",
"relative": "packages/bundle/sdk-app/lib/index.js"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\bundle\\sdk-minimal\\package.json",
"bytes": 2920,
"sha256": "0e177cbca85148207343db5afd7f12829723cf3f2afedfa8e85a5c5dcd58f604",
"relative": "packages/bundle/sdk-minimal/package.json"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\bundle\\sdk-minimal\\cordis.patch.yml",
"bytes": 5636,
"sha256": "464ea07c03d3639c2c387fa3a684f5d4001e7ca39f8257b361c604f19487af66",
"relative": "packages/bundle/sdk-minimal/cordis.patch.yml"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\sdk\\server\\package.json",
"bytes": 2155,
"sha256": "2690f99763c3e1e7bd57f680f26e53010c2a3d7c4dffe06ff64a07ae3928cb17",
"relative": "packages/sdk/server/package.json"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\sdk\\server\\lib\\index.js",
"bytes": 16454,
"sha256": "55412923f9f7c279f7e0b2a1e2853eaf238f390b3d84046cb9c94dc5f22a1e4a",
"relative": "packages/sdk/server/lib/index.js"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\sdk\\protocol\\package.json",
"bytes": 1237,
"sha256": "b030b0431d69723b5424dc2519cd4b381ec91acd22b73e0b30d6b8a19f1f2f94",
"relative": "packages/sdk/protocol/package.json"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\sdk\\protocol\\lib\\index.js",
"bytes": 7336,
"sha256": "371c38ca3514797d86df5f4bb78a56c40a2637294b83aababe8145bec6a20253",
"relative": "packages/sdk/protocol/lib/index.js"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\packages\\sdk\\client\\package.json",
"bytes": 1325,
"sha256": "ff33f2ecec2d48bb8a24397cc664fc2dd50ba49d5288eb11fea1cb12931e5d5f",
"relative": "packages/sdk/client/package.json"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\pnpm-lock.yaml",
"bytes": 1090222,
"sha256": "4637cca3b89c4c8d5a147321710e597aa62ec2444a3772ab542be5690893dfe4",
"relative": "pnpm-lock.yaml"
},
{
"path": "D:\\Ai-project\\DeepSeek-Harness-Desktop\\deepseek-harness\\vendor\\cordis\\lib\\index.js",
"bytes": 60361,
"sha256": "6a9394c0877ff45218818c6e815edd038f8057e1a1deb390a8d43ec81c57691e",
"relative": "vendor/cordis/lib/index.js"
}
],
"node": {
"path": "C:\\Program Files\\nodejs\\node.exe",
"bytes": 93915464,
"sha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5",
"version": "24.22.1"
},
"identitySha256": "a60f7733d6eaf91bcd31ce5d1da38d6d267a16ad29bc03bba548f314fddec22a",
"serverInfo": {
"name": "deepseek-harness-sdk-runtime",
"version": "0.0.1"
},
"message": "已找到匹配版本,可验证原程序的连接与停止。"
},
"sdkSessionId": "35ee8a8b-b82a-4c25-b9b2-f5f958bfdf41",
"directory": "C:\\Users\\wangy\\AppData\\Local\\Temp\\AgentWorkbench-Engines\\61bd37f3-9845-498c-8ee1-d3f18012c8ce",
"status": "completed",
"startedAt": "2026-10-30T21:34:13.907Z",
"finishedAt": "2026-10-30T21:34:14.961Z",
"requiresVerification": false,
"verification": {
"verified": true,
"installationSha256": "a60f7733d6eaf91bcd31ce5d1da38d6d267a16ad29bc03bba548f314fddec22a",
"readySignal": "appReady",
"sdkSessionId": "35ee8a8b-b82a-4c25-b9b2-f5f958bfdf41",
"connectionId": "cd6cd743-6634-4254-919d-53d536e10cc0",
"rootExited": true,
"modelRequests": 0
},
"summary": "连接通过,启动、协议返回、会话目录与进程结束均已核对。",
"contractArtifactId": "17871e03-0e9d-4f5d-85b3-208cedc2bcda",
"contractSha256": "c6e2016f0fbe967fcbe5012c2d3af77de8ce6cd98f2444a71fafc12ba463e93c",
"eventId": "e25e92b8-5a7b-40e4-8ff1-cf12eb5b7c58",
"pid": 21116,
"connectionId": "cd6cd743-6634-4254-919d-53d536e10cc0",
"readiness": {
"schemaVersion": 1,
"nonce": "ce4c2e32-94d7-4d89-a3fa-f94ec7ced372",
"pid": 21116,
"signal": "appReady",
"readyAt": "2026-10-30T21:34:14.748Z",
"artifact": {
"path": "C:\\Users\\wangy\\AppData\\Local\\Temp\\AgentWorkbench-Engines\\61bd37f3-9845-498c-8ee1-d3f18012c8ce\\ready.json",
"bytes": 135,
"sha256": "d2b9493c88e4c0e02d8a73ed3c4d562f1a8e22baa0a1279ecdb07af82739c9be"
}
},
"serverInfo": {
"name": "deepseek-harness-sdk-runtime",
"version": "0.0.1"
},
"reportArtifactId": "8e9af0ef-fb33-4e3c-862e-a8354b14722d",
"reportSha256": "96d69d22afe317105519113461c04c97d58f9fe2455a700a5477514494784d99",
"reportSummary": {
"status": "verified",
"modelRequests": 0,
"providerRequests": 0,
"observedResponses": 6,
"rootExited": true
}
},
"actualSdk": {
"version": "0.2.1-rc.2",
"identitySha256": "a60f7733d6eaf91bcd31ce5d1da38d6d267a16ad29bc03bba548f314fddec22a",
"nativeMethods": 6,
"modelRequests": 0,
"rootExited": true
},
"stopScope": "declared private SDK pending-initialize fixture",
"scope": "Independent service and data. Original 4318 Provider, tasks and credentials were not accessed."
}
+14
View File
@@ -0,0 +1,14 @@
> local-agent-workbench@1.13.0 build
> tsc --noEmit && vite build && node scripts/build-server.mjs
vite v7.3.7 building client environment for production...
transforming...
✓ 1714 modules transformed.
rendering chunks...
computing gzip size...
dist-client/index.html 0.50 kB │ gzip: 0.37 kB
dist-client/assets/index-7m5gYucE.css 127.01 kB │ gzip: 24.42 kB
dist-client/assets/index-BmlpgZ8K.js 480.84 kB │ gzip: 141.80 kB
✓ built in 1.35s
Server bundle built.
+10
View File
@@ -0,0 +1,10 @@
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
PASS actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure
PASS 390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow
PASS mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes
PASS closing a run view ignores an old delayed record failure and keeps the selected task unchanged
PASS explicit child file review and check approval create a new native Run, retain previous evidence and account actual model requests once
PASS parent collection reads the original controlled-worker proof and explicit retention preserves every owner byte
PASS actual native stop closes the owned process tree, preserves one unknown model attempt and dispatches no late tool
PASS 390px recovery requires reading the owned observation before explicit review and preserves original unknown outcome/report and cumulative budget
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-ui-9f0a2a9c-db6c-4349-b0c2-56756506e297
+21
View File
@@ -0,0 +1,21 @@
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
PASS actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-ui-3b20fb32-8349-4492-9592-553e5f4b7257
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert.ok(bounds.width >= 76 && bounds.height >= 42)
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-ui.mjs:68:54 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '==',
diff: 'simple'
}
Node.js v24.22.1
+23
View File
@@ -0,0 +1,23 @@
{
"passed": false,
"targetVersion": "1.14.0",
"testedVersion": "1.13.0",
"error": "AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n\n assert.ok(bounds.width >= 76 && bounds.height >= 42)\n\n at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-ui.mjs:68:54",
"assertions": [
"desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls",
"actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-3b20fb32-8349-4492-9592-553e5f4b7257\\desktop-controlled-parent.png",
"sha256": "a000e9da3125d14075637fddba9aa429384981e098efe7f87dc1548af6b302a2"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-3b20fb32-8349-4492-9592-553e5f4b7257\\controlled-ui-failure.png",
"sha256": "be6ec3812df81e741cea637e9b88b5c22646b0736022b01a0afc18bb3e55ff6f"
}
],
"pageErrors": [],
"requestFailures": [],
"realModelRequests": 0
}
+152
View File
@@ -0,0 +1,152 @@
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
PASS actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure
PASS 390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow
PASS mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes
PASS closing a run view ignores an old delayed record failure and keeps the selected task unchanged
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-ui-49aec7a4-63d2-4e3c-8f32-27affba1e652
node:internal/modules/run_main:107
triggerUncaughtException(
^
ExpectError: expect(locator).toBeHidden() failed
Locator: locator('.inspector')
Expected: hidden
Received: visible
Timeout: 5000ms
Call log:
- Expect "toBeHidden" locator('.inspector') with timeout 5000ms
- waiting for locator('.inspector')
14 × locator resolved to <aside class="inspector">…</aside>
- unexpected value "visible"
at captureRawStack (D:\Ai-project\REA逆向\Agent-Workbench\node_modules\playwright-core\lib\coreBundle.js:9282:17)
at callMatcherAsStep (D:\Ai-project\REA逆向\Agent-Workbench\node_modules\playwright\lib\matchers\expect.js:13316:57)
at Object.toBeHidden (D:\Ai-project\REA逆向\Agent-Workbench\node_modules\playwright\lib\matchers\expect.js:13308:23)
at closeInspector (D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:34:200)
at async openEngine (D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:36:31)
at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-ui.mjs:89:3 {
matcherResult: {
message: 'expect(locator).toBeHidden() failed\n' +
'\n' +
"Locator: locator('.inspector')\n" +
'Expected: hidden\n' +
'Received: visible\n' +
'Timeout: 5000ms\n' +
'\n' +
'Call log:\n' +
` - Expect "toBeHidden" locator('.inspector') with timeout 5000ms\n` +
" - waiting for locator('.inspector')\n" +
' 14 × locator resolved to <aside class="inspector">…</aside>\n' +
' - unexpected value "visible"\n',
pass: false,
actual: 'visible',
name: 'toBeHidden',
expected: 'hidden',
log: [
` - Expect "toBeHidden" locator('.inspector') with timeout 5000ms`,
" - waiting for locator('.inspector')",
' 14 × locator resolved to <aside class="inspector">…</aside>',
' - unexpected value "visible"'
],
timeout: 5000,
ariaSnapshot: '- complementary:\n' +
' - button "文件"\n' +
' - button "改动"\n' +
' - button "轨迹"\n' +
' - button "任务"\n' +
' - button "索引"\n' +
' - button "缩小检视区"\n' +
' - region "独立开发工作区"\n' +
' - heading "任务目标" [level=3]\n' +
' - text: 已完成\n' +
' - paragraph: 准备范围内提案,审批工程检查并保留原运行记录\n' +
' - code: ddc6ee40 · 任务\n' +
' - region "执行计划"\n' +
' - region "任务恢复检查点"\n' +
' - heading "运行记录" [level=3]\n' +
' - text: 3 次 选择一次运行\n' +
' - combobox "选择运行记录"\n' +
' - text: 已完成\n' +
' - code: 0274ea66\n' +
' - term: 实际模型\n' +
' - definition: owned-worker-model\n' +
' - term: 接口\n' +
' - definition: http://127.0.0.1:1/v1\n' +
' - term: 执行目录\n' +
' - definition: D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-UTqDqj\\data\\workspaces\\checkouts\\w-33d7ee65a9d2f8978e29\n' +
' - term: 独立分支\n' +
' - definition: workbench/engine-1-7511534b-3ea\n' +
' - term: 开始 / 结束\n' +
' - definition: 10/31 05:24:12 10/31 05:24:26\n' +
' - term: 模型轮次 / 工具\n' +
' - definition: 3 / 2\n' +
' - term: 已报告用量\n' +
' - definition: 504 tokens 输入 369 · 输出 135\n' +
' - term: 本次预算\n' +
' - definition: 199,664 tokens · 10 分钟 · 22 轮\n' +
' - term: 任务累计\n' +
' - definition: 840 / 200,000 tokens\n' +
' - paragraph: 用量以服务返回为准;未报告的请求单独估算。\n' +
' - region "请求上下文"\n' +
' - heading "工程检查" [level=3]\n' +
' - text: 检查通过\n' +
' - paragraph: 检查对应当时的工程快照。先识别测试与执行环境,再确认检查;项目变化后重新检查。\n' +
' - button "重新识别检查计划"\n' +
' - paragraph\n' +
' - paragraph: workbench/engine-1-7511534b-3ea · b736e2ef · 有未提交改动\n' +
' - group "选择检查范围"\n' +
' - list\n' +
' - button "执行这些检查"\n' +
' - text: 检查通过\n' +
' - code: 675e6a30\n' +
' - time: 10/31 05:24:20\n' +
' - paragraph: 所选检查全部通过,测试数量与源码快照已记录。\n' +
' - strong: test\n' +
' - text: 检查通过\n' +
' - paragraph: 退出码 0 · 0.8 秒 · 测试 3/3 通过\n' +
' - button "查看检查日志"\n' +
' - strong: build\n' +
' - text: 检查通过\n' +
' - paragraph: 退出码 0 · 0.8 秒\n' +
' - button "查看检查日志"\n' +
' - region "工程页面验收"\n' +
' - region "Git交付"\n' +
' - heading "结果工件" [level=3]\n' +
' - text: 最近 30 项\n' +
' - button "工具结果 6034de3679 1,848 B"\n' +
' - button "工具结果 c0e922e173 158,931 B"\n' +
' - button "工具结果 689d0a7086 156 B"\n' +
' - button "工具结果 ab223825e2 53,198 B"\n' +
' - button "工具结果 40e48ec743 2,213 B"\n' +
' - button "请求计划 d9fd794ab1 1,628 B"\n' +
' - button "模型请求正文 81986898c9 23,075 B"\n' +
' - button "工具结果 40e48ec743 2,213 B"\n' +
' - button "检查日志 7ac710a38a 59 B"\n' +
' - button "检查日志 0da8ff8036 264 B"\n' +
' - button "工具结果 7771f529c7 179 B"\n' +
' - button "工具结果 fd741dfc20 298 B"\n' +
' - button "工具结果 18ff3ddfc6 47,411 B"\n' +
' - button "工具结果 26e3850d9f 2,196 B"\n' +
' - button "请求计划 b1084a4037 1,626 B"\n' +
' - button "模型请求正文 50f401b3e1 19,531 B"\n' +
' - button "工具结果 26e3850d9f 2,196 B"\n' +
' - button "检查计划 8ceb4af0fc 806 B"\n' +
' - button "工程识别 3994012160 1,170 B"\n' +
' - button "工具结果 dcb13aeda1 156 B"\n' +
' - button "工具结果 e216a85233 277 B"\n' +
' - button "工具结果 f1110c7c34 41,763 B"\n' +
' - button "工具结果 6ba5f2d46f 13,848 B"\n' +
' - button "请求计划 d7e708527f 1,624 B"\n' +
' - button "模型请求正文 878ce70c66 16,126 B"\n' +
' - button "工具结果 337970f2b7 262 B"\n' +
' - button "工具结果 532bd77de3 107,972 B"\n' +
' - button "工具结果 689d0a7086 156 B"\n' +
' - button "工具结果 4c1fbb2152 39,187 B"\n' +
' - button "工具结果 2a726b6906 220 B"\n' +
' - text: 任务目标、检查与结果持久保存'
}
}
Node.js v24.22.1
+38
View File
@@ -0,0 +1,38 @@
{
"passed": false,
"targetVersion": "1.14.0",
"testedVersion": "1.13.0",
"error": "Error: expect(locator).toBeHidden() failed\n\nLocator: locator('.inspector')\nExpected: hidden\nReceived: visible\nTimeout: 5000ms\n\nCall log:\n - Expect \"toBeHidden\" locator('.inspector') with timeout 5000ms\n - waiting for locator('.inspector')\n 14 × locator resolved to <aside class=\"inspector\">…</aside>\n - unexpected value \"visible\"\n\n at captureRawStack (D:\\Ai-project\\REA逆向\\Agent-Workbench\\node_modules\\playwright-core\\lib\\coreBundle.js:9282:17)\n at callMatcherAsStep (D:\\Ai-project\\REA逆向\\Agent-Workbench\\node_modules\\playwright\\lib\\matchers\\expect.js:13316:57)\n at Object.toBeHidden (D:\\Ai-project\\REA逆向\\Agent-Workbench\\node_modules\\playwright\\lib\\matchers\\expect.js:13308:23)\n at closeInspector (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:34:200)\n at async openEngine (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:36:31)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-ui.mjs:89:3",
"assertions": [
"desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls",
"actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure",
"390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow",
"mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes",
"closing a run view ignores an old delayed record failure and keeps the selected task unchanged"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-49aec7a4-63d2-4e3c-8f32-27affba1e652\\desktop-controlled-parent.png",
"sha256": "3ee1ad49f1120ddef7ae963bf43d5591520a019e7340466060749fb22e05d2f2"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-49aec7a4-63d2-4e3c-8f32-27affba1e652\\mobile-controlled-parent.png",
"sha256": "bdf176f6f2c36a7ac6c69a42b7b1f2e4ae220c89acb6e85f804d3346f515408f"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-49aec7a4-63d2-4e3c-8f32-27affba1e652\\mobile-controlled-input.png",
"sha256": "f15ecced0577768d72cbb7f2e5fc1f04ac23190baa8fa71314d159899d1e9d33"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-49aec7a4-63d2-4e3c-8f32-27affba1e652\\mobile-controlled-approval.png",
"sha256": "c4222fa49198553d690f3e5cb9dd0329c878acb2542acf25b6232f2993e31105"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-49aec7a4-63d2-4e3c-8f32-27affba1e652\\controlled-ui-failure.png",
"sha256": "fff671875da0f3c94d9405b061df68f1d035eae2c05cdca8b909560fc907804c"
}
],
"pageErrors": [],
"requestFailures": [],
"realModelRequests": 0
}
+66
View File
@@ -0,0 +1,66 @@
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
PASS actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure
PASS 390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-ui-fdc8d41a-0600-410b-9bb3-e4e15f0338d8
node:internal/modules/run_main:107
triggerUncaughtException(
^
locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for getByRole('button', { name: '本地代理引擎', exact: true })
- locator resolved to <button type="button" title="本地代理引擎" aria-label="本地代理引擎" class="icon-button ">…</button>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="独立开发工作区" class="task-record-section workspace-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 20ms
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="独立开发工作区" class="task-record-section workspace-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 100ms
57 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="独立开发工作区" class="task-record-section workspace-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 500ms
at D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:72:67 {
log: [
" - waiting for getByRole('button', { name: '本地代理引擎', exact: true })",
' - locator resolved to <button type="button" title="本地代理引擎" aria-label="本地代理引擎" class="icon-button ">…</button>',
' - attempting click action',
' 2 × waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="独立开发工作区" class="task-record-section workspace-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 20ms',
' 2 × waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="独立开发工作区" class="task-record-section workspace-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 100ms',
' 57 × waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="独立开发工作区" class="task-record-section workspace-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 500ms'
],
name: 'TimeoutError'
}
Node.js v24.22.1
+28
View File
@@ -0,0 +1,28 @@
{
"passed": false,
"targetVersion": "1.14.0",
"testedVersion": "1.13.0",
"error": "locator.click: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('button', { name: '本地代理引擎', exact: true })\u001b[22m\n\u001b[2m - locator resolved to <button type=\"button\" title=\"本地代理引擎\" aria-label=\"本地代理引擎\" class=\"icon-button \">…</button>\u001b[22m\n\u001b[2m - attempting click action\u001b[22m\n\u001b[2m 2 × waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"独立开发工作区\" class=\"task-record-section workspace-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 20ms\u001b[22m\n\u001b[2m 2 × waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"独立开发工作区\" class=\"task-record-section workspace-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 100ms\u001b[22m\n\u001b[2m 57 × waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"独立开发工作区\" class=\"task-record-section workspace-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\n at D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:72:67",
"assertions": [
"desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls",
"actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure",
"390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-fdc8d41a-0600-410b-9bb3-e4e15f0338d8\\desktop-controlled-parent.png",
"sha256": "0421ac6c5829527934a03f618160b8724f2f3b852546d4214bb8d45d406c23a9"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-fdc8d41a-0600-410b-9bb3-e4e15f0338d8\\mobile-controlled-parent.png",
"sha256": "78b97d46c9814fe8c4adef128f7e8a07669568ea7317b4ed307800d5b6c0cb89"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-fdc8d41a-0600-410b-9bb3-e4e15f0338d8\\controlled-ui-failure.png",
"sha256": "51eecbf2af69cd59daad9643bd2ff9ecc162fe8396a0bb5e71e4b58a17f43057"
}
],
"pageErrors": [],
"requestFailures": [],
"realModelRequests": 0
}
+136
View File
@@ -0,0 +1,136 @@
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
PASS actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure
PASS 390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow
PASS mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes
PASS closing a run view ignores an old delayed record failure and keeps the selected task unchanged
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\controlled-ui-cf2d8705-adc9-4d61-90a0-a38908e5cb00
node:internal/modules/run_main:107
triggerUncaughtException(
^
locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('.approval-card').getByRole('button', { name: '确认执行', exact: true })
- locator resolved to <button class="button primary">…</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <p class="record-empty">先固定要完成的步骤,再用读取、改动、检查或页面结果核验。</p> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 20ms
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 100ms
14 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <p class="record-empty">先固定要完成的步骤,再用读取、改动、检查或页面结果核验。</p> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events
- retrying click action
- waiting 500ms
at D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:87:235 {
log: [
" - waiting for locator('.approval-card').getByRole('button', { name: '确认执行', exact: true })",
' - locator resolved to <button class="button primary">…</button>',
' - attempting click action',
' - waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <p class="record-empty">先固定要完成的步骤,再用读取、改动、检查或页面结果核验。</p> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 20ms',
' 2 × waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 100ms',
' 14 × waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 500ms',
' - waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <p class="record-empty">先固定要完成的步骤,再用读取、改动、检查或页面结果核验。</p> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 500ms',
' - waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 500ms',
' - waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 500ms',
' - waiting for element to be visible, enabled and stable',
' - element is visible, enabled and stable',
' - scrolling into view if needed',
' - done scrolling',
' - <section aria-label="执行计划" aria-busy="false" class="task-record-section task-plan-panel">…</section> from <aside class="inspector">…</aside> subtree intercepts pointer events',
' - retrying click action',
' - waiting 500ms'
],
name: 'TimeoutError'
}
Node.js v24.22.1
+34
View File
@@ -0,0 +1,34 @@
{
"passed": false,
"targetVersion": "1.14.0",
"testedVersion": "1.13.0",
"error": "locator.click: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for locator('.approval-card').getByRole('button', { name: '确认执行', exact: true })\u001b[22m\n\u001b[2m - locator resolved to <button class=\"button primary\">…</button>\u001b[22m\n\u001b[2m - attempting click action\u001b[22m\n\u001b[2m - waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"执行计划\" aria-busy=\"false\" class=\"task-record-section task-plan-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <p class=\"record-empty\">先固定要完成的步骤,再用读取、改动、检查或页面结果核验。</p> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 20ms\u001b[22m\n\u001b[2m 2 × waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"执行计划\" aria-busy=\"false\" class=\"task-record-section task-plan-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 100ms\u001b[22m\n\u001b[2m 14 × waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"执行计划\" aria-busy=\"false\" class=\"task-record-section task-plan-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\u001b[2m - waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <p class=\"record-empty\">先固定要完成的步骤,再用读取、改动、检查或页面结果核验。</p> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\u001b[2m - waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"执行计划\" aria-busy=\"false\" class=\"task-record-section task-plan-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\u001b[2m - waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"执行计划\" aria-busy=\"false\" class=\"task-record-section task-plan-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\u001b[2m - waiting for element to be visible, enabled and stable\u001b[22m\n\u001b[2m - element is visible, enabled and stable\u001b[22m\n\u001b[2m - scrolling into view if needed\u001b[22m\n\u001b[2m - done scrolling\u001b[22m\n\u001b[2m - <section aria-label=\"执行计划\" aria-busy=\"false\" class=\"task-record-section task-plan-panel\">…</section> from <aside class=\"inspector\">…</aside> subtree intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\n at D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:87:235",
"assertions": [
"desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls",
"actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure",
"390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow",
"mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes",
"closing a run view ignores an old delayed record failure and keeps the selected task unchanged"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-cf2d8705-adc9-4d61-90a0-a38908e5cb00\\desktop-controlled-parent.png",
"sha256": "9f902518f2c45381bf2db5b566e2e5a7d3cc6d42d25d19569b33a7503e50e6c7"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-cf2d8705-adc9-4d61-90a0-a38908e5cb00\\mobile-controlled-parent.png",
"sha256": "e5d6edd3f80918f77a701e3bbb94f2b9760e082d58a2e4566bbfe1cb232f0d14"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-cf2d8705-adc9-4d61-90a0-a38908e5cb00\\mobile-controlled-input.png",
"sha256": "4af634df09b8426738224c82684b6494443ae86d04ca94fa4f1f47e644b63a6f"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\controlled-ui-cf2d8705-adc9-4d61-90a0-a38908e5cb00\\controlled-ui-failure.png",
"sha256": "6ea3729238e235a38a061d077b0e3e379e3fda81deaaf61c371261bc93f0e1f7"
}
],
"pageErrors": [],
"requestFailures": [],
"realModelRequests": 0
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,11 @@
PASS desktop/390px editor seals the actual parent goal, two scopes and shared budget without model calls or source writes
PASS explicit workspace confirmation creates two distinct Git checkouts and keeps every original source/staging byte
PASS each lane navigates to its original child task, hides unsupported actions and applies only an explicitly reviewed child batch
PASS both UI approvals run real three-test/build checks and collect the original hashed outputs before any parent write
PASS parent UI review applies a new two-file batch and accepts completion only after a fresh real parent check and local Git delivery
PASS 390px conflict review names the real overlapping path, leaves parent files untouched and explicitly retains the original child results
PASS mobile parent stop waits for both held requests, preserves estimated unknown usage and retains the original deadline
PASS switching historical groups quarantines a deliberately late previous-group error and its preview
PASS recovery UI requires reading the original record and rejects changed source instead of acknowledging stale evidence
PASS explicit recovery retention preserves changed owner source and unknown usage, closes the original goal and unlocks the next plan
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0
@@ -0,0 +1,749 @@
{
"passed": true,
"version": "1.13.0",
"capabilityStage": "1.13 isolated workers",
"evidenceKind": "owned fixture and real local tools/UI",
"realModelRequests": 0,
"assertions": [
"desktop/390px editor seals the actual parent goal, two scopes and shared budget without model calls or source writes",
"explicit workspace confirmation creates two distinct Git checkouts and keeps every original source/staging byte",
"each lane navigates to its original child task, hides unsupported actions and applies only an explicitly reviewed child batch",
"both UI approvals run real three-test/build checks and collect the original hashed outputs before any parent write",
"parent UI review applies a new two-file batch and accepts completion only after a fresh real parent check and local Git delivery",
"390px conflict review names the real overlapping path, leaves parent files untouched and explicitly retains the original child results",
"mobile parent stop waits for both held requests, preserves estimated unknown usage and retains the original deadline",
"switching historical groups quarantines a deliberately late previous-group error and its preview",
"recovery UI requires reading the original record and rejects changed source instead of acknowledging stale evidence",
"explicit recovery retention preserves changed owner source and unknown usage, closes the original goal and unlocks the next plan"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\mobile-worker-plan.png",
"sha256": "4baef4aaa32a14cd58bb85ff9af021170494de30d653b835cfc796b2074ccbc8"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\desktop-workers-collected.png",
"sha256": "985798ae26a15498fd2afe6e0ae6ac4725457d38b4016306d2d13b0369dc4b6f"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\mobile-workers-conflict.png",
"sha256": "0934454d21257f369e04c867d527176da4c47eaaf3c62fcad6dab39351ef38d7"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\mobile-workers-recovery-retained.png",
"sha256": "692bd82bfa8fbf34f763e166ad24fd0e3ffbb54173647d1d7f2a8384ba4fd8ea"
}
],
"exports": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-a894cef3-e8a1-42ee-9a01-3e7229ae6969-after-8293b062-60ed-4c35-b8b5-6f43e0566781.json",
"sha256": "39e7a23d29170d4271b95f30e665a6af27d41ccbb690d2d683a7910c8eafdb25"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-f63b584b-f1eb-474c-86d8-7374dae0c884-after-8293b062-60ed-4c35-b8b5-6f43e0566781.json",
"sha256": "ae4071a49969ad15313a164649428a1ef07c77b57747c34787ed5ac132ac573a"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-b266e35a-1a23-46a8-82e8-8b4160ad383d-after-8293b062-60ed-4c35-b8b5-6f43e0566781.json",
"sha256": "30ddf8c6970dbb0f84a81ec1b3e20c6027040e989077bf1f7e57f54e8da72026"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-a894cef3-e8a1-42ee-9a01-3e7229ae6969-after-65789f6b-48bf-4458-90db-325817ee1c2c.json",
"sha256": "1b0372d83ddc5cd6d135419e431ca090ee49f2d384f9123b25df30ba84a78a17"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-2a0bd49b-9270-4923-bdf0-48082d20ded4-after-65789f6b-48bf-4458-90db-325817ee1c2c.json",
"sha256": "a29f7751c882484a9065219cf013b05474412c6dca628ffc58267537b8980f9d"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-9138d2d3-7cef-4417-846f-648558811e6f-after-65789f6b-48bf-4458-90db-325817ee1c2c.json",
"sha256": "d56fa4f3ea67900fd306eddf98aa653f44d2ad75885d5a8c61b47eb0a833b958"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-a894cef3-e8a1-42ee-9a01-3e7229ae6969-after-6e4f64ba-ee0f-463c-98c2-c296588c026f.json",
"sha256": "078ab0a07ca41731106bcd7a0fc5b34bbb6ba3c1dbf29a980f5ed20a41e312b5"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-9cf60ddf-a8e0-47a6-b41d-01b8b934dca3-after-6e4f64ba-ee0f-463c-98c2-c296588c026f.json",
"sha256": "27285af1bb65a7a98aa0d8bde88600778db266cd042c2c714b24ff8d539cf07f"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\session-3d506e5c-5f09-4d50-9344-f028417be200-after-6e4f64ba-ee0f-463c-98c2-c296588c026f.json",
"sha256": "2cab941703847d7e790e198a42a6e62902b13db927eb7c9ed0c9026034a095e9"
}
],
"groups": [
"8293b062-60ed-4c35-b8b5-6f43e0566781",
"65789f6b-48bf-4458-90db-325817ee1c2c",
"6e4f64ba-ee0f-463c-98c2-c296588c026f"
],
"fixtureRequests": 22,
"inputs": [
{
"path": "dist-client\\assets\\index-7m5gYucE.css",
"sha256": "465475f5f67ee4f18340cf87541c6e02ca76772f584e4bdaa918076f54610b77"
},
{
"path": "dist-client\\assets\\index-BmlpgZ8K.js",
"sha256": "65947a9b271f88844afffd5cb0a4ae411476dbafa498435563bb5b7fd5ba95b9"
},
{
"path": "dist-client\\favicon.svg",
"sha256": "538fa42445dfd8e78135717e2f30dada6d790d5c05b9011ae7a9bf80d416ae1d"
},
{
"path": "dist-client\\index.html",
"sha256": "ba605880ff2d63be40f209fb6be9fe0eb9de51d1bc56f2fa7606b5dd5d09a093"
},
{
"path": "dist-server\\hot-upgrade.mjs",
"sha256": "1123cd1dc88457176afa3035982315628a340ed664f0979c41f8393da5c48ad2"
},
{
"path": "dist-server\\server.mjs",
"sha256": "eb3f9c727660b543d574638dcc28c6b1f0c6257285fc66c65fa2457e92a619fd"
},
{
"path": "package-lock.json",
"sha256": "54cdcf0680390a842734cbfced4fabfd993dc4b0038b7d5a888520ad87c752ba"
},
{
"path": "package.json",
"sha256": "6a5ac13790ac78cca237c3cb1f7d4d73888415efc9e54829407475c7ba3ceea3"
},
{
"path": "scripts\\Start-Workbench.ps1",
"sha256": "36d8ab194974369afa47ff717e60cad763432ee1f1abb6ccc4e6b1b6b11da253"
},
{
"path": "scripts\\Stop-Workbench.ps1",
"sha256": "f6d12d32006c17fcb20192a73b762592f900ddfcda0cabda6f202e37405d1331"
},
{
"path": "scripts\\build-server.mjs",
"sha256": "67e4ae3f5bd9214bfbf2596e3fb9c2af465ec7364293d37da07c7810c789d15e"
},
{
"path": "scripts\\bundle-browser.mjs",
"sha256": "c9bd500e469d5aa60a69a35d5863a5f2d56b336cbd8f2d5268b5e05f0687d23b"
},
{
"path": "scripts\\bundle-rea.mjs",
"sha256": "90fbc4af57eb2e92d4d92de5be5ac26eb8c99f132efdafe8f3e133ec1db7ffbe"
},
{
"path": "scripts\\engine-fixtures.mjs",
"sha256": "8ca536f1a6f4edb6a03b0508e6f175879eeb39a835149f4f6c8ba806e07266e8"
},
{
"path": "scripts\\inspect-ui.mjs",
"sha256": "81a6e6f96aae44b60c9f382e53d54f673868b3705a4c3eb1d0107c11ff790b88"
},
{
"path": "scripts\\live-react-client.mjs",
"sha256": "6c01ae7b2be7e2b82831c718e72bebe353bab864f97373ed95c5d478ac28b32b"
},
{
"path": "scripts\\package.mjs",
"sha256": "22ffb0a5dc23d654ac4bf6e9d261fc6dd034d4f17a402b5a5356bc08f24365b2"
},
{
"path": "scripts\\python-check-runner.py",
"sha256": "17bd6fd64ad93b8f806e0f5d325e75fd4534c065f4fcb597ad45fb9152caf657"
},
{
"path": "scripts\\qa-evidence.mjs",
"sha256": "257e828d9725de0955eb904cd924874fc07210923940281bf983093aca6c5c1c"
},
{
"path": "scripts\\qa-python-requirements.txt",
"sha256": "bf4dc0555928a3facf67b3370001388d4b65e69a071c339f8b201310bde4486a"
},
{
"path": "scripts\\research-fixtures.mjs",
"sha256": "ba1f5644045ddba894a787cc4d9fa85c9a7e00730e3ea2e9b18d594a43498a8c"
},
{
"path": "scripts\\tune-styles.mjs",
"sha256": "8909eaaff060753745d7d6945377689ca531d784390cdd7d84acf97551d7b1c0"
},
{
"path": "scripts\\upgrade-running.mjs",
"sha256": "51928f911fe71bfffc8cdfe917daaece85269f4dd6e702bd5a2422096359ca52"
},
{
"path": "scripts\\verify-all-ui.mjs",
"sha256": "1ff53abdb41e4a5ead21ec10069d6bae9db446597550c1f566073422621921ac"
},
{
"path": "scripts\\verify-archives.py",
"sha256": "66e5d6b31e04e4c143bf73860635f0da2ea1f707822ca638bc4197a397ca4dde"
},
{
"path": "scripts\\verify-browser-ui.mjs",
"sha256": "c4a99fcf45fc0e1d39024937d481119965349c486422a14b3084264539c4157a"
},
{
"path": "scripts\\verify-browser.mjs",
"sha256": "8ccbe961ce26363079fc8ea30559e57ee78f88926b438e1004d5b3528beacb76"
},
{
"path": "scripts\\verify-change-sets-ui.mjs",
"sha256": "8482868f522bc3d59ae0b0220930e412a6a83ad42c27877f52a108365f4abec4"
},
{
"path": "scripts\\verify-context-ui.mjs",
"sha256": "ce2f507ace0231f5275618ce7a9dab4f89269452883f55ef13ec2676f4a663be"
},
{
"path": "scripts\\verify-controlled-projects.mjs",
"sha256": "aa4409b028f54e3162e7fe39d3f4dc307b5db56704d06128bb1bc258c510aab5"
},
{
"path": "scripts\\verify-controlled-ui.mjs",
"sha256": "9ff6909bd2b55c6a016e0ed8315b767cbef1f8a8241cc35c750f5a4fcbac2529"
},
{
"path": "scripts\\verify-delivery-ui.mjs",
"sha256": "eae0e07b901f0a3da4d595bbc8e214e032d7da45d7d8ea033c034ad45dc34c3d"
},
{
"path": "scripts\\verify-diagnostics-ui.mjs",
"sha256": "476d284fc1b8c086f8d7f44013a44d200ec5b5df2d8b58e52caaedd46e569ab0"
},
{
"path": "scripts\\verify-engines-ui.mjs",
"sha256": "b1ae2b6274d2584ba190faa1818f53f1bc775430f9140cb68ca77d9952756f2e"
},
{
"path": "scripts\\verify-engines.mjs",
"sha256": "c1f0d9949230527cc4933a90e64a68053ef8bc040b14384119998a5a2f223b4d"
},
{
"path": "scripts\\verify-execution-ui.mjs",
"sha256": "f78149dda36baea05cd1f7c36dab0301e3c1c94df70cefb1bb12f51313d383be"
},
{
"path": "scripts\\verify-index-ui.mjs",
"sha256": "04f1b925aff59f06583325d18e69a6160bfae98e87254b3ee2e6fd0dabccdbfb"
},
{
"path": "scripts\\verify-live-browser.mjs",
"sha256": "b1bb7e3ac8ac6c1abec0c90b996bbde0a335e87acb956a05918fc31245ee0b33"
},
{
"path": "scripts\\verify-live-delivery.mjs",
"sha256": "4c45acd05841ddf2a6e0a04ee1d0a9f4c003e34d794318bfe3892a29d474117e"
},
{
"path": "scripts\\verify-live-engineering.mjs",
"sha256": "2e42a1347069c56beb4022627f760a2088751d4f0829606b49d2edd0833d934c"
},
{
"path": "scripts\\verify-live-model.mjs",
"sha256": "848495e2488125eb5e79c9d8b121025f9f740551535dc8529b415b4246da455b"
},
{
"path": "scripts\\verify-live-session.mjs",
"sha256": "f71f22f2355d499afa501f9ba37a04f8b8cf5d404fdfe95b65cc1d324775ac9b"
},
{
"path": "scripts\\verify-live-task-plans.mjs",
"sha256": "577fc325a6b13f7cd21fb8b1ab96f8940afe94e65bffa74046b47af572b1c510"
},
{
"path": "scripts\\verify-mcp-recovery-ui.mjs",
"sha256": "b11e321e0d92efb57d8e76b612c053e6a0229f0f3641721c606a28a61fe12a18"
},
{
"path": "scripts\\verify-mcp-ui.mjs",
"sha256": "c3c93d4ea8109dce1bfb4c91bf3a8b11dc2c7bbee3986c55ed2a4fcde0446d34"
},
{
"path": "scripts\\verify-model-center-ui.mjs",
"sha256": "d4c13f9e328172f973143f7333cdc4f5627c7d33f188f59a6588c1cbd1f8745a"
},
{
"path": "scripts\\verify-project-memory-ui.mjs",
"sha256": "b197345800d805ca3e52094ea660f8eb8d4d90defde2c49dc1a17a4b97270bdb"
},
{
"path": "scripts\\verify-python-ui.mjs",
"sha256": "676e4222a25ca68ed5bbb6661b9f7ec5eac4abaa9de70d9a5eb07a3429ba2457"
},
{
"path": "scripts\\verify-rea.mjs",
"sha256": "cdca5f73ee9f5b2b1fc4cd58ce98a7c0fcd551164879ae3192d67edd8e69491d"
},
{
"path": "scripts\\verify-react-delivery.mjs",
"sha256": "51a6c000d6ff148204d500b8505e2f7589f55a68947b9eabd4097ed0e477d118"
},
{
"path": "scripts\\verify-release.mjs",
"sha256": "fadfffed82aebbc67208dab5de686a63b34059d5e4e6521e3a262016fb9a4c49"
},
{
"path": "scripts\\verify-research-ui.mjs",
"sha256": "0844a6d22e843123afc0d133302096a08c35b9cb7d9dd3bafacf85a2a50b260d"
},
{
"path": "scripts\\verify-skills-ui.mjs",
"sha256": "2139b2caa764c17752edb13f8cc43e0d4643e9c0d4d47c34e6c95b0374efd974"
},
{
"path": "scripts\\verify-source-package.mjs",
"sha256": "c351194c237ec265f532793c90f5c4fbbb802b7256fe5033f513b92a9df8821e"
},
{
"path": "scripts\\verify-task-checkpoints-ui.mjs",
"sha256": "2af7d9abf21b2a13a618ed080e324f61c21a42a386d09c5bd62c7bdf70ec5de2"
},
{
"path": "scripts\\verify-task-plans-ui.mjs",
"sha256": "7a0d5a0c5c59040bd203c65453a0ff9c6282e9bd46c14b573a67a59a8920a5fa"
},
{
"path": "scripts\\verify-tests.mjs",
"sha256": "3e9140831477df004d39187e240ce8e27e8680d051a9353dc6b9b17de81994f4"
},
{
"path": "scripts\\verify-ui.mjs",
"sha256": "d9e7b3e8eb0ff80168acfd5d320685db6d4e1f53827cac4b96cffd5e54c758b6"
},
{
"path": "scripts\\verify-workers-projects.mjs",
"sha256": "9fe0cf44540a9739fdba28741c02e826f89e8504c7165b5587a10e598e5b30c5"
},
{
"path": "scripts\\verify-workers-ui.mjs",
"sha256": "0630855581368c708ad71489449d440798e13fbc7a6ec4235770fb7d584b7b0d"
},
{
"path": "scripts\\verify-workspaces-ui.mjs",
"sha256": "fdf5900e0936b681d030f18a7a5245beacf8ab091b79a495ca823df65e8bb4a7"
},
{
"path": "src\\client\\App.tsx",
"sha256": "78c5a61109a2e7763f7b02120b8cdd3edf8a54b78051ba7bb1dc88420c51092d"
},
{
"path": "src\\client\\BrowserPanel.css",
"sha256": "3032abddc1cfeea3100cb4b34bb2e9e25e965f470c4fd38c73d564dfc80f3450"
},
{
"path": "src\\client\\BrowserPanel.tsx",
"sha256": "24a7479a2740ac72de22dadb556565904fb4525117cddc2a08ab1b766437ce30"
},
{
"path": "src\\client\\ChangeSetPanel.css",
"sha256": "c1ac9307b78e4e42159398e499074d85da395faf7c88f2f485c6b7901d142459"
},
{
"path": "src\\client\\ChangeSetPanel.tsx",
"sha256": "b3a3b3e73bf74a23c08f74d124fe98c6b45e0c048d3fabb745fd488140d58f61"
},
{
"path": "src\\client\\ChangesInspector.tsx",
"sha256": "5799507f52e1414ec573eb1d0452bb3c173728836d3c1644c760b31cab4a3ee4"
},
{
"path": "src\\client\\CodeIndexPanel.css",
"sha256": "76f6f2b32e25df3b3f4c8761273de4963b7b25dff01cbe97b2f5171ec8358286"
},
{
"path": "src\\client\\CodeIndexPanel.tsx",
"sha256": "2574080bbb0aa9ff05571ef406dadd3c008f792cf2443ff1f779f0975a6d97d4"
},
{
"path": "src\\client\\DeliveryPanel.css",
"sha256": "8c12813290c171b616ffb36c002395fc40ff2c7d5b63cd2f13613be435a2d3c6"
},
{
"path": "src\\client\\DeliveryPanel.tsx",
"sha256": "23a9c1519c6b94508f2cabaedd47ccf43f0cdae26d5f956d81b3c26f37f6d531"
},
{
"path": "src\\client\\DiagnosticsPanel.tsx",
"sha256": "a5746d019da37c99af60c69f556b007ea307e2f3a02fcde504b547ed468dd07f"
},
{
"path": "src\\client\\EnginePanel.css",
"sha256": "5a0fc3b6fab7038751f346cdd40e6b4540e8886c0f0c54478c09c18eeaeec1d3"
},
{
"path": "src\\client\\EnginePanel.tsx",
"sha256": "f2ab8989a2050df2b11f681ad530b47cb453cc326c4712f8ca8961acf80af4d1"
},
{
"path": "src\\client\\EngineRunPanel.css",
"sha256": "18a7f4d5f782168c71e44754f2a55d440af384ea79c16945a9b997af8da6849c"
},
{
"path": "src\\client\\EngineRunPanel.tsx",
"sha256": "c84c94568ef1d19a1431bd5a61e1f0212baef1d92078eca940405e44a1166a75"
},
{
"path": "src\\client\\McpJobHistory.tsx",
"sha256": "207ba78dce96c85dedf7ff34f7678dff1e925118fb93dd1d5a144f38c7aaf618"
},
{
"path": "src\\client\\McpPanel.css",
"sha256": "e1c89f3229acb0bb739fcf91e605d09f7d8f38f4f367da1f11835b2b9452538d"
},
{
"path": "src\\client\\McpPanel.tsx",
"sha256": "f1ea14216c4340f6cd76b267763a468bf0d311dd6f8b273afe3ee9cf6768a260"
},
{
"path": "src\\client\\ModelCenter.css",
"sha256": "99f81bc87f634fa77bedd00247500b99314412db36574a58e6e382cca19f903f"
},
{
"path": "src\\client\\ModelCenter.tsx",
"sha256": "bde2746b5e2d3595a5459dff3f6154c44d67853cc57bd8aa3c744428bac3823a"
},
{
"path": "src\\client\\ProjectMemory.css",
"sha256": "0d6c9a23afafa77e7230edd9294299a3d233aa7b49c191d522ee9c106839a1f1"
},
{
"path": "src\\client\\ProjectMemoryPanel.tsx",
"sha256": "b7c140f126bc2d48df00fe4111517e3ea2f43926d52797d26733e1f2522f6a03"
},
{
"path": "src\\client\\RequestContextPanel.tsx",
"sha256": "9b7bd92ff4afc6a8e4c1fd129dea053acb8b135330582643beef62608b737e79"
},
{
"path": "src\\client\\ResearchPanel.css",
"sha256": "f24f8eb283c0b419037adcd680bc1bbe84002abf661bfda94891dcea5fc92682"
},
{
"path": "src\\client\\ResearchPanel.tsx",
"sha256": "cae237fc267a491db18f24f88e0b6926a635225886bfa58683a37f6d4586c8e1"
},
{
"path": "src\\client\\SkillCenter.css",
"sha256": "d9f79bba3be7369a0231434aa29fe061e0c5d1f792aeb7e15e3f2a7744165242"
},
{
"path": "src\\client\\SkillCenter.tsx",
"sha256": "b227ffdccf1d90ac969f1e4e2a56c592b7c9eac13746bf0c90ee9d9e702e9f10"
},
{
"path": "src\\client\\TaskCheckpointPanel.tsx",
"sha256": "77b552924379531eff51c81c5bf4e2512c1201f39641245c781a468e6a7e397a"
},
{
"path": "src\\client\\TaskPanel.css",
"sha256": "6dc737d84406fafd2f1b36ba1eaf02c8b0f59594b30a1fadcf2d3451ada285db"
},
{
"path": "src\\client\\TaskPanel.tsx",
"sha256": "cb781e0c81f4f24b822b4b7472bd4d14cc6591f78a96558f259bc0bd587cb3ec"
},
{
"path": "src\\client\\TaskPlanPanel.css",
"sha256": "e47eb1195a61400d60817de793893d9e4924f334bdf452ffb744ed69741c43fc"
},
{
"path": "src\\client\\TaskPlanPanel.tsx",
"sha256": "3ead0b021ae550b0bc3891b8e852c297f05f895ce3516f693a91d23456ebc1f1"
},
{
"path": "src\\client\\WorkerPanel.css",
"sha256": "b9bbb50cb57339f3ca16242a7f32bbe230d54a1583c4ae46edc2ef68835d02b1"
},
{
"path": "src\\client\\WorkerPanel.tsx",
"sha256": "8326413890bb36d2900e073e61527b71fdbb087f49375f60c95d12481c97445c"
},
{
"path": "src\\client\\WorkspacePanel.css",
"sha256": "d8c4558f6c559ff8b4bbc7723aca08e4e37f8fef8f5b8d5619faec8332314ba3"
},
{
"path": "src\\client\\WorkspacePanel.tsx",
"sha256": "c91d097edd5e044f72583bdccd39848f35a5b82c4d9abf7c09648e21ecfdb8c2"
},
{
"path": "src\\client\\api.ts",
"sha256": "fb763c33f313995402c61f33b6c090ec08ed7d8f93fc051250aa3a417dcd4849"
},
{
"path": "src\\client\\components.tsx",
"sha256": "7b735a151ceb1889702f3127a15a8a2918f6fba7140304c3b81b5662f1b43741"
},
{
"path": "src\\client\\control-console.css",
"sha256": "bbb0f00ff90ea4c8d0f969b4fa95df4e95413b97ab28a204a893a99671a10bc7"
},
{
"path": "src\\client\\main.tsx",
"sha256": "6dec6d76306f0e47b1a9e77004377daa5312270d519a685f169c025a9e071792"
},
{
"path": "src\\client\\styles.css",
"sha256": "2712f7bb0a0145a6945ea904ba95a1a189831fef40108bdc4300400cd4d20218"
},
{
"path": "src\\client\\types.ts",
"sha256": "b1a30d871bee09b0fde5e15d482a8affb19b324feca6ced8b9747b097663bd4d"
},
{
"path": "src\\core\\browser\\browser-driver.mjs",
"sha256": "d63e3ae49bdec13f2f86923c21d4af4d7f1ea1b07c768be3cc85b4833836bdd2"
},
{
"path": "src\\core\\browser\\browser-manager.mjs",
"sha256": "0efc0e30f19a8649c964e1193c455d6cc6f32bfd4a4a5e18fc6ff8014d67b820"
},
{
"path": "src\\core\\browser\\build-snapshot.mjs",
"sha256": "2424f37847e72621327b5c0157f9fc03c1e7dd266ca71292b4b70571f17170a9"
},
{
"path": "src\\core\\check-runner.mjs",
"sha256": "e5038a223039686e35838366c0a23ea5055b2da8c843a255101b137e1106e752"
},
{
"path": "src\\core\\context\\project-index.mjs",
"sha256": "acaa896eca725bcce13a6d34a46267ce70a8a824eac8ca2ffccb91c4d18bd304"
},
{
"path": "src\\core\\context\\read-budget.mjs",
"sha256": "7544a22f8a0f2aeb9f06cd3d43f9eae77cc3141503930571a8c170b1ff4bb0cd"
},
{
"path": "src\\core\\context\\request-plan.mjs",
"sha256": "3d8c158f8b0d7e696a311f642a95f184cf69d38db9859498dbb8d2db6ab85108"
},
{
"path": "src\\core\\context\\tool-feedback.mjs",
"sha256": "7523f2ef18d9fea975d15e665c8c122293fdf52f3c7093ad08e16b8a83b6c95f"
},
{
"path": "src\\core\\context\\working-set.mjs",
"sha256": "61220be2142fff4194b633cf85e39f87c0a71ddf0745ce1406a5bc54977bdb0a"
},
{
"path": "src\\core\\delivery-report.mjs",
"sha256": "a0bb895459be2805684b881f80674f5592c2d55c285adcc30a0657c3a9c7bb5d"
},
{
"path": "src\\core\\engine-manager.mjs",
"sha256": "ec29a945c84ee79a41d30ac3a70296281bdd7d7898cc727a85bb6d78af62f015"
},
{
"path": "src\\core\\engines\\controlled-installation.mjs",
"sha256": "6a65e9c34889e093fe64772199582b115ba7f6b1c0965a5c3507f1098c9019be"
},
{
"path": "src\\core\\engines\\controlled-plugin.mjs",
"sha256": "ffe6bae64285f2e47128d5227f091f2346d923ff9a170b39728f64350b1a47e3"
},
{
"path": "src\\core\\engines\\controlled-session.mjs",
"sha256": "5fae9b63d4ddea31b523fb529d8954766123785aeffe31e067b16325f200f9e9"
},
{
"path": "src\\core\\engines\\deepseek-adapter.mjs",
"sha256": "b5d3e3f1ba74b8d15b002594f13652bbc98761226a3e5e3fb408071762958fa9"
},
{
"path": "src\\core\\engines\\deepseek-installation.mjs",
"sha256": "5bca6da6d1fd972405762b81a4be7936ac597337e310aec2a7d88aa9e5cce7a9"
},
{
"path": "src\\core\\engines\\engine-runner.mjs",
"sha256": "ced3adcea9badc6542e7cd123dc8ea1034f6010b594f058bed5a5e110dfa8c0b"
},
{
"path": "src\\core\\git-delivery.mjs",
"sha256": "106d7f6384f69ecff0cd68ba89f0a45876d37cc0bce537b75490e78e1aae8ca6"
},
{
"path": "src\\core\\git-process.mjs",
"sha256": "80547ec8928610ac4df5a05c5aef12d1aab0dca9e7b1def2773fc745f5adf5f5"
},
{
"path": "src\\core\\memory\\project-memory.mjs",
"sha256": "9c7da0ef9c7f36b431015fd4414f55304f8d5e25a61bc527fb7e3be0b7971e51"
},
{
"path": "src\\core\\models\\config-import.mjs",
"sha256": "70e5884606565d930685b0d0b55f73d9ceaf00dd3525f0fe6d2fdad2f87366bf"
},
{
"path": "src\\core\\models\\model-hub.mjs",
"sha256": "652581d91c8c0e9f1059880aa6ee31016790e06e53e20fff18d36c2c56bad379"
},
{
"path": "src\\core\\owned-process-tree.mjs",
"sha256": "b1742eb2b3db3f661815cd5b3d806197082bcadb7b0ba20a91837590b2a394f4"
},
{
"path": "src\\core\\process-environment.mjs",
"sha256": "05f7ca9bad79ed96a184c96643edffc320aef45567e888341531448f23c89702"
},
{
"path": "src\\core\\project-inspector.mjs",
"sha256": "9e81ed2928fc5dcdb20915a406a8cdc69068deb04fd9d36d0792a86598405782"
},
{
"path": "src\\core\\python-project.mjs",
"sha256": "74e09a96f2e1970b155d37af176379807add0d5a05f72ccd9491d4d494d58707"
},
{
"path": "src\\core\\python-runtime.mjs",
"sha256": "9e9f1b9128295f46404839ad95eaf8bcad60a8c4964756e7c1a1b21cc4add0d7"
},
{
"path": "src\\core\\research-manager.mjs",
"sha256": "15981370de1f02db4acec2c3e1450d068236e1f6ab70f677ec8617aa968fc2dc"
},
{
"path": "src\\core\\skills\\skill-registry.mjs",
"sha256": "63e435d65e3dfe7dff1b1711590b5a4a5ca2efddaa67822087de06facdadf3bb"
},
{
"path": "src\\core\\storage\\artifact-store.mjs",
"sha256": "2934d31a28da215f7ea73a3b5e56d106b723b34539ea8605d523b121762e488a"
},
{
"path": "src\\core\\storage\\legacy-import.mjs",
"sha256": "aa6a6b95d4049c5091d39e8c65ee301a0d6e533e081da59c87f2733bfb5a15ed"
},
{
"path": "src\\core\\storage\\state-database.mjs",
"sha256": "2a38f7564df44c4ee5183d850064be1d46fba7e072e2b87f73afb8e1a85a1517"
},
{
"path": "src\\core\\tasks\\task-checkpoint-manager.mjs",
"sha256": "2f50f9de2e6b8c90376028ed2814eb795633e1ea917ab944a977299220ad820f"
},
{
"path": "src\\core\\tasks\\task-plan-manager.mjs",
"sha256": "4feafa9462ab57f694854c79c846a9ba58fe9313b343341f2ca2a334255eec24"
},
{
"path": "src\\core\\tasks\\worker-manager.mjs",
"sha256": "3a1284e55b6fa8f3cf9a2c42ab448673c8aff874577fab209db7629473614461"
},
{
"path": "src\\core\\tools\\mcp-contract.mjs",
"sha256": "4860792132e2d18caa075ddca8c24687b3692c005a1c6c4c81933e6dc9e0a6bc"
},
{
"path": "src\\core\\tools\\mcp-registry.mjs",
"sha256": "8f52b11ba37d1c350aa279e4890a0c5b00fff3b77fc4f2211a4ea1c07bbadebc"
},
{
"path": "src\\core\\tools\\mcp-stdio.mjs",
"sha256": "1c1081b9356855db5c8964ac5b9f5fb2c79fef5323ff1f933447a06f77cac447"
},
{
"path": "src\\core\\tools\\rea-adapter.mjs",
"sha256": "36f7d2a095fcaef4e1ca056a1f2475e0b15fe1fc48d0179589b41abadf39c6c4"
},
{
"path": "src\\core\\tools\\research-output.mjs",
"sha256": "b9d53487192f12b0d2b0f0922c918b5b3d88a276777cd64903395800ff07c1c0"
},
{
"path": "src\\core\\workspaces\\change-sets.mjs",
"sha256": "c5a9e2886d7ea586f3f4290b167b8aa7d941009a1fd930af1b20c018cbcebc66"
},
{
"path": "src\\core\\workspaces\\git-workspaces.mjs",
"sha256": "0276d2b877acdb065717f7c93154d6999d56a9358b93e50bae7e2c7afc191806"
},
{
"path": "src\\server\\app.mjs",
"sha256": "855da237e17877212ca909967cd79d818ed38c7a00251f6733e4c727ed72d505"
},
{
"path": "src\\server\\diagnostics.mjs",
"sha256": "a5b0166904bb7015e65ac7de614e684e9f83c38f711cbac69ac865f68cf06032"
},
{
"path": "src\\server\\files.mjs",
"sha256": "2a51d87311c896e4adbae9f59f26ce9a4eb70fa1d68e5bb31193069380846816"
},
{
"path": "src\\server\\hot-upgrade.mjs",
"sha256": "5fc691140bc7b380a0fbf412c4a709a684057896a7d8cdb58db55ac96d8f68f7"
},
{
"path": "src\\server\\index.mjs",
"sha256": "16b9d751870188d185ca6b03429376f19b5e7b94fd91a6ce401a096fae74ef64"
},
{
"path": "src\\server\\provider.mjs",
"sha256": "2d22386c679b666de63efcc43d8a5703b166358667d48b17cc544c0cfddc6393"
},
{
"path": "src\\server\\runtime.mjs",
"sha256": "9b362c96e5c78d77afd43ac79b28c1edaae5b4f753f3cf079fef6605914507d9"
},
{
"path": "src\\server\\store.mjs",
"sha256": "4697e0bd0266d305e202c796cf3436a97701fae1bba2434d3663c9b89e29be1b"
},
{
"path": "src\\shared\\contracts\\browser.mjs",
"sha256": "af8f71616097dbbb08bde31bf1cc42c90708802f17ad89b4ba220351fb30f439"
},
{
"path": "src\\shared\\contracts\\change-sets.mjs",
"sha256": "01586cdcffe00129c2b61e4cbf4a622b22306cd5a893620f4a7db441f978f1da"
},
{
"path": "src\\shared\\contracts\\delivery-review.mjs",
"sha256": "1b17efdfa2549801db72eabe439907419a4d85ea07e4d010563db2d483d565f9"
},
{
"path": "src\\shared\\contracts\\engine-execution.mjs",
"sha256": "3d4e35659422d63805b90502e80a95cd4a2367c22e8758251479b5a8895db605"
},
{
"path": "src\\shared\\contracts\\engines.mjs",
"sha256": "cd0a6378682182b8c29884e725a284a7b4f32c1355067883321de071ff113bfb"
},
{
"path": "src\\shared\\contracts\\execution.mjs",
"sha256": "6d25f6048a5fc42358a067d64cd4715e35c19ef99b28c85d739b50e73bdbb544"
},
{
"path": "src\\shared\\contracts\\model-request.mjs",
"sha256": "3744dfa7302dde72d1c24c54e7c00672ff063b45786add2fb19d46233b759e78"
},
{
"path": "src\\shared\\contracts\\research.mjs",
"sha256": "eb970b52f923d7dbfd8e7da49381ce135b8a2ae9d04c0d4321958a2e93d12003"
},
{
"path": "src\\shared\\contracts\\task-plan-tools.mjs",
"sha256": "b14392919e1b551751a6c311004d9d200bc494a7873987c8c0f34a8c4bec1ec1"
},
{
"path": "src\\shared\\contracts\\task-plans.mjs",
"sha256": "c312f4511f495b90ec8983e5c8ecc357e85f67d97b8deda2d052651c3f491adb"
},
{
"path": "src\\shared\\contracts\\workers.mjs",
"sha256": "7f5f50db8996d0449601dc6f219e4b241895745ce52acaa835636d5435ace0f7"
},
{
"path": "src\\shared\\contracts\\workspaces.mjs",
"sha256": "4cd6873ca73de9dac5e73f3aaabe062674c5ca1d50c28a2e2b6eb9e138c32be9"
}
],
"pageErrors": [],
"requestFailures": [],
"url": "http://127.0.0.1:63646",
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-JXmOBF",
"createdAt": "2026-10-30T21:30:49.351Z",
"originalFixture": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workers-ui-33cb41d6-5b56-4475-a1a5-f5e802477da0\\original-fixture"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

+14
View File
@@ -1,7 +1,21 @@
# 汇总发现
- D三个独立报告结构不同:engines使用success/passed数组,workers/controlled使用passed与assertions数组。按原结构核对全部成功;收尾工具不能假设统一groups数字。历史1.13两份报告与Git原字节一致。恢复夹具原Outcome实际cancelled,unknown是声明的后续状态转换;原标签不够精确,后续修正为original outcome而不重写证据。
## 2026-10-31 1.14 受控引擎前置核对
- 复核ensureStorage实际源码后更正升级初步发现:新增CoreKind已有复制core并从原数据库加载缺失map的入口,hot-upgrade会调用它;需用新增engine_run专项验证,不能再写成地图未实现。仍需补workers/controlledEngines活动守卫和保留/重置,以及无引擎历史空数组导出兼容。
- 旧连接UI第二轮c0ec4826仍在0组超时,原完整DOM定位出「不发送模型任务」文字被新布局移入关闭的details,innerText按实际可见性未读到。将说明在连接页标题下实际展示,保留零请求验收,而不是让测试读取隐藏textContent。截图定位曾误用旧.qa/screenshots路径,实际文件在各轮root/screenshots内,原文件未改动。
- D第五轮9f0a2a9c整轮9节点通过,原生+Edge/内存Provider夹具,0页面/请求失败与输入冻结保持。已目视核对桌面原运行、390父控制台/审批/原核对记录:刷新单行42px,主审批实际可点,原输入/报告信息可读,无横向溢出。未知恢复为声明夹具转换,不能写成实际宿主崩溃已在本UI复现。
- 发行前源码审查发现hot-upgrade尚未初始化新增CoreKind,也未重置/门控workers/controlledEngines;executionSnapshot无引擎历史仍增加engineRuns空数组,会改变已有全导出。F需补新kind地图/运行活动守卫与无引擎历史字段兼容,再做实际旧发行升级及完整数据比对。
- D第三轮的「查看并审批检查」原先统一调用navigateWorkspace并打开task检视区,移动端将真正主对话审批遮住。此处应按动作目的导航:approval收起检视区、changes显示改动、其它保留task;这是产品流程修复,不在验收器里强制点击被遮按钮。旧工作区导航第三参数isCurrent契约保留,目的作为第四可选参数。
- D第二轮fdc8d41a已通过76×42/nowrap与无横向溢出,随后验收器点击被移动检视区遮住的工具栏失败。真实截图确认检视区按设计覆盖主栏且右上「关闭检视区」可操作;修正脚本先通过真实关闭入口等待检视区隐藏,再打开引擎/父控制台,不使用force或修改产品遮罩。原两轮界面失败都保留。
- D3b20fb32的真实390px截图已目视核对:单工程/范围/预算/等待审查均正确,刷新按钮实际只有36px高度。WorkerPanel早期media的42px被后续同权重.button36px覆盖,修正精确标题栏选择器并保留76×42与nowrap门槛。原运行已正常结束、全树关闭,本轮整体界面仍判失败。
- E源码入口已区分:独立upstream为dsh-purge1.1.78,Desktop/plugins为1.1.81,两者dshTarget均0.2.1-rc.2、Apache-2.0/YuJunZhiXue。原index.apply即使autoApply关闭仍有默认种子、profile自愈、runtime env和工具注册;原完整plugin不能直接作为受限SDK叠加加载。1.1.81新增apply-progress/profile-insert等调用,必须分别锁定来源。可独立采纳的是明确来源与提示装配/同题对照机制;默认关闭实验策略,保留现有宿主权限、原提示与完整账本,不开放原purge_apply、hooksDenyBypass、自动续跑或宿主补丁。
- 实际Harness三工程首轮350b1623说明工作台原检查结果完整反馈会增加SDK上下文;本地默认16K模型在新Run追加plan_checks/run_checks结果后超过容量,原预算守卫未发出拒绝请求,进程树仍正确关闭。全验收要求每个原生Run正常完成,故保留失败、不只按最后父检查通过判定成功。自有本地工程/界面夹具明确配置64K容量,产品默认与超限守卫不改变;真实模型容量及推理效果继续另验。
+14
View File
@@ -2,6 +2,20 @@
## 2026-10-31 1.14 受控外部引擎阶段
- D收尾:原执行73465正常exit0,连接516f5ca0完整10组、协作33cb41d6完整10节点和受控9f0a2a9c完整9节点全部成功,0页面/请求异常;最新连接原日志复制docs。两份历史1.13报告与HEAD字节一致。恢复标签修正为original outcome,原报告不改写;收尾脚本初次错用数字groups字段而误报,按实际success/passed/assertions结构复核通过。补丁初次使用错误findings标题被原子拒绝,按实际「汇总发现」修正,切片本地封存后进入E。
- 连接兼容第二轮c0ec4826的原DOM确认提示在关闭details内而非可见正文。已将「本页连接检查不发送模型任务」放回标题说明,保持真实可见门槛。原第二轮另存controlled-engine-engines-ui-compatible-second,历史1.13证据原字节已恢复;重构/第三轮验收继续。原CoreKind地图初始化已在ensureStorage中实现,F复核它,不重复开发。
- D旧双任务33cb41d6完整10节点兼容通过;连接界面首轮f8ba9b90在旧说明文案断言超时,原结果0组/原日志保存,按新「本页连接检查不发送模型任务」文案修正,原零请求/归属门槛保持。旧脚本按受测1.13自动写历史docs前缀,已先保留新结果到controlled-engine并按Git原字节恢复旧workers证据,后续F统一1.14独立前缀。
- D第四轮49aec7a4已完成真实390px检查审批及原生检查;切回1440px时脚本使用尚未更新的「关闭检视区」标签,反向打开了桌面检视区。修正为按实际viewport等待React响应式标签切换,桌面不执行移动关闭动作;原5000ms失败/DOM快照保存。不改产品响应式布局或取消断言。
- D第三轮cf2d8705完成5节点,审批导航在390px显示任务检视区并遮住真正审批卡,属实际交互问题。为子任务导航增加明确task/changes/approval目的,检查审批进入主对话并收起检视区,改动审查进入改动页;保留原截图/日志,追加审批页检视区隐藏的实际断言后重新构建/整轮复验。
- D第二轮fdc8d41a完成3节点,窄屏触控/无横向溢出通过;脚本未关闭移动检视区就点击背景工具栏,30秒超时。目视确认真实关闭按钮可用,按既有操作增加closeInspector等待与openEngine入口,原截图/报告/日志保存。下一新轮保持所有原门槛。
- D实际原生界面首轮3b20fb32完成安装封存/提案与全树关闭两个节点后,390px刷新触控42px断言失败,原截图/报告/日志保留。目视截图和CSS确定早期media规则被后面的.worker-console .button同权重36px覆盖;提高精确标题栏规则权重,不降低触控断言。重新构建后继续新独立整轮。
- C第二轮b24613a9完整三工程13节点通过,原生完整协议/全树关闭/空stderr与实际HTTP请求逐次记账核对;父Node8/8、React9/9、Python10/10、实际构建/编译/Git以及React两视口各8项原断言通过,原owner暂存/工作副本/未跟踪字节与保护文件保持,全部冻结输入一致。首轮原失败与Node完整现场分别复制docs,真实模型0请求。
- 一次尝试查询旧打包脚本--help意外进入复制阶段,因为该脚本没有参数校验;自有会话74297立即终止,两份未验收临时1.13目录保留,不作发行。没有重启正式PID23172或改写受测src/scripts/tests/dist输入,C最终冻结比较仍通过;后续F为打包等旧入口增加help/未知参数拒绝,避免误启动。
+134
View File
@@ -0,0 +1,134 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash, randomUUID } from 'node:crypto';
import { chromium, expect } from 'playwright/test';
import { fixture } from '../tests/helpers.mjs';
import { workerHttp } from '../tests/fixtures/workers-http.mjs';
import { EngineRunner } from '../src/core/engines/engine-runner.mjs';
import { resolveControlledInstallation } from '../src/core/engines/controlled-installation.mjs';
import { ownerBytes } from '../tests/fixtures/workers-project.mjs';
if (process.argv.includes('--help')) {
console.log('node scripts/verify-controlled-ui.mjs — real Edge desktop/390px, actual fixed Harness, owned in-memory model fixture, engine selection, reports, approvals, stop and explicit unknown recovery. No configured-model requests.'); process.exit(0);
}
assert.equal(process.argv.length, 2);
const version = JSON.parse(fs.readFileSync('package.json', 'utf8')).version, directory = path.resolve('.qa', 'controlled-ui-' + randomUUID());
const installation = resolveControlledInstallation(process.cwd(), process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT); assert.equal(installation.controlledStatus, 'available', installation.message);
fs.mkdirSync(directory, { recursive: true });
const hash = bytes => createHash('sha256').update(bytes).digest('hex'), disposers = [], t = { after: value => disposers.push(value) };
const f = fixture(t), host = await workerHttp(f), original = ownerBytes(f), assertions = [], screenshots = [], pageErrors = [], requestFailures = [], expectedRejections = [];
f.store.saveConfig({ contextLimit: 64000 });
host.runtime.controlledEngines = new EngineRunner(f.store, host.provider, { directoryRoot: path.join(f.root, 'engine-runs') });
function inputs() {
const files = ['package.json', 'package-lock.json'];
const walk = root => { for (const entry of fs.readdirSync(root, { withFileTypes: true })) { const file = path.join(root, entry.name); if (entry.isDirectory()) walk(file); else if (entry.isFile()) files.push(file); } };
for (const root of ['src', 'scripts', 'dist-client', 'dist-server']) walk(root);
return files.sort().map(file => ({ path: file, sha256: hash(fs.readFileSync(file)) }));
}
const frozen = inputs(), browser = await chromium.launch({ channel: 'msedge', headless: true }), page = await browser.newPage({ viewport: { width: 1440, height: 1000 } });
page.on('pageerror', error => pageErrors.push(error.message)); page.on('requestfailed', request => requestFailures.push(request.url() + ': ' + request.failure()?.errorText));
const panel = () => page.getByLabel('隔离协作控制台', { exact: true }), runPanel = () => page.getByLabel('受控引擎工程运行', { exact: true });
const mark = text => { assertions.push(text); console.log('PASS ' + text); };
async function screenshot(name) { const file = path.join(directory, name + '.png'); await page.screenshot({ path: file, scale: 'css' }); screenshots.push({ file, sha256: hash(fs.readFileSync(file)) }); }
async function closeInspector() {
const close = page.getByRole('button', { name: '关闭检视区', exact: true });
if (page.viewportSize().width > 940) { await expect(close).toHaveCount(0); return; }
await expect(close).toHaveCount(1);
if (await close.isVisible()) { await close.click(); await expect(page.locator('.inspector')).toBeHidden(); }
}
async function openWorkers() { await closeInspector(); await page.getByRole('button', { name: '隔离协作', exact: true }).click(); await expect(panel()).toBeVisible(); await expect(panel().getByRole('button', { name: '刷新', exact: true })).toBeEnabled(); }
async function openEngine() { await closeInspector(); await page.getByRole('button', { name: '本地代理引擎', exact: true }).click(); await expect(runPanel()).toBeVisible(); }
async function parentFromChild() { await openWorkers(); await panel().getByRole('button', { name: '返回父目标', exact: true }).click(); await expect.poll(() => page.evaluate(() => localStorage.getItem('awb-session'))).toBe(f.session.id); await openWorkers(); }
async function start() { await panel().getByRole('button', { name: /开始引擎任务|继续未完成子任务/, exact: true }).click(); await page.getByRole('dialog', { name: '确认受限子执行', exact: true }).getByRole('button', { name: '确认开始', exact: true }).click(); }
async function applyOne() {
if (await page.getByRole('button', { name: '查看改动', exact: true }).isVisible()) await page.getByRole('button', { name: '查看改动', exact: true }).click();
else await page.locator('.inspector-tabs').getByRole('button', { name: /^改动/ }).click();
await page.getByRole('button', { name: '组合审查', exact: true }).click();
await page.getByRole('dialog', { name: '选择要一起审查的提案', exact: true }).getByRole('button', { name: '封存审查范围', exact: true }).click();
const review = page.getByRole('dialog', { name: '多文件变更集审查', exact: true }); await review.getByRole('button', { name: '确认应用全部 1 项', exact: true }).click(); await expect(review).toContainText('全部应用完成'); await page.keyboard.press('Escape');
}
let result, releaseHeld;
try {
await page.addInitScript(({ projectId, sessionId }) => { localStorage.setItem('awb-project', projectId); localStorage.setItem('awb-session', sessionId); }, { projectId: f.project.id, sessionId: f.session.id });
await page.goto(host.url); await page.waitForLoadState('networkidle'); await openWorkers();
await panel().getByLabel('执行方式', { exact: true }).selectOption('deepseek');
const rootField = panel().getByLabel('Harness 安装目录', { exact: true }); await rootField.fill(path.join(f.root, 'missing-installation'));
await panel().getByRole('button', { name: '检测受控安装', exact: true }).click(); await expect(panel()).toContainText('安装尚不可用');
await expect(panel().getByRole('button', { name: '封存分工计划', exact: true })).toBeDisabled();
await rootField.fill(installation.root); await panel().getByRole('button', { name: '检测受控安装', exact: true }).click(); await expect(panel()).toContainText('受控安装可用');
await expect(panel().locator('fieldset')).toHaveCount(1); assert.equal(host.requests.length, 0);
await panel().getByLabel('父目标', { exact: true }).fill('受控原生引擎与正式审查界面验收');
await panel().getByLabel('任务名称', { exact: true }).fill('engine-1'); await panel().getByLabel('独立子目标', { exact: true }).fill('准备范围内提案,审批工程检查并保留原运行记录');
await panel().getByLabel('允许修改的文件或目录', { exact: true }).fill('src/a.mjs');
await panel().getByRole('button', { name: '封存分工计划', exact: true }).click(); await expect(panel()).toContainText('计划已封存');
const group = [...f.store.core.collaboration.values()].at(-1), child = group.children[0]; assert.equal(group.children.length, 1); assert.equal(child.engine.controlledSha256, installation.controlledSha256);
assert.deepEqual(ownerBytes(f), original); mark('desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls');
await panel().getByRole('button', { name: '创建引擎工作区', exact: true }).click(); await expect(page.getByRole('dialog', { name: '确认创建隔离工作区', exact: true })).toContainText('1 个独立 Git 工作区');
await page.getByRole('dialog', { name: '确认创建隔离工作区', exact: true }).getByRole('button', { name: '确认创建', exact: true }).click(); await expect.poll(() => group.status, { timeout: 20000 }).toBe('ready');
await start(); await expect.poll(() => group.status, { timeout: 30000 }).toBe('awaiting_review');
const first = [...f.store.core.engine_run.values()].find(job => job.taskId === child.taskId); assert.equal(first.status, 'completed', first.error); assert.equal(first.native.cleanup.treeConfirmed, true);
await expect(panel().locator('.worker-lane')).toHaveCount(1); await expect(panel()).toContainText('DeepSeek Harness'); await screenshot('desktop-controlled-parent');
mark('actual Harness runs the owned bridge and returns reviewable proposals after confirmed process-tree closure');
await page.setViewportSize({ width: 390, height: 844 }); await panel().locator('.worker-console-heading').scrollIntoViewIfNeeded();
const refresh = panel().getByRole('button', { name: '刷新', exact: true });
const bounds = await refresh.boundingBox(); assert.ok(bounds.width >= 76 && bounds.height >= 42, JSON.stringify(bounds)); assert.equal(await refresh.evaluate(node => getComputedStyle(node).whiteSpace), 'nowrap');
assert.ok(await page.locator('body').evaluate(node => node.scrollWidth <= 390)); await screenshot('mobile-controlled-parent');
mark('390px keeps the real single-engine scope, header and a single-line 42px refresh action without horizontal overflow');
await panel().getByRole('button', { name: '审查子任务改动', exact: true }).click(); await expect.poll(() => page.evaluate(() => localStorage.getItem('awb-session'))).toBe(child.sessionId);
await openEngine(); await expect(runPanel()).toContainText('运行已核验');
await runPanel().getByRole('button', { name: '查看原输入', exact: true }).click(); const inputPreview = page.getByRole('dialog', { name: '引擎原执行输入', exact: true });
await expect(inputPreview).toContainText(first.inputSha256); await expect(inputPreview.getByLabel('引擎运行原记录', { exact: true })).toContainText(child.taskId); await screenshot('mobile-controlled-input');
await inputPreview.getByRole('button', { name: '下一页', exact: true }).click(); await expect(inputPreview.getByRole('button', { name: '回到首页', exact: true })).toBeEnabled(); await page.keyboard.press('Escape');
const downloading = page.waitForEvent('download'); await runPanel().getByRole('button', { name: '下载完整报告', exact: true }).click();
const download = await downloading, reportFile = path.join(directory, download.suggestedFilename()); await download.saveAs(reportFile); assert.equal(hash(fs.readFileSync(reportFile)), first.reportSha256);
mark('mobile child run view shows actual counts and closure, pages original inputs and downloads the exact original report bytes');
let heldRoute; const latePattern = '**/api/sessions/' + child.sessionId + '/engine-runs/' + first.id + '/report**';
await page.route(latePattern, async route => { heldRoute = route; await new Promise(resolve => { releaseHeld = resolve; }); expectedRejections.push('owned previous-run 500 response'); await route.fulfill({ status: 500, contentType: 'application/json', body: '{"error":"Owned late engine record error"}' }); });
await runPanel().getByRole('button', { name: '查看原报告', exact: true }).click(); await expect.poll(() => !!heldRoute).toBe(true); await page.keyboard.press('Escape');
releaseHeld(); await expect.poll(() => expectedRejections.length).toBe(1); await page.unroute(latePattern); await expect(page.getByText('Owned late engine record error', { exact: true })).toHaveCount(0);
mark('closing a run view ignores an old delayed record failure and keeps the selected task unchanged');
await applyOne(); await parentFromChild(); await start(); await expect.poll(() => f.store.session(child.sessionId).status, { timeout: 30000 }).toBe('awaiting_approval');
await panel().getByRole('button', { name: '查看并审批检查', exact: true }).click(); await expect(page.locator('.approval-card')).toContainText('npm'); await expect(page.locator('.inspector')).toBeHidden(); await screenshot('mobile-controlled-approval'); await page.locator('.approval-card').getByRole('button', { name: '确认执行', exact: true }).click();
await expect.poll(() => group.status, { timeout: 30000 }).toBe('ready_to_collect'); await page.setViewportSize({ width: 1440, height: 1000 });
await openEngine(); await expect(runPanel().locator('[data-engine-run]')).toHaveCount(2); await screenshot('desktop-controlled-completed'); await page.keyboard.press('Escape');
assert.equal(f.store.core.task.get(child.taskId).usage.requests, host.requests.length); assert.equal(f.store.core.task.get(child.taskId).usage.totalTokens, host.requests.length * 168);
mark('explicit child file review and check approval create a new native Run, retain previous evidence and account actual model requests once');
await parentFromChild(); await panel().getByRole('button', { name: '核对成果', exact: true }).click(); await expect.poll(() => group.status, { timeout: 15000 }).toBe('collected');
await panel().getByRole('button', { name: '查看原成果记录', exact: true }).click(); await expect(page.getByRole('dialog', { name: '原成果核对记录', exact: true })).toContainText('src/a.mjs'); await page.keyboard.press('Escape');
await panel().getByRole('button', { name: '结束协作并保留现场', exact: true }).click(); await page.getByRole('dialog', { name: '确认保留现场', exact: true }).getByRole('button', { name: '确认保留现场结束', exact: true }).click(); await expect.poll(() => group.status).toBe('resolved_external');
mark('parent collection reads the original controlled-worker proof and explicit retention preserves every owner byte');
const stopped = await host.manager.plan(f.session, { goal: '原生引擎停止与原输入核对', engine: { id: 'deepseek-harness', root: installation.root, controlledSha256: installation.controlledSha256 },
children: [{ label: 'stopped-engine', goal: '停止之后不执行迟到工具', paths: ['src/stopped.mjs'] }] });
await (await host.manager.prepare(f.session, stopped.id, stopped.fingerprint)).promise;
const complete = host.provider.complete; let held = 0;
host.provider.complete = async (_config, _messages, _project, signal) => new Promise((_resolve, reject) => { held++; signal.addEventListener('abort', () => reject(Object.assign(new Error('Owned held native model stopped'), { name: 'AbortError' })), { once: true }); });
await panel().getByRole('button', { name: '刷新', exact: true }).click(); await panel().getByLabel('选择协作记录', { exact: true }).selectOption(stopped.id); await start(); await expect.poll(() => held, { timeout: 30000 }).toBe(1);
await panel().getByRole('button', { name: '停止全部', exact: true }).click(); await expect.poll(() => stopped.status, { timeout: 20000 }).toBe('paused'); host.provider.complete = complete;
const stoppedJob = [...f.store.core.engine_run.values()].find(job => job.taskId === stopped.children[0].taskId);
assert.equal(stoppedJob.status, 'cancelled'); assert.equal(stoppedJob.native.cleanup.treeConfirmed, true); assert.equal(stoppedJob.calls.length, 0); assert.equal(stopped.usage.unknownRequests, 1);
mark('actual native stop closes the owned process tree, preserves one unknown model attempt and dispatches no late tool');
stopped.status = 'unknown'; stopped.requiresVerification = true;
const stoppedWorker = f.store.core.worker.get(stopped.children[0].id); stoppedWorker.status = 'unknown'; stoppedWorker.requiresVerification = true; stoppedWorker.ownerPid = null;
stoppedJob.status = 'unknown'; stoppedJob.requiresVerification = true; stoppedJob.verified = false;
f.store.save(f.store.session(stoppedWorker.sessionId)); f.store.save(f.session);
const originalReport = f.store.artifactStore.read(f.store.core.artifact.get(stoppedJob.reportArtifactId)), originalOutcome = structuredClone(stoppedJob.originalOutcome), previousUsage = structuredClone(stopped.usage);
await page.setViewportSize({ width: 390, height: 844 }); await panel().getByRole('button', { name: '刷新', exact: true }).click(); await expect(panel()).toContainText('结果待核对');
await panel().getByRole('button', { name: '核对原输入与现场', exact: true }).click(); await expect.poll(() => !!stopped.evidence, { timeout: 15000 }).toBe(true);
await expect(panel().getByRole('button', { name: '确认核对并继续', exact: true })).toBeDisabled();
await panel().getByRole('button', { name: '查看核对记录', exact: true }).click(); await expect(page.getByRole('dialog', { name: '原输入与现场核对', exact: true })).toContainText(stoppedJob.inputSha256); await screenshot('mobile-controlled-recovery'); await page.keyboard.press('Escape');
await panel().getByRole('button', { name: '确认核对并继续', exact: true }).click(); await page.getByRole('dialog', { name: '确认原结果核对', exact: true }).getByRole('button', { name: '确认核对并继续', exact: true }).click(); await expect.poll(() => stopped.requiresVerification).toBe(false);
assert.equal(stoppedJob.status, 'resolved_external'); assert.deepEqual(stoppedJob.originalOutcome, originalOutcome); assert.equal(f.store.artifactStore.read(f.store.core.artifact.get(stoppedJob.reportArtifactId)), originalReport); assert.deepEqual(stopped.usage, previousUsage); assert.deepEqual(ownerBytes(f), original);
mark('390px recovery requires reading the owned observation before explicit review and preserves original outcome/report and cumulative budget');
assert.deepEqual(inputs(), frozen); assert.deepEqual(pageErrors, []); assert.deepEqual(requestFailures, []);
result = { passed: true, targetVersion: '1.14.0', testedVersion: version, assertions, screenshots, pageErrors, requestFailures, expectedRejections, installation,
engineRuns: [...f.store.core.engine_run.values()], groups: [group.id, stopped.id], inputs: frozen, realModelRequests: 0,
scope: 'Actual native Harness and Edge with an owned predefined in-memory model fixture. Unknown recovery is a declared fixture transition; actual host-crash behavior is independently tested.' };
} catch (error) { result = { passed: false, targetVersion: '1.14.0', testedVersion: version, error: error.stack, assertions, screenshots, pageErrors, requestFailures, realModelRequests: 0 }; await screenshot('controlled-ui-failure').catch(() => {}); throw error; }
finally {
releaseHeld?.(); await browser.close(); await host.runtime.stopAll(); f.store.storage.database.exec('PRAGMA wal_checkpoint(TRUNCATE)');
fs.cpSync(f.root, path.join(directory, 'original-fixture'), { recursive: true });
for (const session of f.store.sessions.values()) fs.writeFileSync(path.join(directory, 'session-' + session.id + '.json'), JSON.stringify(await host.api('/sessions/' + session.id + '/export'), null, 2));
fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(result, null, 2)); fs.writeFileSync('.qa/controlled-ui-location.json', JSON.stringify({ directory, result: path.join(directory, 'result.json') }));
for (const dispose of disposers.reverse()) await dispose(); console.log('EVIDENCE ' + directory);
}
+1 -1
View File
@@ -53,7 +53,7 @@ async function waitJob(before) {
let result;
try {
assert.notEqual(new URL(host.url).port, '4318'); assert.equal(host.bootstrap.config.hasKey, false);
await open(); assert.equal((await state()).execution.task, null); await textContains(panel(), '本次检查不发送模型任务');
await open(); assert.equal((await state()).execution.task, null); await textContains(panel(), '本页连接检查不发送模型任务');
mark('independent desktop engine entry detects the declared installation and clearly separates connection from project execution');
await panel().getByLabel('DeepSeek安装目录').fill(path.join(root, '不存在的安装')); await panel().getByRole('button', { name: '检测安装', exact: true }).click();
await textContains(panel(), '本地引擎关键输入不完整'); assert.equal(await panel().getByRole('button', { name: '核验连接', exact: true }).isEnabled(), false);
+6 -5
View File
@@ -207,13 +207,14 @@ export default function App() {
if (!isCurrent() || request !== workspaceRequest.current || selectedProjectRef.current !== originProjectId || selectedSessionRef.current !== originSessionId) return;
acceptWorkspaceBootstrap(bootstrap); acceptSession(updated);
}
async function navigateWorkspace(nextProjectId: string, nextSessionId: string, isCurrent: () => boolean = () => true) {
async function navigateWorkspace(nextProjectId: string, nextSessionId: string, isCurrent: () => boolean = () => true, view: 'task' | 'changes' | 'approval' = 'task') {
const originProjectId = selectedProjectRef.current, originSessionId = selectedSessionRef.current, request = ++workspaceRequest.current;
const [bootstrap, next] = await Promise.all([api<Bootstrap>('/bootstrap'), api<Session>('/sessions/' + nextSessionId)]);
if (!isCurrent() || request !== workspaceRequest.current || selectedProjectRef.current !== originProjectId || selectedSessionRef.current !== originSessionId) return;
if (next.projectId !== nextProjectId || next.archived || !bootstrap.projects.some(value => value.id === nextProjectId)) throw new Error('目标会话已归档或项目身份发生变化,请从项目栏选择当前会话。');
acceptWorkspaceBootstrap(bootstrap);
await chooseProject(nextProjectId, nextSessionId); acceptSession(next); showInspector('task');
await chooseProject(nextProjectId, nextSessionId); acceptSession(next);
if (view === 'approval') setWide(false); else showInspector(view);
}
async function newSession() {
if (sessionCreation.current) return sessionCreation.current;
@@ -527,7 +528,7 @@ export default function App() {
<IconButton label="项目MCP工具" onClick={() => setMcpOpen(true)} disabled={!selectedProject || restrictedWorker}><Puzzle size={15} /></IconButton>
<IconButton label="查看任务记录" onClick={() => showInspector('task')}><ClipboardCheck size={15} /></IconButton>
<IconButton label="隔离协作" onClick={() => setWorkersOpen(true)} disabled={!session}><GitBranch size={15} /></IconButton>
<IconButton label="本地代理引擎" onClick={() => setEngineOpen(true)} disabled={!session || restrictedWorker}><Link2 size={15} /></IconButton>
<IconButton label="本地代理引擎" onClick={() => setEngineOpen(true)} disabled={!session || restrictedWorker && !session.execution?.workers?.some(value => value.engine)}><Link2 size={15} /></IconButton>
<IconButton label="REA 工件研究" onClick={() => void openRea()} disabled={!selectedProject || creatingSession || restrictedWorker}><BookOpenText size={15} /></IconButton>
{narrow && <><IconButton label="查看文件" onClick={() => showInspector('file')}><FileCode2 size={16} /></IconButton><IconButton label="查看改动" onClick={() => showInspector('changes')}><GitBranch size={16} /></IconButton><IconButton label="查看执行轨迹" onClick={() => showInspector('trace')}><SquareTerminal size={16} /></IconButton></>}
{pending.length > 0 && <button className="text-button review-toolbar" onClick={() => { setChangeId(pending[0].id); showInspector('changes'); }}><FileCode2 size={13} />审核 {pending.length} 项</button>}
@@ -567,13 +568,13 @@ export default function App() {
<details className="budget-settings"><summary>上下文与任务预算<ChevronDown size={13} /></summary><div className="budget-fields"><label>上下文预算<input type="number" min={1000} max={200000} value={settings.contextLimit} onChange={event => setSettings(previous => ({ ...previous, contextLimit: Number(event.target.value) }))} /></label><label>最大工具轮次<input type="number" min={1} max={30} value={settings.maxSteps} onChange={event => setSettings(previous => ({ ...previous, maxSteps: Number(event.target.value) }))} /></label><label>输出上限<input type="number" min={256} max={16000} value={settings.maxOutputTokens} onChange={event => setSettings(previous => ({ ...previous, maxOutputTokens: Number(event.target.value) }))} /></label><label>运行时间(分钟)<input aria-label="运行时间预算" type="number" min={1} max={60} value={settings.maxRunDurationMs / 60000} onChange={event => setSettings(previous => ({ ...previous, maxRunDurationMs: Number(event.target.value) * 60000 }))} /></label><label>单次运行 tokens<input aria-label="单次运行token预算" type="number" min={1000} max={2000000} value={settings.maxRunTokens} onChange={event => setSettings(previous => ({ ...previous, maxRunTokens: Number(event.target.value) }))} /></label><label>任务累计 tokens<input aria-label="任务累计token预算" type="number" min={1000} max={10000000} value={settings.maxTaskTokens} onChange={event => setSettings(previous => ({ ...previous, maxTaskTokens: Number(event.target.value) }))} /></label></div><p>上下文使用本地估算;实际用量与未知用量分开保存。达到预算会暂停,已完成的工具结果保留。</p></details>{anyRunning && <p className="form-warning">有任务在执行,请先停止任务再改变连接。</p>}<div className="modal-actions"><button type="button" className="button secondary" onClick={() => setSettingsOpen(false)}>取消</button><button type="submit" className="button primary" disabled={settingsBusy || anyRunning}><Check size={15} />保存连接</button></div></form></Modal>}
{diagnosticsOpen && <Modal title="运行诊断" description="查看工作台的模型连接、终端环境、最近错误和文件实际状态。" wide onClose={() => setDiagnosticsOpen(false)}><DiagnosticsPanel value={diagnostics} busy={diagnosticsBusy} onRefresh={() => openDiagnostics()} /></Modal>}
{reaOpen && session && selectedProject && <Modal title="REA 工件研究" description="原分析与同一项目、任务和运行绑定。" wide onClose={() => setReaOpen(false)}><ResearchPanel key={session.id} project={selectedProject} session={session} onSession={acceptSession} onError={failureFor(session)} busy={isRunning} /></Modal>}
{engineOpen && session && selectedProject && <Modal title="本地代理引擎" description="本地安装、实际连接与原检查记录。" wide onClose={() => setEngineOpen(false)}><EnginePanel key={session.id} project={selectedProject} session={session} onSession={acceptSession} onError={failureFor(session)} busy={isRunning} /></Modal>}
{engineOpen && session && selectedProject && <Modal title="本地代理引擎" description="本地安装、受控工程运行与原记录。" wide onClose={() => setEngineOpen(false)}><EnginePanel key={session.id} project={selectedProject} session={session} onSession={acceptSession} onError={failureFor(session)} busy={isRunning} onNavigate={async (projectId, sessionId) => { setEngineOpen(false); await navigateWorkspace(projectId, sessionId); }} /></Modal>}
{researchOpen && <Modal title="机制研究与独立设计" description="从分发客户端的静态证据提炼产品机制。运行时与远端服务的未知部分在报告中说明。" wide onClose={() => setResearchOpen(false)}><div className="research-layout"><nav>{researchDocs.map(document => <button className={report?.title === document.title ? 'selected' : ''} key={document.id} onClick={() => loadReport(document.id)}><BookOpenText size={15} /><span><strong>{document.title}</strong><small>{document.description}</small></span></button>)}</nav><article className="research-document">{report && <ResearchContent content={report.content} />}</article></div></Modal>}
{modelCenterOpen && <Modal title="模型中心" description="连接、模型池与执行健康统一管理。" wide onClose={() => setModelCenterOpen(false)}><ModelCenter busy={anyRunning} onConfig={setConfig} onLegacy={() => { setModelCenterOpen(false); openSettings(); }} /></Modal>}
{memoryOpen && selectedProject && <Modal title="项目记忆" description="项目事实与决策绑定源码指纹,变化后自动要求重新核对。" wide onClose={() => setMemoryOpen(false)}><ProjectMemoryPanel key={selectedProject.id + ':' + (session?.id ?? '')} project={selectedProject} session={session?.projectId === selectedProject.id ? session : null} /></Modal>}
{skillsOpen && selectedProject && <Modal title="项目技能" description="管理当前项目的技能来源、版本与启用状态。" wide onClose={() => setSkillsOpen(false)}><SkillCenter key={selectedProject.id} projectId={selectedProject.id} busy={isRunning} /></Modal>}
{mcpOpen && selectedProject && <Modal title="项目 MCP 工具" description="实际探测本地 stdio 服务,选择可以请求的工具,并核对每次运行原记录。" wide onClose={() => setMcpOpen(false)}><McpPanel key={selectedProject.id + ':' + (session?.id ?? '')} projectId={selectedProject.id} session={session?.projectId === selectedProject.id ? session : null} busy={isRunning} onSession={acceptSession} onError={session ? failureFor(session) : failure} /></Modal>}
{workersOpen && session && <Modal title="隔离协作" description="固定父子目标、独立工作区、预算与原成果审查。" wide onClose={() => setWorkersOpen(false)}><WorkerPanel key={session.id} session={session} config={config} busy={isRunning} onSession={acceptSession} onNavigate={async (projectId, sessionId) => { setWorkersOpen(false); await navigateWorkspace(projectId, sessionId); }} onReview={() => { setWorkersOpen(false); showInspector('changes'); }} /></Modal>}
{workersOpen && session && <Modal title="隔离协作" description="固定父子目标、独立工作区、预算与原成果审查。" wide onClose={() => setWorkersOpen(false)}><WorkerPanel key={session.id} session={session} config={config} busy={isRunning} onSession={acceptSession} onNavigate={async (projectId, sessionId, view) => { setWorkersOpen(false); await navigateWorkspace(projectId, sessionId, () => true, view); }} onReview={() => { setWorkersOpen(false); showInspector('changes'); }} /></Modal>}
{toast && <div className="toast" role="status"><span>{toast}</span><IconButton label="关闭提示" onClick={() => setToast('')}><X size={14} /></IconButton></div>}
</div>
);
+10 -5
View File
@@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react';
import { ArrowRight, Check, Download, Fingerprint, Link2, LoaderCircle, Play, RefreshCw, Square, Unplug } from 'lucide-react';
import { api, downloadEngineReport } from './api';
import { Modal } from './components';
import { EngineRunPanel } from './EngineRunPanel';
import type { ArtifactPreview, EngineAvailability, EngineJob, Project, Session } from './types';
import './EnginePanel.css';
@@ -11,8 +12,9 @@ const states: Record<string, string> = { queued: '等待启动', starting: '原
const date = (value: string) => new Date(value).toLocaleString('zh-CN', { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' });
type Preview = { job: EngineJob; page: ArtifactPreview };
export function EnginePanel({ project, session, busy, onSession, onError }: {
export function EnginePanel({ project, session, busy, onSession, onError, onNavigate }: {
project: Project; session: Session; busy: boolean; onSession: (value: Session) => void; onError: (error: unknown) => void;
onNavigate?: (projectId: string, sessionId: string) => Promise<void>;
}) {
const [root, setRoot] = useState(''), [installation, setInstallation] = useState<EngineAvailability | null>(null);
const [checking, setChecking] = useState(false), [pending, setPending] = useState(false);
@@ -21,6 +23,7 @@ export function EnginePanel({ project, session, busy, onSession, onError }: {
const mounted = useRef(true), detection = useRef(0), scope = useRef(0), viewRequest = useRef(0);
const taskId = session.execution?.task?.id ?? null;
const jobs = (session.execution?.engineJobs ?? []).slice().reverse();
const restricted = !!session.execution?.workers?.length;
const running = jobs.some(job => active.includes(job.status)), disabled = busy || running || pending;
useEffect(() => { mounted.current = true; return () => { mounted.current = false; detection.current++; scope.current++; viewRequest.current++; }; }, []);
useEffect(() => { scope.current++; viewRequest.current++; setPreview(null); setRetry(null); setViewBusy(false); setPending(false); setNotice(''); }, [taskId]);
@@ -65,8 +68,10 @@ export function EnginePanel({ project, session, busy, onSession, onError }: {
catch (error) { if (mounted.current && current === scope.current) onError(error); }
}
return <div className="engine-panel">
<EngineRunPanel session={session} onSession={onSession} onError={onError} onNavigate={onNavigate} />
{!restricted && <>
<header className="engine-heading"><div><span className="engine-eyebrow">{project.name} · 当前任务</span><h3>连接本地代理引擎</h3>
<p>核对本机的 DeepSeek Harness,并将实际检查记录保存到这个任务。</p></div>
<p>本页连接检查不发送模型任务。核对本机的 DeepSeek Harness,并将实际记录保存到这个任务。</p></div>
<span className={'engine-install-state ' + (installation?.status === 'available' ? 'found' : '')} aria-live="polite">
{checking ? '正在检测安装' : installation?.status === 'available' ? '已找到 ' + installation.version : '等待检测'}</span></header>
<div className="engine-layout"><section className="engine-connection">
@@ -83,8 +88,8 @@ export function EnginePanel({ project, session, busy, onSession, onError }: {
{pending ? <LoaderCircle size={14} className="spin" /> : <Play size={14} />}核验连接</button>
</form>
<div className="engine-scope"><h4>当前可用能力</h4><p><Check size={14} />原程序连接与独立进程停止</p><p><Check size={14} />同任务保存原记录与来源</p>
<div className="engine-scope-next"><span>工程执行接入中</span><p>本次检查不发送模型任务。完成连接核验后,继续接入工程工具与交付流程。</p></div>
<details><summary>连接与执行范围</summary><p>每次检查启动一个独立进程。停止只作用于这个检查;SDK 会话目录、协议版本与完整错误保存在原记录。当前版本没有开放外部引擎修改工程。</p></details></div>
<div className="engine-scope-next"><span>受控工程执行</span><p>在「隔离协作」选择 DeepSeek Harness,封存实际安装、范围和预算后开始;提案、检查和父成果沿用工作台审查。</p></div>
<details><summary>连接与执行范围</summary><p>本页连接检查不发送模型任务。工程执行使用单独的所属进程和任务记录;实际模型尝试由工作台连接发送,文件应用与工程检查由工作台审查。</p></details></div>
</section><section className="engine-results"><div className="engine-results-heading"><h4>本任务连接记录 <span>{jobs.length}</span></h4>
{running && <button type="button" className="button secondary" onClick={() => void stop()} disabled={pending}><Square size={13} />停止检查</button>}</div>
{!jobs.length && <div className="engine-empty"><Unplug size={25} /><strong>先验证这个安装能否连接</strong><p>检查完成后,可以查看实际启动、协议返回和进程结束记录;检查不会调用已配置的模型。</p></div>}
@@ -107,7 +112,7 @@ export function EnginePanel({ project, session, busy, onSession, onError }: {
<dt>原记录 SHA256</dt><dd>{job.reportSha256 ?? '尚未封存'}</dd><dt>模型请求</dt><dd>{job.reportSummary?.modelRequests ?? '尚未核对'}</dd></dl></details>
</article>;
})}
</section></div>
</section></div></>}
{retry && <Modal title="重新核验引擎连接" description="启动一个新的独立检查;原检查记录继续保留。" onClose={() => setRetry(null)}>
<p className="engine-retry-note">{retry.installation.root}</p><p>将重新核对当前安装、启动完成、SDK 返回和进程关闭。本次不会发送模型任务。</p>
<div className="modal-actions"><button className="button secondary" onClick={() => setRetry(null)}>返回记录</button><button className="button primary" disabled={disabled} onClick={() => void start(retry)}><RefreshCw size={14} />开始新的核验</button></div></Modal>}
+33
View File
@@ -0,0 +1,33 @@
.engine-run-panel { --engine-ink:#153047; --engine-muted:#587087; --engine-line:#c7d3de; --engine-blue:#2560a3; display:grid; gap:16px; color:var(--engine-ink); margin-bottom:24px; }
.engine-run-panel > header { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.engine-run-panel > header > div { min-width:0; }
.engine-run-panel header span { font-size:11px; color:var(--engine-muted); }
.engine-run-panel h3 { margin:5px 0 0; font-size:18px; font-weight:650; }
.engine-run-scope { display:flex; gap:12px; border-left:3px solid var(--engine-blue); background:#edf3fa; padding:15px; }
.engine-run-scope svg { flex-shrink:0; }
.engine-run-scope p { margin:6px 0; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.engine-run-panel article { border:1px solid var(--engine-line); border-left:3px solid var(--engine-blue); border-radius:6px; background:white; padding:18px; display:grid; gap:15px; }
.engine-run-panel article.attention { border-left-color:#925619; }
.engine-run-title { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.engine-run-title > div { min-width:0; display:grid; gap:5px; }
.engine-run-title strong { font-size:14px; }
.engine-run-title small { color:var(--engine-muted); font-size:11px; }
.engine-run-state { display:inline-flex; align-items:center; gap:5px; background:#edf3fa; color:var(--engine-blue); font-size:11px; padding:5px 8px; border-radius:3px; white-space:nowrap; }
.engine-run-proof { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-top:1px solid var(--engine-line); border-bottom:1px solid var(--engine-line); }
.engine-run-proof > div { display:flex; align-items:flex-start; gap:6px; padding:12px 9px; min-width:0; border-right:1px solid var(--engine-line); }
.engine-run-proof > div:last-child { border-right:0; }
.engine-run-proof span { display:grid; gap:7px; color:var(--engine-muted); font-size:11px; }
.engine-run-proof strong,.engine-run-proof code { font-size:12px; color:var(--engine-ink); overflow-wrap:anywhere; }
.engine-run-error { margin:0; padding:10px; color:#794d21; background:#fff8ee; border:1px solid #dec6a8; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.engine-run-note,.engine-run-empty { font-size:12px; color:var(--engine-muted); line-height:1.7; margin:0; }
.engine-run-actions,.engine-run-record > div { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.engine-run-panel .button { min-height:38px; white-space:nowrap; font-size:12px; }
.engine-run-panel details { font-size:12px; color:var(--engine-muted); }
.engine-run-panel summary { cursor:pointer; }
.engine-run-panel dl { display:grid; grid-template-columns:100px minmax(0,1fr); gap:8px; margin:12px 0 0; }
.engine-run-panel dd { margin:0; overflow-wrap:anywhere; }
.engine-run-record { display:grid; gap:14px; min-width:0; }
.engine-run-record > code { overflow-wrap:anywhere; font-size:11px; }
.engine-run-record pre { font:12px/1.7 'Cascadia Code',Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; padding:14px; margin:0; max-height:55vh; overflow:auto; background:#edf3fa; border:1px solid #c7d3de; }
.engine-run-record > div > span { font-size:11px; color:#587087; margin-right:auto; }
@media(max-width:620px) { .engine-run-panel > header { align-items:flex-start; flex-wrap:wrap; } .engine-run-panel article { padding:14px; } .engine-run-proof { grid-template-columns:repeat(2,minmax(0,1fr)); } .engine-run-proof > div { border-bottom:1px solid var(--engine-line); } .engine-run-panel .button { min-height:42px; } .engine-run-panel dl { grid-template-columns:70px minmax(0,1fr); } .engine-run-record > div > span { flex-basis:100%; } .worker-engine-install { grid-template-columns:minmax(0,1fr); } }
+62
View File
@@ -0,0 +1,62 @@
import { useEffect, useRef, useState } from 'react';
import { ArrowRight, ArrowUpRight, Download, FileText, Fingerprint, LoaderCircle, ShieldCheck, Square } from 'lucide-react';
import { api, downloadEngineRunReport } from './api';
import { Modal } from './components';
import type { Session, EngineRunView, ArtifactPreview } from './types';
import './EngineRunPanel.css';
const active = ['queued', 'starting', 'initializing', 'running', 'waiting_tool', 'closing', 'stopping'];
const labels: Record<string, string> = { queued: '待启动', starting: '启动中', initializing: '核对启动', running: '执行中', waiting_tool: '等待宿主工具', closing: '核对停止', stopping: '停止中', completed: '运行已核验', failed: '执行未通过', cancelled: '已停止', unknown: '结果待核对', resolved_external: '已保留原未知结果' };
type Preview = { job: EngineRunView; kind: 'input' | 'report'; page: ArtifactPreview };
export function EngineRunPanel({ session, onSession, onError, onNavigate }: {
session: Session; onSession: (session: Session) => void; onError: (error: unknown) => void;
onNavigate?: (projectId: string, sessionId: string) => Promise<void>;
}) {
const jobs = (session.execution?.engineRuns ?? []).slice().reverse(), worker = session.execution?.workers?.[0];
const [preview, setPreview] = useState<Preview | null>(null), [pending, setPending] = useState(false);
const scope = useRef(0), request = useRef(0);
useEffect(() => { scope.current++; request.current++; setPreview(null); setPending(false); return () => { scope.current++; request.current++; }; }, [session.id]);
async function read(job: EngineRunView, kind: 'input' | 'report', offset = 0) {
const generation = scope.current, current = ++request.current; setPending(true);
try {
const page = await api<ArtifactPreview>('/sessions/' + session.id + '/engine-runs/' + job.id + '/' + kind + '?offset=' + offset + '&limit=4000');
if (generation === scope.current && current === request.current) setPreview({ job, kind, page });
} catch (error) { if (generation === scope.current && current === request.current) onError(error); }
finally { if (generation === scope.current && current === request.current) setPending(false); }
}
async function stop() {
const generation = scope.current; setPending(true);
try { const value = await api<Session>('/sessions/' + session.id + '/stop', {}); if (generation === scope.current) onSession(value); }
catch (error) { if (generation === scope.current) onError(error); }
finally { if (generation === scope.current) setPending(false); }
}
async function download(job: EngineRunView) {
const generation = scope.current;
try { await downloadEngineRunReport(session.id, job.id); } catch (error) { if (generation === scope.current) onError(error); }
}
if (!jobs.length && !worker?.engine) return null;
return <section className="engine-run-panel" aria-label="受控引擎工程运行">
<header><div><span>所属独立工程 / 原执行依据</span><h3>受控引擎运行</h3></div>{jobs.some(job => active.includes(job.status)) && <button className="button secondary" disabled={pending} onClick={() => void stop()}><Square size={14} />停止引擎任务</button>}</header>
{worker && <div className="engine-run-scope"><ShieldCheck size={18} /><div><strong>{worker.label}</strong><p>允许修改:{worker.paths.join('、')}。提案、检查和父工程交付沿用原审查。</p>{onNavigate && <button className="text-button" onClick={() => void onNavigate(worker.parentProjectId, worker.parentSessionId)}>返回父目标<ArrowUpRight size={13} /></button>}</div></div>}
{!jobs.length && <p className="engine-run-empty">安装与范围已经封存。请从父目标开始引擎任务。</p>}
{jobs.map(job => <article key={job.id} data-engine-run={job.id} className={job.requiresVerification ? 'attention' : ''}>
<div className="engine-run-title"><div><strong>DeepSeek Harness {job.installation.version}</strong><small>{new Date(job.startedAt).toLocaleString('zh-CN')}</small></div><span className="engine-run-state">{active.includes(job.status) && <LoaderCircle className="spin" size={13} />}{labels[job.status] ?? job.status}</span></div>
<div className="engine-run-proof" aria-label="原引擎执行依据">
<div><Fingerprint size={15} /><span>固定安装<code>{job.installation.controlledSha256?.slice(0, 12)}</code></span></div>
<div><span>所属进程<code>{job.nativeSummary.pid ? 'PID ' + job.nativeSummary.pid : '尚未封存'}</code></span></div>
<div><span>实际模型请求<strong>{job.modelRequests}</strong></span></div>
<div><span>实际工具请求<strong>{job.toolRequests}</strong></span></div>
<div><span>进程树关闭<strong>{job.nativeSummary.treeConfirmed ? '已核对' : job.finishedAt ? '待核对' : '运行中'}</strong></span></div>
</div>
{job.error && <p className="engine-run-error">{job.error}</p>}
{job.status === 'completed' && <p className="engine-run-note">原引擎运行与调用账本已核验。工程完成仍以提案应用、当前检查和父工程交付为准。</p>}
{job.requiresVerification && <p className="engine-run-note">请返回父目标核对原输入与现场。原未知结果保留,继续会创建新的运行。</p>}
{job.review && <p className="engine-run-note">人工核对记录:<code>{job.review.evidenceSha256.slice(0, 16)}</code>。原未知输出未改写为完成。</p>}
<div className="engine-run-actions"><button className="button secondary" disabled={pending} onClick={() => void read(job, 'input')}><FileText size={14} />查看原输入</button><button className="button secondary" disabled={pending || !job.reportArtifactId} onClick={() => void read(job, 'report')}><Fingerprint size={14} />查看原报告</button><button className="text-button" disabled={!job.reportArtifactId} onClick={() => void download(job)}><Download size={14} />下载完整报告</button></div>
<details><summary>任务身份与来源</summary><dl><dt>Task</dt><dd>{job.taskId}</dd><dt>Run</dt><dd>{job.runId}</dd><dt>SDK 会话</dt><dd>{job.sdkSessionId}</dd><dt>安装目录</dt><dd>{job.installation.root}</dd><dt>输入 SHA256</dt><dd>{job.inputSha256}</dd><dt>报告 SHA256</dt><dd>{job.reportSha256 ?? '尚未封存'}</dd><dt>原事件</dt><dd>{job.nativeSummary.notifications} 项</dd></dl></details>
</article>)}
{preview && <Modal title={preview.kind === 'input' ? '引擎原执行输入' : '引擎原运行报告'} description="原字节按 SHA256 核对后分页读取。" wide onClose={() => { request.current++; setPreview(null); setPending(false); }}>
<div className="engine-run-record"><code>{preview.page.sha256}</code><pre aria-label="引擎运行原记录">{preview.page.content}</pre><div><span>{preview.page.offset.toLocaleString()}–{(preview.page.offset + preview.page.content.length).toLocaleString()} / {preview.page.totalCharacters.toLocaleString()} 字符</span><button className="button secondary" disabled={pending || preview.page.offset === 0} onClick={() => void read(preview.job, preview.kind, 0)}>回到首页</button><button className="button secondary" disabled={pending || !preview.page.truncated} onClick={() => void read(preview.job, preview.kind, preview.page.offset + preview.page.content.length)}>下一页<ArrowRight size={14} /></button></div></div>
</Modal>}
</section>;
}
+10
View File
@@ -15,6 +15,15 @@
.worker-plan-form { display: grid; gap: 18px; }
.worker-plan-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
.worker-lanes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.worker-lanes.single { grid-template-columns: minmax(0, 1fr); }
.worker-engine-install { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--worker-line); border-left: 3px solid var(--worker-blue); background: var(--worker-wash); border-radius: 6px; }
.worker-engine-install > div, .worker-engine-install > p { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.worker-engine-install strong { font-size: 13px; }
.worker-engine-install p { margin: 5px 0 0; font-size: 12px; color: var(--worker-muted); }
.worker-console-heading > div { min-width: 0; flex: 1; }
.worker-console-heading > button { flex: 0 0 auto; min-width: 76px; white-space: nowrap; }
.worker-engine-install > button { white-space: nowrap; }
@media(max-width:620px) { .worker-engine-install { grid-template-columns:minmax(0,1fr); } .worker-console .worker-console-heading > button { min-height:42px; } }
.worker-lanes fieldset { border: 1px solid var(--worker-line); border-top: 3px solid var(--worker-blue); border-radius: 6px; padding: 16px; display: grid; gap: 13px; min-width: 0; }
.worker-lanes legend { padding: 0 8px; font-size: 12px; color: var(--worker-muted); }
.worker-budget-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@@ -31,6 +40,7 @@
.worker-status { display: inline-flex; align-items: center; background: #e2ecf6; color: var(--worker-blue); border: 1px solid #c2d5e8; border-radius: 3px; padding: 3px 7px; font-size: 11px; line-height: 1.4; white-space: nowrap; font-weight: 600; }
.worker-status.attention { color: var(--worker-alert); border-color: #dec6a8; background: #fff6e9; }
.worker-goal { font-size: 13px; flex: 1; }
.worker-engine-badge { margin:0; padding:7px 9px; background:var(--worker-wash); border-left:2px solid var(--worker-blue); font-size:11px; color:var(--worker-muted); overflow-wrap:anywhere; }
.worker-scope { border-left: 2px solid var(--worker-line); padding-left: 10px; display: grid; gap: 5px; }
.worker-scope > span, .worker-meter { font-size: 11px; color: var(--worker-muted); }
.worker-summary { color: var(--worker-muted); font-size: 12px; overflow-wrap: anywhere; }
+31 -14
View File
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
import { ArrowUpRight, Check, GitBranch, LoaderCircle, Play, RefreshCw, ShieldCheck, Square } from 'lucide-react';
import { api, downloadBlob } from './api';
import { Modal } from './components';
import type { CollaborationGroup, Config, Session, WorkerView } from './types';
import type { CollaborationGroup, Config, Session, WorkerView, ControlledEngineAvailability } from './types';
import './WorkerPanel.css';
const active = ['preparing', 'starting', 'running', 'stopping', 'collecting', 'merge_preparing', 'reconciling'];
@@ -13,11 +13,14 @@ const splitPaths = (value: string) => value.split(/[\n,,]/).map(path => path.t
export function WorkerPanel({ session, config, busy, onSession, onNavigate, onReview }: {
session: Session; config: Config; busy: boolean; onSession: (value: Session) => void;
onNavigate: (projectId: string, sessionId: string) => Promise<void>; onReview: () => void;
onNavigate: (projectId: string, sessionId: string, view?: 'task' | 'changes' | 'approval') => Promise<void>; onReview: () => void;
}) {
const [view, setView] = useState<WorkerView | null>(null), [selectedId, setSelectedId] = useState('');
const [error, setError] = useState(''), [action, setAction] = useState(''), [loading, setLoading] = useState(false);
const [goal, setGoal] = useState(''), [creating, setCreating] = useState(false);
const [engineMode, setEngineMode] = useState<'workbench' | 'deepseek'>('workbench'), [engineRoot, setEngineRoot] = useState('');
const [engineInstallation, setEngineInstallation] = useState<ControlledEngineAvailability | null>(null), [detectingEngine, setDetectingEngine] = useState(false);
const detection = useRef(0);
const [drafts, setDrafts] = useState([{ label: '核心实现', goal: '', paths: '' }, { label: '独立模块', goal: '', paths: '' }]);
const [tokens, setTokens] = useState(config.maxRunTokens), [steps, setSteps] = useState(Math.min(200, config.maxSteps * 2));
const [duration, setDuration] = useState(Math.floor(config.maxRunDurationMs / 60000)), [toolCalls, setToolCalls] = useState(96);
@@ -32,7 +35,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
catch (failure) { if (generation === scope.current) setError(failure instanceof Error ? failure.message : String(failure)); }
finally { if (fetchPending.current === request) fetchPending.current = null; if (generation === scope.current) setLoading(false); }
}, [session.id]);
useEffect(() => { scope.current++; fetchPending.current = null; setView(null); setSelectedId(''); setCreating(false); void load(); return () => { scope.current++; requestId.current++; }; }, [load]);
useEffect(() => { scope.current++; fetchPending.current = null; setView(null); setSelectedId(''); setCreating(false); setEngineInstallation(null); setEngineMode('workbench'); setDetectingEngine(false); void load(); return () => { scope.current++; requestId.current++; detection.current++; }; }, [load]);
useEffect(() => { void load(true); }, [session.revision, load]);
const group = view?.groups.find(value => value.id === selectedId) ?? view?.groups.at(-1), running = !!group && active.includes(group.status);
selectedGroup.current = group?.id ?? '';
@@ -52,7 +55,8 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
const generation = scope.current; setAction('plan'); setError('');
try {
const result = await api<{ group: CollaborationGroup; session: Session }>('/sessions/' + session.id + '/collaborations', {
goal, children: drafts.map(child => ({ label: child.label, goal: child.goal, paths: splitPaths(child.paths) })),
goal, children: (engineMode === 'deepseek' ? drafts.slice(0, 1) : drafts).map(child => ({ label: child.label, goal: child.goal, paths: splitPaths(child.paths) })),
...(engineMode === 'deepseek' ? { engine: { id: 'deepseek-harness', root: engineInstallation?.root, controlledSha256: engineInstallation?.controlledSha256 } } : {}),
budget: { maxTokens: tokens, maxSteps: steps, maxToolCalls: toolCalls, maxDurationMs: duration * 60000 },
});
if (generation !== scope.current) return;
@@ -60,6 +64,15 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
} catch (failure) { if (generation === scope.current) setError(failure instanceof Error ? failure.message : String(failure)); }
finally { if (generation === scope.current) setAction(''); }
}
async function detectEngine() {
const generation = scope.current, request = ++detection.current; setDetectingEngine(true); setError('');
try {
const result = await api<ControlledEngineAvailability>('/engines/deepseek/controlled-availability' + (engineRoot.trim() ? '?root=' + encodeURIComponent(engineRoot.trim()) : ''));
if (generation !== scope.current || request !== detection.current) return;
setEngineInstallation(result); if (result.root) setEngineRoot(result.root);
} catch (failure) { if (generation === scope.current && request === detection.current) setError(failure instanceof Error ? failure.message : String(failure)); }
finally { if (generation === scope.current && request === detection.current) setDetectingEngine(false); }
}
async function showRecord(group: CollaborationGroup, kind: 'collection' | 'evidence') {
const generation = scope.current; setAction('record'); setError('');
try { const result = await api<unknown>('/sessions/' + session.id + '/collaborations/' + group.id + '/' + kind); if (generation === scope.current && selectedGroup.current === group.id) { setPreview({ title: kind === 'collection' ? '原成果核对记录' : '原输入与现场核对', content: JSON.stringify(result, null, 2), groupId: group.id }); if (kind === 'evidence') setReadEvidenceSha(group.evidence?.sha256 ?? ''); } }
@@ -67,26 +80,30 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
finally { if (generation === scope.current && selectedGroup.current === group.id) setAction(''); }
}
const canPlan = !!view && !view.worker && !busy && !action && view.groups.every(value => ['completed', 'discarded', 'resolved_external'].includes(value.status));
const engineReady = engineInstallation?.controlledStatus === 'available' && !!engineInstallation.controlledSha256;
const visibleDrafts = engineMode === 'deepseek' ? drafts.slice(0, 1) : drafts;
return <div className="worker-console" aria-label="隔离协作控制台">
<div className="worker-console-heading"><div><p className="worker-eyebrow">工程执行 / 隔离协作</p><h2>一个目标,两个独立执行通道</h2><p>分工和预算固定,成果核对后进入父工程审查。</p></div><button className="button secondary" disabled={loading || !!action} onClick={() => void load()}><RefreshCw size={14} />刷新</button></div>
<div className="worker-console-heading"><div><p className="worker-eyebrow">工程执行 / 分工与引擎</p><h2>一个目标,独立执行与审查</h2><p>范围和预算固定,成果核对后进入父工程审查。</p></div><button className="button secondary" disabled={loading || !!action} onClick={() => void load()}><RefreshCw size={14} />刷新</button></div>
{error && <div className="worker-error" role="alert">{error}</div>}
{loading && !view && <p role="status"><LoaderCircle className="spin" size={16} />正在读取当前任务记录</p>}
{view?.worker ? <div className="worker-origin"><ShieldCheck size={22} /><div><h3>当前是受限子任务:{view.worker.label}</h3><p>固定范围:{view.worker.paths.join('、')}。开始、停止全部与成果合并在父目标中处理。</p><button className="button secondary" onClick={() => void onNavigate(view.worker!.parentProjectId, view.worker!.parentSessionId)}>返回父目标<ArrowUpRight size={14} /></button></div></div> : <>
{!!view?.groups.length && <label className="worker-history">协作记录<select value={group?.id ?? ''} onChange={event => { setSelectedId(event.target.value); setCreating(false); }} aria-label="选择协作记录">{view.groups.map(value => <option key={value.id} value={value.id}>{statusLabel(value.status)} · {value.goal.slice(0, 40)}</option>)}</select></label>}
{(!group || creating) && <div className="worker-plan-form">
<label>执行方式<select aria-label="执行方式" value={engineMode} onChange={event => setEngineMode(event.target.value as 'workbench' | 'deepseek')}><option value="workbench">工作台 · 两个受限子任务</option><option value="deepseek">DeepSeek Harness · 一个受控工程</option></select></label>
{engineMode === 'deepseek' && <section className="worker-engine-install" aria-label="受控引擎安装"><label>Harness 安装目录<input value={engineRoot} placeholder="留空检测已知本地安装" onChange={event => { detection.current++; setEngineRoot(event.target.value); setEngineInstallation(null); setDetectingEngine(false); }} /></label><button className="button secondary" disabled={detectingEngine || !!action} onClick={() => void detectEngine()}>{detectingEngine ? <LoaderCircle size={14} className="spin" /> : <ShieldCheck size={14} />}检测受控安装</button>{engineInstallation && <div role="status"><strong>{engineReady ? '受控安装可用' : '安装尚不可用'}</strong><p>{engineInstallation.message}</p>{engineReady && <code>Harness {engineInstallation.version} · {engineInstallation.controlledSha256?.slice(0, 16)}</code>}</div>}<p className="worker-note">模型连接由工作台使用;引擎只提交范围内的提案与检查请求,应用和检查仍需审查。</p></section>}
<label>父目标<textarea value={goal} onChange={event => setGoal(event.target.value)} placeholder="描述需要交付的结果与验收要求" maxLength={20000} rows={3} /></label>
<div className="worker-lanes">{drafts.map((child, index) => <fieldset key={index}><legend>子任务 {index + 1}</legend><label>任务名称<input value={child.label} maxLength={64} onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, label: event.target.value } : value))} /></label><label>独立子目标<textarea value={child.goal} maxLength={8000} rows={3} onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, goal: event.target.value } : value))} /></label><label>允许修改的文件或目录<textarea value={child.paths} rows={2} placeholder="例如 src/parser.mjs,每行一个相对路径" onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, paths: event.target.value } : value))} /></label></fieldset>)}</div>
<div className={'worker-lanes' + (engineMode === 'deepseek' ? ' single' : '')}>{visibleDrafts.map((child, index) => <fieldset key={index}><legend>{engineMode === 'deepseek' ? '引擎工程' : '子任务 ' + (index + 1)}</legend><label>任务名称<input value={child.label} maxLength={64} onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, label: event.target.value } : value))} /></label><label>独立子目标<textarea value={child.goal} maxLength={8000} rows={3} onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, goal: event.target.value } : value))} /></label><label>允许修改的文件或目录<textarea value={child.paths} rows={2} placeholder="例如 src/parser.mjs,每行一个相对路径" onChange={event => setDrafts(values => values.map((value, i) => i === index ? { ...value, paths: event.target.value } : value))} /></label></fieldset>)}</div>
<div className="worker-budget-form"><label>总 token 预算<input type="number" min={1000} max={config.maxRunTokens} value={tokens} onChange={event => setTokens(Number(event.target.value))} /></label><label>总请求轮次<input type="number" min={2} max={200} value={steps} onChange={event => setSteps(Number(event.target.value))} /></label><label>总工具次数<input type="number" min={2} max={512} value={toolCalls} onChange={event => setToolCalls(Number(event.target.value))} /></label><label>总时限(分钟)<input type="number" min={1} max={Math.floor(config.maxRunDurationMs / 60000)} value={duration} onChange={event => setDuration(Number(event.target.value))} /></label></div>
<p className="worker-note">两份预算各分一半,续接沿用累计用量与原时限。来源只检出已提交 HEAD,原暂存和未提交修改保留。</p>
<div className="worker-actions"><button className="button" disabled={!canPlan || !goal.trim() || drafts.some(child => !child.goal.trim() || !splitPaths(child.paths).length)} onClick={() => void create()}><ShieldCheck size={15} />封存分工计划</button>{creating && <button className="button secondary" onClick={() => setCreating(false)}>返回原协作</button>}</div>
<p className="worker-note">{engineMode === 'deepseek' ? '这个引擎工程使用整份预算。' : '两份预算各分一半。'}续接沿用累计用量与原时限,实际模型尝试也计入轮次限制。来源只检出已提交 HEAD。</p>
<div className="worker-actions"><button className="button" disabled={!canPlan || !goal.trim() || visibleDrafts.some(child => !child.goal.trim() || !splitPaths(child.paths).length) || engineMode === 'deepseek' && (!engineReady || detectingEngine)} onClick={() => void create()}><ShieldCheck size={15} />封存分工计划</button>{creating && <button className="button secondary" onClick={() => setCreating(false)}>返回原协作</button>}</div>
</div>}
{group && !creating && <>
<section className="worker-parent"><div className="worker-parent-top"><span className={'worker-status ' + (group.requiresVerification || group.status === 'conflict' ? 'attention' : '')}>{statusLabel(group.status)}</span><code>{group.source.identity.branch} · {group.source.identity.head.slice(0, 12)}</code></div><h3>{group.goal}</h3><p>{group.summary}</p><dl><div><dt>模型</dt><dd>{group.model.mode === 'demo' ? '离线演示' : group.model.model}</dd></div><div><dt>总预算</dt><dd>{number(group.budget.maxTokens)} tokens / {group.budget.maxSteps} 轮 / {group.budget.maxToolCalls} 次工具</dd></div><div><dt>累计用量</dt><dd>{number(group.usage?.accountedTokens)} tokens / {group.usage?.steps ?? 0} 轮 / {group.usage?.toolCalls ?? 0} 次工具</dd></div><div><dt>原修改</dt><dd>{group.source.changedPaths.length ? group.source.changedPaths.map(value => value.path).join('、') : '无未提交修改'}</dd></div></dl></section>
<div className="worker-lanes">{(group.workers ?? []).map((child, index) => <section className="worker-lane" key={child.id}><div className="worker-lane-title"><span>通道 {index + 1}</span><span className={'worker-status ' + (child.requiresVerification ? 'attention' : '')}>{statusLabel(child.sessionStatus === 'awaiting_approval' ? 'awaiting_approval' : child.status)}</span></div><h3>{child.label}</h3><p className="worker-goal">{child.goal}</p><div className="worker-scope"><span>允许修改</span>{child.paths.map(path => <code key={path}>{path}</code>)}</div><p className="worker-meter">{number(child.usage?.accountedTokens)} / {number(child.budget.maxTokens)} tokens · {child.usage?.steps ?? 0}/{child.budget.maxSteps} 轮</p><p className="worker-summary">{child.summary ?? '先创建独立工作区,再开始子任务。'}</p>{child.result && <div className="worker-proof"><Check size={14} />{child.result.paths.length} 个原改动 · 当前检查已封存</div>}<div className="worker-actions">{child.status !== 'unprepared' && <button className="button secondary" onClick={() => void onNavigate(child.projectId, child.sessionId)}>{child.sessionStatus === 'awaiting_approval' ? '查看并审批检查' : child.sessionStatus === 'needs_review' ? '审查子任务改动' : '打开子任务'}<ArrowUpRight size={13} /></button>}{['ready', 'paused', 'failed', 'awaiting_review'].includes(child.status) && !running && child.sessionStatus !== 'needs_review' && <button className="text-button" disabled={!!action || config.mode === 'demo' || group.requiresVerification} onClick={() => setConfirmation({ group, operation: 'start', workerId: child.id })}><Play size={13} />继续子任务</button>}</div></section>)}</div>
<section className="worker-review"><div className="worker-review-title"><GitBranch size={18} /><h3>父工程成果审查</h3></div>{group.collection ? <><p>{group.collection.paths.length} 个路径已核对,原记录 <code>{group.collection.sha256.slice(0, 16)}</code></p>{group.collection.conflicts.length > 0 && <ul className="worker-conflicts">{group.collection.conflicts.map((conflict, i) => <li key={i}><code>{conflict.path}</code><span>{conflict.reason}</span></li>)}</ul>}<button className="text-button" disabled={!!action} onClick={() => void showRecord(group, 'collection')}>查看原成果记录</button></> : <p>等待两个子任务完成实际修改与检查。重叠路径、来源变化或原证据失效会阻止合并。</p>}{group.merge?.changeSetId && <button className="button secondary" onClick={onReview}>打开父工程变更集审查<ArrowUpRight size={14} /></button>}</section>
<section className="worker-parent"><div className="worker-parent-top"><span className={'worker-status ' + (group.requiresVerification || group.status === 'conflict' ? 'attention' : '')}>{statusLabel(group.status)}</span><code>{group.source.identity.branch} · {group.source.identity.head.slice(0, 12)}</code></div><h3>{group.goal}</h3><p>{group.summary}</p><dl><div><dt>模型</dt><dd>{group.model.mode === 'demo' ? '离线演示' : group.model.model}</dd></div><div><dt>执行方式</dt><dd>{group.children[0].engine ? "DeepSeek Harness " + group.children[0].engine.version : "工作台受限子任务"}</dd></div><div><dt>总预算</dt><dd>{number(group.budget.maxTokens)} tokens / {group.budget.maxSteps} 轮 / {group.budget.maxToolCalls} 次工具</dd></div><div><dt>累计用量</dt><dd>{number(group.usage?.accountedTokens)} tokens / {group.usage?.steps ?? 0} 轮 / {group.usage?.toolCalls ?? 0} 次工具 / {group.usage?.requests ?? 0} 次模型请求</dd></div><div><dt>原修改</dt><dd>{group.source.changedPaths.length ? group.source.changedPaths.map(value => value.path).join('、') : '无未提交修改'}</dd></div></dl></section>
<div className={"worker-lanes" + (group.children.length === 1 ? " single" : "")}>{(group.workers ?? []).map((child, index) => <section className="worker-lane" key={child.id}><div className="worker-lane-title"><span>通道 {index + 1}</span><span className={'worker-status ' + (child.requiresVerification ? 'attention' : '')}>{statusLabel(child.sessionStatus === 'awaiting_approval' ? 'awaiting_approval' : child.status)}</span></div><h3>{child.label}</h3>{child.engine && <p className="worker-engine-badge">DeepSeek Harness {child.engine.version} · 固定安装 {child.engine.controlledSha256?.slice(0, 12)}</p>}<p className="worker-goal">{child.goal}</p><div className="worker-scope"><span>允许修改</span>{child.paths.map(path => <code key={path}>{path}</code>)}</div><p className="worker-meter">{number(child.usage?.accountedTokens)} / {number(child.budget.maxTokens)} tokens · {child.usage?.steps ?? 0}/{child.budget.maxSteps} 轮</p><p className="worker-summary">{child.summary ?? '先创建独立工作区,再开始子任务。'}</p>{child.result && <div className="worker-proof"><Check size={14} />{child.result.paths.length} 个原改动 · 当前检查已封存</div>}<div className="worker-actions">{child.status !== 'unprepared' && <button className="button secondary" onClick={() => void onNavigate(child.projectId, child.sessionId, child.sessionStatus === "awaiting_approval" ? "approval" : child.sessionStatus === "needs_review" ? "changes" : "task")}>{child.sessionStatus === 'awaiting_approval' ? '查看并审批检查' : child.sessionStatus === 'needs_review' ? '审查子任务改动' : '打开子任务'}<ArrowUpRight size={13} /></button>}{['ready', 'paused', 'failed', 'awaiting_review'].includes(child.status) && !running && child.sessionStatus !== 'needs_review' && <button className="text-button" disabled={!!action || config.mode === 'demo' || group.requiresVerification} onClick={() => setConfirmation({ group, operation: 'start', workerId: child.id })}><Play size={13} />继续子任务</button>}</div></section>)}</div>
<section className="worker-review"><div className="worker-review-title"><GitBranch size={18} /><h3>父工程成果审查</h3></div>{group.collection ? <><p>{group.collection.paths.length} 个路径已核对,原记录 <code>{group.collection.sha256.slice(0, 16)}</code></p>{group.collection.conflicts.length > 0 && <ul className="worker-conflicts">{group.collection.conflicts.map((conflict, i) => <li key={i}><code>{conflict.path}</code><span>{conflict.reason}</span></li>)}</ul>}<button className="text-button" disabled={!!action} onClick={() => void showRecord(group, 'collection')}>查看原成果记录</button></> : <p>等待 {group.children.length} 个子任务完成实际修改与检查。重叠路径、来源变化或原证据失效会阻止合并。</p>}{group.merge?.changeSetId && <button className="button secondary" onClick={onReview}>打开父工程变更集审查<ArrowUpRight size={14} /></button>}</section>
<div className="worker-actions worker-primary-actions">
{['planned', 'partially_prepared'].includes(group.status) && <button className="button" disabled={!!action || busy} onClick={() => setConfirmation({ group, operation: 'prepare' })}><GitBranch size={15} />创建两个工作区</button>}
{['ready', 'paused', 'awaiting_review'].includes(group.status) && <button className="button" disabled={!!action || running || config.mode === 'demo' || group.requiresVerification || group.workers?.some(child => child.sessionStatus === 'needs_review')} onClick={() => setConfirmation({ group, operation: 'start' })}><Play size={15} />{group.status === 'ready' ? '开始两个子任务' : '继续未完成子任务'}</button>}
{['planned', 'partially_prepared'].includes(group.status) && <button className="button" disabled={!!action || busy} onClick={() => setConfirmation({ group, operation: 'prepare' })}><GitBranch size={15} />{group.children.length === 2 ? '创建两个工作区' : '创建引擎工作区'}</button>}
{['ready', 'paused', 'awaiting_review'].includes(group.status) && <button className="button" disabled={!!action || running || config.mode === 'demo' || group.requiresVerification || group.workers?.some(child => child.sessionStatus === 'needs_review')} onClick={() => setConfirmation({ group, operation: 'start' })}><Play size={15} />{group.status === 'ready' ? group.children.length === 2 ? '开始两个子任务' : '开始引擎任务' : '继续未完成子任务'}</button>}
{running && <button className="button worker-stop" disabled={action === 'stop'} onClick={() => void execute(group, 'stop')}><Square size={14} />停止全部</button>}
{['ready_to_collect', 'collected', 'conflict'].includes(group.status) && <button className="button secondary" disabled={!!action || running} onClick={() => void execute(group, 'collect')}><ShieldCheck size={15} />核对成果</button>}
{group.status === 'collected' && <button className="button" disabled={!!action} onClick={() => void execute(group, 'merge')}><GitBranch size={15} />准备合并审查</button>}
@@ -99,7 +116,7 @@ export function WorkerPanel({ session, config, busy, onSession, onNavigate, onRe
</>}
</>}
<p className="worker-boundary"><ShieldCheck size={14} />独立工作区与受限工具用于约束任务;审批的工程程序仍以本机账户执行。</p>
{confirmation && <Modal title={confirmation.operation === 'start' ? '确认受限子执行' : confirmation.operation === 'prepare' ? '确认创建隔离工作区' : confirmation.operation === 'acknowledge' && !confirmation.retain ? '确认原结果核对' : '确认保留现场'} onClose={() => setConfirmation(null)}><div className="worker-confirm"><p>{confirmation.operation === 'start' ? '将请求已封存模型并使用剩余累计预算。每项工程检查仍在对应子任务中审批;旧工具不会重放。' : confirmation.operation === 'prepare' ? '按已封存 HEAD 串行创建两个独立 Git 工作区。原暂存与未提交修改保持在来源工程。' : confirmation.operation === 'acknowledge' && !confirmation.retain ? '按已阅读的原输入与现场记录解除核对门控。原未知结果保留,继续需要新检查和审批。' : '保留实际工作区、原任务、改动与报告,撤销未执行计划并结束本次协作;本次不记为交付完成。'}<strong>{confirmation.group.goal}</strong></p><button className="button" disabled={!!action || confirmation.operation === 'acknowledge' && readEvidenceSha !== confirmation.group.evidence?.sha256} onClick={() => void execute(confirmation.group, confirmation.operation, { ...(confirmation.workerId ? { workerId: confirmation.workerId } : {}), ...(confirmation.operation === 'acknowledge' ? { evidenceSha256: readEvidenceSha, retain: !!confirmation.retain } : {}) })}>确认{confirmation.operation === 'start' ? '开始' : confirmation.operation === 'prepare' ? '创建' : confirmation.operation === 'acknowledge' && !confirmation.retain ? '核对并继续' : '保留现场结束'}</button></div></Modal>}
{confirmation && <Modal title={confirmation.operation === 'start' ? '确认受限子执行' : confirmation.operation === 'prepare' ? '确认创建隔离工作区' : confirmation.operation === 'acknowledge' && !confirmation.retain ? '确认原结果核对' : '确认保留现场'} onClose={() => setConfirmation(null)}><div className="worker-confirm"><p>{confirmation.operation === 'start' ? '将请求已封存模型并使用剩余累计预算。每项工程检查仍在对应子任务中审批;旧工具不会重放。' : confirmation.operation === 'prepare' ? '按已封存 HEAD 创建 ' + confirmation.group.children.length + ' 个独立 Git 工作区。原暂存与未提交修改保持在来源工程。' : confirmation.operation === 'acknowledge' && !confirmation.retain ? '按已阅读的原输入与现场记录解除核对门控。原未知结果保留,继续需要新检查和审批。' : '保留实际工作区、原任务、改动与报告,撤销未执行计划并结束本次协作;本次不记为交付完成。'}<strong>{confirmation.group.goal}</strong></p><button className="button" disabled={!!action || confirmation.operation === 'acknowledge' && readEvidenceSha !== confirmation.group.evidence?.sha256} onClick={() => void execute(confirmation.group, confirmation.operation, { ...(confirmation.workerId ? { workerId: confirmation.workerId } : {}), ...(confirmation.operation === 'acknowledge' ? { evidenceSha256: readEvidenceSha, retain: !!confirmation.retain } : {}) })}>确认{confirmation.operation === 'start' ? '开始' : confirmation.operation === 'prepare' ? '创建' : confirmation.operation === 'acknowledge' && !confirmation.retain ? '核对并继续' : '保留现场结束'}</button></div></Modal>}
{preview && <Modal title={preview.title} wide onClose={() => setPreview(null)}><div className="worker-record"><button className="button secondary" onClick={() => downloadBlob(new Blob([preview.content], { type: 'application/json' }), 'agent-workbench-collaboration-' + preview.groupId + '.json')}>导出原记录</button><pre>{preview.content}</pre></div></Modal>}
</div>;
}
+5
View File
@@ -40,6 +40,11 @@ export async function downloadEngineReport(sessionId: string, jobId: string) {
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(value.error || '引擎检查记录下载失败。'); }
downloadBlob(await response.blob(), 'agent-workbench-engine-' + jobId + '.json');
}
export async function downloadEngineRunReport(sessionId: string, jobId: string) {
const response = await fetch('/api/sessions/' + sessionId + '/engine-runs/' + jobId + '/download', { headers: { 'X-Workbench-Token': accessToken } });
if (!response.ok) { const value = await response.json().catch(() => ({})); throw new Error(value.error || '原引擎运行记录下载失败。'); }
downloadBlob(await response.blob(), 'agent-workbench-engine-run-' + jobId + '.json');
}
export async function browserImageBlob(sessionId: string, jobId: string, artifactId: string): Promise<Blob> {
const response = await fetch('/api/sessions/' + sessionId + '/browser-jobs/' + jobId + '/images/' + artifactId, { headers: { 'X-Workbench-Token': accessToken } });
+15 -3
View File
@@ -160,9 +160,9 @@ export interface TaskPlanView {
contract_artifact_id?: string; contract_sha256?: string; checked_at?: string; error?: string;
}
export interface TaskPlanReply { session: Session; plan: TaskPlanView; verification?: { status: string; reused?: boolean; proof_id: string; message?: string } }
export interface ExecutionSnapshot { schemaVersion: number; task: Task | null; run: Run | null; runs: RunBrief[]; progress: { totalTools: number; completedTools: number; requiresVerification: { id: string; tool: string; state: string; callId: string }[] }; artifacts: Artifact[]; checks: CheckJob[]; mcpJobs?: McpJob[]; plans?: CheckPlan[]; deliveries?: DeliveryJob[]; deliveryPlans?: DeliveryPlan[]; changeSets?: ChangeSet[]; contextPlans?: ContextPlan[]; workspaces?: WorkspaceRecord[]; researchTargets?: ResearchTarget[]; researchJobs?: ResearchJob[]; engineJobs?: EngineJob[]; browserPlans?: BrowserPlan[]; browserJobs?: BrowserJob[]; taskPlans?: TaskPlanRecord[]; taskProofs?: { id: string; planId: string; stepKey: string; status: string }[]; collaborations?: CollaborationGroup[]; workers?: WorkerRecord[]; workspaceIdentity?: WorkspaceIdentity; accountedTaskTokens: number }
export interface ExecutionSnapshot { schemaVersion: number; task: Task | null; run: Run | null; runs: RunBrief[]; progress: { totalTools: number; completedTools: number; requiresVerification: { id: string; tool: string; state: string; callId: string }[] }; artifacts: Artifact[]; checks: CheckJob[]; mcpJobs?: McpJob[]; plans?: CheckPlan[]; deliveries?: DeliveryJob[]; deliveryPlans?: DeliveryPlan[]; changeSets?: ChangeSet[]; contextPlans?: ContextPlan[]; workspaces?: WorkspaceRecord[]; researchTargets?: ResearchTarget[]; researchJobs?: ResearchJob[]; engineJobs?: EngineJob[]; engineRuns?: EngineRunView[]; browserPlans?: BrowserPlan[]; browserJobs?: BrowserJob[]; taskPlans?: TaskPlanRecord[]; taskProofs?: { id: string; planId: string; stepKey: string; status: string }[]; collaborations?: CollaborationGroup[]; workers?: WorkerRecord[]; workspaceIdentity?: WorkspaceIdentity; accountedTaskTokens: number }
export interface WorkerBudget { maxTokens: number; maxSteps: number; maxToolCalls: number }
export interface WorkerDefinition { id: string; label: string; goal: string; paths: string[]; budget: WorkerBudget; workspaceId: string; projectId: string; sessionId: string; taskId: string }
export interface WorkerDefinition { id: string; label: string; goal: string; paths: string[]; budget: WorkerBudget; workspaceId: string; projectId: string; sessionId: string; taskId: string; engine?: ControlledEngineAvailability }
export interface WorkerRecord extends WorkerDefinition {
collaborationId: string; parentProjectId: string; parentSessionId: string; parentTaskId: string; parentRunId: string;
runId: string; currentRunId: string | null; runIds: string[]; baseCommit: string; fingerprint: string; status: string; requiresVerification: boolean;
@@ -175,7 +175,7 @@ export interface CollaborationGroup {
status: string; phase?: string; requiresVerification: boolean; summary: string; createdAt: string; startedAt: string | null; finishedAt: string | null; deadline: number | null;
model: { mode: string; model: string; baseUrl: string }; budget: WorkerBudget & { maxDurationMs: number };
source: { identity: { root: string; head: string; branch: string; indexSha256: string }; dirty: boolean; changedPaths: { path: string; status: string }[] };
children: WorkerDefinition[]; workers?: WorkerRecord[]; usage?: { accountedTokens: number; steps: number; toolCalls: number; unknownRequests: number };
children: WorkerDefinition[]; workers?: WorkerRecord[]; usage?: { accountedTokens: number; steps: number; toolCalls: number; requests?: number; unknownRequests: number };
collection: { artifactId: string; sha256: string; conflicts: WorkerConflict[]; paths: string[] } | null;
merge: { changeSetId?: string; fingerprint?: string; changeIds?: string[] } | null;
evidence?: { artifactId: string; sha256: string } | null;
@@ -210,6 +210,18 @@ export interface EngineJob {
reportArtifactId?: string; reportSha256?: string; contractSha256: string;
reportSummary?: { status: string; modelRequests: number | null; observedResponses: number; rootExited: boolean | null } | null;
}
export interface ControlledEngineAvailability extends EngineAvailability {
controlledStatus: string; controlledSha256?: string; scope: string; bridgeSha256?: string;
controlledCapabilities?: { text: boolean; nativeSessionResume: boolean; nativeModelCredentials: boolean; cancellationUnit: string };
}
export interface EngineRunView {
id: string; projectId: string; sessionId: string; taskId: string; runId: string; workerId: string; collaborationId: string;
installation: ControlledEngineAvailability; sdkSessionId: string; status: string; requiresVerification: boolean; verified: boolean;
startedAt: string; finishedAt: string | null; error?: string | null; inputArtifactId: string; inputSha256: string;
reportArtifactId?: string; reportSha256?: string; modelRequests: number; toolRequests: number; notificationCount?: number;
nativeSummary: { status: string | null; pid: number | null; rootExited: boolean | null; treeConfirmed?: boolean | null; receipt: { messageId: string } | null; notifications: number };
review?: { source: string; evidenceSha256: string; reviewedAt: string; result: string };
}
export interface ReaAvailability { status: string; version?: string; declaredVersion?: string; message?: string; packageRoot?: string; protocolVersion?: string; operations?: { id: string; name: string; extensions: string[]; label: string }[] }
export interface ResearchTarget { id: string; taskId: string; runId: string; projectId: string; sessionId: string; path: string; sha256: string; bytes: number; extension: string; label: string; source: string; registeredAt: string }
export interface ResearchJob {
+2 -2
View File
@@ -7,8 +7,8 @@
1. [complete] A:新受控安装身份固定原SDK/CLI/Node及七份关键运行器,独立profile叠加禁用原生项目/终端/模型/重试插件。7/7边界专项和实际Harness+本地固定模型2请求/1工具、prompt收据/原活动/wait/正常退出通过;完整原输入和日志封存。原SDK缺失单会话取消/反向审批/安全恢复如实保留,尚不计工程交付。
2. [complete] B:原工具/模型桥接自有Runtime/Store/WorkerManager;原调用命名空间与savedToolResult工件反馈,校验/等待审批后来源核对、单次实际尝试记账、原输入/报告/HTTP归属。67项相关兼容及最新25项内核通过;原首轮15/17断言失败保留,关闭原进程的桥请求追加复核。
3. [complete] C:实际Harness+自有本地HTTP模型夹具完成Node/React/Python三工程13节点,父8/8、9/9、10/10与构建/编译/Git通过,React1280/390各8项原断言通过;每个原生Run正常结束、全树关闭、完整原结果/逐请求用量核对。默认16K夹具首轮失败保留,明确64K容量后新冻结轮通过,产品守卫不改动。
4. [in_progress] D:执行方式/实际安装检测、单引擎工程和分页原运行面板已实现,TS/构建通过;继续真实桌面/390px、停止/核对与窄屏标题栏验收。
5. [pending] E:分别核对Purge 1.1.78/1.1.81来源、兼容性、启停和生效点,建立同题/同预算对照与指标;本地夹具与真实模型收益分开记录,未经重复验证不默认启用。
4. [complete] D:实际固定Harness和Edge桌面/390px完整9节点通过,分页下载原字节、审批目的导航、原生停止/全树关闭及显式未知核对通过;首四轮CSS/遮罩/响应式等待失败保持。旧workers10节点/engines10组完整兼容通过,原1.13证据与Git原字节一致,新结果单独封存。
5. [in_progress] E:Purge 1.1.78/1.1.81九关键来源已分别核对,完整插件包含宿主自愈/修改/重试,不能直接赋予SDK权限。实现默认关闭的自有提示实验与来源锁定、两版本八个同题同预算原生对照;本地夹具与真实模型收益分开记录,未经重复验证不默认启用。
6. [pending] F:按最终固定代码/基准完成相关与完整回归、真实工程/UI、独立源码/便携、发行与保留状态升级;各切片保存原失败、回顾和本地commit。
初步核对:原SDK没有session/cancel,prompt只给入队收据,client/server反向请求审批未实现;sdk-minimal仍包含本机文件/终端工具及danger-full-access策略,不能直接赋予工程写入。本阶段通过自有版本化叠加插件与受限宿主桥接入,实际工具目录和所属账本是验收门槛。完整公开源码使用普通代码工具;需要发行资源与运行观察时复用REA。