release: validate 1.2.0 packages and real model Git delivery on the live host

This commit is contained in:
Agent Workbench Dev
2026-10-29 16:58:59 +08:00
parent 73758985ee
commit 5ec85b0319
17 changed files with 819 additions and 12 deletions
+1
View File
@@ -9,6 +9,7 @@
- 增加助手工具plan_delivery与delivery_report;模型可准备预览,实际提交由用户独立确认。
- 修复重复点击当前会话导致内容清空;提交、差异、报告和恢复入口适配390px。
- 完整92项行为/API/实际退出检查和9组交付界面验收通过。便携/源码、基础界面与真实模型的最终证据见[验收记录](docs/VALIDATION.md)。
- 实际配置模型完成四模块修复、14项测试/build及工作台内置Git提交和报告;便携与源码独立验收通过,原进程更新保留连接和会话。
## 1.1.0 · 2026-10-29
+1 -1
View File
@@ -12,4 +12,4 @@
| 重复选中会话内容保留 | 同id选择不清空、可只读刷新 | 重复点击回归通过 |
| 旧版原进程连续升级 | 旧0.1→1.0→SQLite→1.2→再次升级 | 合成内存连接与历史保留通过 |
基础/诊断/任务UI、便携/源码ZIP和正式配置模型的最终记录随验收完成写入[VALIDATION](VALIDATION.md)。手机尺寸验证用于响应式界面;实际手机远程连接仍需后续配对网关。
基础10/诊断9/任务7/交付9组UI全部通过。便携启动/复用/停止与随附npm实际4项示例检查、源码ZIP离线安装/构建与92项回归、两个ZIP清单/CRC/散列、原进程升级和真实模型内置Git闭环均通过,证据见[VALIDATION](VALIDATION.md)。手机尺寸验证用于响应式界面;实际手机远程连接仍需后续配对网关。
+10 -1
View File
@@ -11,8 +11,17 @@ Windows x64、Node24.22.1、Edge156.0.4314.42。构建通过;完整92项行为
| 模型错误与诊断界面 | 9/9通过 | [m2-diagnostics-ui-validation.json](m2-diagnostics-ui-validation.json) |
| 任务、工件、预算与审核后继续 | 7/7通过 | [m2-execution-ui-validation.json](m2-execution-ui-validation.json) |
| Git预览/确认/报告/未知结果核对 | 9/9通过 | [m2-delivery-ui-validation.json](m2-delivery-ui-validation.json) |
| 便携包与随附Node/npm | 启动/复用/停止和4项实际示例测试通过 | [m2-release-validation.json](m2-release-validation.json) |
| 源码ZIP独立安装/构建/回归 | 离线安装、6份构建文件逐字节一致、92/92通过 | [m2-source-package-validation.json](m2-source-package-validation.json) |
| 两个ZIP的CRC/路径/清单/散列 | 全部通过 | [m2-archives-validation.json](m2-archives-validation.json) |
| 正式原进程升级 | 1.2.0、原PID23080/模型连接与原会话保留 | [m2-upgrade-live-validation.json](m2-upgrade-live-validation.json) |
| 真实gpt-6.1-sol内置Git闭环 | 13失败→14通过、build、四文件本地commit与报告 | [m2-live-delivery-validation.json](m2-live-delivery-validation.json) |
桌面提交预览和390px报告已目视核对,文字、diff、hash、关闭入口与固定输入区均可用。全部界面检查无页面/请求异常。便携/源码包、正式原进程升级及配置模型的内置Git真实闭环正在进行,完成后补入此处;完整M2/M6验收和后续能力不计入上述结果。
桌面提交预览和390px报告已目视核对,文字、diff、hash、关闭入口与固定输入区均可用。全部界面检查无页面/请求异常。
实际配置模型用115秒、1Task/2Run、1次四文件审查完成:封存14项测试由1通过/13失败变为14通过,build与dist CLI结果一致;10个保护输入、原工作区和暂存修改保留。助手通过plan_delivery准备预览,验证器核对并在工作台API确认,工作台生成commit `845b262b21fdc7f9a6c9d69a68daddc68b4a571e`及真实工件报告。用量为12次请求、172088个已报告tokens,未配置单价不换算费用。验收器没有编写修复代码或自行用Git提交。
保存了[实际模型改动](m2-live-model.diff)、[Markdown交付报告](m2-model-delivery-report.md)与[JSON报告](m2-model-delivery-report.json)。这是一个合成Node样本,完整M2三类工程与M6成功率、ChangeSet及后续引擎/桌面/手机配对仍继续实施。
## 1.1.0 · M1可靠内核与工程切片
+3 -3
View File
@@ -1,14 +1,14 @@
{
"ready": true,
"url": "http://127.0.0.1:4318",
"version": "1.1.0",
"version": "1.2.0",
"mode": "compatible",
"model": "gpt-6.1-sol",
"hasKey": true,
"pid": 23080,
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.0-win-x64",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64-20261029085728391",
"originalAppRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-0.1.0-win-x64",
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench",
"upgradedAt": "2026-10-29T07:18:42.778Z",
"upgradedAt": "2026-10-29T08:58:58.364Z",
"storage": "sqlite"
}
+24
View File
@@ -0,0 +1,24 @@
{
"success": true,
"version": "1.2.0",
"testedAt": "2026-10-29T08:58:07.008312+00:00",
"archives": [
{
"kind": "portable",
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64-20261029085728391.zip",
"files": 2116,
"crcPassed": true,
"manifestAndDirectoryMatch": true,
"sha256": "9ebed3dc8e4e70fbea78bd3a08dd3840367d1038bd492c1f94e9a7894807d25f"
},
{
"kind": "source",
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-source-20261029085728391.zip",
"files": 254,
"crcPassed": true,
"manifestAndDirectoryMatch": true,
"sha256": "f965fc9bec7805b40a2cc6b474f32fd4f507d9a48bdd7c18a0269f93e41d28e8"
}
],
"extractionRoot": null
}
File diff suppressed because one or more lines are too long
+110
View File
@@ -0,0 +1,110 @@
diff --git a/src/cli.mjs b/src/cli.mjs
index 090ad4d..b2a2acd 100644
--- a/src/cli.mjs
+++ b/src/cli.mjs
@@ -2,7 +2,20 @@ import fs from 'node:fs';
import { normalizeTasks } from './normalize.mjs';
import { summarize } from './summary.mjs';
import { renderText } from './render.mjs';
+
try {
- const tasks = normalizeTasks(JSON.parse(fs.readFileSync(process.argv[2], 'utf8')));
- console.log(renderText(summarize(tasks)));
-} catch (error) { console.error(error.message); }
+ const args = process.argv.slice(2);
+ if (args.length < 1 || args.length > 2 || !args[0] || args[0].startsWith('-') ||
+ (args.length === 2 && args[1] !== '--json')) {
+ throw new TypeError('用法:node src/cli.mjs <JSON文件> [--json]');
+ }
+
+ const tasks = normalizeTasks(JSON.parse(fs.readFileSync(args[0], 'utf8')));
+ const summary = summarize(tasks);
+ const output = args[1] === '--json' ? JSON.stringify(summary) : renderText(summary);
+ process.stdout.write(output + '\n');
+ process.exitCode = 0;
+} catch (error) {
+ process.stderr.write(`输入错误:${error.message}\n`);
+ process.exitCode = 2;
+}
diff --git a/src/normalize.mjs b/src/normalize.mjs
index 70d376d..1a08d4d 100644
--- a/src/normalize.mjs
+++ b/src/normalize.mjs
@@ -1,4 +1,36 @@
+const statuses = new Set(['todo', 'doing', 'done', 'blocked']);
+
export function normalizeTasks(input) {
- if (!Array.isArray(input)) throw new TypeError('tasks must be an array');
- return input;
+ if (!Array.isArray(input)) throw new TypeError('任务列表必须是数组');
+ if (input.length > 10000) throw new RangeError('任务列表最多包含10000项');
+
+ const ids = new Set();
+ const tasks = [];
+ for (const [index, task] of input.entries()) {
+ const label = `第${index + 1}项任务`;
+ if (task === null || typeof task !== 'object' || Array.isArray(task)) {
+ throw new TypeError(`${label}必须是对象`);
+ }
+ if (typeof task.id !== 'string' || !task.id.trim()) {
+ throw new TypeError(`${label}的id必须是非空字符串`);
+ }
+ if (typeof task.title !== 'string' || !task.title.trim()) {
+ throw new TypeError(`${label}的title必须是非空字符串`);
+ }
+
+ const id = task.id.trim();
+ const title = task.title.trim();
+ const { status, minutes } = task;
+ if (ids.has(id)) throw new TypeError(`${label}的id重复:${id}`);
+ if (!statuses.has(status)) {
+ throw new TypeError(`${label}的status必须是todo、doing、done或blocked`);
+ }
+ if (!Number.isSafeInteger(minutes) || minutes < 0 || minutes > 1000000) {
+ throw new RangeError(`${label}的minutes必须是0到1000000之间的安全整数`);
+ }
+
+ ids.add(id);
+ tasks.push({ id, title, status, minutes });
+ }
+ return tasks;
}
diff --git a/src/render.mjs b/src/render.mjs
index f8ab62f..7f923c1 100644
--- a/src/render.mjs
+++ b/src/render.mjs
@@ -1,3 +1,8 @@
export function renderText(summary) {
- return `Done: ${summary.counts.done}/${summary.total}`;
+ const { total, counts, completedPercent, remainingMinutes } = summary;
+ return [
+ `交付进度:${counts.done}/${total}(${completedPercent}%)`,
+ `待办 ${counts.todo} · 进行中 ${counts.doing} · 已完成 ${counts.done} · 阻塞 ${counts.blocked}`,
+ `剩余预计:${remainingMinutes} 分钟`,
+ ].join('\n');
}
diff --git a/src/summary.mjs b/src/summary.mjs
index 2d615a3..3db2263 100644
--- a/src/summary.mjs
+++ b/src/summary.mjs
@@ -1,5 +1,17 @@
export function summarize(tasks) {
- const done = tasks.filter(task => task.status === 'done').length;
- return { total: tasks.length, counts: { done }, completedPercent: tasks.length ? 100 : 0,
- remainingMinutes: tasks.reduce((sum, task) => sum + task.minutes, 0) };
+ const counts = { todo: 0, doing: 0, done: 0, blocked: 0 };
+ let remainingMinutes = 0;
+
+ for (const task of tasks) {
+ counts[task.status] += 1;
+ if (task.status !== 'done') remainingMinutes += task.minutes;
+ }
+
+ const total = tasks.length;
+ return {
+ total,
+ counts,
+ completedPercent: total === 0 ? 0 : Math.round(counts.done / total * 100),
+ remainingMinutes,
+ };
}
File diff suppressed because one or more lines are too long
+57
View File
@@ -0,0 +1,57 @@
# 项目交付报告
**检查通过并已提交**
生成时间:2026-10-29T08:49:47.610Z
项目:交付报告工程
项目目录:D:\Ai-project\REA逆向\Agent-Workbench\.qa\live-delivery-04a23f70-57f0-498b-820a-8ac1f95ee10d\交付报告工程
Task:76b23883-42fe-4661-abe3-a04e03a4df87
## 任务与范围
完成当前 Delivery Report 工程,严格实现 README.md 的七项要求。先用 inspect_project 识别工程,再用 plan_checks 选择 test/build,并用 run_checks 实际运行封存输入,取得失败的测试和日志。依据实际失败读取有关文件,使用 read_artifact 进一步核对失败日志。只能用 propose_file 修改 src/normalize.mjs、src/summary.mjs、src/render.mjs、src/cli.mjs;测试、fixtures、构建脚本、package.json、README 和 OWNER 文件必须保留。四模块都需修复,不能修改验收来通过。本工程没有第三方依赖,不用安装。不要使用 run_command、不要自己提交Git;本轮终端仅通过已识别的npm检查计划运行。提案等待审查应用,随后继续同一目标并实际重新运行 test/build,依据日志修复直至通过。检查通过后用 plan_delivery 准备本Task的四文件本地Git预览,等待用户独立确认;最后用中文报告实际测试数量、构建结果和改动。
源码指纹:4a0320303aa105cc975bafb377e41c2640ac881a12630734cdac017e4573e5d2
当前Git HEAD:845b262b21fdc7f9a6c9d69a68daddc68b4a571e
分支:main
源码和检查证据不代替业务需求验收。
## 改动
| 文件 | 状态 | SHA256 |
| --- | --- | --- |
| src/normalize.mjs | applied | b436478b09ad052b19ab68cc7c4fef467c7e626abc627cebc9232583925ca69a |
| src/summary.mjs | applied | ccdb7218021d8cb9df35e44becf48c1bd1ac009c810df686219018646dc42583 |
| src/render.mjs | applied | d449524d731a55ef51d0143f38ee8b73db56363c78babc385fa58df7f2a542f0 |
| src/cli.mjs | applied | 945a64e2b3b5c497b71466f1b283ed754b300038dbc1508a14cd2470afd2ef9d |
## 实际检查
| Job / 命令 | 状态 | 退出码 | 实际测试 | 日志SHA256 |
| --- | --- | --- | --- | --- |
| 27eb2dff / npm run test | 源码已变化 / failed | 1 | 1/14 | 0a98def3a99d06c4679c9534d0dd17d87fe96c58ef9e15c0a3208aee8661f934 |
| 27eb2dff / npm run build | 源码已变化 / passed | 0 | 不适用或未知 | 38566d6bd1635a690931ce24b85aa15a188dc2844ff8d886289985039a9f9be5 |
| b096f160 / npm run test | passed | 0 | 14/14 | b12a0d72b19d707b5437ce9ace2d0fcb8bf9cf71bc4584f24281fb1a5fcdb989 |
| b096f160 / npm run build | passed | 0 | 不适用或未知 | 38566d6bd1635a690931ce24b85aa15a188dc2844ff8d886289985039a9f9be5 |
## Git交付
- completed · 845b262b21fdc7f9a6c9d69a68daddc68b4a571e · src/cli.mjs, src/normalize.mjs, src/render.mjs, src/summary.mjs
已生成并核对本地提交;任务文件、实际检查和其他工作区/暂存改动均已保留。
## 模型与用量
| Run | 模型 | 状态 | 已报告tokens |
| --- | --- | --- | --- |
| 877909a7-77c9-4a91-8bfc-2b19f8131e81 | gpt-6.1-sol | needs_review | 54987 |
| 47e54955-5c7a-4d27-b295-b9aa276d803e | gpt-6.1-sol | completed | 117101 |
累计已报告:172088 tokens;未报告请求:0。费用:未知。
## 尚待确认
- 本切片验证已选工程检查和提交范围;业务需求验收另行记录。
- 提交为本地普通提交,不执行仓库hooks和GPG签名。
- 未配置模型单价,费用未知。
+34
View File
@@ -0,0 +1,34 @@
{
"success": true,
"date": "2026-10-29T08:58:12.365Z",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64-20261029085728391",
"version": "1.2.0",
"nodeVersion": "v24.22.1",
"verifiedFiles": 2116,
"url": "http://127.0.0.1:63920",
"reusedPid": 34356,
"checks": {
"jobId": "cff89ef4-87c0-4686-857f-8efcdb80c0c3",
"status": "passed",
"tests": {
"total": 4,
"passed": 4,
"failed": 0,
"cancelled": 0,
"skipped": 0
}
},
"steps": [
"manifest hashes",
"bundled Node launch",
"same-service reuse",
"packaged example and static page",
"explicit command consent",
"actual bundled Node version",
"actual bundled npm check without system Node/npm",
"check log artifact",
"report availability",
"graceful stop"
],
"realModel": false
}
+28
View File
@@ -0,0 +1,28 @@
{
"success": true,
"version": "1.2.0",
"testedAt": "2026-10-29T08:45:19.733Z",
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-3ecbf7d9f46d42b288fc521483b3cbae\\Agent-Workbench-1.2.0-source",
"offlineInstall": true,
"buildMatchedFiles": 6,
"tests": {
"tests": 92,
"pass": 92,
"fail": 0,
"cancelled": 0,
"skipped": 0,
"todo": 0
},
"credentialsHandling": "Only build/runtime environment paths are inherited; no model configuration or credentials are used.",
"finalSourceArchive": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-source-20261029085728391.zip",
"bytes": 2544962,
"sha256": "f965fc9bec7805b40a2cc6b474f32fd4f507d9a48bdd7c18a0269f93e41d28e8"
},
"finalPortableRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64-20261029085728391",
"finalCodeIdentityCheckedAt": "2026-10-29T08:57:34.146Z",
"runtimeAndTestSourceFilesMatched": 54,
"runtimeAndTestSourceIdentity": "d09c203daa70d4fc6a1a9515faea1050a0ba02aa9f1c0ec36e7bb42e0e36d8cf",
"compiledBundlesMatchIndependentBuild": true,
"note": "Final packaging adds validation records and the separately verified portable test helper; runtime, tests, declarations, lockfile and build sources exactly match the independently installed and tested source package."
}
+62
View File
@@ -0,0 +1,62 @@
{
"version": "1.2.0",
"pid": 23080,
"hasKey": true,
"projects": 4,
"sessions": 12,
"appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64",
"verified": true,
"connectionPreserved": true,
"url": "http://127.0.0.1:4318",
"testedAt": "2026-10-29T08:47:23.333Z",
"previousVersion": "1.1.0",
"model": "gpt-6.1-sol",
"preservedSessions": [
{
"id": "1cf22a27-ac13-4c95-a878-9b4356ccb5b3",
"projectId": "3423bff0-d418-4a6d-9cc7-66bd85875a51",
"status": "completed",
"revision": 34,
"messages": "b91dc3a60b34051b3df0bc501372e15a614eafe3594943b8da88addd0557af73",
"events": "41e7056c3f824a03d9d1b5abd4ee3868d964ecb144e33642bc9bbd67df987bfb",
"changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
},
{
"id": "e8846c6e-1ba2-497e-b0db-ca5778181eb0",
"projectId": "3423bff0-d418-4a6d-9cc7-66bd85875a51",
"status": "completed",
"revision": 182,
"messages": "396c60e8f21d630f5a19867a24f8e9fe36208ac24c55e65a581d499e3542fb91",
"events": "3fa8b3f0a07275989f80dfc151db767b2e62943ce46f86940a1623585c2c794f",
"changes": "a78838fdd7e236110212b0eea2eb87a59c5d3a00ac6a49a98e2b44f87c1e8069"
},
{
"id": "72d3d22f-14d9-4bca-bb6a-ab686bc96b26",
"projectId": "ffb29b87-9b26-4bcc-9337-2ba535301c27",
"status": "failed",
"revision": 209,
"messages": "179f776107a25f32670fcf2a6cadc168649892d19ce602d034364af23f24230e",
"events": "7db9260050d3550f4ef333fe8047939e8eccd1e0e1ee648059408a92b04fb293",
"changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
},
{
"id": "4abc4201-549e-46e0-947c-3d3f5b53ffae",
"projectId": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18",
"status": "needs_review",
"revision": 59,
"messages": "2463725fc4dce801dfd6752be582ff53489bc42950a3dd7a6cb917735f90069c",
"events": "594b16c254b0f09cf3f53dab113827a40a08156f263c57365d20b478d26001fa",
"changes": "8fdcbd54c3cafda6bb0a35a19ef244265b6ce4c250017b7d509a69d70c482dde"
},
{
"id": "569c9457-d399-46e6-b53e-4b1fdbb02109",
"projectId": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18",
"status": "completed",
"revision": 199,
"messages": "6dff812dc2055b1cffa6fbbdc22012bd1de1d716157645fb9df652808584e2ad",
"events": "76fcc4e99e0284c5c147170f17d9dffe88cb6f03f92d44a8a683da9f14beb8b9",
"changes": "e2f726458686db2092bc532514c9ffdbb5cad5c5c586980aa501c60cbc199874"
}
],
"storage": "sqlite"
}
+71
View File
@@ -0,0 +1,71 @@
{
"version": "1.2.0",
"pid": 23080,
"hasKey": true,
"projects": 5,
"sessions": 13,
"appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64-20261029085728391",
"verified": true,
"connectionPreserved": true,
"url": "http://127.0.0.1:4318",
"testedAt": "2026-10-29T08:58:58.364Z",
"previousVersion": "1.2.0",
"model": "gpt-6.1-sol",
"preservedSessions": [
{
"id": "c32c9c87-8239-4606-a4c0-783529603bc7",
"projectId": "82850b57-b496-4f1c-912c-9c54d1858917",
"status": "completed",
"revision": 209,
"messages": "2d578dee66c9da55e5ac675f1ee30fd6ee9955d835bca4039934c0073d9df4c7",
"events": "41a8dff99d153860971a47750fc48c181b06fd7d6d476b3123055d36658094c1",
"changes": "910bf7865f3b3f357edbc7a2f42e851eb4c3ae1c4923bf8e1d9e3f7e8db72205"
},
{
"id": "1cf22a27-ac13-4c95-a878-9b4356ccb5b3",
"projectId": "3423bff0-d418-4a6d-9cc7-66bd85875a51",
"status": "completed",
"revision": 34,
"messages": "b91dc3a60b34051b3df0bc501372e15a614eafe3594943b8da88addd0557af73",
"events": "41e7056c3f824a03d9d1b5abd4ee3868d964ecb144e33642bc9bbd67df987bfb",
"changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
},
{
"id": "e8846c6e-1ba2-497e-b0db-ca5778181eb0",
"projectId": "3423bff0-d418-4a6d-9cc7-66bd85875a51",
"status": "completed",
"revision": 182,
"messages": "396c60e8f21d630f5a19867a24f8e9fe36208ac24c55e65a581d499e3542fb91",
"events": "3fa8b3f0a07275989f80dfc151db767b2e62943ce46f86940a1623585c2c794f",
"changes": "a78838fdd7e236110212b0eea2eb87a59c5d3a00ac6a49a98e2b44f87c1e8069"
},
{
"id": "72d3d22f-14d9-4bca-bb6a-ab686bc96b26",
"projectId": "ffb29b87-9b26-4bcc-9337-2ba535301c27",
"status": "failed",
"revision": 209,
"messages": "179f776107a25f32670fcf2a6cadc168649892d19ce602d034364af23f24230e",
"events": "7db9260050d3550f4ef333fe8047939e8eccd1e0e1ee648059408a92b04fb293",
"changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
},
{
"id": "4abc4201-549e-46e0-947c-3d3f5b53ffae",
"projectId": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18",
"status": "needs_review",
"revision": 59,
"messages": "2463725fc4dce801dfd6752be582ff53489bc42950a3dd7a6cb917735f90069c",
"events": "594b16c254b0f09cf3f53dab113827a40a08156f263c57365d20b478d26001fa",
"changes": "8fdcbd54c3cafda6bb0a35a19ef244265b6ce4c250017b7d509a69d70c482dde"
},
{
"id": "569c9457-d399-46e6-b53e-4b1fdbb02109",
"projectId": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18",
"status": "completed",
"revision": 199,
"messages": "6dff812dc2055b1cffa6fbbdc22012bd1de1d716157645fb9df652808584e2ad",
"events": "76fcc4e99e0284c5c147170f17d9dffe88cb6f03f92d44a8a683da9f14beb8b9",
"changes": "e2f726458686db2092bc532514c9ffdbb5cad5c5c586980aa501c60cbc199874"
}
],
"storage": "sqlite"
}
+1
View File
@@ -138,3 +138,4 @@ Claude Code 报告已验证工具输入校验、权限决定、队列并发屏
- 最终交付UI9/9通过。完整92项首轮90通过:连续升级时版本白名单漏1.2.0;恢复校验调用Git时损坏索引会先产生不清楚的原始错误。补版本支持,并在提交对象校验前核对索引/遗留锁的原字节,提交校验后仍重检以保留并发变化防护。
- 修复后15项恢复/升级专项和92项完整回归全部通过;基础10/诊断9/任务7/交付9组界面均通过且0页面/请求异常。新QA宿主4321/PID38288独立于4318原进程。
- Git与报告完成状态必须同次保存;实际模型验收从旧的验收器自行提交改为确认工作台的持久Git job,并校验报告SHA256、commit和原owner索引。源码包验收脚本采用独立解压、离线npm安装和构建逐字节比较。
- 便携验收不能使用固定4320端口:残留1.1.0QA会被启动器视为可复用。验收器改用随机空闲端口,并在操作/停止之前证明自己拥有该data/PID/发行路径;失败记录保留。
+7
View File
@@ -103,3 +103,10 @@
- 15/15恢复与连续升级专项、92/92最终完整回归均通过;基础10/诊断9/任务7/交付9组UI全部通过,0页面/请求异常。桌面预览与390px报告已目视核对并保存截图。
- 更新真实模型验收器,使四模块样本的最终commit/JSON/Markdown报告通过工作台自身的plan/job/API生成,并新增无关staged文件保留验证。增加可重复使用的ZIP/源码独立安装构建验收脚本。
- 保存记录和重启QA的组合命令被自动审批拦截,工具仅给出blocked by policy,没有执行该命令。已分别保存证据,并在独立4321端口/新数据目录启动QA;4318没有停止、连接没有读取或复制。
- 本地实现提交7375898已保存。1.2.0两个ZIP的CRC、清单、路径与SHA256已通过,源码ZIP独立离线安装/构建/完整回归正在进行。
- 便携验收器首次复用了残留4320上的1.1.0QA服务,版本断言失败;改为探测空闲随机端口,并先核对本次数据目录service-info/PID/发行路径后才执行和清理,防止跨QA服务复用。正式4318未受影响。
- 修正后的便携验收通过;源码ZIP独立离线安装、6份构建文件逐字节一致与92/92回归通过。1.2.0原进程升级0.5秒成功,PID23080、内存模型连接、4个项目与5个原会话的状态/revision/消息/事件/提案hash保留。
- 真实gpt-6.1-sol内置Git样本115秒通过:13失败→14通过、build和CLI正确,1Task/2Run/1次四文件审查,12请求/172088已报告tokens。模型准备预览,工作台生成并核对commit845b262b及JSON/Markdown;10个保护输入和原工作区/暂存修改保留。
- 后续继续1.3.0工程符号索引与带SHA256的精确补丁,按实际定位、格式保留、冲突和项目归属验证推进。
- 最终1.2.0包使用独立带时间戳目录,原已验证发行不覆盖。最终2116份便携/254份源码清单及ZIP CRC/SHA通过;54份核心/测试/声明与独立源码验收逐字节一致,6份构建文件一致。原PID23080已切换最终1.2.0实现,连接与全部当时会话保持。
- 1.3.0索引实现将复用已安装@babel/parser 7.29.11(MIT),提升为明确运行依赖;JS/TS/React静态AST证据与Python声明定位分开标明,动态绑定不假定已经解析。
+14 -5
View File
@@ -3,6 +3,7 @@ import fs from 'node:fs';
import path from 'node:path';
import { randomUUID, createHash } from 'node:crypto';
import { spawn } from 'node:child_process';
import net from 'node:net';
const release = JSON.parse(fs.readFileSync('releases/latest.json', 'utf8'));
const appRoot = release.portableRoot;
@@ -16,14 +17,18 @@ for (const file of manifest.files) {
}
const data = path.resolve('.qa', 'release-' + randomUUID());
fs.mkdirSync(data, { recursive: true });
const env = { ...process.env, AGENT_WORKBENCH_DATA_DIR: data, AGENT_WORKBENCH_PORT: '4320' };
const portProbe = net.createServer();
await new Promise((resolve, reject) => { portProbe.once('error', reject); portProbe.listen(0, '127.0.0.1', resolve); });
const port = portProbe.address().port;
await new Promise(resolve => portProbe.close(resolve));
const env = { ...process.env, AGENT_WORKBENCH_DATA_DIR: data, AGENT_WORKBENCH_PORT: String(port) };
delete env.AGENT_WORKBENCH_API_KEY;
for (const name of Object.keys(env)) if (name.toLowerCase() === 'path') delete env[name];
const windowsRoot = process.env.SystemRoot || 'C:\\Windows';
env.PATH = [windowsRoot, path.join(windowsRoot, 'System32'), path.join(windowsRoot, 'System32', 'WindowsPowerShell', 'v1.0')].join(path.delimiter);
function runPowerShell(script, extra = []) {
return new Promise((resolve, reject) => {
const child = spawn('powershell.exe', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', path.join(appRoot, 'scripts', script), '-Port', '4320', ...extra], { windowsHide: true, env, stdio: ['ignore', 'pipe', 'pipe'] });
const child = spawn('powershell.exe', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', path.join(appRoot, 'scripts', script), '-Port', String(port), ...extra], { windowsHide: true, env, stdio: ['ignore', 'pipe', 'pipe'] });
let output = '', errors = '';
child.stdout.on('data', bytes => { output += bytes.toString('utf8'); });
child.stderr.on('data', bytes => { errors += bytes.toString('utf8'); });
@@ -39,7 +44,7 @@ function runPowerShell(script, extra = []) {
}
const launch = () => runPowerShell('Start-Workbench.ps1', ['-NoBrowser']);
const stop = () => runPowerShell('Stop-Workbench.ps1');
const url = 'http://127.0.0.1:4320';
const url = 'http://127.0.0.1:' + port;
const until = async predicate => {
const deadline = Date.now() + 10000;
while (!(await predicate())) {
@@ -49,7 +54,12 @@ const until = async predicate => {
};
let started = false;
try {
console.log((await launch()).trim()); started = true;
console.log((await launch()).trim());
const firstInfo = JSON.parse(fs.readFileSync(path.join(data, 'service-info.json'), 'utf8'));
assert.equal(path.resolve(firstInfo.appRoot), path.resolve(appRoot));
const health = await (await fetch(url + '/api/health')).json();
assert.equal(health.pid, firstInfo.pid, 'The test must own the launched service.');
started = true;
const bootstrap = await (await fetch(url + '/api/bootstrap')).json();
const api = async (route, input) => {
const response = await fetch(url + '/api' + route, { method: input === undefined ? 'GET' : 'POST', headers: { 'Content-Type': 'application/json', 'X-Workbench-Token': bootstrap.token },
@@ -57,7 +67,6 @@ try {
const result = await response.json(); assert.ok(response.ok, result.error); return result;
};
assert.equal(bootstrap.version, manifest.version); assert.equal(bootstrap.config.mode, 'demo');
const firstInfo = JSON.parse(fs.readFileSync(path.join(data, 'service-info.json'), 'utf8'));
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);
+11 -2
View File
@@ -148,6 +148,15 @@
1. [complete] 明确源文件校验与Git基线的区别,设计当前Task的提交计划、job、归属和恢复契约。
2. [complete] Task绑定的独立索引/引用事务提交已实现;真实失败→修复→新/旧文件提交、无关修改保留与9个真实退出切点通过。
3. [complete] JSON/Markdown证据报告与预览/确认/核对/下载已实现;9组桌面/390px真实界面验收通过,同会话重复点击已修复。
4. [in_progress] 完整92项首轮90通过;修正连续1.2.0升级准入及外部损坏索引的恢复提示后复验,随后真实模型闭环与本地提交。
- [pending] 验证1.2.0便携/源码包并保留原进程连接升级,整理实际能力边界和本地Git提交。
4. [complete] 修正首轮两项失败后,15项专项及92项完整回归、35组界面全部通过。真实模型四模块修复→14项测试/build→工作台Git提交与报告通过,本地实现提交7375898已保存。
5. [complete] 最终1.2.0两个ZIP清单/CRC/散列和便携启动/复用/检查/停止通过;最终54份核心/测试/声明与独立源码92项验收逐字节一致。原PID/连接升级到最终独立发行目录,来源与证据已保存。
- 恢复时父目录不是Git根目录;已定位到Agent-Workbench仓库。大批读取发生输出截断,后续按文件与关键段读取,不将未返回段落当已核对。
## M2工程索引与精确补丁切片(1.3.0,下一批)
目标:补齐从工程结构/符号定位实际文件、按原文件SHA256提出精确改动的能力,减少对完整文件替换及长上下文的依赖。先完善确定性索引、来源与编辑契约,再接入模型工具和桌面/390px界面;多文件ChangeSet、Python检查器、worktree及M3引擎研究继续按完整路线推进。
1. [in_progress] JS/TS/React采用已安装MIT @babel/parser 7.29.11的静态符号/导入索引,逐文件SHA256增量复用并绑定项目;Python只登记有明确范围的声明定位。
2. [pending] 带原文件SHA256、唯一锚点与不重叠范围的精确补丁提案;保留原有字节格式和审核/备份/冲突检查。
3. [pending] 索引/查询/补丁模型工具、只读API及任务面板;结果能定位实际文件/行并核对来源。
4. [pending] 相关契约、实际模型工程样本、桌面/390px回归、独立发行与本地Git提交。