release: seal 1.22.1 local project picker and HTML preview acceptance

This commit is contained in:
Agent Workbench Dev
2026-11-02 09:21:05 +08:00
parent 70ac4c40b5
commit 397099b284
54 changed files with 1678 additions and 35 deletions
+2
View File
@@ -83,3 +83,5 @@ docs/model-wait-release-identity.json -text whitespace=blank-at-eol,blank-at-eof
docs/model-fidelity-release-evidence/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
docs/model-fidelity-release-identity.json -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
docs/model-fidelity-release-evidence/logs/*.tap binary
docs/local-files-1.22.1-evidence/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
docs/local-files-1.22.1-evidence/*.log binary
+5 -1
View File
@@ -1,5 +1,9 @@
# Agent Workbench项目执行规范
当前优先记录:1.22.1 已完成网页本机目录选择与隔离 HTML 文件预览的本地补丁部署,产品实现 70ac4c4。40项定向回归、原进程升级2项、既有桌面生命周期7组及源码/实际安装候选各9组 Edge/Electron 流程通过;正式现有 HTML 的 SVG/暂停/播放已实测,原文件 SHA 保持。安装指针 revision13 指向 Agent-Workbench-1.22.1-local-patch-20261102005525565,原PID36552/Provider、17项目/33会话/3239记录/6230事件/1780工件保持。新包为不可变本地安装补丁,未制作独立下载安装器。见 docs/QA-1.22.1.md、docs/LOCAL-FILES.md;正式身份以 docs/local-files-release-identity.json 为准,后续1.23发行性能计划保留。下方1.22及更早数字均是各自历史验收,不能计入本补丁完整回归。
后续用户入口验收必须覆盖网页和桌面的选择项目、浏览文件、可视文件预览、保存后查看结果及失败恢复。复杂Task/浏览专项通过和测试数量不能代替这些基础流程。源码定位仍打开源码;普通HTML直接预览已保存文件,不强制npm/Vite,也不把它记作模型页面检查证据。
1.22.0已完成所属Vite预览、独立桌面浏览区、有界DOM/原截图与审批动作、独立登录资料/撤销/下载、手机原观察SHA核对的本地交付。独立源码683/683(C完整原轮通过,D严格绑定后沿用)、33类250组原B串行界面(产品输入相同,严格绑定后沿用)、源码/便携/实际安装各17组浏览流程、同载荷安装7组、正式30页及Edge/Electron两视口通过。原PID36552/Provider保持,17项目/32全部会话/3239记录/6229事件及1780工件文件原字节保持,9229关闭。本轮验收发起真实模型请求0。 当前身份以docs/embedded-browser-release-identity.json为准。下一1.23仅方案;历史段落按当时来源理解。
@@ -72,7 +76,7 @@
## 当前本地服务与Windows
- 正式服务入口http://127.0.0.1:4318,当前1.22.0,沿用原PID36552与Provider;当前身份以docs/embedded-browser-release-identity.json为准。原模型连接、全部表/会话/工件保持;普通源码/规划/Git工作不重启服务、不读取或复制Key。
- 正式服务入口http://127.0.0.1:4318,当前1.22.1,沿用原PID36552与Provider;当前身份以docs/local-files-release-identity.json为准。原模型连接、全部表/会话/工件保持;普通源码/规划/Git工作不重启服务、不读取或复制Key。
- 浏览器/fixture验证使用独立端口与数据目录;用户项目与研究对象的登录/会话配置不用于测试凭据。
- Windows执行环境以实测shell为准。现有工具使用PowerShell 5.1和UTF-8;不用&&/||拼接命令,使用换行和$LASTEXITCODE核对结果。
- 桌面与移动共用执行宿主。手机127.0.0.1指手机,远程接入通过未来经验证的配对网关。
+17
View File
@@ -0,0 +1,17 @@
# 选择本机项目与预览 HTML
## 打开项目
点击左侧「当前项目」旁的加号 →「选择文件夹」。网页端可点击盘符、常用位置和子文件夹,也可输入完整路径后点击「前往」。定位到项目目录后,点击「使用此文件夹」→「打开项目」。取消选择不会添加项目,空项目目录也可使用。
桌面端的「选择文件夹」使用 Windows 文件夹对话框。网页工作台浏览的是运行工作台的这台电脑,路径输入仍可直接使用。
## HTML 文件
点击项目文件列表中的 `.html` 或 `.htm`,右侧默认显示预览。文件标题旁可切换「预览 / 源码」;「刷新预览」会重新读取已保存的文件。网页可打开「独立页面」,桌面可用「在浏览器打开」。编辑仍通过原有提案和应用流程保存;尚未应用的修改不会出现在预览里。
内联 JavaScript、相对 CSS、JavaScript 模块、JSON 和图片可直接加载。例如 `pages/index.html` 可引用 `../assets/app.mjs`。预览使用独立本机地址,页面不能调用工作台控制接口和桌面原生功能。外部 CDN 不会自动联网;站点根路径不会被重写。
React/Vite 等需要构建或开发服务的应用,请使用「任务」中的所属项目预览。外部网站、代理观察和登录继续使用「浏览」里的授权流程。静态 HTML 文件预览本身不会生成模型任务或页面验收报告。
切换到源码、切换文件/项目或离开文件页会释放嵌入预览;独立页面共享该预览的有效期。闲置超过 30 分钟后可点击「刷新预览」重新打开。
+2
View File
@@ -1,5 +1,7 @@
# 后续执行计划
最新:1.22.1 已本地部署修复网页目录选择和直接 HTML 预览;使用入口见[本机项目与 HTML](LOCAL-FILES.md),定向验证/回顾见[补丁验收](QA-1.22.1.md)。保留原 PID/Provider 和全部项目会话工件。下一仍为 [1.23发行效率](PLAN-1.23.md):本次完整载荷1968554008字节、20962文件,正式激活722.096秒,作为实际性能依据;不得跳过文件范围/字节/回退门槛。桌面/网页的基础用户操作列入后续每阶段必验。以下旧段落按各自版本历史理解。
当前:1.22.0已完成所属Vite预览、独立桌面浏览区、有界DOM/原截图与审批动作、独立登录资料/撤销/下载、手机原观察SHA核对的本地交付。独立源码683/683(C完整原轮通过,D严格绑定后沿用)、33类250组原B串行界面(产品输入相同,严格绑定后沿用)、源码/便携/实际安装各17组浏览流程、同载荷安装7组、正式30页及Edge/Electron两视口通过。原PID36552/Provider保持,17项目/32全部会话/3239记录/6229事件及1780工件文件原字节保持,9229关闭。本轮验收发起真实模型请求0。
见[使用说明](EMBEDDED-BROWSER.md)、[1.22验收](QA-1.22.md)、[回顾](RETROSPECTIVE-1.22.md)与[发行身份](embedded-browser-release-identity.json)。下一[1.23发行效率与更新进度](PLAN-1.23.md)仅方案;真实模型自主工程/Purge收益和新iPhone流程另验。
+15 -1
View File
@@ -18,4 +18,18 @@ HTML 文件默认预览,代码索引定位仍进入源码。预览显示已保
- 首轮路径夹具错误指回项目内部;随后改为真实项目外 HTML。Host 拒绝测试改用真实 HTTP 请求,因为 Node fetch 会忽略覆盖的 Host。原开发失败另存。
- 首轮实际 Electron 在未显示的测试窗口内点击没有产生计数变化;验收器改为实际显示窗口后,原控件点击通过。未以脚本赋值替代点击。
本地部署身份、精确数据保持及现场回看将在完成后补入;下一 1.23 发行效率计划继续保留。本补丁不调用真实模型、不续跑用户任务,也不修改用户 HTML。
正式本地部署已完成,身份见 [发行身份](local-files-release-identity.json),入口见 [使用说明](LOCAL-FILES.md)。下一 1.23 发行效率计划继续保留。本补丁不调用真实模型、不续跑用户任务,也不修改用户 HTML。
## 本地交付
产品实现提交 `70ac4c40b5a60b5e8ebb08b05bf29fa59d5ea8c7`。新不可变安装候选 `Agent-Workbench-1.22.1-local-patch-20261102005525565` 共20962文件/1968554008字节,沿用且逐项核对原1.22运行组件,客户端/服务端/桌面为新构建;所有候选复制字节核对后,候选中的 Edge/Electron 九组核心流程重新通过。此次交付是本地安装补丁,未制作独立下载包或重新执行无关历史全量测试。
升级最初被一个打开的旧桌面窗口阻止,未执行任何升级;通过原生界面确认任务空闲且输入为空后正常关闭窗口,保留失败收据。正式升级/激活/最终独立核对均通过,安装指针 revision13,原PID36552与Provider保留,17项目/33全部会话/3239记录/6230事件/1780工件、全部原数据库行/完整导出/模型中心精确保持。原用户SQLite仅本地备份,提交材料只保留其哈希收据;9229关闭。本次正式激活722.096秒,耗时记录给1.23优化,不修改既有校验机制。
正式现有 `pelican-bicycle.html` 预览、SVG和暂停→播放→暂停实测通过,SHA256 `d7ee72b89cb7a45dc1fdb2d77ca2129d0005193915c61ea5c22069c1e9fe1008` 保持。用户当前内置浏览器已刷新并实际显示新预览。原件见 [证据清单](local-files-1.22.1-evidence/manifest.json)。
从安装根重新打开的原生窗口已恢复原已完成会话及空输入。直接点击原项目的 `pelican-cycle.html` 显示SVG与页面控件,真实暂停点击将「暂停动画」切换为「继续骑行」;13412字节及SHA256 `28ea36dc77ddcda3a48138b93f98942dbab2dafa9c403a67ac70bcb5d7cdceff` 保持。原生首次AX点击缺少坐标几何,观察新截图、仅提升工作台窗口后以截图坐标完成,未操作其他应用。恢复窗口后的最终只读核对再次确认全部原数据与模型中心精确保持、原PID36552、hasKey=true、桌面窗口1、活动任务0、9229关闭。见 [原生回看](local-files-1.22.1-evidence/formal-native-result.json) 和 [最终核对](local-files-1.22.1-evidence/final-retained-state-result.json)。
## 基础流程漏项的改进
问题根因是项目添加依赖桌面原生桥、普通文件浏览依赖复杂的任务/Vite 流程;此前专项覆盖不能证明这些用户最先遇到的入口可用。后续里程碑必须从用户入口走完:选本机项目、浏览文件、打开可视内容、编辑/保存/查看结果和失败返回,并区分网页/桌面。已有回归数量和任务执行证据不得替代这些主流程。本补丁将新路径接入版本化验收入口,使用独立 `local-files` 前缀,避免覆盖原 1.22 浏览证据。
Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

@@ -0,0 +1,42 @@
{
"success": true,
"version": "1.22.1",
"appRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc",
"checks": [
"web: directory selection, cancel, invalid path recovery, project persistence",
"web: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction",
"web: source switch and fresh saved-file reload",
"web: independent page renders",
"web: project switch clears old file preview",
"electron: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction",
"electron: source switch and fresh saved-file reload",
"electron: preview subframe has no native bridge or Node",
"electron: existing native picker cancel leaves project unchanged (explicit dialog fixture)"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc\\web-directory-wide.png",
"sha256": "ecb4101990d07c082b57ecd0c2ae32a5e6f84ce3e338e8cc6e817519d84c4fdb"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc\\web-preview-wide.png",
"sha256": "22ac58c24a4f8e1916070769cf07002e972633ce3c816345f485f740a759af56"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc\\web-preview-390.png",
"sha256": "1015ef86969afcee695cd8e8e1bc42e284d78641ca522bb269fec64429a7b320"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc\\web-directory-390.png",
"sha256": "93b9e0d6f2b90a9ad65eb51aba3c828aa0df3a435419f5c7140994ba75996127"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc\\electron-preview-wide.png",
"sha256": "de9e29e11603f08f016f4fe1821b4d35f12e22e9281231dbe53bcaef9b129086"
}
],
"realModelRequests": 0,
"errors": [],
"hostPid": 16508
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

@@ -0,0 +1,62 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { DatabaseSync } from 'node:sqlite';
import { snapshotPersistentData } from '../src/core/desktop/install-manager.mjs';
export const hash = bytes => createHash('sha256').update(bytes).digest('hex');
export const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object' ? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
export const digest = value => hash(JSON.stringify(canonical(value)));
export function databaseSnapshot(dataRoot) {
const database = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true }); database.exec('BEGIN');
try {
assert.equal(database.prepare('PRAGMA quick_check').get().quick_check, 'ok');
const tables = {};
for (const { name, sql } of database.prepare("SELECT name,sql FROM sqlite_schema WHERE type='table' ORDER BY name").all()) {
assert.match(name, /^[a-z_]+$/);
const rows = database.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(row => !(name === 'metadata' && row.key === 'runtimeOwner'));
tables[name] = { count: rows.length, schemaSha256: hash(sql), sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
}
const sessionIds = database.prepare('SELECT id FROM sessions ORDER BY id').all().map(row => row.id);
const owner = database.prepare("SELECT value FROM metadata WHERE key='runtimeOwner'").get();
return { tables, sessionIds, ownerSha256: owner ? digest(owner) : null, scope: 'Every original table schema and row field hashed, excluding only runtimeOwner lifecycle metadata. No row payload or credential is returned.' };
} finally { database.exec('ROLLBACK'); database.close(); }
}
export async function publicSnapshot(url, dataRoot) {
const healthResponse = await fetch(url + '/api/health', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(healthResponse.status, 200);
const health = await healthResponse.json(), bootResponse = await fetch(url + '/api/bootstrap', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(bootResponse.status, 200);
const bootstrap = await bootResponse.json(); const token = bootstrap.token;
const api = async route => { const response = await fetch(url + '/api' + route, { headers: { 'X-Workbench-Token': token, Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.ok(response.ok, route + ': HTTP ' + response.status); return response.json(); };
const database = databaseSnapshot(dataRoot), exports = [];
for (const id of database.sessionIds) {
const report = await api('/sessions/' + id + '/export');
exports.push({ id, project: digest(report.project), session: digest(report.session), execution: digest(report.execution) });
}
const center = await api('/model-center');
// This is the documented public model-center view; Provider's private map and
// API key are never accessed. Only this public object is retained for schema-aware comparison.
const modelCenter = structuredClone(center);
return { observedAt: new Date().toISOString(), version: health.version, pid: health.pid, runtimeRoot: bootstrap.runtimeRoot,
configSha256: digest(bootstrap.config), projectsSha256: digest(bootstrap.projects), sessionsSha256: digest(bootstrap.sessions), modelCenterSha256: digest(modelCenter), modelCenter,
projects: bootstrap.projects.length, visibleSessions: bootstrap.sessions.length, hasKey: !!bootstrap.config.hasKey,
active: bootstrap.sessions.filter(value => ['running', 'awaiting_approval', 'stopping'].includes(value.status)).map(value => ({ id: value.id, status: value.status })),
storage: bootstrap.storage, eventCursor: bootstrap.eventCursor, database, exports, persistent: snapshotPersistentData(dataRoot),
scope: 'Read-only public state, every original session export digest, original table/row/schema hashes and every original artifact byte hash. No credential extraction, model probe, execution or mutation.' };
}
export function compareOriginalState(before, after, { modelCenterSchemaChange = false } = {}) {
for (const field of ['pid', 'hasKey', 'configSha256', 'projectsSha256', 'sessionsSha256', 'eventCursor']) assert.deepEqual(after[field], before[field], field);
assert.deepEqual(canonical(after.database.tables), canonical(before.database.tables), 'All original table schemas and every persistent row');
assert.deepEqual(after.database.sessionIds, before.database.sessionIds); assert.deepEqual(after.exports, before.exports);
assert.deepEqual(after.persistent, before.persistent, 'Every original artifact byte, persistent row and public disk config');
if (modelCenterSchemaChange) {
const original = structuredClone(before.modelCenter), next = structuredClone(after.modelCenter);
// 1.15 changes only the public explanatory text about optional DPAPI storage.
// Existing IDs, routes, revisions, credentials-present bits and all original attempts remain exact.
assert.match(next.storage.restart, /临时凭据.*已明确本机加密保存/);
next.storage.restart = original.storage.restart;
assert.deepEqual(next, original, 'Original public model center, except versioned storage explanation');
return { modelCenterChange: { path: '/storage/restart', original: before.modelCenter.storage.restart, actual: after.modelCenter.storage.restart }, originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact' };
}
assert.equal(after.modelCenterSha256, before.modelCenterSha256);
return { originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact', originalModelCenter: 'exact' };
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

@@ -0,0 +1,99 @@
{
"success": true,
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-window-4a20916f-6554-434a-9e35-eff855a73bf0",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench",
"dataRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-window-4a20916f-6554-434a-9e35-eff855a73bf0\\data",
"port": 57229,
"results": [
{
"name": "actual Electron process registered and original host reused",
"passed": true,
"electronPid": 33268,
"launcherPid": 36124,
"hostPid": 58364
},
{
"name": "sandboxed renderer and fixed preload",
"passed": true,
"surface": {
"methods": [
"browsingLayout",
"openFilePreview",
"pickProject",
"projectFolder",
"protocol",
"revealFile",
"reviewTask",
"status",
"stopHost"
],
"require": "undefined",
"process": "undefined",
"ipc": "undefined",
"frozen": true
}
},
{
"name": "external navigation, requests and popups rejected",
"passed": true,
"navigation": {
"url": "http://127.0.0.1:57229/?desktop=1&release=1.22.1",
"loading": false
},
"originalWindowRefreshed": true
},
{
"name": "offline original task and approval retained across refresh and window close",
"passed": true,
"taskId": "8f138eb3-a247-4b8d-b6af-89cc2f549953",
"runId": "4a341ca3-59a2-491b-810b-7d3935e7f74d",
"approvalId": "e5d41f9e-f9cd-4de9-b842-00a5cc7c0e85",
"eventSeq": 39,
"completedTools": 3
},
{
"name": "actual command approval, proposal and project check",
"passed": true,
"changeId": "11698714-0cf1-4e2c-88bd-08f7718a5e1a",
"checkId": "2a3b3b17-71cf-4956-b876-8e3320495c07",
"checkStatus": "passed"
},
{
"name": "current project, task and file desktop entry scope",
"passed": true,
"invalidRejected": 4,
"fixtureCalls": [
{
"folder": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-window-4a20916f-6554-434a-9e35-eff855a73bf0\\owned-project"
},
{
"reveal": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-window-4a20916f-6554-434a-9e35-eff855a73bf0\\owned-project\\README.md"
}
],
"screenshots": [
{
"name": "desktop-host-1440",
"width": 1440,
"png": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-window-4a20916f-6554-434a-9e35-eff855a73bf0\\desktop-host-1440.png"
},
{
"name": "desktop-host-390",
"width": 390,
"png": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\desktop-window-4a20916f-6554-434a-9e35-eff855a73bf0\\desktop-host-390.png"
}
],
"nativeOperations": "Dialog/shell adapters are declared fixtures in this automated run; actual Windows picker separately verified."
},
{
"name": "native stop cancelled, then original host explicitly stopped",
"passed": true,
"hostPid": 58364,
"exited": true,
"confirmation": "Declared native confirmation fixtures: cancelled first, confirmed second."
}
],
"errors": [],
"requests": [],
"native": false,
"inference": "Offline demo/local engineering checks only; no configured model or existing credentials."
}
@@ -0,0 +1,23 @@
{
"scope": "Additional private local snapshots after activation, verification and native-window review. Only byte counts and hashes committed.",
"files": [
{
"file": ".qa/local-files-release-after-activate.json",
"bytes": 4349123,
"sha256": "2fc0955cc43ca146ec4477b8b11d32c75b6ac7deb27cf4e9e7bb4424052d33a6",
"committed": false
},
{
"file": ".qa/local-files-release-after-verify.json",
"bytes": 4349123,
"sha256": "4c280f4ddbd604d773e7735cbaf795cfdc9eb6eb4346d074c0744fadfce37301",
"committed": false
},
{
"file": ".qa/local-files-release-after-final-review.json",
"bytes": 4349123,
"sha256": "b86f4504ae355e98f39e4ab3c1e3b4d6411761489835813bd71440a774184865",
"committed": false
}
]
}
@@ -0,0 +1,32 @@
{
"success": true,
"observedAt": "2026-11-02T01:18:32.743Z",
"scope": "Final read-only comparison after installed native window restoration and HTML interaction",
"version": "1.22.1",
"pid": 36552,
"desktopWindows": 1,
"activeTasks": 0,
"hostActivityActive": false,
"inspectorClosed": true,
"retained": {
"originalRows": "exact",
"originalExports": "exact",
"originalArtifactBytes": "exact",
"originalModelCenter": "exact"
},
"hasKey": true,
"counts": {
"projects": 17,
"sessions": 33,
"records": 3239,
"events": 6230,
"artifacts": 1780
},
"snapshot": {
"file": ".qa/local-files-release-after-final-review.json",
"bytes": 4349123,
"sha256": "b86f4504ae355e98f39e4ab3c1e3b4d6411761489835813bd71440a774184865",
"committed": false
},
"realModelRequests": 0
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

@@ -0,0 +1,31 @@
{
"success": true,
"observedAt": "2026-11-02T01:18:36.988Z",
"method": "CUA on installed native window",
"version": "1.22.1",
"windowId": 8460560,
"file": "D:/Ai-project/REA逆向/Agent-Workbench/releases/Agent-Workbench-0.1.0-win-x64/examples/starter-project/pelican-cycle.html",
"originalSha256": "28ea36dc77ddcda3a48138b93f98942dbab2dafa9c403a67ac70bcb5d7cdceff",
"finalSha256": "28ea36dc77ddcda3a48138b93f98942dbab2dafa9c403a67ac70bcb5d7cdceff",
"bytes": 13412,
"observed": [
"Original completed session and empty task input restored",
"Existing HTML opened directly from project file list",
"Rendered SVG, source/preview switch, refresh and browser-open controls visible",
"Actual pause click changed visible button from 暂停动画 to 继续骑行"
],
"recovery": "Initial AX-index click lacked coordinate geometry; observed fresh screenshot, raised only the Workbench window, and used screenshot-derived coordinates. No action on unrelated windows.",
"screenshots": [
{
"file": "formal-native-html-preview.png",
"sha256": "4feb138ffa220311519aa395bc784ab6be9c3d68166dd5ed4b23899f24880ff2"
},
{
"file": "formal-native-html-paused.png",
"sha256": "28fa6f81e04a108566826ac7d66a7255bc46ebc1977edff55f8af268126d8317"
}
],
"userFileModified": false,
"originalTaskExecuted": false,
"realModelRequests": 0
}
@@ -0,0 +1,24 @@
{
"success": true,
"version": "1.22.1",
"projectId": "46d9ba13-b48c-43a2-a726-fc8ad47badb1",
"file": "pelican-bicycle.html",
"originalSha256": "d7ee72b89cb7a45dc1fdb2d77ca2129d0005193915c61ea5c22069c1e9fe1008",
"finalSha256": "d7ee72b89cb7a45dc1fdb2d77ca2129d0005193915c61ea5c22069c1e9fe1008",
"controls": {
"initial": "暂停",
"changed": "播放"
},
"screenshots": [
{
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-formal-view\\current-html-preview.png",
"sha256": "0404d0fddb3f79bfced8d832347c51e5d9b1ed1aa9bc043c2b2dda99f6d94d79"
},
{
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-formal-view\\current-folder-picker.png",
"sha256": "68653c2d1bbdb11ed8b295f497b98835c6f0ddcc4b7082c33cec2977e24f5d8f"
}
],
"realModelRequests": 0,
"projectRegistrationRequests": 0
}
@@ -0,0 +1 @@
{"success":true,"version":"1.22.1","projectId":"46d9ba13-b48c-43a2-a726-fc8ad47badb1","file":"pelican-bicycle.html","originalSha256":"d7ee72b89cb7a45dc1fdb2d77ca2129d0005193915c61ea5c22069c1e9fe1008","finalSha256":"d7ee72b89cb7a45dc1fdb2d77ca2129d0005193915c61ea5c22069c1e9fe1008","controls":{"initial":"暂停","changed":"播放"},"screenshots":[{"path":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-formal-view\\current-html-preview.png","sha256":"0404d0fddb3f79bfced8d832347c51e5d9b1ed1aa9bc043c2b2dda99f6d94d79"},{"path":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-formal-view\\current-folder-picker.png","sha256":"68653c2d1bbdb11ed8b295f497b98835c6f0ddcc4b7082c33cec2977e24f5d8f"}],"realModelRequests":0,"projectRegistrationRequests":0}
@@ -0,0 +1,10 @@
web: directory selection, cancel, invalid path recovery, project persistence: passed
web: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction: passed
web: source switch and fresh saved-file reload: passed
web: independent page renders: passed
web: project switch clears old file preview: passed
electron: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction: passed
electron: source switch and fresh saved-file reload: passed
electron: preview subframe has no native bridge or Node: passed
electron: existing native picker cancel leaves project unchanged (explicit dialog fixture): passed
{"success":true,"checks":9,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-ec462952-01e3-4e40-9c00-f3804859f3cc"}
@@ -0,0 +1,7 @@
actual Electron process registered and original host reused: passed
sandboxed renderer and fixed preload: passed
external navigation, requests and popups rejected: passed
offline original task and approval retained across refresh and window close: passed
actual command approval, proposal and project check: passed
current project, task and file desktop entry scope: passed
native stop cancelled, then original host explicitly stopped: passed
@@ -0,0 +1,55 @@
import fs from 'node:fs';
import path from 'node:path';
import net from 'node:net';
import assert from 'node:assert/strict';
import { publicSnapshot, compareOriginalState, hash } from './desktop-f-state.mjs';
const root = 'docs/local-files-1.22.1-evidence';
const dataRoot = 'C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench';
const url = 'http://127.0.0.1:4318';
const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
const save = (file, value) => fs.writeFileSync(file, JSON.stringify(value, null, 2) + '\n', { flag: 'wx' });
const before = read('.qa/local-files-release-before.json');
const after = await publicSnapshot(url, dataRoot);
const retained = compareOriginalState(before, after);
assert.equal(after.version, '1.22.1');
assert.equal(after.pid, 36552);
assert.deepEqual(after.active, []);
const boot = await (await fetch(url + '/api/bootstrap')).json();
const response = await fetch(url + '/api/host/status', { headers: { 'X-Workbench-Token': boot.token } });
assert.equal(response.status, 200);
const status = await response.json();
assert.equal(status.desktopWindows.count, 1);
assert.equal(status.activity.active, false);
await new Promise((resolve, reject) => {
const socket = net.createConnection({ host: '127.0.0.1', port: 9229 });
socket.setTimeout(2000);
socket.once('connect', () => { socket.destroy(); reject(Error('Inspector unexpectedly open')); });
socket.once('error', error => { socket.destroy(); error.code === 'ECONNREFUSED' ? resolve() : reject(error); });
socket.once('timeout', () => { socket.destroy(); reject(Error('Inspector state unknown')); });
});
const original = read('.qa/local-files-native-original.json');
const originalBytes = fs.readFileSync(original.path);
assert.equal(hash(originalBytes), original.sha256);
assert.equal(originalBytes.length, original.bytes);
const nativeReview = {
success: true, observedAt: new Date().toISOString(), method: 'CUA on installed native window',
version: '1.22.1', windowId: 8460560, file: original.path,
originalSha256: original.sha256, finalSha256: hash(originalBytes), bytes: originalBytes.length,
observed: ['Original completed session and empty task input restored', 'Existing HTML opened directly from project file list', 'Rendered SVG, source/preview switch, refresh and browser-open controls visible', 'Actual pause click changed visible button from 暂停动画 to 继续骑行'],
recovery: 'Initial AX-index click lacked coordinate geometry; observed fresh screenshot, raised only the Workbench window, and used screenshot-derived coordinates. No action on unrelated windows.',
screenshots: ['formal-native-html-preview.png', 'formal-native-html-paused.png'].map(file => ({ file, sha256: hash(fs.readFileSync(path.join(root, file))) })),
userFileModified: false, originalTaskExecuted: false, realModelRequests: 0,
};
save(path.join(root, 'formal-native-result.json'), nativeReview);
save('.qa/local-files-release-after-final-review.json', after);
const result = {
success: true, observedAt: after.observedAt, scope: 'Final read-only comparison after installed native window restoration and HTML interaction',
version: after.version, pid: after.pid, desktopWindows: status.desktopWindows.count,
activeTasks: after.active.length, hostActivityActive: status.activity.active, inspectorClosed: true,
retained, hasKey: after.hasKey, counts: { projects: after.projects, sessions: after.database.sessionIds.length, records: after.database.tables.records.count, events: after.database.tables.events.count, artifacts: after.persistent.artifacts.length },
snapshot: { file: '.qa/local-files-release-after-final-review.json', bytes: fs.statSync('.qa/local-files-release-after-final-review.json').size, sha256: hash(fs.readFileSync('.qa/local-files-release-after-final-review.json')), committed: false },
realModelRequests: 0,
};
save(path.join(root, 'final-retained-state-result.json'), result);
console.log(JSON.stringify(result, null, 2));
@@ -0,0 +1,33 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { chromium, expect } from 'playwright/test';
import { hash } from './desktop-f-state.mjs';
const root = path.resolve('.qa/local-files-formal-view'); assert.equal(fs.existsSync(root), false); fs.mkdirSync(root);
const url = 'http://127.0.0.1:4318', bootstrap = await (await fetch(url + '/api/bootstrap')).json(); assert.equal(bootstrap.version, '1.22.1');
const projectRoot = path.resolve('releases/Agent-Workbench-1.12.0-win-x64-20261030124454517/examples/starter-project');
const project = bootstrap.projects.find(item => item.root.toLowerCase() === projectRoot.toLowerCase()); assert.ok(project);
const headers = { 'X-Workbench-Token': bootstrap.token };
const file = await (await fetch(url + '/api/projects/' + project.id + '/file?path=pelican-bicycle.html', { headers })).json(); assert.ok(file.sha256.startsWith('d7ee72b89c'));
let browser;
try {
browser = await chromium.launch({ channel: 'msedge', headless: true }); const page = await browser.newPage({ viewport: { width: 1440, height: 960 } });
await page.goto(url + '/?release=1.22.1'); await page.locator('.connection.connected').waitFor();
await page.getByRole('combobox', { name: '当前项目', exact: true }).selectOption(project.id);
await page.getByRole('button', { name: 'pelican-bicycle.html', exact: true }).click();
const frame = page.frameLocator('iframe'); await expect(frame.locator('svg')).toBeVisible();
const buttons = await frame.locator('button').allTextContents(); assert.ok(buttons.length);
const button = frame.locator('button').first(), initial = await button.innerText(); await button.click(); await expect(button).not.toHaveText(initial); const changed = await button.innerText();
await button.click(); await expect(button).toHaveText(initial);
const shot = path.join(root, 'current-html-preview.png'); await page.screenshot({ path: shot });
await page.getByRole('button', { name: '打开项目', exact: true }).click(); await page.getByRole('button', { name: '选择文件夹', exact: true }).click();
await page.getByLabel('浏览文件夹路径').fill(projectRoot); await page.getByRole('button', { name: '前往', exact: true }).click();
await expect(page.getByRole('button', { name: '使用此文件夹', exact: true })).toBeEnabled();
const chooser = path.join(root, 'current-folder-picker.png'); await page.screenshot({ path: chooser });
await page.getByRole('button', { name: '取消选择' }).click(); await page.getByRole('button', { name: '关闭窗口', exact: true }).click();
await page.getByRole('button', { name: '源码', exact: true }).click();
const final = await (await fetch(url + '/api/projects/' + project.id + '/file?path=pelican-bicycle.html', { headers })).json(); assert.equal(final.sha256, file.sha256);
const result = { success: true, version: bootstrap.version, projectId: project.id, file: file.path, originalSha256: file.sha256, finalSha256: final.sha256, controls: { initial, changed }, screenshots: [shot, chooser].map(file => ({ path: file, sha256: hash(fs.readFileSync(file)) })), realModelRequests: 0, projectRegistrationRequests: 0 };
fs.writeFileSync(path.join(root, 'result.json'), JSON.stringify(result, null, 2)); console.log(JSON.stringify(result));
} catch (error) { fs.writeFileSync(path.join(root, 'failure.json'), JSON.stringify({ success: false, error: error.stack }, null, 2)); throw error; }
finally { await browser?.close(); }
@@ -0,0 +1,174 @@
{
"success": true,
"mode": "activate",
"activated": {
"phase": "activated",
"active": {
"directory": "Agent-Workbench-1.22.1-local-patch-20261102005525565",
"version": "1.22.1",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"runtimeIdentity": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb"
},
"receiptFile": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\.installation\\operation-9b7e8865-fd53-4d75-85fc-df0fedd01cac.json",
"hostRetained": false,
"dataPreserved": true
},
"retained": {
"originalRows": "exact",
"originalExports": "exact",
"originalArtifactBytes": "exact",
"originalModelCenter": "exact"
},
"pointer": {
"schema": 1,
"app": "agent-workbench-installation",
"installId": "74c11bdd-4895-459b-8403-097f79980b41",
"revision": 13,
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
"port": 4318,
"active": {
"directory": "Agent-Workbench-1.22.1-local-patch-20261102005525565",
"version": "1.22.1",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"runtimeIdentity": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb"
},
"previous": {
"directory": "Agent-Workbench-1.22.0-win-x64-20261101225201840",
"version": "1.22.0",
"manifestSha256": "02737d1e0fac80334f0ff28a42868066b9ac5b339ca3a3fc443cecc915a36265",
"runtimeIdentity": "693f1fe3cbe3e9c8b9ac01d3a55dd9f03c90d9714f4a69b4a0812b11de8e5a42"
},
"activatedAt": "2026-11-02T01:11:42.711Z"
},
"candidate": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"identity": {
"root": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"version": "1.22.1",
"kind": "portable",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"inputs": [
{
"path": "dist-client/.vite/manifest.json",
"bytes": 552,
"sha256": "66be94fb50c919ed863bdf13632794c26821e7c8a43849c07244174709e55c20"
},
{
"path": "dist-client/assets/desktop-BftHIJab.js",
"bytes": 374001,
"sha256": "211423b5e30b1763034b8cae493e667810abc2702c78ed623f69467e7dfbbe21"
},
{
"path": "dist-client/assets/desktop-CP_LMq2w.css",
"bytes": 160935,
"sha256": "2f215d5e9172f911fcd26286d80fa0238fd02f48e9911d831c817f8fa193a376"
},
{
"path": "dist-client/assets/mobile-BewIZSK_.js",
"bytes": 26137,
"sha256": "ec7dd19f42cb7cd4813b3eb3a0593f97597ecd2cf7028b3fd40978d1d5a6f67b"
},
{
"path": "dist-client/assets/mobile-CNDnI_ru.css",
"bytes": 11918,
"sha256": "efdc6b3693e32fb9633da8b7c7e60c415e1a66642640c30e5b8e2ef4b2505f68"
},
{
"path": "dist-client/assets/x-BnWsFXbN.js",
"bytes": 225509,
"sha256": "8ba729025563ab9c37b8d9186e9f2e29fa9f4ce7d8710ef184bb8e8d1a21eec8"
},
{
"path": "dist-client/favicon.svg",
"bytes": 268,
"sha256": "538fa42445dfd8e78135717e2f30dada6d790d5c05b9011ae7a9bf80d416ae1d"
},
{
"path": "dist-client/index.html",
"bytes": 577,
"sha256": "2b3dda6e0d21a07a5104449b118eaa7f4c0acca1c17379037f73c5434265514d"
},
{
"path": "dist-client/mobile-assets.json",
"bytes": 95,
"sha256": "7a792df4b81908fa86652b56fa171c33e5ba46f000cb9b128e3cf511d3cd60bc"
},
{
"path": "dist-client/mobile-icon.svg",
"bytes": 307,
"sha256": "2241a24a26e67e2587614819d7860575e76bdaf9e2c3de6abeb58538d3f2b81c"
},
{
"path": "dist-client/mobile-sw.js",
"bytes": 1140,
"sha256": "295131e046562a02123a2a48414867e5dc73c7380f59d00cbe163a1663e510ea"
},
{
"path": "dist-client/mobile-touch-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-client/mobile.html",
"bytes": 822,
"sha256": "a5aa7da62cbf92d53abbe830eae545043d14068a28393a900eb1709cbaa7ae92"
},
{
"path": "dist-client/mobile.webmanifest",
"bytes": 372,
"sha256": "1d2a9bf8216aadce8fc47de1e236c4c7adda60ce96609133ee7e19e361b4673b"
},
{
"path": "dist-client/workbench-icon.ico",
"bytes": 1095,
"sha256": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
{
"path": "dist-client/workbench-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-desktop/main.cjs",
"bytes": 81370,
"sha256": "3aa425f6a96ba34a349efb9c6c2215ce54caaca0e2dd909399438142dc94f52e"
},
{
"path": "dist-desktop/preload.cjs",
"bytes": 823,
"sha256": "5bcc6b7b54da171d1b5fa833abac31248fe10254e6afaf61da03c4ef6a0b8d2c"
},
{
"path": "dist-server/host-launcher.mjs",
"bytes": 29721,
"sha256": "b75b48b3ad8c963947f3febeef2c051ba65583b71ec6d28cddc49ba6fab1bd92"
},
{
"path": "dist-server/hot-upgrade.mjs",
"bytes": 2796620,
"sha256": "407260a007d76c6f94044351ac4eb71eb39ea6004fb22c8752ebe7be311315d6"
},
{
"path": "dist-server/install-manager.mjs",
"bytes": 65898,
"sha256": "b1d1fa57dcc322b2815925907c117864f6a1dd2714e6b587e069a8982dee004c"
},
{
"path": "dist-server/server.mjs",
"bytes": 2794235,
"sha256": "2564207d36ea83bad604c5650265fa1b0a74a9a031fef2b21e1561653e914956"
}
],
"verification": "loaded-host-and-client-inputs",
"identitySha256": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb"
},
"pid": 36552,
"hasKey": true,
"projects": 17,
"sessions": 33,
"records": 3239,
"events": 6230,
"artifacts": 1780,
"realModelRequests": 0,
"startedAt": "2026-11-02T00:59:52.202Z",
"finishedAt": "2026-11-02T01:11:54.298Z"
}
@@ -0,0 +1 @@
{"success":true,"mode":"activate","output":".qa/local-files-release-activate.json","candidate":"C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565"}
@@ -0,0 +1,252 @@
{
"success": true,
"mode": "stage",
"commit": "70ac4c40b5a60b5e8ebb08b05bf29fa59d5ea8c7",
"candidate": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"baseline": {
"root": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.0-win-x64-20261101225201840",
"version": "1.22.0",
"kind": "portable",
"manifestSha256": "02737d1e0fac80334f0ff28a42868066b9ac5b339ca3a3fc443cecc915a36265",
"inputs": [
{
"path": "dist-client/.vite/manifest.json",
"bytes": 552,
"sha256": "31b9c197ee2ab251da295b6d4d1f55af6db35860b07a8bfe96be4cc5380135a1"
},
{
"path": "dist-client/assets/desktop-CwBApaLz.js",
"bytes": 368197,
"sha256": "e45b2e98924828f300eec2afd6fe975df531c27f40a3fbbb1e7afab1f8079c59"
},
{
"path": "dist-client/assets/desktop-vcA-TXgD.css",
"bytes": 157838,
"sha256": "1004969cfc641adb0d24097b7c74e1c757a7f3e5fb8b418c3a6f676dd312adfa"
},
{
"path": "dist-client/assets/mobile-BewIZSK_.js",
"bytes": 26137,
"sha256": "ec7dd19f42cb7cd4813b3eb3a0593f97597ecd2cf7028b3fd40978d1d5a6f67b"
},
{
"path": "dist-client/assets/mobile-CNDnI_ru.css",
"bytes": 11918,
"sha256": "efdc6b3693e32fb9633da8b7c7e60c415e1a66642640c30e5b8e2ef4b2505f68"
},
{
"path": "dist-client/assets/x-BnWsFXbN.js",
"bytes": 225509,
"sha256": "8ba729025563ab9c37b8d9186e9f2e29fa9f4ce7d8710ef184bb8e8d1a21eec8"
},
{
"path": "dist-client/favicon.svg",
"bytes": 268,
"sha256": "538fa42445dfd8e78135717e2f30dada6d790d5c05b9011ae7a9bf80d416ae1d"
},
{
"path": "dist-client/index.html",
"bytes": 577,
"sha256": "2652bc994f13881bf284a582663e989a328516c05fe1d20068dcffad38500edf"
},
{
"path": "dist-client/mobile-assets.json",
"bytes": 95,
"sha256": "7a792df4b81908fa86652b56fa171c33e5ba46f000cb9b128e3cf511d3cd60bc"
},
{
"path": "dist-client/mobile-icon.svg",
"bytes": 307,
"sha256": "2241a24a26e67e2587614819d7860575e76bdaf9e2c3de6abeb58538d3f2b81c"
},
{
"path": "dist-client/mobile-sw.js",
"bytes": 1140,
"sha256": "295131e046562a02123a2a48414867e5dc73c7380f59d00cbe163a1663e510ea"
},
{
"path": "dist-client/mobile-touch-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-client/mobile.html",
"bytes": 822,
"sha256": "a5aa7da62cbf92d53abbe830eae545043d14068a28393a900eb1709cbaa7ae92"
},
{
"path": "dist-client/mobile.webmanifest",
"bytes": 372,
"sha256": "1d2a9bf8216aadce8fc47de1e236c4c7adda60ce96609133ee7e19e361b4673b"
},
{
"path": "dist-client/workbench-icon.ico",
"bytes": 1095,
"sha256": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
{
"path": "dist-client/workbench-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-desktop/main.cjs",
"bytes": 79349,
"sha256": "131a2ce843ee635cd9d1f7b1bfaff7baa6896faddb412133e866de8a1bf027ab"
},
{
"path": "dist-desktop/preload.cjs",
"bytes": 738,
"sha256": "609cd2acf421def604704e7ef0682182c275d5b6c4d6d0962e43d83553d92b7b"
},
{
"path": "dist-server/host-launcher.mjs",
"bytes": 29721,
"sha256": "b75b48b3ad8c963947f3febeef2c051ba65583b71ec6d28cddc49ba6fab1bd92"
},
{
"path": "dist-server/hot-upgrade.mjs",
"bytes": 2785220,
"sha256": "eba16825224cb618995632e987aedd4a51d7b01e745784e41797b3c43dd0c848"
},
{
"path": "dist-server/install-manager.mjs",
"bytes": 65888,
"sha256": "181319acf89ec63b89d1a8dd2f37d7d96b05d8249f1be958677212ef2131b9c0"
},
{
"path": "dist-server/server.mjs",
"bytes": 2783088,
"sha256": "f111c53cb052562a449f1c938e73b35ee517e0abb75b3bdcd955e629a20cc9a9"
}
],
"verification": "loaded-host-and-client-inputs",
"identitySha256": "693f1fe3cbe3e9c8b9ac01d3a55dd9f03c90d9714f4a69b4a0812b11de8e5a42"
},
"identity": {
"root": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"version": "1.22.1",
"kind": "portable",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"inputs": [
{
"path": "dist-client/.vite/manifest.json",
"bytes": 552,
"sha256": "66be94fb50c919ed863bdf13632794c26821e7c8a43849c07244174709e55c20"
},
{
"path": "dist-client/assets/desktop-BftHIJab.js",
"bytes": 374001,
"sha256": "211423b5e30b1763034b8cae493e667810abc2702c78ed623f69467e7dfbbe21"
},
{
"path": "dist-client/assets/desktop-CP_LMq2w.css",
"bytes": 160935,
"sha256": "2f215d5e9172f911fcd26286d80fa0238fd02f48e9911d831c817f8fa193a376"
},
{
"path": "dist-client/assets/mobile-BewIZSK_.js",
"bytes": 26137,
"sha256": "ec7dd19f42cb7cd4813b3eb3a0593f97597ecd2cf7028b3fd40978d1d5a6f67b"
},
{
"path": "dist-client/assets/mobile-CNDnI_ru.css",
"bytes": 11918,
"sha256": "efdc6b3693e32fb9633da8b7c7e60c415e1a66642640c30e5b8e2ef4b2505f68"
},
{
"path": "dist-client/assets/x-BnWsFXbN.js",
"bytes": 225509,
"sha256": "8ba729025563ab9c37b8d9186e9f2e29fa9f4ce7d8710ef184bb8e8d1a21eec8"
},
{
"path": "dist-client/favicon.svg",
"bytes": 268,
"sha256": "538fa42445dfd8e78135717e2f30dada6d790d5c05b9011ae7a9bf80d416ae1d"
},
{
"path": "dist-client/index.html",
"bytes": 577,
"sha256": "2b3dda6e0d21a07a5104449b118eaa7f4c0acca1c17379037f73c5434265514d"
},
{
"path": "dist-client/mobile-assets.json",
"bytes": 95,
"sha256": "7a792df4b81908fa86652b56fa171c33e5ba46f000cb9b128e3cf511d3cd60bc"
},
{
"path": "dist-client/mobile-icon.svg",
"bytes": 307,
"sha256": "2241a24a26e67e2587614819d7860575e76bdaf9e2c3de6abeb58538d3f2b81c"
},
{
"path": "dist-client/mobile-sw.js",
"bytes": 1140,
"sha256": "295131e046562a02123a2a48414867e5dc73c7380f59d00cbe163a1663e510ea"
},
{
"path": "dist-client/mobile-touch-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-client/mobile.html",
"bytes": 822,
"sha256": "a5aa7da62cbf92d53abbe830eae545043d14068a28393a900eb1709cbaa7ae92"
},
{
"path": "dist-client/mobile.webmanifest",
"bytes": 372,
"sha256": "1d2a9bf8216aadce8fc47de1e236c4c7adda60ce96609133ee7e19e361b4673b"
},
{
"path": "dist-client/workbench-icon.ico",
"bytes": 1095,
"sha256": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
{
"path": "dist-client/workbench-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-desktop/main.cjs",
"bytes": 81370,
"sha256": "3aa425f6a96ba34a349efb9c6c2215ce54caaca0e2dd909399438142dc94f52e"
},
{
"path": "dist-desktop/preload.cjs",
"bytes": 823,
"sha256": "5bcc6b7b54da171d1b5fa833abac31248fe10254e6afaf61da03c4ef6a0b8d2c"
},
{
"path": "dist-server/host-launcher.mjs",
"bytes": 29721,
"sha256": "b75b48b3ad8c963947f3febeef2c051ba65583b71ec6d28cddc49ba6fab1bd92"
},
{
"path": "dist-server/hot-upgrade.mjs",
"bytes": 2796620,
"sha256": "407260a007d76c6f94044351ac4eb71eb39ea6004fb22c8752ebe7be311315d6"
},
{
"path": "dist-server/install-manager.mjs",
"bytes": 65898,
"sha256": "b1d1fa57dcc322b2815925907c117864f6a1dd2714e6b587e069a8982dee004c"
},
{
"path": "dist-server/server.mjs",
"bytes": 2794235,
"sha256": "2564207d36ea83bad604c5650265fa1b0a74a9a031fef2b21e1561653e914956"
}
],
"verification": "loaded-host-and-client-inputs",
"identitySha256": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb"
},
"files": 20962,
"bytes": 1968554008,
"allCopiedBytesVerified": true,
"standaloneInstaller": false,
"startedAt": "2026-11-02T00:55:25.348Z",
"finishedAt": "2026-11-02T00:57:52.501Z"
}
@@ -0,0 +1,7 @@
{
"success": false,
"mode": "upgrade",
"error": "AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n\n1 !== 0\n\n at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/local-files-release.mjs:59:136\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)",
"startedAt": "2026-11-02T00:58:26.474Z",
"finishedAt": "2026-11-02T00:58:30.966Z"
}
@@ -0,0 +1 @@
{"success":false,"mode":"upgrade","output":".qa/local-files-release-upgrade.json","error":"AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n\n1 !== 0\n\n at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/local-files-release.mjs:59:136\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"}
@@ -0,0 +1,26 @@
{
"success": true,
"mode": "upgrade",
"upgraded": {
"version": "1.22.1",
"pid": 36552,
"hasKey": true,
"projects": 17,
"sessions": 33,
"appDirectory": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"verified": true,
"connectionPreserved": true,
"url": "http://127.0.0.1:4318"
},
"retained": {
"originalRows": "exact",
"originalExports": "exact",
"originalArtifactBytes": "exact",
"originalModelCenter": "exact"
},
"candidate": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"pid": 36552,
"realModelRequests": 0,
"startedAt": "2026-11-02T00:59:31.913Z",
"finishedAt": "2026-11-02T00:59:40.679Z"
}
@@ -0,0 +1,163 @@
{
"success": true,
"mode": "verify",
"activated": null,
"retained": {
"originalRows": "exact",
"originalExports": "exact",
"originalArtifactBytes": "exact",
"originalModelCenter": "exact"
},
"pointer": {
"schema": 1,
"app": "agent-workbench-installation",
"installId": "74c11bdd-4895-459b-8403-097f79980b41",
"revision": 13,
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
"port": 4318,
"active": {
"directory": "Agent-Workbench-1.22.1-local-patch-20261102005525565",
"version": "1.22.1",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"runtimeIdentity": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb"
},
"previous": {
"directory": "Agent-Workbench-1.22.0-win-x64-20261101225201840",
"version": "1.22.0",
"manifestSha256": "02737d1e0fac80334f0ff28a42868066b9ac5b339ca3a3fc443cecc915a36265",
"runtimeIdentity": "693f1fe3cbe3e9c8b9ac01d3a55dd9f03c90d9714f4a69b4a0812b11de8e5a42"
},
"activatedAt": "2026-11-02T01:11:42.711Z"
},
"candidate": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"identity": {
"root": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"version": "1.22.1",
"kind": "portable",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"inputs": [
{
"path": "dist-client/.vite/manifest.json",
"bytes": 552,
"sha256": "66be94fb50c919ed863bdf13632794c26821e7c8a43849c07244174709e55c20"
},
{
"path": "dist-client/assets/desktop-BftHIJab.js",
"bytes": 374001,
"sha256": "211423b5e30b1763034b8cae493e667810abc2702c78ed623f69467e7dfbbe21"
},
{
"path": "dist-client/assets/desktop-CP_LMq2w.css",
"bytes": 160935,
"sha256": "2f215d5e9172f911fcd26286d80fa0238fd02f48e9911d831c817f8fa193a376"
},
{
"path": "dist-client/assets/mobile-BewIZSK_.js",
"bytes": 26137,
"sha256": "ec7dd19f42cb7cd4813b3eb3a0593f97597ecd2cf7028b3fd40978d1d5a6f67b"
},
{
"path": "dist-client/assets/mobile-CNDnI_ru.css",
"bytes": 11918,
"sha256": "efdc6b3693e32fb9633da8b7c7e60c415e1a66642640c30e5b8e2ef4b2505f68"
},
{
"path": "dist-client/assets/x-BnWsFXbN.js",
"bytes": 225509,
"sha256": "8ba729025563ab9c37b8d9186e9f2e29fa9f4ce7d8710ef184bb8e8d1a21eec8"
},
{
"path": "dist-client/favicon.svg",
"bytes": 268,
"sha256": "538fa42445dfd8e78135717e2f30dada6d790d5c05b9011ae7a9bf80d416ae1d"
},
{
"path": "dist-client/index.html",
"bytes": 577,
"sha256": "2b3dda6e0d21a07a5104449b118eaa7f4c0acca1c17379037f73c5434265514d"
},
{
"path": "dist-client/mobile-assets.json",
"bytes": 95,
"sha256": "7a792df4b81908fa86652b56fa171c33e5ba46f000cb9b128e3cf511d3cd60bc"
},
{
"path": "dist-client/mobile-icon.svg",
"bytes": 307,
"sha256": "2241a24a26e67e2587614819d7860575e76bdaf9e2c3de6abeb58538d3f2b81c"
},
{
"path": "dist-client/mobile-sw.js",
"bytes": 1140,
"sha256": "295131e046562a02123a2a48414867e5dc73c7380f59d00cbe163a1663e510ea"
},
{
"path": "dist-client/mobile-touch-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-client/mobile.html",
"bytes": 822,
"sha256": "a5aa7da62cbf92d53abbe830eae545043d14068a28393a900eb1709cbaa7ae92"
},
{
"path": "dist-client/mobile.webmanifest",
"bytes": 372,
"sha256": "1d2a9bf8216aadce8fc47de1e236c4c7adda60ce96609133ee7e19e361b4673b"
},
{
"path": "dist-client/workbench-icon.ico",
"bytes": 1095,
"sha256": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
{
"path": "dist-client/workbench-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-desktop/main.cjs",
"bytes": 81370,
"sha256": "3aa425f6a96ba34a349efb9c6c2215ce54caaca0e2dd909399438142dc94f52e"
},
{
"path": "dist-desktop/preload.cjs",
"bytes": 823,
"sha256": "5bcc6b7b54da171d1b5fa833abac31248fe10254e6afaf61da03c4ef6a0b8d2c"
},
{
"path": "dist-server/host-launcher.mjs",
"bytes": 29721,
"sha256": "b75b48b3ad8c963947f3febeef2c051ba65583b71ec6d28cddc49ba6fab1bd92"
},
{
"path": "dist-server/hot-upgrade.mjs",
"bytes": 2796620,
"sha256": "407260a007d76c6f94044351ac4eb71eb39ea6004fb22c8752ebe7be311315d6"
},
{
"path": "dist-server/install-manager.mjs",
"bytes": 65898,
"sha256": "b1d1fa57dcc322b2815925907c117864f6a1dd2714e6b587e069a8982dee004c"
},
{
"path": "dist-server/server.mjs",
"bytes": 2794235,
"sha256": "2564207d36ea83bad604c5650265fa1b0a74a9a031fef2b21e1561653e914956"
}
],
"verification": "loaded-host-and-client-inputs",
"identitySha256": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb"
},
"pid": 36552,
"hasKey": true,
"projects": 17,
"sessions": 33,
"records": 3239,
"events": 6230,
"artifacts": 1780,
"realModelRequests": 0,
"startedAt": "2026-11-02T01:12:24.708Z",
"finishedAt": "2026-11-02T01:12:32.919Z"
}
@@ -0,0 +1 @@
{"success":true,"mode":"verify","output":".qa/local-files-release-verify.json","candidate":"C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565"}
@@ -0,0 +1,85 @@
import fs from 'node:fs';
import path from 'node:path';
import net from 'node:net';
import assert from 'node:assert/strict';
import { execFileSync } from 'node:child_process';
import { DatabaseSync, backup } from 'node:sqlite';
import { inspectHostInstallation } from '../src/core/desktop/app-installation.mjs';
import { InstallationManager } from '../src/core/desktop/install-manager.mjs';
import { upgradeRunning } from '../scripts/upgrade-running.mjs';
import { publicSnapshot, compareOriginalState, hash } from './desktop-f-state.mjs';
const mode = process.argv[2]; assert.ok(['stage', 'upgrade', 'activate', 'verify'].includes(mode));
const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
const save = (file, value) => fs.writeFileSync(file, JSON.stringify(value, null, 2) + '\n', { flag: 'wx' });
const prefix = '.qa/local-files-release-', output = prefix + mode + '.json'; assert.equal(fs.existsSync(output), false, 'Do not replay a completed phase');
const installRoot = 'C:/Users/wangy/AppData/Local/Programs/AgentWorkbench', pointerFile = path.join(installRoot, 'current.json');
const originalPointer = mode === 'stage' ? read(pointerFile) : read(prefix + 'original-pointer.json');
const dataRoot = fs.realpathSync.native(originalPointer.dataRoot), url = 'http://127.0.0.1:4318';
const startedAt = new Date().toISOString();
async function inspectorClosed() {
await new Promise((resolve, reject) => { const socket = net.createConnection({ host: '127.0.0.1', port: 9229 }); socket.setTimeout(1000); socket.once('connect', () => { socket.destroy(); reject(Error('Inspector open')); }); socket.once('error', error => { socket.destroy(); error.code === 'ECONNREFUSED' ? resolve() : reject(error); }); socket.once('timeout', () => { socket.destroy(); reject(Error('Inspector status unknown')); }); });
}
let result;
try {
if (mode === 'stage') {
const commit = execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8', windowsHide: true }).trim(); assert.match(commit, /^70ac4c4/);
assert.equal(execFileSync('git', ['status', '--porcelain'], { encoding: 'utf8', windowsHide: true }).trim(), '');
const base = path.join(installRoot, 'versions', originalPointer.active.directory), baseline = inspectHostInstallation(base); assert.equal(baseline.version, '1.22.0'); assert.equal(baseline.manifestSha256, originalPointer.active.manifestSha256);
const manifest = read(path.join(base, 'MANIFEST.json')), candidate = path.join(installRoot, 'versions', 'Agent-Workbench-1.22.1-local-patch-' + new Date().toISOString().replace(/[-:TZ.]/g, ''));
assert.equal(fs.existsSync(candidate), false); fs.mkdirSync(candidate);
const built = relative => /^(dist-client|dist-server|dist-desktop)\//.test(relative);
const files = [];
for (const row of manifest.files) {
if (built(row.path) || row.path === 'scripts/upgrade-running.mjs' || row.path === 'CHANGELOG.md') continue;
const source = path.join(base, row.path), destination = path.join(candidate, row.path);
fs.mkdirSync(path.dirname(destination), { recursive: true }); fs.copyFileSync(source, destination);
const bytes = fs.readFileSync(destination); assert.equal(bytes.length, row.bytes); assert.equal(hash(bytes), row.sha256, row.path); files.push(row);
}
const collect = relative => {
for (const entry of fs.readdirSync(path.join(candidate, relative), { withFileTypes: true })) {
const next = path.posix.join(relative, entry.name); if (entry.isDirectory()) collect(next); else { const bytes = fs.readFileSync(path.join(candidate, next)); files.push({ path: next, bytes: bytes.length, sha256: hash(bytes) }); }
}
};
for (const directory of ['dist-client', 'dist-server', 'dist-desktop']) { fs.cpSync(directory, path.join(candidate, directory), { recursive: true }); collect(directory); }
for (const file of ['scripts/upgrade-running.mjs', 'CHANGELOG.md', 'docs/QA-1.22.1.md']) {
fs.copyFileSync(file, path.join(candidate, file)); const bytes = fs.readFileSync(file); files.push({ path: file, bytes: bytes.length, sha256: hash(bytes) });
}
const desktopMeta = path.join(candidate, 'desktop/resources/app/package.json'), metadata = read(desktopMeta); metadata.version = '1.22.1'; fs.writeFileSync(desktopMeta, JSON.stringify(metadata) + '\n');
const desktopRow = files.find(row => row.path === 'desktop/resources/app/package.json'), desktopBytes = fs.readFileSync(desktopMeta); Object.assign(desktopRow, { bytes: desktopBytes.length, sha256: hash(desktopBytes) });
const next = { ...manifest, version: '1.22.1', createdAt: new Date().toISOString(), localPatch: { baseManifestSha256: baseline.manifestSha256, implementationCommit: commit, delivery: 'immutable-local-installed-patch; standalone installer not produced' }, files: files.sort((a, b) => a.path.localeCompare(b.path)) };
fs.writeFileSync(path.join(candidate, 'MANIFEST.json'), JSON.stringify(next, null, 2));
const identity = inspectHostInstallation(candidate); assert.equal(identity.version, '1.22.1');
save(prefix + 'original-pointer.json', originalPointer);
result = { success: true, mode, commit, candidate, baseline, identity, files: files.length, bytes: files.reduce((sum, row) => sum + row.bytes, 0), allCopiedBytesVerified: true, standaloneInstaller: false };
} else {
const staged = read(prefix + 'stage.json'); assert.equal(staged.success, true);
const candidate = staged.candidate, current = await publicSnapshot(url, dataRoot); assert.equal(current.pid, 36552); assert.deepEqual(current.active, []);
const bootstrap = await (await fetch(url + '/api/bootstrap')).json();
const status = await (await fetch(url + '/api/host/status', { headers: { 'X-Workbench-Token': bootstrap.token } })).json(); assert.equal(status.desktopWindows.count, 0); assert.equal(status.activity.active, false);
await inspectorClosed();
if (mode === 'upgrade') {
assert.equal(read('.qa/local-files-candidate-ui.json').success, true); assert.equal(read('.qa/local-files-candidate-ui.json').appRoot, candidate);
assert.equal(current.version, '1.22.0'); assert.deepEqual(read(pointerFile), originalPointer);
const db = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true });
try { await backup(db, path.resolve(prefix + 'private-original.sqlite')); } finally { db.close(); }
save(prefix + 'before.json', current);
const info = read(path.join(dataRoot, 'service-info.json'));
const upgraded = await upgradeRunning({ url, pid: current.pid, currentRoot: info.appRoot, handlerRoot: current.runtimeRoot, newRoot: candidate }); assert.equal(upgraded.connectionPreserved, true);
const after = await publicSnapshot(url, dataRoot), retained = compareOriginalState(current, after); assert.equal(after.version, '1.22.1'); assert.equal(after.runtimeRoot, candidate);
await inspectorClosed(); save(prefix + 'after-upgrade.json', after);
result = { success: true, mode, upgraded, retained, candidate, pid: after.pid, realModelRequests: 0 };
} else {
assert.equal(read(prefix + 'upgrade.json').success, true); assert.equal(current.version, '1.22.1'); assert.equal(current.runtimeRoot, candidate);
const before = read(prefix + 'before.json'); compareOriginalState(before, current);
let activated = null; if (mode === 'activate') activated = await new InstallationManager({ installRoot, dataRoot, candidateRoot: candidate, port: 4318 }).activate();
const pointer = read(pointerFile), identity = inspectHostInstallation(candidate); assert.equal(pointer.active.directory, path.basename(candidate)); assert.equal(pointer.active.runtimeIdentity, identity.identitySha256);
assert.equal(pointer.active.manifestSha256, identity.manifestSha256);
const after = await publicSnapshot(url, dataRoot), retained = compareOriginalState(before, after); await inspectorClosed();
save(prefix + 'after-' + mode + '.json', after);
result = { success: true, mode, activated, retained, pointer, candidate, identity, pid: after.pid, hasKey: after.hasKey, projects: after.projects, sessions: after.database.sessionIds.length, records: after.database.tables.records.count, events: after.database.tables.events.count, artifacts: after.persistent.artifacts.length, realModelRequests: 0 };
}
}
} catch (error) { result = { success: false, mode, error: error.stack }; process.exitCode = 1; }
save(output, { ...result, startedAt, finishedAt: new Date().toISOString() });
console.log(JSON.stringify({ success: result.success, mode, output, candidate: result.candidate, error: result.error }));
@@ -0,0 +1,68 @@
✔ the bundled local service enforces host, origin, token and JSON object contracts (2507.6194ms)
✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (3031.6341ms)
✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (4742.1584ms)
✔ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (10387.2682ms)
✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (2396.8136ms)
✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (7904.9329ms)
✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (1.0727ms)
✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (1574.9053ms)
✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (2100.7827ms)
✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (1592.6292ms)
✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1246.5438ms)
✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (1696.248ms)
✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (915.7471ms)
✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (3256.632ms)
✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (1341.7964ms)
✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (1450.3064ms)
✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (1284.761ms)
✔ actual Electron debug argument ordering retains exactly the compiled entry and rejects extra or repeated actions (1.063ms)
✔ native bridge refuses other origins, subframes, other windows and unsupported inputs before connecting (497.4794ms)
✔ desktop preview opening requires a currently registered project preview and rejects iframe callers (515.3575ms)
✔ file reveal binds the current project, task, path, UTF-8 bytes and original SHA without executing the file (546.0954ms)
✔ file changed during asynchronous task recheck is not revealed as the old bytes (753.8206ms)
✔ desktop browser profile and aliases stay outside project inventory and file access (690.6487ms)
✔ native picker cancel and origin change after dialog publish no project registration (650.554ms)
✔ pending native action is not dispatched twice, and current task review returns its original seq (590.4547ms)
✔ native stop cancellation and changed original host never stop a replacement process (668.6422ms)
✔ window register rejects host PID, stale installation, extra fields and missing creation identity (0.3939ms)
✔ proposals preserve project bytes until review; apply backs up the exact original bytes (523.2383ms)
✔ new nested files are created only on apply and unchanged content creates no proposal (620.7886ms)
✔ stale reads and changed baselines are rejected without overwriting external edits (926.0083ms)
✔ file paths reject traversal, absolute paths, credentials and outside junctions (498.4242ms)
✔ read and search expose bounded text scopes and reject non UTF-8 / oversized files (466.6656ms)
✔ project-local junctions cannot expose or create protected Git and credential files (648.6855ms)
✔ Windows trailing-dot and trailing-space path aliases cannot bypass protected paths (745.5086ms)
✔ directory picker reads one level, preserves empty folders, skips credential and linked folders (785.6386ms)
✔ HTML preview serves encoded names and relative modules on an isolated loopback origin; closing revokes it (812.3529ms)
✖ HTML preview refuses credentials, hidden inventories, traversal, external junctions, hardlinks and unsupported file types (702.4019ms)
✔ runtime shutdown closes local preview ports and pending starts cannot escape shutdown (739.1892ms)
✔ idle file previews expire and release their loopback servers (817.3861ms)
✔ directory and preview HTTP controls require workbench authentication; project pages cannot read bootstrap (2104.3118ms)
ℹ tests 40
ℹ suites 0
ℹ pass 39
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 32226.3512
✖ failing tests:
test at tests\local-files.test.mjs:51:1
✖ HTML preview refuses credentials, hidden inventories, traversal, external junctions, hardlinks and unsupported file types (702.4019ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
200 !== 421
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/local-files.test.mjs:63:10)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 200,
expected: 421,
operator: 'strictEqual',
diff: 'simple'
}
@@ -0,0 +1,48 @@
✔ the bundled local service enforces host, origin, token and JSON object contracts (2242.6701ms)
✔ an in-flight connection probe prevents configuration changes and another probe until its actual result returns (2347.3969ms)
✔ API review applies verified content, detects conflicts, exports sessions and keeps keys in memory (8117.6628ms)
✔ a real bundle restart preserves proposals, interrupts old approvals and requests fresh consent on resume (12357.8172ms)
✔ runtime diagnostics and model-response validation use actual records and preserve the saved connection (2226.5311ms)
✔ persistent event replay is read-only and keeps run/artifact identity across reconnects (7729.9762ms)
✔ fixed browsing contracts reject local host APIs, credential URLs, protocols, cross-origin and arbitrary execution (1.0043ms)
✔ attested desktop queue preserves same-tab observations, original PNG bytes and approval-bound one-shot actions (1655.112ms)
✔ page data cannot grant domains, interaction or other Task scope; nonce and ownership remain fixed (1353.1948ms)
✔ unknown dispatched submission blocks even after a new observation, rejects late success and retains explicit acknowledgement (1431.7258ms)
✔ downloads require exact approved address, remain original binary artifacts, and cannot reuse consumed observation (1317.4162ms)
✔ revoking shared persistent profile closes all its tabs and clears only that profile after original desktop acknowledgement (5109.7687ms)
✔ service recovery never reopens old tabs or replays dispatched actions and keeps unknown original receipts (994.8157ms)
✔ agent browser flow waits for original Task/Run approval, dispatches once, and returns paired original results (7449.3883ms)
✔ changed approved input and stopped dispatched agent action cannot be accepted or replayed (1287.3611ms)
✔ browser inventory gives bounded metadata and original references instead of repeating full website histories (965.2132ms)
✔ receipt storage failure settles the original dispatched action as unknown and never hangs or accepts late success (936.6104ms)
✔ actual Electron debug argument ordering retains exactly the compiled entry and rejects extra or repeated actions (1.0271ms)
✔ native bridge refuses other origins, subframes, other windows and unsupported inputs before connecting (633.7128ms)
✔ desktop preview opening requires a currently registered project preview and rejects iframe callers (626.5493ms)
✔ file reveal binds the current project, task, path, UTF-8 bytes and original SHA without executing the file (719.0206ms)
✔ file changed during asynchronous task recheck is not revealed as the old bytes (777.3133ms)
✔ desktop browser profile and aliases stay outside project inventory and file access (649.723ms)
✔ native picker cancel and origin change after dialog publish no project registration (483.3251ms)
✔ pending native action is not dispatched twice, and current task review returns its original seq (532.559ms)
✔ native stop cancellation and changed original host never stop a replacement process (638.1005ms)
✔ window register rejects host PID, stale installation, extra fields and missing creation identity (0.9657ms)
✔ proposals preserve project bytes until review; apply backs up the exact original bytes (605.2144ms)
✔ new nested files are created only on apply and unchanged content creates no proposal (574.7449ms)
✔ stale reads and changed baselines are rejected without overwriting external edits (928.6541ms)
✔ file paths reject traversal, absolute paths, credentials and outside junctions (607.4921ms)
✔ read and search expose bounded text scopes and reject non UTF-8 / oversized files (610.9676ms)
✔ project-local junctions cannot expose or create protected Git and credential files (824.1072ms)
✔ Windows trailing-dot and trailing-space path aliases cannot bypass protected paths (687.0144ms)
✔ directory picker reads one level, preserves empty folders, skips credential and linked folders (808.0032ms)
✔ HTML preview serves encoded names and relative modules on an isolated loopback origin; closing revokes it (710.1539ms)
✔ HTML preview refuses credentials, hidden inventories, traversal, external junctions, hardlinks and unsupported file types (682.5193ms)
✔ runtime shutdown closes local preview ports and pending starts cannot escape shutdown (567.3512ms)
✔ idle file previews expire and release their loopback servers (647.5397ms)
✔ directory and preview HTTP controls require workbench authentication; project pages cannot read bootstrap (2016.6804ms)
ℹ tests 40
ℹ suites 0
ℹ pass 40
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 38292.2823
@@ -0,0 +1,9 @@
{
"success": false,
"stage": "web directory picker",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-13008109-61b3-4040-8e4b-79cde2c6b5e9",
"checks": [],
"screenshots": [],
"errors": [],
"error": "locator.click: Timeout 30000ms exceeded.\nCall log:\n\u001b[2m - waiting for getByRole('button', { name: '中文 项目', exact: true })\u001b[22m\n\n at D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-local-files.mjs:60:66"
}
@@ -0,0 +1,37 @@
web: directory selection, cancel, invalid path recovery, project persistence: passed
web: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction: passed
web: source switch and fresh saved-file reload: passed
web: independent page renders: passed
web: project switch clears old file preview: passed
{
"success": false,
"stage": "actual Electron preview",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-fef7de9a-f2ea-453d-8c85-1cd798cdb8dd",
"checks": [
"web: directory selection, cancel, invalid path recovery, project persistence",
"web: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction",
"web: source switch and fresh saved-file reload",
"web: independent page renders",
"web: project switch clears old file preview"
],
"screenshots": [
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-fef7de9a-f2ea-453d-8c85-1cd798cdb8dd\\web-directory-wide.png",
"sha256": "764a67950b40da67f7f356ced72a67a6931d831cef764b40440ccd109371bd51"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-fef7de9a-f2ea-453d-8c85-1cd798cdb8dd\\web-preview-wide.png",
"sha256": "0a682e05892337db19fab82e77ab7d1a4036732eb2ef639604280ecc43547692"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-fef7de9a-f2ea-453d-8c85-1cd798cdb8dd\\web-preview-390.png",
"sha256": "1015ef86969afcee695cd8e8e1bc42e284d78641ca522bb269fec64429a7b320"
},
{
"file": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-fef7de9a-f2ea-453d-8c85-1cd798cdb8dd\\web-directory-390.png",
"sha256": "34958d2167b96fbed4284aa7399a65d389566dfb936df98ffeae6fb623a67b01"
}
],
"errors": [],
"error": "Error: expect(locator).toBeVisible() failed\n\nLocator: locator('iframe[title=\"HTML 预览:pages/页面.html\"]').contentFrame().getByRole('button', { name: '计数 1' })\nExpected: visible\nTimeout: 5000ms\nError: element(s) not found\n\nCall log:\n - Expect \"toBeVisible\" locator('iframe[title=\"HTML 预览:pages/页面.html\"]').contentFrame().getByRole('button', { name: '计数 1' }) with timeout 5000ms\n - waiting for locator('iframe[title=\"HTML 预览:pages/页面.html\"]').contentFrame().getByRole('button', { name: '计数 1' })\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.toBeVisible (D:\\Ai-project\\REA逆向\\Agent-Workbench\\node_modules\\playwright\\lib\\matchers\\expect.js:13308:23)\n at fileFlow (D:\\Ai-project\\REA逆向\\Agent-Workbench\\scripts\\verify-local-files.mjs:39:61)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-local-files.mjs:92:3"
}
@@ -0,0 +1,10 @@
web: directory selection, cancel, invalid path recovery, project persistence: passed
web: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction: passed
web: source switch and fresh saved-file reload: passed
web: independent page renders: passed
web: project switch clears old file preview: passed
electron: inline JS, relative modules/CSS/image/JSON, workbench isolation and interaction: passed
electron: source switch and fresh saved-file reload: passed
electron: preview subframe has no native bridge or Node: passed
electron: existing native picker cancel leaves project unchanged (explicit dialog fixture): passed
{"success":true,"checks":9,"root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\local-files-786a013a-40eb-41e7-aaba-def112a8c465"}
@@ -0,0 +1,10 @@
✔ a directly started compiled host upgrades twice with the same PID, sessions, applied bytes and volatile provider (3575.4865ms)
✔ the running 0.1.0 process upgrades in place and retains its project, session, files and volatile model connection (8129.9237ms)
ℹ tests 2
ℹ suites 0
ℹ pass 2
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11802.431
@@ -0,0 +1,222 @@
{
"schema": 1,
"version": "1.22.1",
"implementationCommit": "70ac4c40b5a60b5e8ebb08b05bf29fa59d5ea8c7",
"sealedAt": "2026-11-02T01:20:21.535Z",
"scope": "Local project folder selection and isolated saved HTML preview: original success/failure logs, installed candidate and formal web/native results.",
"delivery": "immutable-local-installed-patch; no standalone installer",
"originalByteHandling": "Evidence directory is -text in .gitattributes. Logs and screenshots retain original bytes. Manifest excludes itself.",
"driverLocations": "Copied .mjs files preserve their original .qa source. Their relative imports are resolved from the original .qa directory, not the evidence directory.",
"privateState": "No SQLite backup, original row payload, session export, or credential is committed. Private snapshots are referenced by SHA-256 receipts only.",
"executionBoundary": "40 targeted tests; 2 upgrade tests; 7 existing desktop lifecycle groups; 9 source and 9 installed candidate flows. Historical full suites are not claimed as new executions. Final actual user HTML interactions are separately recorded.",
"realModelRequests": 0,
"files": 41,
"bytes": 1854265,
"entries": [
{
"path": "candidate-electron-preview-wide.png",
"bytes": 119413,
"sha256": "de9e29e11603f08f016f4fe1821b4d35f12e22e9281231dbe53bcaef9b129086"
},
{
"path": "candidate-result.json",
"bytes": 2204,
"sha256": "7444e1cc6d146cbbfa5c4310505a13b923d250cd7d176c01c9c1121da465df90"
},
{
"path": "candidate-web-directory-390.png",
"bytes": 45684,
"sha256": "93b9e0d6f2b90a9ad65eb51aba3c828aa0df3a435419f5c7140994ba75996127"
},
{
"path": "candidate-web-directory-wide.png",
"bytes": 194545,
"sha256": "ecb4101990d07c082b57ecd0c2ae32a5e6f84ce3e338e8cc6e817519d84c4fdb"
},
{
"path": "candidate-web-preview-390.png",
"bytes": 42160,
"sha256": "1015ef86969afcee695cd8e8e1bc42e284d78641ca522bb269fec64429a7b320"
},
{
"path": "candidate-web-preview-wide.png",
"bytes": 118268,
"sha256": "22ac58c24a4f8e1916070769cf07002e972633ce3c816345f485f740a759af56"
},
{
"path": "current-preview-final.png",
"bytes": 119516,
"sha256": "22270b1f058eb91a221eafaaf8fd50fa0550693d8b0dbc1d46bb8418a4db5719"
},
{
"path": "desktop-f-state.mjs",
"bytes": 5932,
"sha256": "6cf41ebd2ce55fe6fe3175948e9b964fac99975aca3132420a83b1d122e08b0b"
},
{
"path": "desktop-host-1440.png",
"bytes": 227542,
"sha256": "ae5800db84fe7b424bbafccff7d5193c3b40bfb2e4cb1590d55f63a5c134734a"
},
{
"path": "desktop-host-390.png",
"bytes": 69341,
"sha256": "982697b40cc020971ddadf301f5d106398efe24945b608997d64517a40091f41"
},
{
"path": "desktop-lifecycle-result.json",
"bytes": 3418,
"sha256": "465296e653754cf7c540e352e732ab6e14bd1f0ee9d97c600b6a8f589d940db0"
},
{
"path": "final-private-state-receipts.json",
"bytes": 788,
"sha256": "ea4ad63f3a58883768bb430d11ca52b00133a3e4f5425ebc66cc843a45419f09"
},
{
"path": "final-retained-state-result.json",
"bytes": 842,
"sha256": "aa9326d6c01e9a4d5d3e8d560ad980e24d8f594d78ee874ab61710e0bde2f91c"
},
{
"path": "formal-current-folder-picker.png",
"bytes": 264066,
"sha256": "68653c2d1bbdb11ed8b295f497b98835c6f0ddcc4b7082c33cec2977e24f5d8f"
},
{
"path": "formal-current-html-preview.png",
"bytes": 144389,
"sha256": "0404d0fddb3f79bfced8d832347c51e5d9b1ed1aa9bc043c2b2dda99f6d94d79"
},
{
"path": "formal-in-app-current-preview.png",
"bytes": 119280,
"sha256": "8e688c7d693f76cf9ba9766b5004f12573ff752edf39761084dde122145d7e1d"
},
{
"path": "formal-native-html-paused.png",
"bytes": 158788,
"sha256": "28fa6f81e04a108566826ac7d66a7255bc46ebc1977edff55f8af268126d8317"
},
{
"path": "formal-native-html-preview.png",
"bytes": 158475,
"sha256": "4feb138ffa220311519aa395bc784ab6be9c3d68166dd5ed4b23899f24880ff2"
},
{
"path": "formal-native-result.json",
"bytes": 1398,
"sha256": "570348a7d2662f5ce0aa0561fa7a03acb9adfd371f2d87419e889b57b93e41ad"
},
{
"path": "formal-result.json",
"bytes": 886,
"sha256": "60b5d1ad3a715b21f9259af3cc600c5633a7e3ff8b7250f251c321141f4349d4"
},
{
"path": "formal-view.log",
"bytes": 777,
"sha256": "9aecb2c444ea44b98dfbe39d6c3ac523f35056532189e9ac192a9a303ea8f921"
},
{
"path": "local-files-candidate-ui.log",
"bytes": 789,
"sha256": "f6180b13d27be7dd883d98ad12b414dc9447ef63c18edcf9e9fe0c1d352387f2"
},
{
"path": "local-files-desktop.log",
"bytes": 450,
"sha256": "33f57098199ebf1f4c641f52b0d605d3c6d941941a889fb22a05b4f3b5e97316"
},
{
"path": "local-files-final-review.mjs",
"bytes": 4012,
"sha256": "aae7765e8452e5e700fffe44c2e7b640f11e301edff7a33dc65206e70342e559"
},
{
"path": "local-files-formal-view.mjs",
"bytes": 3503,
"sha256": "05600534229a4d8a04d9e07b0508e41aabf35412e011c3f4ff07616049cce66a"
},
{
"path": "local-files-release-activate.json",
"bytes": 6403,
"sha256": "6ab6db9eb710ac108c1257605b103c3ff8e91b39d330571a740c167b1652d9b4"
},
{
"path": "local-files-release-activate.log",
"bytes": 222,
"sha256": "86392f74bd4842c57344ed0a5a7615cb283640f1a5637c3d3a0e0d9ccd6e8e84"
},
{
"path": "local-files-release-stage.json",
"bytes": 9030,
"sha256": "19c4da934d8c59d577a22addd556c4aedbb42462742cd4f77390e177f270e89f"
},
{
"path": "local-files-release-upgrade-rejected-open-window.json",
"bytes": 415,
"sha256": "eab9332d4958f154a96d887a79cd259ba3177b3e72c7bec58c8e2f961b72dcba"
},
{
"path": "local-files-release-upgrade-rejected-open-window.log",
"bytes": 364,
"sha256": "2067348d95d0732affd02c37bb3960ee2cecbb9ad7bd26f3f432e63d981c8ec0"
},
{
"path": "local-files-release-upgrade.json",
"bytes": 828,
"sha256": "e514047bdc29ea14f64c1be2650b171d55d99ffaa976c6aa5c0fc1aa6082dd5f"
},
{
"path": "local-files-release-verify.json",
"bytes": 5863,
"sha256": "48e4bec5797bb3cd7b19bc5805715e6a33a7bf8bf383c20b5c9047261fd78dc1"
},
{
"path": "local-files-release-verify.log",
"bytes": 218,
"sha256": "264483b8674a6dc31df1298b401faabf0af01a990c4c929a7b2933ba659d4e55"
},
{
"path": "local-files-release.mjs",
"bytes": 8650,
"sha256": "d027fa542dc47180bdb2ce5325dd5bef0d6cf76a206f15631a75ab2dd73cccdd"
},
{
"path": "local-files-targeted-attempt2.log",
"bytes": 5568,
"sha256": "f77888901fb48eeb6e7414f331dc1078632c496d77280152eea238c9350a9f6a"
},
{
"path": "local-files-targeted.log",
"bytes": 4752,
"sha256": "4f49a152d400ffd515cb8104e4601c936618b7753a166988c05f1f3422154dad"
},
{
"path": "local-files-ui-attempt1.log",
"bytes": 485,
"sha256": "f410dee6be2bd833fb89380baeb6c8f5dd919d654ff60b0fa4ef5ab958396b36"
},
{
"path": "local-files-ui-attempt2.log",
"bytes": 3014,
"sha256": "df297759c1db10901b8dc09fdbd3b81c25813f62fc3ccf295de97bdc935c4b55"
},
{
"path": "local-files-ui.log",
"bytes": 789,
"sha256": "a3fda9a487bb50864498ebc037d9a2d86b8a00aa62cc27477afa2268f20e7970"
},
{
"path": "local-files-upgrade.log",
"bytes": 387,
"sha256": "0427b1d9e321c111a405eb24f6d45c550dc7a7699c32fe9a6a4d82c637092515"
},
{
"path": "private-state-receipts.json",
"bytes": 811,
"sha256": "416c7a6f2e5830c2ff1278d3825e55cf78641be4954b2e026243de51a64a5656"
}
]
}
@@ -0,0 +1,23 @@
{
"scope": "Private local state snapshots and SQLite backup; hashes only. Original rows/exports/artifact bytes compared by retained-state driver; no credentials extracted.",
"files": [
{
"file": ".qa/local-files-release-before.json",
"bytes": 4349119,
"sha256": "14d255abc15305f48eaa8a2644bbd5fd6c6cd0c7a398ca9997327c7cfe563673",
"committed": false
},
{
"file": ".qa/local-files-release-after-upgrade.json",
"bytes": 4349123,
"sha256": "a2693983efe395546f39fab7951ce46e4d4ac6f84a147b8928acf119fdc781f2",
"committed": false
},
{
"file": ".qa/local-files-release-private-original.sqlite",
"bytes": 17027072,
"sha256": "8e829f7f386fb9fdde103f601bda8b758145877596374820dbbd655cb09b09c9",
"committed": false
}
]
}
+37
View File
@@ -0,0 +1,37 @@
{
"app": "agent-workbench",
"version": "1.22.1",
"delivery": "immutable-local-installed-patch",
"standaloneInstaller": false,
"implementationCommit": "70ac4c40b5a60b5e8ebb08b05bf29fa59d5ea8c7",
"installedRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.22.1-local-patch-20261102005525565",
"manifestSha256": "be8bf7d15907d9fea79b64ab1bbdc3f2cf29221105f660f934e800393fe5a6c6",
"runtimeIdentity": "cf4ddd4da1c3be60444185f462249357780e996178a0129f25556728af81aeeb",
"files": 20962,
"bytes": 1968554008,
"pid": 36552,
"providerPreserved": true,
"retained": {
"originalRows": "exact",
"originalExports": "exact",
"originalArtifactBytes": "exact",
"originalModelCenter": "exact"
},
"counts": {
"projects": 17,
"sessions": 33,
"records": 3239,
"events": 6230,
"artifacts": 1780
},
"realModelRequests": 0,
"checks": {
"targeted": 40,
"upgrade": 2,
"desktopLifecycle": 7,
"candidateUserFlows": 9
},
"activationSeconds": 722.096,
"evidence": "local-files-1.22.1-evidence/manifest.json",
"finishedAt": "2026-11-02T01:12:32.919Z"
}
+6
View File
@@ -1243,6 +1243,12 @@ A–C首实现已写入:只读Node/npm/Python/pytest诊断、锁定npm ci、
2026-11-01核对未提交实现和原始验收。环境专项原13/13、UI实际7组通过,迁移补登记后升级2/2通过;真实工程原轮仍失败,不能认定D完成。定位Vite空临时目录误判后修正身份逻辑,保留目录预算和外部链接拒绝,新增空目录与实际代码变化的行为验证。当前串行环境/评测专项运行中,后续重跑原React/Python并完成冻结发行。正式1.20.3/PID36552、Provider与用户项目未修改,真实模型请求0。
# 项目选择 / HTML 预览修复接续
实现提交 70ac4c40b5a60b5e8ebb08b05bf29fa59d5ea8c7。新不可变候选 C:/Users/wangy/AppData/Local/Programs/AgentWorkbench/versions/Agent-Workbench-1.22.1-local-patch-20261102005525565:20962文件、1968554008字节、所有复制字节逐项核对;实际安装候选Edge/Electron九组核心流程再次通过。正式升级、激活及最终verify均成功,安装指针revision13,原PID36552/Provider保持。整包激活722.096秒已记入1.23性能计划;这是本地安装补丁,未制作独立下载安装包。第一次升级被已打开的旧桌面窗口保护门槛拒绝、未执行,原收据保留;确认空闲且输入为空后正常关闭旧窗口再升级。成功阶段禁止重放。
正式网页实际pelican-bicycle.html的SVG和暂停/播放按钮验证通过,原SHA256 d7ee72b89cb7a45dc1fdb2d77ca2129d0005193915c61ea5c22069c1e9fe1008保持;用户IAB已停留在1.22.1实际预览并保留交付标签。安装根AgentWorkbench.exe重新打开成功,原生窗口8460560恢复原已完成会话和空输入;点击现有pelican-cycle.html直接显示SVG页面,真实暂停点击将按钮由「暂停动画」改为「继续骑行」,原文件13412字节及SHA256 28ea36dc77ddcda3a48138b93f98942dbab2dafa9c403a67ac70bcb5d7cdceff保持。原生首次AX点击缺少坐标几何,回看截图并仅提升工作台窗口后使用已观察坐标成功;未操作无关窗口。
2026-11-02T01:18Z原生恢复后的最终只读核对通过:17项目/33全部会话/3239记录/6230事件/1780工件,全部原表/每行/完整导出/工件字节/模型中心精确保持,hasKey=true,PID36552,桌面窗口1、活动任务0、宿主活动false,9229关闭。私有SQLite和完整状态只留本地,Git仅保存摘要哈希收据;原截图/日志/驱动与manifest封存至docs/local-files-1.22.1-evidence。回归40/40、保留PID升级2/2、既有桌面生命周期7组均通过;本次真实模型请求0。补登记QA版本入口4份脚本,仅验证语法和版本映射,未运行新版完整all-ui,未修改冻结产品字节。一次检查误用qaPrefix导出名,改用真实releaseEvidencePrefix后通过。
40/40 定向回归及 Edge/Electron 九组实际流程通过。实际复核 wide/390px 截图:目录常用位置、文件列表、选择动作可见且无横向溢出,HTML 有完整脚本与相对资源。源码定位仍保持原有行为。正式部署采用新不可变本地补丁候选,复用原 1.22.0 已有运行组件并重新核对全部清单,避免为两项修复重打无关大型历史证据压缩包;不改原安装目录或历史发行物,仍使用产品激活和指针回退机制。单独发行下载包不作为本次已完成能力。
初轮构建修正桌面桥可选对象的 TS 空值收窄后通过。定向 39 项首轮 38 通过;一项失败来自夹具把 junction 指回项目内部并错误期望它被当作越界。改为真实项目外 HTML 来验证边界,保留初轮失败记录,不改 safePath 既有语义。接续实际浏览器脚本/相对模块/样式/图片与桌面流程验收。补丁版本 1.22.1。
+1
View File
@@ -16,6 +16,7 @@ const prefixes = Object.freeze({
'1.20.1': 'task-control',
'1.21.0': 'reproducible-env',
'1.22.0': 'embedded-browser',
'1.22.1': 'local-files',
});
export function releaseEvidencePrefix(version) {
const prefix = prefixes[version];
+18 -17
View File
@@ -9,33 +9,34 @@ import { randomUUID } from 'node:crypto';
if (process.argv.slice(2).some(value => value !== '--help')) throw new Error('Unsupported argument; use --help.');
if (process.argv.includes('--help')) { console.log('node scripts/verify-all-ui.mjs - run serial desktop/390px checks in independent local hosts; use explicit QA Python/Harness/Purge source paths for 1.15.'); process.exit(0); }
const version = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
assert.ok(['1.6.0', '1.6.1', '1.6.2', '1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version), 'Review evidence paths when introducing the next release.');
assert.ok(['1.6.0', '1.6.1', '1.6.2', '1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version), 'Review evidence paths when introducing the next release.');
const prefix = releaseEvidencePrefix(version), resultFile = `.qa/${prefix}-all-ui-validation.json`, results = [];
const qaEnvironment = Object.fromEntries(['AGENT_WORKBENCH_TEST_PYTHON', 'AGENT_WORKBENCH_DEEPSEEK_ROOT', 'AGENT_WORKBENCH_PURGE_178_ROOT', 'AGENT_WORKBENCH_PURGE_181_ROOT']
.filter(name => process.env[name]).map(name => [name, process.env[name]]));
for (const [name, value] of Object.entries(qaEnvironment)) assert.ok(path.isAbsolute(value) && fs.existsSync(value), 'Use an existing absolute QA runtime/source path: ' + name);
const cases = [
...(['1.22.0'].includes(version)?[['verify-embedded-browser.mjs',null]]:[]),
...(['1.21.0', '1.22.0'].includes(version)?[['verify-environment-ui.mjs',null],['verify-model-fidelity-ui.mjs',null],['verify-model-wait-ui.mjs',null],['verify-task-control-ui.mjs',null]]:[]),
...(['1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-evaluations-ui.mjs', null]] : []),
...(['1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-project-cache-ui.mjs', null]] : []),
...(['1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-vision-ui.mjs', null]] : []),
...(['1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-model-protocols-ui.mjs', null]] : []),
...(['1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-companion-ui.mjs', null]] : []),
...(['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-controlled-ui.mjs', null], ['verify-purge-ui.mjs', null]] : []),
...(['1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-workers-ui.mjs', null]] : []),
...(['1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-task-plans-ui.mjs', `docs/${prefix}-task-ui-validation.json`]] : []),
...(['1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-browser-ui.mjs', `docs/${prefix}-browser-ui-validation.json`]] : []),
...(version === '1.22.1' ? [['verify-local-files.mjs', null]] : []),
...(['1.22.0', '1.22.1'].includes(version)?[['verify-embedded-browser.mjs',null]]:[]),
...(['1.21.0', '1.22.0', '1.22.1'].includes(version)?[['verify-environment-ui.mjs',null],['verify-model-fidelity-ui.mjs',null],['verify-model-wait-ui.mjs',null],['verify-task-control-ui.mjs',null]]:[]),
...(['1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-evaluations-ui.mjs', null]] : []),
...(['1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-project-cache-ui.mjs', null]] : []),
...(['1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-vision-ui.mjs', null]] : []),
...(['1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-model-protocols-ui.mjs', null]] : []),
...(['1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-companion-ui.mjs', null]] : []),
...(['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-controlled-ui.mjs', null], ['verify-purge-ui.mjs', null]] : []),
...(['1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-workers-ui.mjs', null]] : []),
...(['1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-task-plans-ui.mjs', `docs/${prefix}-task-ui-validation.json`]] : []),
...(['1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-browser-ui.mjs', `docs/${prefix}-browser-ui-validation.json`]] : []),
['verify-ui.mjs', '.qa/ui-validation.json'], ['verify-diagnostics-ui.mjs', '.qa/diagnostics-ui-validation.json'],
['verify-execution-ui.mjs', '.qa/execution-ui-validation.json'], ['verify-delivery-ui.mjs', '.qa/delivery-ui-validation.json'],
['verify-index-ui.mjs', '.qa/index-ui-result.json'], ['verify-change-sets-ui.mjs', `docs/${prefix}-batch-ui-validation.json`],
['verify-context-ui.mjs', `.qa/${version === '1.6.0' ? 'workspaces-context' : prefix}-ui-validation.json`],
['verify-workspaces-ui.mjs', `docs/${prefix === 'workspaces' ? prefix : prefix + '-workspaces'}-ui-validation.json`],
...(['1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-python-ui.mjs', `docs/${prefix}-python-ui-validation.json`]] : []),
...(['1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-react-delivery.mjs', version === '1.7.0' ? 'docs/react-engine-delivery-validation.json' : `docs/${prefix}-react-delivery-validation.json`]] : []),
...(['1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-research-ui.mjs', `docs/${prefix}-research-ui-validation.json`]] : []),
...(['1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? [['verify-engines-ui.mjs', version === '1.9.0' ? 'docs/engines-ui-validation.json' : `docs/${prefix}-engines-ui-validation.json`]] : []),
...(['1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0'].includes(version) ? ['model-center', 'project-memory', 'task-checkpoints', 'skills', 'mcp', 'mcp-recovery'].map(name => [`verify-${name}-ui.mjs`, null]) : []),
...(['1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-python-ui.mjs', `docs/${prefix}-python-ui-validation.json`]] : []),
...(['1.7.0', '1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-react-delivery.mjs', version === '1.7.0' ? 'docs/react-engine-delivery-validation.json' : `docs/${prefix}-react-delivery-validation.json`]] : []),
...(['1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-research-ui.mjs', `docs/${prefix}-research-ui-validation.json`]] : []),
...(['1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? [['verify-engines-ui.mjs', version === '1.9.0' ? 'docs/engines-ui-validation.json' : `docs/${prefix}-engines-ui-validation.json`]] : []),
...(['1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.21.0', '1.22.0', '1.22.1'].includes(version) ? ['model-center', 'project-memory', 'task-checkpoints', 'skills', 'mcp', 'mcp-recovery'].map(name => [`verify-${name}-ui.mjs`, null]) : []),
];
fs.mkdirSync('.qa', { recursive: true });
const externalHost = new Set(['verify-ui.mjs', 'verify-diagnostics-ui.mjs', 'verify-execution-ui.mjs', 'verify-index-ui.mjs']);
+1 -1
View File
@@ -22,7 +22,7 @@ export async function verifyControlledApi({ api, url, token, directory, appRoot,
const origin = new URL(url);
assert.equal(origin.hostname, '127.0.0.1'); assert.notEqual(origin.port, '4318');
const expectedVersion = JSON.parse(fs.readFileSync(path.join(appRoot, fs.existsSync(path.join(appRoot, 'MANIFEST.json')) ? 'MANIFEST.json' : 'package.json'), 'utf8')).version;
assert.ok(['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.20.2', '1.20.3', '1.21.0', '1.22.0'].includes(expectedVersion));
assert.ok(['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1', '1.20.2', '1.20.3', '1.21.0', '1.22.0', '1.22.1'].includes(expectedVersion));
const bootstrap = await api('/bootstrap'); assert.equal(bootstrap.version, expectedVersion);
assert.equal(bootstrap.config.mode, 'demo'); assert.equal(bootstrap.config.hasKey, false);
const root = path.join(directory, 'compiled-controlled-node'), hooks = path.join(directory, 'disabled-hooks');
+7 -7
View File
@@ -34,7 +34,7 @@ for (const name of Object.keys(env)) if (name.toLowerCase() === 'path') delete e
const windowsRoot = process.env.SystemRoot || 'C:\\Windows';
env.PATH = [windowsRoot, path.join(windowsRoot, 'System32'), path.join(windowsRoot, 'System32', 'WindowsPowerShell', 'v1.0')].join(path.delimiter);
let externalGit = null;
if (['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version)) {
if (['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version)) {
// The controlled project requires external Git. Preserve its observed binary
// directory while keeping system Node/npm unavailable to the packaged host.
const binary = fs.realpathSync.native(execFileSync('where.exe', ['git.exe'], { env: gitEnvironment(), encoding: 'utf8', windowsHide: true, timeout: 10000 }).trim().split(/\r?\n/)[0]);
@@ -88,7 +88,7 @@ try {
console.log((await launch()).trim());
assert.equal(JSON.parse(fs.readFileSync(path.join(data, 'service-info.json'), 'utf8')).pid, firstInfo.pid);
const example = bootstrap.projects.find(project => project.id === bootstrap.exampleProjectId);
if (['1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version)) {
if (['1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version)) {
assert.equal(path.resolve(example.root).toLowerCase(), path.join(data, 'projects', 'starter-project').toLowerCase());
const compareTemplate = relative => { for (const entry of fs.readdirSync(path.join(appRoot, 'examples/starter-project', relative), { withFileTypes: true })) {
const next = path.join(relative, entry.name); if (entry.isDirectory()) compareTemplate(next);
@@ -114,7 +114,7 @@ try {
const checkLog = await api('/artifacts/' + checked.results[0].logArtifactId + '?session=' + session.id); assert.match(checkLog.content, /tests 4/);
assert.ok(fs.existsSync(path.join(appRoot, 'runtime/node_modules/npm/bin/npm-cli.js')));
const actualRea = [];
if (['1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version)) {
if (['1.8.0', '1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version)) {
const installation = await api('/research/availability'); assert.equal(installation.status, 'available'); assert.equal(installation.version, '6.8.0');
assert.equal(fs.realpathSync.native(installation.packageRoot), fs.realpathSync.native(path.join(appRoot, 'runtime/node_modules/rea-agents')));
assert.equal(fs.realpathSync.native(installation.node.path), fs.realpathSync.native(path.join(appRoot, 'runtime/node.exe')));
@@ -146,7 +146,7 @@ try {
console.log('PASS actual contained REA: ASAR, PE imports and PE resources; zero target execution/model requests');
}
let actualEngine = null;
if (['1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version) && process.argv.includes('--native-engines')) {
if (['1.9.0', '1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version) && process.argv.includes('--native-engines')) {
const installation = await api('/engines/deepseek/availability'); assert.equal(installation.status, 'available', installation.message);
assert.equal(fs.realpathSync.native(installation.node.path), fs.realpathSync.native(path.join(appRoot, 'runtime/node.exe')));
const engineRoot = path.join(data, 'engine-project'); fs.mkdirSync(engineRoot); fs.writeFileSync(path.join(engineRoot, 'README.md'), '# Owned portable engine connection\n');
@@ -166,8 +166,8 @@ try {
assert.equal((await api('/research')).length, 4);
const page = await fetch(url); assert.equal(page.status, 200);
assert.match(await page.text(), /Agent Workbench/);
const actualBrowser = ['1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version) ? await verifyBrowserApi({ api, url, token: bootstrap.token, directory: data, appRoot, contained: true }) : null;
const actualControlled = ['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version) ? await verifyControlledApi({ api, url, token: bootstrap.token, directory: data, appRoot, contained: true }) : null;
const actualBrowser = ['1.10.0', '1.10.1', '1.11.0', '1.12.0', '1.12.1', '1.13.0', '1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version) ? await verifyBrowserApi({ api, url, token: bootstrap.token, directory: data, appRoot, contained: true }) : null;
const actualControlled = ['1.14.0', '1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version) ? await verifyControlledApi({ api, url, token: bootstrap.token, directory: data, appRoot, contained: true }) : null;
console.log((await stop()).trim()); started = false;
await until(async () => { try { await fetch(url + '/api/health'); return false; } catch { return true; } });
for (const file of manifest.files) {
@@ -176,7 +176,7 @@ try {
}
const result = { success: true, date: new Date().toISOString(), appRoot, version: manifest.version, nodeVersion: manifest.nodeVersion,
verifiedFiles: manifest.files.length, url, reusedPid: firstInfo.pid, checks: { jobId, status: checked.status, tests: checked.results[0].tests }, actualRea, actualEngine, actualBrowser, actualControlled, externalGit,
steps: ['manifest hashes', 'bundled Node launch', 'same-service reuse', 'packaged example and static page', ...(['1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0'].includes(manifest.version) ? ['starter project copied to owned user data; original template bytes matched'] : []), 'explicit command consent', 'actual bundled Node version', 'actual bundled npm check without system Node/npm', 'check log artifact', ...(actualRea.length ? ['contained REA installation and Node identity', 'actual ASAR/imports/resources', 'original Bundle and target hash binding', 'verified reuse without producer replay'] : []), 'report availability', 'graceful stop', 'every original packaged file remains unchanged'], realModel: false };
steps: ['manifest hashes', 'bundled Node launch', 'same-service reuse', 'packaged example and static page', ...(['1.15.0', '1.16.0', '1.17.0', '1.18.0', '1.19.0', '1.20.0', '1.20.1','1.21.0', '1.22.0', '1.22.1'].includes(manifest.version) ? ['starter project copied to owned user data; original template bytes matched'] : []), 'explicit command consent', 'actual bundled Node version', 'actual bundled npm check without system Node/npm', 'check log artifact', ...(actualRea.length ? ['contained REA installation and Node identity', 'actual ASAR/imports/resources', 'original Bundle and target hash binding', 'verified reuse without producer replay'] : []), 'report availability', 'graceful stop', 'every original packaged file remains unchanged'], realModel: false };
fs.writeFileSync('.qa/release-validation.json', JSON.stringify(result, null, 2));
console.log(JSON.stringify(result, null, 2));
} finally { if (started) { try { await stop(); } catch {} } }
+11 -8
View File
@@ -1,5 +1,16 @@
# Agent Workbench:核心代理能力研究与产品计划
## 已完成:1.22.1 项目文件夹选择与 HTML 预览修复
用户在正式网页现场指出的两条基础流程缺失已优先修复,产品实现70ac4c4。网页可选择本机项目文件夹,HTML默认可视预览并支持源码切换、刷新与独立打开;保留原项目范围和隔离边界。
1. [complete] 复现项目添加只有路径输入、HTML只有源码,保存原现场与用户文件基线。
2. [complete] 实现网页目录选择器及独立loopback静态预览,修复目录输入竞态。
3. [complete] 40项定向回归、保留进程升级2项、既有桌面生命周期7组;源码/实际安装候选各9组Edge/Electron核心流程通过。
4. [complete] 新不可变本地补丁已部署;正式网页及恢复后的原生桌面现有HTML/按钮实测通过,原文件和全部数据/Provider保持,证据与阶段回顾封存并本地Git保存。未制作独立下载包,真实模型请求0。
入口见docs/LOCAL-FILES.md,验收见docs/QA-1.22.1.md。下一1.23仍按独立计划推进。
## 已完成:1.22 内置浏览器
1.22.0已完成所属Vite预览、独立桌面浏览区、有界DOM/原截图与审批动作、独立登录资料/撤销/下载、手机原观察SHA核对的本地交付。独立源码683/683(C完整原轮通过,D严格绑定后沿用)、33类250组原B串行界面(产品输入相同,严格绑定后沿用)、源码/便携/实际安装各17组浏览流程、同载荷安装7组、正式30页及Edge/Electron两视口通过。原PID36552/Provider保持,17项目/32全部会话/3239记录/6229事件及1780工件文件原字节保持,9229关闭。本轮验收发起真实模型请求0。
@@ -605,11 +616,3 @@ F收尾:57d075e修正独立编译QA路径,6d09ac8封存差异;202610302320
最终封存外部日志预检拒绝后一次性核对36个引用:三份卸载日志原SHA均精确对应当前文件前缀,各追加199字节,均为卸载成功/移除完成/无需重启/日志关闭四行。保留原收据SHA,分别抽取并散列证明原前缀、封存完整终结日志和第三次原失败;未把变化日志当原字节相同,未重新卸载或重跑安装/升级。其它引用原SHA一致。
# 当前优先:项目文件夹选择与 HTML 预览修复
用户在正式 1.22 网页现场发现两条基础流程缺失,优先于 1.23 发行性能计划。保留全部用户项目、会话、模型内存连接及既有证据;不调用真实模型。
1. [complete] 确认网页添加项目只有路径输入、HTML 只有源码;干净基线 bfd2f21,修复分支 fix/project-picker-html-preview。
2. [complete] 网页本机目录选择器;HTML 默认预览/源码切换、刷新与独立页面,独立 loopback 源及项目读取边界。
3. [complete] 40 项定向权限/生命周期回归;网页和 Electron 九组实际主流程及窄屏检查通过,目录输入竞态已修复。
4. [pending] 新不可变补丁、保留原 Provider/全部数据的本地部署、现场回看及 Git 证据收尾。