test(desktop): verify engineering delivery and native recovery
@@ -18,3 +18,7 @@ docs/desktop-window-*.json -text whitespace=blank-at-eol,blank-at-eof,space-befo
|
||||
docs/desktop-install-*.tap binary
|
||||
docs/desktop-install-*.txt binary
|
||||
docs/desktop-install-*.json -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
|
||||
docs/desktop-projects-*.txt binary
|
||||
docs/desktop-projects-*.json -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
|
||||
docs/desktop-controlled-*.txt binary
|
||||
docs/desktop-controlled-*.json -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 1.15 Windows 桌面宿主与持久连接执行方案
|
||||
|
||||
2026-10-31。A–C已经分别实现、验收和提交(249f191、72a496a、5354d95);D安装和巡检的16项补强回归、6组UI、11组最终实际安装演练通过;E桌面工程正在验收,原生停止/恢复9组通过;F独立发行和正式部署尚未完成。1.14的原445/445、178组界面、三功能工程及发行证据保持,具体前置结果见[1.14验收](QA-1.14.md)。每个切片保留原失败、回顾、复验并本地Git提交,失败的候选不进入正式服务。
|
||||
2026-10-31。A–C已分别实现、验收和提交(249f191、72a496a、5354d95);D的16项补强回归、6组UI、11组实际安装演练通过并提交f7a5969;E的桌面三工程16节点和原生停止/恢复9组通过;F独立发行和正式部署尚未完成。1.14原445/445、178组UI、三工程及发行证据保持,具体前置结果见[1.14验收](QA-1.14.md)。每个切片保留原失败、回顾、复验并本地Git提交,失败的候选不进入正式服务。
|
||||
|
||||
## 本阶段交付目标
|
||||
|
||||
|
||||
@@ -42,9 +42,15 @@ Python依赖缺失的原失败未启动宿主,随后独立桌面虚拟环境
|
||||
|
||||
C#旧compiler不支持deterministic选项,使用源码/图标/编译器SHA绑定的原输出缓存;不宣称C#可复现构建。Inno的自有AppId、损坏候选、指针故障和所属窗口崩溃均明确为隔离QA夹具,不进入产品安装CLI。源码包目录创建及Node完整LICENSE已补齐;离线源码、完整历史回归与正式保留状态部署待F。
|
||||
|
||||
## E:桌面工程和生命周期(验收中)
|
||||
## E:桌面工程和生命周期(通过)
|
||||
|
||||
实际Electron原生引擎选择、报告、审批、停止和显式unknown恢复9组已通过;Node/React/Python完整父工程交付正在复验。原生DownloadItem实际落盘并核对原报告SHA,QA仅选择自有目标路径,没有替换下载过程。原模型请求和原审批期间重开窗口必须保持Task/Run、原持久事件、原完成工具行及审批身份;允许SDK继续追加合法进展事件,原seq仍可从HTTP历史恢复。
|
||||
[三个实际桌面工程16节点](desktop-projects-e-run7-result.json)全部通过,339份源码/测试/脚本/基准/全部构建输入当轮保持。父Node8/8、React9/9、Python10/10与实际ESM/Vite/tsc/Python编译、父文件审查和Git均核对;保护文件和父已有暂存/工作区/未跟踪字节保留。三个工程各保留一次真实检查失败及修复、两次原宿主检查审批,实际7个原生Run正常结束及所属树关闭;分别7/7/9次自有HTTP请求与1176/1176/1512夹具报告tokens,没有真实模型推理。React实际Edge1280/390各8项原功能断言通过。
|
||||
|
||||
实际Electron child/parent文件审查与原检查审批,通过真实按钮完成。模型请求/原审批期间关闭和重开窗口,原Task/Run、全部既有持久事件、原seq的HTTP历史恢复、完整完成工具行SHA与原审批身份保持;SDK合法新增进展不被误判为历史丢失。三个工程的父检查/Git各1440/390截图共12张,原PNG/DOM保持;代表性宽窄截图已人工核对,长目标、预算、版本、完成和父工程说明可读,无横向溢出。
|
||||
|
||||
[实际原生引擎UI9组](desktop-controlled-e-ui-run3-result.json)通过:原安装身份/范围、报告分页、原生DownloadItem下载、迟到错误隔离、原审批、停止和显式unknown核对。下载真实落盘并核对原报告SHA,QA只选择自有保存路径,没有替换DownloadItem,也没有宣称Windows保存框已测试。停止实际结束所属原生树、不派发迟到工具,保留一次未知模型请求;unknown是声明的后续状态夹具,核对不重写原Outcome/报告/累计预算。整台独立宿主的停止/重启另由C/D实际证明,E的工程宿主是自有in-process Node,不从桌面退出整个验收进程。
|
||||
|
||||
原环境根误用、精确seq误判、父审查漏点“审查变更集”、隐藏窗口截图等待绘制、Playwright下载事件、截图后的弹窗遮挡、窄屏自动收起项目栏均保存原失败。修正到实际SDK根、原事件补发、正常界面动作、显示窗口后捕获和原生DownloadItem,不使用force点击或放宽工程/预算/审批断言。[67份原证据](desktop-projects-e-evidence.json)包含失败/通过及PNG/DOM/日志;完整原fixture/工件仍保存在所引QA目录。原UI9组之后,仅共享QA helper增加正常弹窗关闭/项目栏展开,[原/新SHA差异](desktop-projects-e-ui-helper-delta.json)独立登记;产品/构建未改变,F以最终1.15重新验收这个helper。D本地提交f7a5969;E仍是开发版1.14.0,F不可跳过。
|
||||
|
||||
## F:独立发行与正式部署(待执行)
|
||||
|
||||
|
||||
@@ -35,3 +35,11 @@
|
||||
巡检不能把最近50个工件算全历史通过,旧损坏需要分页真实检出;unknown只列归属,不因巡检解除或重放。程序/data磁盘与已登记MCP/活动原生来源均列实际范围。下一E验证原生窗口中的工程交付及事件恢复,F再固定最终版本和独立源码/发行,不用本切片的开发版结果替代正式交付。
|
||||
|
||||
本次封存曾对正在写入的日志调用Get-FileHash而被文件锁拒绝,该不完整复制未计入清单;待原进程正常结束后重新按原字节封存,111份完整映射核对。工具读取曾出现输出截断、Windows路径通配参数和文档补丁上下文不匹配,均收窄到真实文件/完整段落,没有把失败读取作为验收。
|
||||
|
||||
## E回顾
|
||||
|
||||
三个实际桌面工程16节点与9组原生UI通过;339输入、Node8/8、React9/9、Python10/10、七个所属正常原生Run、父文件审查及真实Git核对。每个工程真实失败/修复与两次审批保留,窗口重新打开不重放工具。seq是后台事件位置,不能因关闭UI要求它停止增长;应验证既有事件完整、原游标补发与Task/Run/审批/完成工具原行。已实现这种验收,没有改变原产品预算和审批守卫。
|
||||
|
||||
新适配脚本暴露了几类原假设:父成果按钮只导航到改动区,还需实际审查动作;隐藏Electron窗口截图可能不绘制;Playwright网页下载事件不适合作为本机下载结论;宽窄切换后,弹窗和项目栏状态仍需正常操作。原失败均保存,补正常按钮/关闭/展开及实际DownloadItem,避免把自动化穿透遮罩当真实用户流程。原生DownloadItem落盘和原SHA证明下载过程,Windows保存对话框仍未测。
|
||||
|
||||
本切片继续用自有HTTP模型响应算法和in-process宿主;工程命令、检查、文件审查、Git和原生进程实际运行,但真实模型推理与整宿主退出需要分别判定。当前实际停止/崩溃/重启由C/D覆盖。原9组UI之后的helper小改动单独保存原/新SHA,F最终版本复验;历史报告不重写。下一F同步全部版本/独立证据路径、离线源码含Electron运行依赖及全部构建范围,再完整回归、实际安装和保留状态正式部署。
|
||||
|
||||
|
After Width: | Height: | Size: 141 KiB |
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"passed": false,
|
||||
"targetVersion": "1.14.0",
|
||||
"testedVersion": "1.14.0",
|
||||
"error": "page.screenshot: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - taking page screenshot\u001b[22m\n\u001b[2m - waiting for fonts to load...\u001b[22m\n\u001b[2m - fonts loaded\u001b[22m\n\n at screenshot (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:37:96)\n at D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:76:128",
|
||||
"assertions": [
|
||||
"desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls"
|
||||
],
|
||||
"screenshots": [
|
||||
{
|
||||
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-controlled-ui-c0f42e1f-49c9-46e5-b56e-02c3a443ee38\\controlled-ui-failure.png",
|
||||
"sha256": "950b6d5cfe5ba6cc94ef03aaf44aad72adc505cf4e7e373c22678fb4acdd8f6a"
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"requestFailures": [],
|
||||
"realModelRequests": 0
|
||||
}
|
||||
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 142 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 65 KiB |
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"passed": false,
|
||||
"targetVersion": "1.14.0",
|
||||
"testedVersion": "1.14.0",
|
||||
"error": "page.waitForEvent: Timeout 30000ms exceeded while waiting for event \"download\"\n=========================== logs ===========================\nwaiting for event \"download\"\n============================================================\n at D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-ui.mjs:88:28",
|
||||
"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\\desktop-controlled-ui-9554b920-bd77-43f7-a010-6f3f80d7b29e\\desktop-controlled-parent.png",
|
||||
"sha256": "0a8ebabe4c2b18a238d2303c41d811bfca707d0ead311b2c7d9b2200b717ded7"
|
||||
},
|
||||
{
|
||||
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-controlled-ui-9554b920-bd77-43f7-a010-6f3f80d7b29e\\mobile-controlled-parent.png",
|
||||
"sha256": "e42ebabe7b2bf874dc9be1ff30593cd4722600031da89686b4c9f1237fa56062"
|
||||
},
|
||||
{
|
||||
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-controlled-ui-9554b920-bd77-43f7-a010-6f3f80d7b29e\\mobile-controlled-input.png",
|
||||
"sha256": "527f3071b5e05627d15bc84caaa8acaf5544d23bed746fa4199b3a7166c48e87"
|
||||
},
|
||||
{
|
||||
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-controlled-ui-9554b920-bd77-43f7-a010-6f3f80d7b29e\\controlled-ui-failure.png",
|
||||
"sha256": "e26686e160a46d51058d33d2abbdd21e9a3e6d9dc9ee331902446e5eaaabb70c"
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"requestFailures": [],
|
||||
"realModelRequests": 0
|
||||
}
|
||||
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 84 KiB |
@@ -0,0 +1,23 @@
|
||||
PASS desktop engine selector rejects a missing source, pins the actual installation and seals one original scope without model calls
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-controlled-ui-c0f42e1f-49c9-46e5-b56e-02c3a443ee38
|
||||
node:internal/modules/run_main:107
|
||||
triggerUncaughtException(
|
||||
^
|
||||
|
||||
page.screenshot: Timeout 30000ms exceeded.
|
||||
Call log:
|
||||
- taking page screenshot
|
||||
- waiting for fonts to load...
|
||||
- fonts loaded
|
||||
|
||||
at screenshot (D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:37:96)
|
||||
at D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:76:128 {
|
||||
log: [
|
||||
' - taking page screenshot',
|
||||
' - waiting for fonts to load...',
|
||||
' - fonts loaded'
|
||||
],
|
||||
name: 'TimeoutError'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
@@ -0,0 +1,18 @@
|
||||
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\desktop-controlled-ui-9554b920-bd77-43f7-a010-6f3f80d7b29e
|
||||
node:internal/modules/run_main:107
|
||||
triggerUncaughtException(
|
||||
^
|
||||
|
||||
page.waitForEvent: Timeout 30000ms exceeded while waiting for event "download"
|
||||
=========================== logs ===========================
|
||||
waiting for event "download"
|
||||
============================================================
|
||||
at D:\Ai-project\REA逆向\Agent-Workbench\scripts\verify-controlled-ui.mjs:88:28 {
|
||||
log: [],
|
||||
name: 'TimeoutError'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
@@ -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 outcome/report and cumulative budget
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-controlled-ui-71d7c9a1-5db1-4409-9807-893ad6576fd2
|
||||
@@ -0,0 +1,5 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS node: separately reviewed parent merge passes all 8 functional tests and actual build/compile
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-projects-88e6ad0d-96d7-4e67-83bb-429695831b81
|
||||
{"success":false,"cases":3,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-projects-88e6ad0d-96d7-4e67-83bb-429695831b81","realModelRequests":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 - <div class=\"modal-backdrop\">…</div> 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 - <div class=\"modal-backdrop\">…</div> 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 - <div class=\"modal-backdrop\">…</div> intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\n at closeInspector (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:34:169)\n at async Object.capture (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:98:5)\n at async runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
@@ -0,0 +1,23 @@
|
||||
node:internal/modules/run_main:107
|
||||
triggerUncaughtException(
|
||||
^
|
||||
|
||||
AssertionError [ERR_ASSERTION]: 本地引擎关键输入不完整或无法核对:ENOENT: no such file or directory, open 'D:\Ai-project\DeepSeek-Harness-Desktop\apps\cli\package.json'
|
||||
+ actual - expected
|
||||
|
||||
+ 'unavailable'
|
||||
- 'available'
|
||||
|
||||
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:28:8
|
||||
at ModuleJob.run (node:internal/modules/esm/module_job:561:25)
|
||||
at async node:internal/modules/esm/loader:647:26
|
||||
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
|
||||
generatedMessage: false,
|
||||
code: 'ERR_ASSERTION',
|
||||
actual: 'unavailable',
|
||||
expected: 'available',
|
||||
operator: 'strictEqual',
|
||||
diff: 'simple'
|
||||
}
|
||||
|
||||
Node.js v24.22.1
|
||||
@@ -0,0 +1,5 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS node: separately reviewed parent merge passes all 8 functional tests and actual build/compile
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-projects-233c86c5-4256-4e6c-aa6e-5e8c691d8f76
|
||||
{"success":false,"cases":3,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-projects-233c86c5-4256-4e6c-aa6e-5e8c691d8f76","realModelRequests":0,"error":"page.screenshot: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - taking page screenshot\u001b[22m\n\u001b[2m - waiting for fonts to load...\u001b[22m\n\u001b[2m - fonts loaded\u001b[22m\n\n at Object.capture (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:94:97)\n at async runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"error": "page.screenshot: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - taking page screenshot\u001b[22m\n\u001b[2m - waiting for fonts to load...\u001b[22m\n\u001b[2m - fonts loaded\u001b[22m\n\n at Object.capture (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:94:97)\n at async runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71",
|
||||
"dialogs": [
|
||||
"隔离协作固定父子目标、独立工作区、预算与原成果审查。工程执行 / 分工与引擎一个目标,独立执行与审查范围和预算固定,成果核对后进入父工程审查。刷新协作记录等待合并审查 · Deliver node with the pinned controlled 等待合并审查main · ac0eaa8edb62Deliver node with the pinned controlled Harness, retained failures, explicit review, parent validation and local Git.父Task独立提案与原字节变更集已封存,等待明确审查应用;父工程尚未修改。模型owned-controlled-engineering执行方式DeepSeek Harness 0.2.1-rc.2总预算200,000 tokens / 64 轮 / 128 次工具累计用量1,176 tokens / 8 轮 / 6 次工具 / 7 次模型请求原修改owner-staged.txt、owner-unstaged.txt、owner-untracked.txt通道 1完成engine-nodeDeepSeek Harness 0.2.1-rc.2 · 固定安装 e3a3fa6d678fRepair and validate the complete node functional suite without replacing tests.允许修改src/add.mjssrc/range.mjs1,176 / 200,000 tokens · 8/64 轮实际改动与原检查证据已封存,等待父任务归集。2 个原改动 · 当前检查已封存打开子任务父工程成果审查2 个路径已核对,原记录 3c55166ebbeffaa0查看原成果记录打开父工程变更集审查核对检查与 Git 交付结束协作并保留现场独立工作区与受限工具用于约束任务;审批的工程程序仍以本机账户执行。"
|
||||
],
|
||||
"errors": [],
|
||||
"events": [
|
||||
{
|
||||
"action": "close-and-reopen-window-during-owned-model-request",
|
||||
"hostPid": 27604,
|
||||
"taskId": "6d3243fc-1e39-4110-9ea8-313e1ebd75f7",
|
||||
"runId": "6b424595-03d6-4d1d-82c8-5dceea0aba79",
|
||||
"eventSeq": 38,
|
||||
"reopenedEventSeq": 42,
|
||||
"replayCursor": 42,
|
||||
"retainedEvents": 20,
|
||||
"retainedEventsSha256": "87066017642174307f48fe9735dd4aec6337c419a05e1b2f645f556b0d5d2124",
|
||||
"instanceId": "3fb2e285-6a72-43be-bb15-02cc2ac421c5",
|
||||
"completedToolSha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
|
||||
"approvals": []
|
||||
},
|
||||
{
|
||||
"action": "close-and-reopen-window-during-original-approval",
|
||||
"hostPid": 27604,
|
||||
"taskId": "6d3243fc-1e39-4110-9ea8-313e1ebd75f7",
|
||||
"runId": "6b424595-03d6-4d1d-82c8-5dceea0aba79",
|
||||
"eventSeq": 77,
|
||||
"reopenedEventSeq": 80,
|
||||
"replayCursor": 80,
|
||||
"retainedEvents": 59,
|
||||
"retainedEventsSha256": "7e1f5a6e3e916fcc0757f7ce678157c71a39a1b6e55af21a3dc75b9d815f166d",
|
||||
"instanceId": "3fb2e285-6a72-43be-bb15-02cc2ac421c5",
|
||||
"completedToolSha256": "e5ff86b5fcfdd4118f8813ce00590bad592a3933a9c0068d01509747f96ab071",
|
||||
"approvals": [
|
||||
{
|
||||
"id": "3bde1bf4-ee62-4826-8a21-d489a64497af",
|
||||
"status": "pending"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "3bde1bf4-ee62-4826-8a21-d489a64497af",
|
||||
"taskId": "6d3243fc-1e39-4110-9ea8-313e1ebd75f7"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "6d3243fc-1e39-4110-9ea8-313e1ebd75f7",
|
||||
"changeSetId": "6c266047-de26-437c-a709-d2c907d9a4d2",
|
||||
"fingerprint": "7cdea96a55c2458a416175a901ade3581d7f98d6077a906eeccb7aed679b06e4",
|
||||
"paths": [
|
||||
"src/add.mjs",
|
||||
"src/range.mjs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "977fdb9d-06a5-46bf-a949-85e14c4a156f",
|
||||
"taskId": "6d3243fc-1e39-4110-9ea8-313e1ebd75f7"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "a48bcfd1-4566-4325-a3c6-6adfc1dc9681",
|
||||
"changeSetId": "d5df4c5f-b8ad-4461-a69b-e47e28ba2b6c",
|
||||
"fingerprint": "a4e22defef8b61af55f08fde8425f6965a449a1302cbbbe5574960da752c060e",
|
||||
"paths": [
|
||||
"src/add.mjs",
|
||||
"src/range.mjs"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"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 - <div class=\"modal-backdrop\">…</div> 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 - <div class=\"modal-backdrop\">…</div> 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 - <div class=\"modal-backdrop\">…</div> intercepts pointer events\u001b[22m\n\u001b[2m - retrying click action\u001b[22m\n\u001b[2m - waiting 500ms\u001b[22m\n\n at closeInspector (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:34:169)\n at async Object.capture (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:98:5)\n at async runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:183:20)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71",
|
||||
"dialogs": [
|
||||
"隔离协作固定父子目标、独立工作区、预算与原成果审查。工程执行 / 分工与引擎一个目标,独立执行与审查范围和预算固定,成果核对后进入父工程审查。刷新协作记录等待合并审查 · Deliver node with the pinned controlled 等待合并审查main · 0d7d109252d3Deliver node with the pinned controlled Harness, retained failures, explicit review, parent validation and local Git.父Task独立提案与原字节变更集已封存,等待明确审查应用;父工程尚未修改。模型owned-controlled-engineering执行方式DeepSeek Harness 0.2.1-rc.2总预算200,000 tokens / 64 轮 / 128 次工具累计用量1,176 tokens / 8 轮 / 6 次工具 / 7 次模型请求原修改owner-staged.txt、owner-unstaged.txt、owner-untracked.txt通道 1完成engine-nodeDeepSeek Harness 0.2.1-rc.2 · 固定安装 e3a3fa6d678fRepair and validate the complete node functional suite without replacing tests.允许修改src/add.mjssrc/range.mjs1,176 / 200,000 tokens · 8/64 轮实际改动与原检查证据已封存,等待父任务归集。2 个原改动 · 当前检查已封存打开子任务父工程成果审查2 个路径已核对,原记录 0f48177a28b54fcd查看原成果记录打开父工程变更集审查核对检查与 Git 交付结束协作并保留现场独立工作区与受限工具用于约束任务;审批的工程程序仍以本机账户执行。"
|
||||
],
|
||||
"errors": [],
|
||||
"events": [
|
||||
{
|
||||
"action": "close-and-reopen-window-during-owned-model-request",
|
||||
"hostPid": 32232,
|
||||
"taskId": "26cdeb6b-a518-4aac-90b6-44aa64afe577",
|
||||
"runId": "e0a2cc32-333d-49be-b4d8-fbee07d8f5b8",
|
||||
"eventSeq": 38,
|
||||
"reopenedEventSeq": 41,
|
||||
"replayCursor": 41,
|
||||
"retainedEvents": 20,
|
||||
"retainedEventsSha256": "b94f9f8caecea52030e28e9641440e84d06fb738db1ae3ac054335adf227dca3",
|
||||
"instanceId": "0440bea0-36bc-42d7-8565-fae7028d5b16",
|
||||
"completedToolSha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
|
||||
"approvals": []
|
||||
},
|
||||
{
|
||||
"action": "close-and-reopen-window-during-original-approval",
|
||||
"hostPid": 32232,
|
||||
"taskId": "26cdeb6b-a518-4aac-90b6-44aa64afe577",
|
||||
"runId": "e0a2cc32-333d-49be-b4d8-fbee07d8f5b8",
|
||||
"eventSeq": 77,
|
||||
"reopenedEventSeq": 79,
|
||||
"replayCursor": 79,
|
||||
"retainedEvents": 59,
|
||||
"retainedEventsSha256": "253696b0ae0990ea7aaa647870413291d850661840f0cb915eac6db940d07928",
|
||||
"instanceId": "0440bea0-36bc-42d7-8565-fae7028d5b16",
|
||||
"completedToolSha256": "9ae4e56ff9b00fb1d6ac8ce15f3349f83e98ac136adcf10d4f957cad8ecaf91b",
|
||||
"approvals": [
|
||||
{
|
||||
"id": "6443150f-cf84-4931-9b4f-3da554335bbf",
|
||||
"status": "pending"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "6443150f-cf84-4931-9b4f-3da554335bbf",
|
||||
"taskId": "26cdeb6b-a518-4aac-90b6-44aa64afe577"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "26cdeb6b-a518-4aac-90b6-44aa64afe577",
|
||||
"changeSetId": "fe92cc4b-f6c9-4583-af03-3725d3fea811",
|
||||
"fingerprint": "251670f021e1a39e154237d3268817574e78ffcda31c871371dc1fbe48e05d2d",
|
||||
"paths": [
|
||||
"src/add.mjs",
|
||||
"src/range.mjs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "6ba8a293-971c-473e-b6a3-d543099f6a4a",
|
||||
"taskId": "26cdeb6b-a518-4aac-90b6-44aa64afe577"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "6a5c4405-c4c3-480a-b92d-8ea5be1b9be2",
|
||||
"changeSetId": "035c2601-c178-4916-8946-0ac4ec8797af",
|
||||
"fingerprint": "e49ae326ffb4f356fba6c1e3f378f7b0e79e48b1b126842fb5ec50a0efb6ef76",
|
||||
"paths": [
|
||||
"src/add.mjs",
|
||||
"src/range.mjs"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 147 KiB |
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"error": "locator.selectOption: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('combobox', { name: '当前项目', exact: true })\u001b[22m\n\n at select (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:31:69)\n at Object.capture (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:90:11)\n at runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:204:38)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71",
|
||||
"dialogs": [],
|
||||
"errors": [],
|
||||
"events": [
|
||||
{
|
||||
"action": "close-and-reopen-window-during-owned-model-request",
|
||||
"hostPid": 43872,
|
||||
"taskId": "f4f5e457-3f9f-413d-b618-d07d3a3019a4",
|
||||
"runId": "385e44cc-a0c3-4304-af51-6840f1324a1b",
|
||||
"eventSeq": 38,
|
||||
"reopenedEventSeq": 41,
|
||||
"replayCursor": 41,
|
||||
"retainedEvents": 20,
|
||||
"retainedEventsSha256": "e311affcc9b30b10e3ee34f2641b240e8f1fc334bdb34377c0a8e4adefed1d82",
|
||||
"instanceId": "b6808620-dbe3-445d-bed8-4d215df756dd",
|
||||
"completedToolSha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
|
||||
"approvals": []
|
||||
},
|
||||
{
|
||||
"action": "close-and-reopen-window-during-original-approval",
|
||||
"hostPid": 43872,
|
||||
"taskId": "f4f5e457-3f9f-413d-b618-d07d3a3019a4",
|
||||
"runId": "385e44cc-a0c3-4304-af51-6840f1324a1b",
|
||||
"eventSeq": 77,
|
||||
"reopenedEventSeq": 79,
|
||||
"replayCursor": 79,
|
||||
"retainedEvents": 59,
|
||||
"retainedEventsSha256": "fd53473c261beddd82f8963c7c4ef7af2356e928eaa7edfb3e7900b140950413",
|
||||
"instanceId": "b6808620-dbe3-445d-bed8-4d215df756dd",
|
||||
"completedToolSha256": "fbecaba6274a2335e586567811fe385fafb12cff11d14e2337eb58eed2b26ca8",
|
||||
"approvals": [
|
||||
{
|
||||
"id": "baf177ca-b535-4940-b7b1-b43c482161de",
|
||||
"status": "pending"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "baf177ca-b535-4940-b7b1-b43c482161de",
|
||||
"taskId": "f4f5e457-3f9f-413d-b618-d07d3a3019a4"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "f4f5e457-3f9f-413d-b618-d07d3a3019a4",
|
||||
"changeSetId": "3e419de4-7998-4437-931f-1a1d18998d26",
|
||||
"fingerprint": "3951360ed3f81f06a0be69a3a9defb99c0b0d42f2cd67288147ff230442f0254",
|
||||
"paths": [
|
||||
"src/add.mjs",
|
||||
"src/range.mjs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-original-approval",
|
||||
"approvalId": "21f282e5-a4f0-482b-8b6d-cf0f67ffdc1f",
|
||||
"taskId": "f4f5e457-3f9f-413d-b618-d07d3a3019a4"
|
||||
},
|
||||
{
|
||||
"action": "actual-desktop-file-review",
|
||||
"taskId": "8d5b101b-e946-4f0f-ae96-eb9f5e1f56df",
|
||||
"changeSetId": "0e030998-1366-45e1-9eeb-ee449775213b",
|
||||
"fingerprint": "5be0497a744f88b27a8687b2a9102f05b171c2a9f614664be150f03e0a5551bf",
|
||||
"paths": [
|
||||
"src/add.mjs",
|
||||
"src/range.mjs"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 194 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,3 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-projects-f6055055-c355-40b4-a3b7-e6c8976fbd74
|
||||
{"success":false,"cases":1,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-projects-f6055055-c355-40b4-a3b7-e6c8976fbd74","realModelRequests":0,"error":"AssertionError [ERR_ASSERTION]: 模型服务暂时无法处理请求(HTTP 500)。 Expected values to be strictly equal:\n\n41 !== 38\n\n+ actual - expected\n\n+ 'failed'\n- 'completed'\n\n at runSample (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:154:14)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
@@ -0,0 +1,18 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS node: separately reviewed parent merge passes all 8 functional tests and actual build/compile
|
||||
PASS node: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS node: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
PASS react: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS react: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS react: separately reviewed parent merge passes all 9 functional tests and actual build/compile
|
||||
PASS react: real Edge desktop/390px filtering, trimmed search, one-task toggle and complete totals pass
|
||||
PASS react: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS react: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
PASS python: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS python: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS python: separately reviewed parent merge passes all 10 functional tests and actual build/compile
|
||||
PASS python: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
PASS python: real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-projects-834e411e-d369-47f3-8887-6e3e8d4e6998
|
||||
{"success":true,"cases":16,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-projects-834e411e-d369-47f3-8887-6e3e8d4e6998","realModelRequests":0,"error":null}
|
||||
@@ -0,0 +1,6 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
PASS node: separately reviewed parent merge passes all 8 functional tests and actual build/compile
|
||||
PASS node: local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-projects-98ec083d-6c35-41d3-bf66-973919a642d3
|
||||
{"success":false,"cases":4,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-projects-98ec083d-6c35-41d3-bf66-973919a642d3","realModelRequests":0,"error":"locator.selectOption: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('combobox', { name: '当前项目', exact: true })\u001b[22m\n\n at select (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:31:69)\n at Object.capture (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:90:11)\n at runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:204:38)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
@@ -0,0 +1,4 @@
|
||||
PASS node: pinned native engine and one owned Git worktree preserve parent staging and protected bytes
|
||||
PASS node: actual Harness uses owned model/tool bridges, retains failing tests, and completes reviewed repairs with one accounting entry per HTTP request
|
||||
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\desktop-projects-8eacea7a-3c1b-4eb5-b789-23c21ae63a74
|
||||
{"success":false,"cases":2,"directory":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-projects-8eacea7a-3c1b-4eb5-b789-23c21ae63a74","realModelRequests":0,"error":"locator.waitFor: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('dialog', { name: '多文件变更集审查', exact: true }).getByRole('button', { name: '确认应用全部 2 项', exact: true }) to be visible\u001b[22m\n\n at Object.review (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\desktop-project-qa.mjs:48:117)\n at async runSample (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-controlled-projects.mjs:177:34)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-controlled-projects.mjs:253:71"}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"source": "Original nine-group native UI report is unchanged; the shared QA helper subsequently adds normal modal close/sidebar expansion for engineering captures. No product/build changes; F revalidates the final helper in 1.15.",
|
||||
"files": [
|
||||
{
|
||||
"path": "scripts\\desktop-project-qa.mjs",
|
||||
"originalSha256": "509e5977bd6049f75d1a09e8dc24a7ec85f81cbdd3fddd8737324a2bf81066fc",
|
||||
"currentSha256": "48d374ad88f1211ec28d8031738353994216b8eee8101302a0c0aa1848b3ad0e"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -636,3 +636,5 @@ C实际目录选择完成:sky元数据焦点/重复索引与原生光标不一
|
||||
安装的完整manifest核验不能与宿主loaded-input identity混用;未知根程序和无service-info的非HTTP端口也必须阻挡。新示例在空registry复制到data/projects一次,新版重启不能登记发行内副本。根原生入口和current.json必须共同更新/回退,并保留未知外部字节。C#原输出缓存只说明来源绑定,不说明可复现构建。
|
||||
|
||||
Electron验收器不能假定后台SDK事件停止:seq合法前进时,原持久事件字节、原seq的HTTP补发、同Task/Run/审批/完成工具行仍需核对。父成果按钮导航到改动页后,还需要实际“审查变更集”动作;隐藏原生窗口的截图可能等待绘制。报告下载直接用实际DownloadItem并核对原SHA,QA仅固定自有保存路径,Windows保存框未测。E完整工程/F发行仍需完成。
|
||||
|
||||
E339输入/16节点与原生九组已经完整验收;原失败和67份证据/QA helper单文件差异保持。手机仅有1.16计划,F仍须完整发行与正式部署。
|
||||
|
||||
@@ -664,3 +664,9 @@ C提交前发现暂存原日志仍为Git自动换行后的字节;为desktop-wi
|
||||
D最终16检查/6组UI/11组实际安装全部通过。四轮原失败(库CLI误执行、请求已超时误判、Inno拒绝却返回0、重启示例重复登记)分别修正并保留;第五轮通过后补根启动器与指针一起更新/回退及未知程序守卫,第六轮完整通过。111份原结果/日志/编译输入/截图封存,实际异字节有效PE入口启动和回退有证据。正式4318仍1.14.0/PID23172/Provider,未部署。
|
||||
|
||||
E首轮环境根误用、精确seq误判、父审查漏按钮、隐藏窗口截图不绘制和Playwright下载事件未收到均保存原结果。调整为实际SDK根、原持久事件/游标恢复、真实审查按钮、显示实际窗口后截图和原生DownloadItem落盘。九组原生停止/unknown/报告实际通过,三工程继续;F独立发行不得跳过。
|
||||
|
||||
## 2026-10-31 E桌面三工程完成
|
||||
|
||||
E新整轮三个工程16节点通过,339输入/全部构建保持。父Node8/8、React9/9、Python10/10和实际构建/编译、父审查/Git通过,7个原生Run完整退出;各一次失败修复/两次审批和7/7/9次自有HTTP记账保持。12张真实Electron1440/390截图与原DOM封存;代表性宽窄截图人工核对。原生UI九组/实际DownloadItem/停止/unknown通过,67份原失败/成功证据核对;其后唯一QA helper布局动作差异单独登记,F最终1.15复验。D提交f7a5969,正式仍1.14/PID23172/hasKey=true/16项目/20可见会话,无活动任务;没有读取Key。
|
||||
|
||||
F下一步同步1.15版本/独立证据前缀,离线源码运行依赖和全部dist目录,完整源码/历史UI/桌面工程/安装与正式状态保留升级。1.16配对伴随端计划已写,只有1.15 F全部完成后才实施;本轮不建立新代理、goal或自动化。
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import http from 'node:http';
|
||||
import { randomUUID, createHash } from 'node:crypto';
|
||||
import { _electron, expect } from 'playwright/test';
|
||||
import { createRequestHandler, createSessionPublisher } from '../src/server/app.mjs';
|
||||
import { hostAuthority } from '../src/core/desktop/host-authority.mjs';
|
||||
import { desktopExecutableIdentity } from '../src/core/desktop/app-installation.mjs';
|
||||
import { projectEnvironment } from '../src/core/process-environment.mjs';
|
||||
|
||||
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
export async function desktopProjectQa({ store, provider, runtime, sample, kind }) {
|
||||
const appRoot = path.resolve(process.env.AGENT_WORKBENCH_DESKTOP_QA_APP_ROOT || process.cwd()), server = http.createServer(), clients = new Set(), token = randomUUID();
|
||||
runtime.appDirectory = appRoot; store.claimRuntime(); store.on('update', createSessionPublisher(clients));
|
||||
server.on('request', createRequestHandler({ appDirectory: appRoot, server, store, provider, runtime, token, clients, started: Date.now(), getPort: () => server.address().port, shutdown: () => {} }));
|
||||
await new Promise(resolve => server.listen(0, '127.0.0.1', resolve));
|
||||
const authority = hostAuthority({ appDirectory: appRoot, server, store, provider, runtime }); authority.initialize();
|
||||
let application, page, selected; const events = [], errors = [], screenshots = [];
|
||||
async function launch() {
|
||||
const executable = desktopExecutableIdentity(appRoot).path, packaged = executable.toLowerCase().endsWith('agentworkbench.exe');
|
||||
application = await _electron.launch({ executablePath: executable,
|
||||
args: [...(packaged ? [] : [path.join(appRoot, 'dist-desktop/main.cjs')]), '--app-root', appRoot, '--data-root', store.directory, '--node', process.execPath, '--port', String(server.address().port), '--hidden-window'],
|
||||
cwd: appRoot, env: projectEnvironment(), timeout: 60000 });
|
||||
page = await application.firstWindow(); page.on('pageerror', error => errors.push(error.message));
|
||||
await page.locator('.connection.connected').waitFor({ timeout: 30000 });
|
||||
if (selected) await select(selected);
|
||||
}
|
||||
async function select(session) {
|
||||
selected = session;
|
||||
const project = page.getByRole('combobox', { name: '当前项目', exact: true });
|
||||
if (!await project.isVisible()) await page.getByRole('button', { name: '展开项目栏', exact: true }).click();
|
||||
await project.selectOption(session.projectId);
|
||||
await expect.poll(() => page.evaluate(() => localStorage.getItem('awb-session')), { timeout: 20000 }).toBe(session.id);
|
||||
}
|
||||
async function closeInspector() { const close = page.getByRole('button', { name: '关闭检视区', exact: true }); if (await close.isVisible().catch(() => false)) await close.click(); }
|
||||
async function review(session, ids) {
|
||||
await select(session); await closeInspector();
|
||||
const prepared = [...store.core.change_set.values()].find(value => value.sessionId === session.id && value.status === 'prepared' && JSON.stringify(value.files.map(file => file.changeId).sort()) === JSON.stringify(ids.slice().sort()));
|
||||
if (prepared) {
|
||||
await page.getByRole('button', { name: '隔离协作', exact: true }).click();
|
||||
await page.getByRole('button', { name: '打开父工程变更集审查', exact: true }).click();
|
||||
await page.getByRole('button', { name: '审查变更集', exact: true }).click();
|
||||
} else {
|
||||
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 dialog = page.getByRole('dialog', { name: '多文件变更集审查', exact: true });
|
||||
const confirm = dialog.getByRole('button', { name: '确认应用全部 ' + ids.length + ' 项', exact: true }); await confirm.waitFor();
|
||||
const matching = [...store.core.change_set.values()].filter(value => value.sessionId === session.id && value.status !== 'completed' && JSON.stringify(value.files.map(file => file.changeId).sort()) === JSON.stringify(ids.slice().sort()));
|
||||
assert.equal(matching.length, 1); const set = matching[0];
|
||||
await confirm.click(); await expect(dialog).toContainText('全部应用完成'); await page.keyboard.press('Escape');
|
||||
assert.equal(set.status, 'completed'); events.push({ action: 'actual-desktop-file-review', taskId: session.taskId, changeSetId: set.id, fingerprint: set.fingerprint, paths: set.files.map(value => value.path) }); return set;
|
||||
}
|
||||
async function approve(session, approval) {
|
||||
await select(session); await closeInspector();
|
||||
const button = page.getByRole('button', { name: '确认执行', exact: true }); await button.waitFor({ timeout: 20000 });
|
||||
assert.equal(session.approvals.filter(value => value.status === 'pending').length, 1); assert.equal(session.approvals.find(value => value.status === 'pending').id, approval.id);
|
||||
await button.click(); await expect.poll(() => approval.status).toBe('approved'); events.push({ action: 'actual-desktop-original-approval', approvalId: approval.id, taskId: session.taskId });
|
||||
}
|
||||
async function cycle(session, label) {
|
||||
await select(session); const identity = authority.identity(), eventSeq = session.eventSeq, taskId = session.taskId, runId = session.runId;
|
||||
const originalEvents = () => {
|
||||
const events = []; let cursor = 0;
|
||||
while (cursor < eventSeq) {
|
||||
const chunk = store.eventsAfter(cursor, { sessionId: session.id, limit: 500 });
|
||||
events.push(...chunk.events.filter(value => value.seq <= eventSeq));
|
||||
if (!chunk.hasMore || chunk.nextCursor >= eventSeq) break;
|
||||
assert.ok(chunk.nextCursor > cursor); cursor = chunk.nextCursor;
|
||||
}
|
||||
return events;
|
||||
};
|
||||
const retainedEvents = originalEvents(); assert.equal(retainedEvents.at(-1).seq, eventSeq);
|
||||
const completed = () => [...store.core.tool.values()].filter(value => value.sessionId === session.id && value.state === 'completed');
|
||||
const prior = hash(Buffer.from(JSON.stringify(completed()))), approvals = session.approvals.map(value => ({ id: value.id, status: value.status }));
|
||||
await application.close(); application = null;
|
||||
assert.equal(runtime.isActive(session.id), true); assert.equal(authority.identity().instanceId, identity.instanceId); assert.equal(process.pid, identity.pid);
|
||||
await launch(); assert.equal(session.taskId, taskId); assert.equal(session.runId, runId); assert.ok(session.eventSeq >= eventSeq); assert.deepEqual(originalEvents(), retainedEvents);
|
||||
const replay = await page.evaluate(async ({ sessionId, cursor }) => {
|
||||
const bootstrap = await (await fetch('/api/bootstrap')).json();
|
||||
const response = await fetch('/api/events/history?session=' + encodeURIComponent(sessionId) + '&after=' + cursor + '&limit=500', { headers: { 'x-workbench-token': bootstrap.token } });
|
||||
if (!response.ok) throw Error('Original desktop event replay failed (' + response.status + ')'); return response.json();
|
||||
}, { sessionId: session.id, cursor: eventSeq - 1 });
|
||||
assert.deepEqual(replay.events[0], retainedEvents.at(-1)); assert.ok(replay.events.every((value, index) => !index || value.seq > replay.events[index - 1].seq));
|
||||
assert.equal(hash(Buffer.from(JSON.stringify(completed()))), prior); assert.deepEqual(session.approvals.map(value => ({ id: value.id, status: value.status })), approvals);
|
||||
events.push({ action: label, hostPid: process.pid, taskId, runId, eventSeq, reopenedEventSeq: session.eventSeq, replayCursor: replay.nextCursor,
|
||||
retainedEvents: retainedEvents.length, retainedEventsSha256: hash(Buffer.from(JSON.stringify(retainedEvents))), instanceId: identity.instanceId, completedToolSha256: prior, approvals });
|
||||
}
|
||||
async function capture(session, label) {
|
||||
await select(session); await closeInspector(); await page.getByRole('button', { name: '隔离协作', exact: true }).click();
|
||||
for (const width of [1440, 390]) {
|
||||
const native = await application.browserWindow(page); await native.evaluate((value, width) => { value.showInactive(); value.setContentSize(width, 900); }, width);
|
||||
await expect.poll(() => page.evaluate(() => innerWidth)).toBe(width);
|
||||
const filename = path.join(sample, kind + '-' + label + '-' + width + '.png'); await page.screenshot({ path: filename }); fs.writeFileSync(filename + '.html', await page.content());
|
||||
assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth), false); screenshots.push({ file: filename, width, sha256: hash(fs.readFileSync(filename)) });
|
||||
}
|
||||
await (await application.browserWindow(page)).evaluate(value => value.setContentSize(1440, 1000));
|
||||
await page.keyboard.press('Escape'); await expect(page.getByRole('dialog', { name: '隔离协作', exact: true })).toBeHidden();
|
||||
await closeInspector();
|
||||
}
|
||||
await launch();
|
||||
return { select, review, approve, cycle, capture, events, screenshots, errors, get page() { return page; },
|
||||
async resize(width, height) { await (await application.browserWindow(page)).evaluate((value, size) => { value.showInactive(); value.setContentSize(size.width, size.height); }, { width, height }); await expect.poll(() => page.evaluate(() => innerWidth)).toBe(width); },
|
||||
async download(filename, trigger) {
|
||||
const id = randomUUID();
|
||||
await application.evaluate(({ session }, { id, filename }) => {
|
||||
globalThis.workbenchQaDownloads ??= {};
|
||||
globalThis.workbenchQaDownloads[id] = { state: 'waiting' };
|
||||
session.defaultSession.once('will-download', (_event, item) => {
|
||||
const value = globalThis.workbenchQaDownloads[id]; value.suggestedFilename = item.getFilename(); value.state = 'started';
|
||||
item.setSavePath(filename); // Actual Electron DownloadItem; only the owned destination selection is a QA fixture.
|
||||
item.once('done', (_event, state) => { value.state = state; value.bytes = item.getReceivedBytes(); value.totalBytes = item.getTotalBytes(); });
|
||||
});
|
||||
}, { id, filename });
|
||||
await trigger(); await expect.poll(() => application.evaluate((_electron, id) => globalThis.workbenchQaDownloads[id].state, id), { timeout: 30000 }).toBe('completed');
|
||||
const value = await application.evaluate((_electron, id) => globalThis.workbenchQaDownloads[id], id);
|
||||
assert.equal(value.bytes, value.totalBytes); assert.equal(fs.statSync(filename).size, value.bytes);
|
||||
events.push({ action: 'actual-electron-native-download', ...value, file: filename, sha256: hash(fs.readFileSync(filename)), scope: 'Actual DownloadItem and transferred bytes; own output path chosen by QA without exercising the Windows save dialog.' });
|
||||
return value;
|
||||
},
|
||||
scope: 'Real Electron renderer and fixed native main/preload; own in-process Node fixture host, actual native Harness/HTTP/check/Git. The whole fixture host is never exited from its desktop UI.',
|
||||
async failure(error) { if (!page || page.isClosed()) return; const filename = path.join(sample, kind + '-desktop-failure'); fs.writeFileSync(filename + '.html', await page.content()); fs.writeFileSync(filename + '.json', JSON.stringify({ error: error.stack, dialogs: await page.getByRole('dialog').allTextContents(), errors, events }, null, 2)); await (await application.browserWindow(page)).evaluate(value => value.showInactive()); await page.screenshot({ path: filename + '.png' }); },
|
||||
async close() { await application?.close(); for (const response of clients) response.destroy(); server.closeAllConnections(); await new Promise(resolve => server.close(resolve)); assert.deepEqual(errors, []); } };
|
||||
}
|
||||
@@ -12,15 +12,17 @@ import { originalEngineRun, verifyEngineModelInput } from '../src/shared/contrac
|
||||
import { resolvePurgeSource, assertPurgeModelInput, nativeSystemTexts, PURGE_DEFAULT_PROMPT } from '../src/core/engines/purge-strategy.mjs';
|
||||
import { deliveryGit as git, writeDeliveryFile as write } from '../tests/fixtures/delivery-project.mjs';
|
||||
import { ownerBytes } from '../tests/fixtures/workers-project.mjs';
|
||||
import { desktopProjectQa } from './desktop-project-qa.mjs';
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
assert.ok(args.every(value => ['--help', '--purge-comparison'].includes(value)), 'Unknown option; use --help.');
|
||||
assert.ok(args.every(value => ['--help', '--purge-comparison', '--desktop'].includes(value)), 'Unknown option; use --help.');
|
||||
if (args.includes('--help')) {
|
||||
console.log('node scripts/verify-controlled-projects.mjs [--purge-comparison] — actual pinned Harness and owned HTTP model fixture; default verifies Node/React/Python with approvals, Edge and Git. Comparison verifies eight independent Node projects: two Purge versions, two repetitions, enabled/disabled. Set AGENT_WORKBENCH_DEEPSEEK_ROOT; default also requires AGENT_WORKBENCH_TEST_PYTHON, comparison requires AGENT_WORKBENCH_PURGE_178_ROOT / AGENT_WORKBENCH_PURGE_181_ROOT. No configured-model requests.'); process.exit(0);
|
||||
}
|
||||
const comparisonMode = args.includes('--purge-comparison');
|
||||
const comparisonMode = args.includes('--purge-comparison'), desktopMode = args.includes('--desktop');
|
||||
assert.ok(!comparisonMode || !desktopMode, 'Desktop engineering and prompt comparison are separate acceptance runs.');
|
||||
const version = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
|
||||
const directory = path.resolve('.qa', (comparisonMode ? 'controlled-purge-' : 'controlled-projects-') + randomUUID()), results = [], cases = [];
|
||||
const directory = path.resolve('.qa', (desktopMode ? 'desktop-projects-' : comparisonMode ? 'controlled-purge-' : 'controlled-projects-') + randomUUID()), results = [], cases = [];
|
||||
const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
const installation = resolveControlledInstallation(process.cwd(), process.env.AGENT_WORKBENCH_DEEPSEEK_ROOT);
|
||||
assert.equal(installation.controlledStatus, 'available', installation.message);
|
||||
@@ -38,7 +40,7 @@ function inputs() {
|
||||
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', 'tests', 'benchmarks', 'dist-client', 'dist-server']) walk(root);
|
||||
for (const root of ['src', 'scripts', 'tests', 'benchmarks', 'dist-client', 'dist-server', ...(desktopMode ? ['dist-desktop'] : [])]) walk(root);
|
||||
return files.sort().map(file => ({ path: file, sha256: hash(fs.readFileSync(file)) }));
|
||||
}
|
||||
const frozen = inputs(), mark = message => { cases.push(message); console.log('PASS ' + message); };
|
||||
@@ -69,7 +71,7 @@ function specification(kind, root) {
|
||||
async function runSample(kind, { sampleName = kind, strategy = null, comparison = null } = {}) {
|
||||
const startedAt = Date.now(), label = sampleName;
|
||||
const disposers = [], t = { after: value => disposers.push(value) }, f = fixture(t), sample = path.join(directory, sampleName);
|
||||
fs.mkdirSync(sample); let runtime, group, result; const reviews = [], modelRequests = [];
|
||||
fs.mkdirSync(sample); let runtime, group, result, desktopQa, cycledRequest = false, cycledApproval = false; const reviews = [], modelRequests = [];
|
||||
try {
|
||||
const baseline = kind === 'react' ? 'benchmarks/react-delivery-v1/baseline' : 'benchmarks/workers-delivery-v1/' + kind;
|
||||
fs.cpSync(path.resolve(baseline), f.projectRoot, { recursive: true, filter: file => !file.split(path.sep).includes('node_modules') });
|
||||
@@ -95,6 +97,7 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
assert.equal(route, '/v1/chat/completions'); assert.equal(input.model, 'owned-controlled-engineering');
|
||||
assertToolPairs(input.messages);
|
||||
const worker = [...f.store.core.worker.values()][0], session = f.store.session(worker.sessionId);
|
||||
if (desktopQa && !cycledRequest) { cycledRequest = true; await desktopQa.cycle(session, 'close-and-reopen-window-during-owned-model-request'); }
|
||||
const checks = [...f.store.core.check_job.values()].filter(job => job.taskId === worker.taskId), job = checks.at(-1);
|
||||
const plan = [...f.store.core.check_plan.values()].filter(plan => plan.taskId === worker.taskId).at(-1);
|
||||
const propose = files => Object.entries(files).map(([file, content]) => call(randomUUID(), 'propose_file', { path: file, content, reason: 'Fixed local acceptance repair; retain all tests and declarations.' }));
|
||||
@@ -116,6 +119,7 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
const provider = new Provider(); provider.setKey('self-owned-controlled-model-fixture'); runtime = new Runtime(f.store, provider); f.onCleanup(() => runtime.stopAll());
|
||||
runtime.controlledEngines = new EngineRunner(f.store, provider, { directoryRoot: path.join(f.root, 'owned-engine-runs') });
|
||||
runtime.checkRunner().pythonExecutable = python; const manager = runtime.workerManager();
|
||||
if (desktopMode) desktopQa = await desktopProjectQa({ store: f.store, provider, runtime, sample, kind });
|
||||
group = await manager.plan(f.session, { goal: 'Deliver ' + kind + ' with the pinned controlled Harness, retained failures, explicit review, parent validation and local Git.',
|
||||
engine: { id: 'deepseek-harness', root: installation.root, controlledSha256: installation.controlledSha256, ...(strategy ? { strategy } : {}) },
|
||||
budget: { maxTokens: 200000, maxSteps: 64, maxToolCalls: 128, maxDurationMs: 600000 },
|
||||
@@ -123,13 +127,14 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
await (await manager.prepare(f.session, group.id, group.fingerprint)).promise; assert.equal(group.status, 'ready', group.summary);
|
||||
const child = group.children[0], childRoot = f.store.project(child.projectId).root;
|
||||
assert.notEqual(childRoot, f.projectRoot); assert.deepEqual(ownerBytes(f), original); verify(childRoot); if (kind === 'react') install(childRoot, 'child');
|
||||
if (desktopQa) await desktopQa.select(f.store.session(child.sessionId));
|
||||
mark(label + ': pinned native engine and one owned Git worktree preserve parent staging and protected bytes');
|
||||
for (let turn = 0; turn < 4 && group.status !== 'ready_to_collect'; turn++) {
|
||||
const session = f.store.session(child.sessionId), ids = session.changes.filter(change => change.status === 'pending').map(change => change.id);
|
||||
if (ids.length) {
|
||||
assert.equal(group.status, 'awaiting_review', group.summary); const set = await runtime.changeSetManager().prepare(session, ids);
|
||||
assert.equal(group.status, 'awaiting_review', group.summary); const set = desktopQa ? await desktopQa.review(session, ids) : await runtime.changeSetManager().prepare(session, ids);
|
||||
reviews.push({ operation: 'review child batch', id: set.id, fingerprint: set.fingerprint, paths: set.files.map(file => file.path) });
|
||||
await (await runtime.changeSetManager().start(session, set.id, set.fingerprint)).promise; assert.equal(set.status, 'completed', set.summary);
|
||||
if (!desktopQa) await (await runtime.changeSetManager().start(session, set.id, set.fingerprint)).promise; assert.equal(set.status, 'completed', set.summary);
|
||||
}
|
||||
const started = manager.start(f.session, group.id, group.fingerprint); let done = false, failure;
|
||||
started.promise.then(() => { done = true; }, error => { failure = error; done = true; });
|
||||
@@ -138,7 +143,9 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
assert.equal(f.store.core.tool.get(approval.invocationId).tool, 'run_checks');
|
||||
const plan = [...f.store.core.check_plan.values()].filter(plan => plan.taskId === child.taskId).at(-1);
|
||||
assert.deepEqual(plan.checks.map(check => check.name), spec.checks);
|
||||
reviews.push({ operation: 'approve original check', id: approval.id, taskId: child.taskId, planId: plan.id, contractSha256: plan.contractSha256 }); runtime.decide(session.id, approval.id, true);
|
||||
reviews.push({ operation: 'approve original check', id: approval.id, taskId: child.taskId, planId: plan.id, contractSha256: plan.contractSha256 });
|
||||
if (desktopQa) { if (!cycledApproval) { cycledApproval = true; await desktopQa.cycle(session, 'close-and-reopen-window-during-original-approval'); } await desktopQa.approve(session, approval); }
|
||||
else runtime.decide(session.id, approval.id, true);
|
||||
}
|
||||
await new Promise(resolve => setTimeout(resolve, 30));
|
||||
}
|
||||
@@ -167,10 +174,13 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
const collection = await manager.readCollection(f.session, group); assert.deepEqual(collection.conflicts, []); assert.deepEqual(collection.paths, writable);
|
||||
await (await manager.prepareMerge(f.session, group.id, group.fingerprint)).promise; assert.equal(group.status, 'merge_prepared', group.summary);
|
||||
const merge = f.store.core.change_set.get(group.merge.changeSetId); reviews.push({ operation: 'review parent batch', id: merge.id, fingerprint: merge.fingerprint });
|
||||
await (await runtime.changeSetManager().start(f.session, merge.id, merge.fingerprint)).promise; assert.equal(merge.status, 'completed', merge.summary);
|
||||
if (desktopQa) assert.equal((await desktopQa.review(f.session, merge.files.map(file => file.changeId))).id, merge.id);
|
||||
else await (await runtime.changeSetManager().start(f.session, merge.id, merge.fingerprint)).promise;
|
||||
assert.equal(merge.status, 'completed', merge.summary);
|
||||
const checkPlan = await runtime.checkRunner().plan(f.session, spec.checks), check = await (await runtime.checkRunner().start(f.session, checkPlan.id)).promise;
|
||||
assert.equal(check.status, 'passed', check.summary); assert.equal(check.results[0].tests.passed, spec.tests); verify(f.projectRoot);
|
||||
mark(label + ': separately reviewed parent merge passes all ' + spec.tests + ' functional tests and actual build/compile');
|
||||
if (desktopQa) await desktopQa.capture(f.session, 'parent-checks');
|
||||
const browserJobs = [];
|
||||
if (kind === 'react') for (const viewport of [{ width: 1280, height: 900 }, { width: 390, height: 844 }]) {
|
||||
const steps = [ { action: 'assert_count', selector: '.task-list article', count: 3 },
|
||||
@@ -191,6 +201,7 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
assert.deepEqual(ownerBytes(f).files, original.files); assert.equal(git(f, ['show', ':owner-staged.txt']), 'Owner staged change\n');
|
||||
assert.deepEqual(git(f, ['show', '--format=', '--name-only', delivery.commit]).trim().split(/\r?\n/).sort(), writable);
|
||||
mark(label + ': local Git contains only reviewed functional changes and preserves original staged/unstaged owner bytes');
|
||||
if (desktopQa) { await desktopQa.capture(f.session, 'git-completed'); assert.equal(cycledRequest, true); assert.equal(cycledApproval, true); mark(label + ': real Electron reviews/approvals and window cycles retain Task/Run/eventSeq/results at 1440px and 390px'); }
|
||||
const requests = engineRuns.flatMap(job => job.requests), metrics = { durationMs: Date.now() - startedAt, baselineTree,
|
||||
contextLimit: group.config.contextLimit, budget: group.budget, model: group.model.model, tests: spec.tests,
|
||||
engineeringFailures: childChecks.filter(job => job.status === 'failed').length,
|
||||
@@ -202,10 +213,11 @@ async function runSample(kind, { sampleName = kind, strategy = null, comparison
|
||||
responseSequence: modelRequests.map(({ phase, responsePlan }) => ({ phase, responsePlan })) };
|
||||
result = { success: true, scope: 'actual-native-Harness-with-owned-HTTP-model-fixture', version, kind, sampleName, comparison, metrics, parentTaskId: group.taskId, groupId: group.id,
|
||||
child: f.store.core.worker.get(child.id), engineRuns, checks: [...f.store.core.check_job.values()], parentCheck: check, browserJobs, commit: delivery.commit,
|
||||
writable, reviews, modelRequests, protectedFiles: Object.fromEntries(Object.entries(protectedFiles).map(([file, bytes]) => [file, hash(bytes)])), realModelRequests: 0 };
|
||||
writable, reviews, modelRequests, ...(desktopQa ? { desktop: { events: desktopQa.events, screenshots: desktopQa.screenshots, scope: desktopQa.scope, errors: desktopQa.errors } } : {}), protectedFiles: Object.fromEntries(Object.entries(protectedFiles).map(([file, bytes]) => [file, hash(bytes)])), realModelRequests: 0 };
|
||||
return result;
|
||||
} catch (error) { result = { success: false, version, kind, sampleName, comparison, error: error.stack, group, reviews, modelRequests, engineRuns: [...f.store.core.engine_run.values()], checks: [...f.store.core.check_job.values()], realModelRequests: 0 }; throw error; }
|
||||
} catch (error) { await desktopQa?.failure(error).catch(() => {}); result = { success: false, version, kind, sampleName, comparison, error: error.stack, group, reviews, modelRequests, engineRuns: [...f.store.core.engine_run.values()], checks: [...f.store.core.check_job.values()], realModelRequests: 0 }; throw error; }
|
||||
finally {
|
||||
await desktopQa?.close();
|
||||
await runtime?.stopAll(); f.store.storage.database.exec('PRAGMA wal_checkpoint(TRUNCATE)');
|
||||
fs.cpSync(f.root, path.join(sample, 'original-fixture'), { recursive: true, filter: file => !file.split(path.sep).includes('node_modules') });
|
||||
for (const session of f.store.sessions.values()) fs.writeFileSync(path.join(sample, 'session-' + session.id + '.json'), JSON.stringify({ project: f.store.project(session.projectId), session, execution: f.store.executionSnapshot(session) }, null, 2));
|
||||
@@ -243,4 +255,4 @@ try {
|
||||
report = { success: true, targetVersion: '1.14.0', testedVersion: version, directory, installation, cases, results, comparisons, sources, inputs: frozen, realModelRequests: 0,
|
||||
scope: 'Pinned actual Harness and workbench execution with an owned HTTP model fixture. Checks, approvals, failures, parent merges, Edge and Git are real. Model reasoning and Purge benefit remain separate.' };
|
||||
} catch (error) { report = { success: false, targetVersion: '1.14.0', testedVersion: version, directory, installation, cases, results, inputs: frozen, error: error.stack, realModelRequests: 0 }; process.exitCode = 1; }
|
||||
finally { fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(report, null, 2)); fs.writeFileSync('.qa/' + (comparisonMode ? 'controlled-purge' : 'controlled-projects') + '-location.json', JSON.stringify({ directory, result: path.join(directory, 'result.json') })); console.log('EVIDENCE ' + directory); console.log(JSON.stringify({ success: report.success, cases: cases.length, directory, realModelRequests: 0, error: report.error ?? null })); }
|
||||
finally { fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(report, null, 2)); fs.writeFileSync('.qa/' + (desktopMode ? 'desktop-projects' : comparisonMode ? 'controlled-purge' : 'controlled-projects') + '-location.json', JSON.stringify({ directory, result: path.join(directory, 'result.json') })); console.log('EVIDENCE ' + directory); console.log(JSON.stringify({ success: report.success, cases: cases.length, directory, realModelRequests: 0, error: report.error ?? null })); }
|
||||
|
||||
@@ -8,12 +8,14 @@ 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';
|
||||
import { desktopProjectQa } from './desktop-project-qa.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);
|
||||
console.log('node scripts/verify-controlled-ui.mjs [--desktop] — real Edge or Electron 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());
|
||||
assert.ok(process.argv.slice(2).every(value => value === '--desktop')); assert.ok(process.argv.length <= 3);
|
||||
const desktopMode = process.argv.includes('--desktop');
|
||||
const version = JSON.parse(fs.readFileSync('package.json', 'utf8')).version, directory = path.resolve('.qa', (desktopMode ? 'desktop-controlled-ui-' : '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) };
|
||||
@@ -23,17 +25,19 @@ host.runtime.controlledEngines = new EngineRunner(f.store, host.provider, { dire
|
||||
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);
|
||||
for (const root of ['src', 'scripts', 'dist-client', 'dist-server', ...(desktopMode ? ['dist-desktop'] : [])]) 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 } });
|
||||
const frozen = inputs(), desktop = desktopMode ? await desktopProjectQa({ store: f.store, provider: host.provider, runtime: host.runtime, sample: directory, kind: 'controlled-ui' }) : null;
|
||||
const browser = desktopMode ? null : await chromium.launch({ channel: 'msedge', headless: true }), page = desktop?.page ?? await browser.newPage({ viewport: { width: 1440, height: 1000 } });
|
||||
const resize = size => desktop ? desktop.resize(size.width, size.height) : page.setViewportSize(size);
|
||||
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; }
|
||||
if (await page.evaluate(() => innerWidth) > 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(); }
|
||||
}
|
||||
@@ -50,8 +54,9 @@ async function applyOne() {
|
||||
}
|
||||
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();
|
||||
if (desktop) { await desktop.select(f.session); await resize({ width: 1440, height: 1000 }); }
|
||||
else { 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('安装尚不可用');
|
||||
@@ -70,7 +75,7 @@ try {
|
||||
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();
|
||||
await resize({ 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');
|
||||
@@ -80,8 +85,16 @@ try {
|
||||
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);
|
||||
let reportFile;
|
||||
if (desktop) {
|
||||
reportFile = path.join(directory, 'agent-workbench-engine-run-' + first.id + '.json');
|
||||
const download = await desktop.download(reportFile, () => runPanel().getByRole('button', { name: '下载完整报告', exact: true }).click());
|
||||
assert.equal(download.suggestedFilename, path.basename(reportFile));
|
||||
} else {
|
||||
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"}' }); });
|
||||
@@ -90,7 +103,7 @@ try {
|
||||
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 expect.poll(() => group.status, { timeout: 30000 }).toBe('ready_to_collect'); await resize({ 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');
|
||||
@@ -113,7 +126,7 @@ try {
|
||||
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 resize({ 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');
|
||||
@@ -122,13 +135,13 @@ try {
|
||||
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.' };
|
||||
engineRuns: [...f.store.core.engine_run.values()], groups: [group.id, stopped.id], inputs: frozen, realModelRequests: 0, ...(desktop ? { desktopEvents: desktop.events } : {}),
|
||||
scope: 'Actual native Harness and ' + (desktop ? 'Electron with fixed main/preload and own in-process Node host' : '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)');
|
||||
releaseHeld?.(); await browser?.close(); await desktop?.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') }));
|
||||
fs.writeFileSync(path.join(directory, 'result.json'), JSON.stringify(result, null, 2)); fs.writeFileSync('.qa/' + (desktopMode ? 'desktop-controlled-ui' : '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);
|
||||
}
|
||||
|
||||
@@ -456,3 +456,5 @@ F收尾:57d075e修正独立编译QA路径,6d09ac8封存差异;202610302320
|
||||
3. [in_progress] E实际Electron三功能工程;原生选择/报告/审批/停止/unknown九组已通过。原事件允许合法前进,原seq/Task/Run/原审批/完成工具行严格保持。
|
||||
4. [pending] F同步1.15.0、全部构建/独立源码/完整历史UI、最终不可变包/实际安装及保留原PID23172/Provider/全部数据的正式部署。
|
||||
5. [pending] 最终里程碑回顾和本地Git提交,记录1.16真实手机配对后续方案。真实推理/Purge收益继续暂缓,本轮不使用正式Key。
|
||||
|
||||
1.15 E现[complete]:16桌面工程节点/九组原生UI/339输入/67证据通过。F[in_progress],不得以D/E通过结束本阶段。
|
||||
|
||||