diff --git a/CHANGELOG.md b/CHANGELOG.md index cb29a892..98b7d961 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,12 @@ # Agent Workbench 更新记录 -## 1.6.0 · 2026-10-29 +## 1.6.0 · 2026-10-30 - 从已提交HEAD预览并创建独立Git目录/分支,登记独立项目和会话;原项目已有索引及未提交修改保留。创建不安装依赖或执行项目脚本。 - 创建意图及实际Git进程身份持久保存,完成前核对来源、分支、索引和检出内容;中断后显式核对,外部变动保留,未知结果不自动重试。 - 桌面和390px界面支持准备、预览、确认、打开、返回来源及创建恢复;迟到响应保持项目/会话归属。Task、Run和报告记录实际工作区身份。 - 模型成功准备Git提交预览后确定性等待审查,同消息后续调用不执行;确认后内核完成原Task和报告,不继续请求模型。预览可修改或撤回。 -- 190项完整回归及72组界面通过;发行包、保留原进程更新和配置模型的真实工程结果分别记入[验收记录](docs/VALIDATION.md)。完整三类工程、Electron、移动配对与外部引擎继续开发。 +- 192项完整回归及72组界面通过;发行包、保留原进程更新和配置模型的真实工程结果分别记入[验收记录](docs/VALIDATION.md)。完整三类工程、Electron、移动配对与外部引擎继续开发。 ## 1.5.1 · 2026-10-29 diff --git a/docs/CAPABILITIES.md b/docs/CAPABILITIES.md index 1a31b9bf..a00e32e9 100644 --- a/docs/CAPABILITIES.md +++ b/docs/CAPABILITIES.md @@ -54,7 +54,7 @@ - C07/C12:封存已提交HEAD和来源、宿主拥有的独立目录/分支及项目/会话身份;来源index/已有修改保留,创建不执行项目脚本或安装依赖。当前不提供合并和归档。 - C02/C04/C23:创建意图/实际PID/逐阶段结果持久保存;8个实际退出切点、只读显式核对、外部状态保留,Task/Run/模型上下文/报告绑定实际执行工作区。 - C12/C13:成功准备Git预览后保存审查边界并停止模型;后续同消息工具不执行且协议完整。确认后内核完成原Task与报告,不继续请求模型,预览可修改/撤回。 -- 190项回归和72组界面通过;合成模型子工作区真实3项失败→3项通过/build/Git报告通过。不可变包、原进程更新与真实配置模型结果见[QA-1.6](QA-1.6.md),完整三类工程及M2/M6能力继续验收。 +- 192项回归和72组界面通过;合成模型子工作区真实3项失败→3项通过/build/Git报告通过。不可变包、原进程更新与真实配置模型结果见[QA-1.6](QA-1.6.md),完整三类工程及M2/M6能力继续验收。 | ID / 能力 | 1.0.0基础与缺口 | 后续产品目标 | 参考问题 / 模块 / 阶段 | 必须看到的验收证据 | | --- | --- | --- | --- | --- | diff --git a/docs/PRODUCT-PLAN.md b/docs/PRODUCT-PLAN.md index 32c43385..e7987de7 100644 --- a/docs/PRODUCT-PLAN.md +++ b/docs/PRODUCT-PLAN.md @@ -144,7 +144,7 @@ Purge的包声明Apache-2.0,另有商业许可联系说明;Harness声明MIT ## 9. 下一轮最先执行的三个开发切片 -1. 1.5.1实际四文件批次/14项检查/build/Git报告已完成,模型仍在Git预览后达到轮次上限,失败和累计702772已报告tokens保留。1.6.0补齐审查边界及独立工作区,190项回归/72组UI通过;继续不可变包、独立源码验收、原进程更新和新的真实模型工作区交付。 +1. 1.5.1实际四文件批次/14项检查/build/Git报告已完成,模型仍在Git预览后达到轮次上限,失败和累计702772已报告tokens保留。1.6.0补齐审查边界及独立工作区,192项回归/72组UI通过;继续不可变包、独立源码验收、原进程更新和新的真实模型工作区交付。 2. 接着完成React/TypeScript和Python检查及封存任务,提供可核对的类型/测试/构建结果。新工作区已有创建/恢复,原HEAD/index及未提交修改必须保留;当前单Node样本不计为三类工程完成。 3. 在写入/取消/事件归属边界稳定后按M3接入REA及Codex/DeepSeek EngineAdapter的契约探针,分别固定Harness/Purge/profile版本,再比较真实同题工程收益。桌面Electron与手机配对网关复用同一执行宿主,按M5推进。 diff --git a/docs/QA-1.6.md b/docs/QA-1.6.md index 841e96dd..33b9047d 100644 --- a/docs/QA-1.6.md +++ b/docs/QA-1.6.md @@ -2,7 +2,7 @@ 本轮补齐已提交版本的隔离Git工作区和Git审查后的确定性收尾。真实模型在1.5.1已完成代码及检查,却在准备提交后继续查询并达到轮次上限;原失败及人工收尾记录保留。 -构建及[完整190项回归](workspaces-tests-validation.json)通过,0失败/取消/跳过。工作区核心、策略、实际退出、API与原有检查/批次/交付契约都运行真实文件系统和Git;8个process.exit切点不自动重放创建,来源已有暂存/未提交/未跟踪文件及索引字节保留,外部状态按实际观察核对。 +构建及[完整192项回归](workspaces-tests-validation.json)通过,0失败/取消/跳过。工作区核心、策略、实际退出、API与原有检查/批次/交付契约都运行真实文件系统和Git;8个process.exit切点不自动重放创建,来源已有暂存/未提交/未跟踪文件及索引字节保留,外部状态按实际观察核对。 实际本地HTTP用合成模型完成子工作区同Task的3失败→3通过/build、批次审查、Git预览、确认和报告。模型在预览后停止,同消息后续调用保持完整协议但不执行;确认后内核完成Task/Run/报告,无新模型请求。配置值只保存散列;改变Git配置使旧创建预览失效。关闭宿主会等待正在准备的来源快照完成。 @@ -10,4 +10,6 @@ 首轮默认高并发下完整190项185通过/5失败,日志保留;真实Git/HTTP IO争抢后将测试并发固定为2,断言与超时保持。1.6.0二次升级白名单同步补齐,完整复验190/190通过。首轮UI协调器误用残留1.1.0演示宿主,版本不符立即停止;改为独立1.6.0宿主后72组通过。基础与工作区UI证据命名碰撞已从原成功结果分离并核对,组数及结论未变。 -不可变便携/源码包、源码离线安装/独立构建与190项回归、原PID23080及全部历史/内存连接升级、真实模型的新工作区工程交付正在后续验收;此处不提前记为完成。完整React/TypeScript和Python交付、自动合并/工作区归档、M2/M6成功率、Electron及移动配对尚未交付。 +初始不可变便携2232份/源码410份归档与独立便携启动/复用/随附Node/npm实际4项检查/停止通过。独立源码离线安装与6份构建一致,190项回归185通过/5失败;[原失败记录](workspaces-source-initial-failure.json)保留。实际复现Git退出128及fatal: '$GIT_DIR' too big,深层源码验收目录加上较长工作区名称超过Git内部启动路径缓冲。改用短UUID目录、创建前200个UTF-8字节管理路径预检,既有状态仍显式核对;新增2项深Unicode路径/超限无副作用检查通过,完整192项及72组界面已重新通过,0失败/取消/跳过/页面或请求异常。 + +修正版的不可变包、独立源码192项回归、原PID23080及全部历史/内存连接升级、真实模型的新工作区工程交付继续验收;此处不提前记为完成。完整React/TypeScript和Python交付、自动合并/工作区归档、M2/M6成功率、Electron及移动配对尚未交付。 diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index 3401f176..8991d8cf 100644 --- a/docs/VALIDATION.md +++ b/docs/VALIDATION.md @@ -2,7 +2,7 @@ ## 1.6.0 · 独立Git工作区与审查收尾 -构建、190/190项行为/API/实际进程退出/升级回归及72组独立界面通过,0失败/跳过/取消/页面或请求异常;见[回归](workspaces-tests-validation.json)、[界面总表](workspaces-all-ui-validation.json)和[QA-1.6](QA-1.6.md)。工作区创建封存已提交HEAD和来源快照,保存意图与实际Git PID,核对普通检出/分支/索引/来源后登记项目与会话;原项目已有修改保留。中断不自动重放,显式核对保留外部变动。 +构建、192/192项行为/API/实际进程退出/升级回归及72组独立界面通过,0失败/跳过/取消/页面或请求异常;见[回归](workspaces-tests-validation.json)、[界面总表](workspaces-all-ui-validation.json)和[QA-1.6](QA-1.6.md)。工作区创建封存已提交HEAD和来源快照,保存意图与实际Git PID,核对普通检出/分支/索引/来源后登记项目与会话;原项目已有修改保留。中断不自动重放,显式核对保留外部变动。 实际HTTP合成模型在子工作区完成同Task批次修复、3项失败→3项通过/build、Git审查与报告。预览后持久needs_review/git_review并停止模型,同消息后续调用不执行;确认后内核完成原Task/Run,实际请求数保持。8个process.exit创建切点、hooks/所有配置过滤器无执行、来源索引字节及owner文件保护已通过。 diff --git a/docs/WORKSPACES.md b/docs/WORKSPACES.md index 469bdcfe..abbe2d40 100644 --- a/docs/WORKSPACES.md +++ b/docs/WORKSPACES.md @@ -1,6 +1,6 @@ # 独立开发工作区 -1.6.0构建、190项完整行为/API/实际退出回归及72组界面通过。不可变发行、原进程升级与真实配置模型验收单独登记到[QA-1.6](QA-1.6.md)。 +1.6.0构建、192项完整行为/API/实际退出回归及72组界面通过。不可变发行、原进程升级与真实配置模型验收单独登记到[QA-1.6](QA-1.6.md)。 从当前Git项目封存已提交的HEAD、来源目录、命名分支、索引字节、可读取源码、其他引用和Git配置的散列。审查后创建宿主拥有的独立目录及新分支,打开为独立项目和会话。来源的未提交文件不会自动复制;依赖安装另行审查。工作区的Task、Run、模型上下文和报告标明实际执行目录、分支、起始提交与来源身份。 @@ -10,6 +10,8 @@ 支持已有提交的普通命名分支,最多1000份已提交文件、单文件1MB、总计16MB,拒绝提交的链接、子模块、凭据/依赖/内部目录、Windows设备名和大小写冲突。当前不支持稀疏检出、独立worktree配置或外部Git配置包含。Git以参数数组执行,使用受限环境及空hooks目录,关闭fsmonitor和配置中所有clean/smudge/process/required过滤器,保留内置换行转换。创建不会执行项目代码或安装依赖。 +物理目录使用完整UUID的短标识,任务名称仍展示在界面与分支中。Windows创建前核对预测的Git管理目录不超过200个UTF-8字节;Git启动的内部路径缓冲仍有限制,core.longpaths不能解除。超限在发布新分支前拒绝并提示缩短来源目录,已有或待核对工作区不因此被删除、改名或自动修复。 + 工作区创建参与Runtime、工程检查、Git交付、文件批次和升级的活动检查。同仓库正在创建或结果待核对的记录需要先在所属会话处理。直接文件读取/编辑也核对物理Git身份。来源状态只在创建及创建恢复时要求完全一致,之后正常开发允许来源和子分支各自推进;本轮没有自动合并和工作区归档能力。 验收要求包含真实进程退出切点、外部改动、保留原索引/已有修改、hooks和过滤器无执行、子工作区批次到真实检查和Git报告,以及桌面和390px界面的创建/切换/恢复/迟到响应。证据随实际完成逐项登记。 diff --git a/docs/screenshots/1.6-workspace-review-desktop.png b/docs/screenshots/1.6-workspace-review-desktop.png index 03a1455d..2b0c27bd 100644 Binary files a/docs/screenshots/1.6-workspace-review-desktop.png and b/docs/screenshots/1.6-workspace-review-desktop.png differ diff --git a/docs/screenshots/1.6-workspace-review-mobile.png b/docs/screenshots/1.6-workspace-review-mobile.png index 521850e5..ad1a39e3 100644 Binary files a/docs/screenshots/1.6-workspace-review-mobile.png and b/docs/screenshots/1.6-workspace-review-mobile.png differ diff --git a/docs/workspaces-all-ui-validation.json b/docs/workspaces-all-ui-validation.json index 840c85ad..e7aa64ca 100644 --- a/docs/workspaces-all-ui-validation.json +++ b/docs/workspaces-all-ui-validation.json @@ -1,14 +1,14 @@ { "success": true, "version": "1.6.0", - "at": "2026-10-29T15:36:15.661Z", + "at": "2026-10-29T16:09:17.124Z", "groups": 72, "results": [ { "script": "verify-ui.mjs", "success": true, "groups": 10, - "durationMs": 33435, + "durationMs": 31165, "evidence": "docs/workspaces-basic-ui-validation.json", "log": ".qa/workspaces-verify-ui.log" }, @@ -16,7 +16,7 @@ "script": "verify-diagnostics-ui.mjs", "success": true, "groups": 9, - "durationMs": 33505, + "durationMs": 33712, "evidence": "docs/workspaces-diagnostics-ui-validation.json", "log": ".qa/workspaces-verify-diagnostics-ui.log" }, @@ -24,7 +24,7 @@ "script": "verify-execution-ui.mjs", "success": true, "groups": 7, - "durationMs": 32962, + "durationMs": 34439, "evidence": "docs/workspaces-execution-ui-validation.json", "log": ".qa/workspaces-verify-execution-ui.log" }, @@ -32,7 +32,7 @@ "script": "verify-delivery-ui.mjs", "success": true, "groups": 9, - "durationMs": 49262, + "durationMs": 53308, "evidence": "docs/workspaces-delivery-ui-validation.json", "log": ".qa/workspaces-verify-delivery-ui.log" }, @@ -40,7 +40,7 @@ "script": "verify-index-ui.mjs", "success": true, "groups": 8, - "durationMs": 6115, + "durationMs": 6112, "evidence": "docs/workspaces-index-ui-validation.json", "log": ".qa/workspaces-verify-index-ui.log" }, @@ -48,7 +48,7 @@ "script": "verify-change-sets-ui.mjs", "success": true, "groups": 11, - "durationMs": 15466, + "durationMs": 15345, "evidence": "docs/workspaces-change-sets-ui-validation.json", "log": ".qa/workspaces-verify-change-sets-ui.log" }, @@ -56,7 +56,7 @@ "script": "verify-context-ui.mjs", "success": true, "groups": 9, - "durationMs": 20276, + "durationMs": 21354, "evidence": "docs/workspaces-context-ui-validation.json", "log": ".qa/workspaces-verify-context-ui.log" }, @@ -64,11 +64,10 @@ "script": "verify-workspaces-ui.mjs", "success": true, "groups": 9, - "durationMs": 23764, + "durationMs": 25370, "evidence": "docs/workspaces-ui-validation.json", "log": ".qa/workspaces-verify-workspaces-ui.log" } ], - "scope": "Every verifier owns an independent port and synthetic data directory. Synthetic provider fixtures verify protocols; configured-model acceptance is separate. No production service or real key read/copied.", - "evidencePathCorrection": "Basic and workspace UI proof paths separated; each original passed result and all 72 groups rechecked. No UI behavior changed." + "scope": "Every verifier owns an independent port and synthetic data directory. Synthetic provider fixtures verify protocols; configured-model acceptance is separate. No production service or real key read/copied." } diff --git a/docs/workspaces-archives-validation.json b/docs/workspaces-archives-validation.json new file mode 100644 index 00000000..5ac2729c --- /dev/null +++ b/docs/workspaces-archives-validation.json @@ -0,0 +1,24 @@ +{ + "success": true, + "version": "1.6.0", + "testedAt": "2026-10-29T15:46:06.770523+00:00", + "archives": [ + { + "kind": "portable", + "path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.6.0-win-x64.zip", + "files": 2232, + "crcPassed": true, + "manifestAndDirectoryMatch": true, + "sha256": "de827eaf9add55ab3a4cec98183470a99ca4c1ff4d6c9272171d1136830d7935" + }, + { + "kind": "source", + "path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.6.0-source.zip", + "files": 410, + "crcPassed": true, + "manifestAndDirectoryMatch": true, + "sha256": "6df7c29f61fbc21da321eef4335cf0fc5a23d069ebab16e64b98c556550a80b4" + } + ], + "extractionRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-98bc280197b2411d8ef34db21b78d54c\\Agent-Workbench-1.6.0-source" +} \ No newline at end of file diff --git a/docs/workspaces-basic-ui-validation.json b/docs/workspaces-basic-ui-validation.json index f3ac623f..dd634f8b 100644 --- a/docs/workspaces-basic-ui-validation.json +++ b/docs/workspaces-basic-ui-validation.json @@ -1,9 +1,9 @@ { "success": true, - "url": "http://127.0.0.1:53474", + "url": "http://127.0.0.1:52777", "browser": "Microsoft Edge 156.0.4314.42", - "date": "2026-10-29T15:33:12.485Z", - "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\ui-eda23316-962b-4a51-9453-9e56068a5eb2\\ui-project", + "date": "2026-10-29T16:06:05.909Z", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\ui-4ed62d34-c6fb-45f4-bf79-e4ef904a7657\\ui-project", "viewports": [ 1440, 780, diff --git a/docs/workspaces-batch-ui-validation.json b/docs/workspaces-batch-ui-validation.json index 2df3f112..c1042908 100644 --- a/docs/workspaces-batch-ui-validation.json +++ b/docs/workspaces-batch-ui-validation.json @@ -1,7 +1,7 @@ { "success": true, "version": "1.6.0", - "testedAt": "2026-10-29T15:35:31.077Z", + "testedAt": "2026-10-29T16:08:29.958Z", "cases": [ "Desktop batch scope, per-file diffs, sealed single-write guard and pre-apply bytes", "Three-file reviewed application preserves exact BOM/CRLF/LF and creates the new file", @@ -24,6 +24,6 @@ ".qa/screenshots/workspaces-batch-mobile-review.png", ".qa/screenshots/workspaces-batch-mobile-rollback.png" ], - "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\batch-ui-76c717f8-eedf-4bc9-83b3-114c8d7bd851", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\batch-ui-967c4825-08d1-4105-8502-b6bf4890f226", "scope": "Real independent demo host and durable batch states; UI fixtures include actual owner conflict/rollback results. No real model credentials or user project were used." } diff --git a/docs/workspaces-change-sets-ui-validation.json b/docs/workspaces-change-sets-ui-validation.json index 2df3f112..c1042908 100644 --- a/docs/workspaces-change-sets-ui-validation.json +++ b/docs/workspaces-change-sets-ui-validation.json @@ -1,7 +1,7 @@ { "success": true, "version": "1.6.0", - "testedAt": "2026-10-29T15:35:31.077Z", + "testedAt": "2026-10-29T16:08:29.958Z", "cases": [ "Desktop batch scope, per-file diffs, sealed single-write guard and pre-apply bytes", "Three-file reviewed application preserves exact BOM/CRLF/LF and creates the new file", @@ -24,6 +24,6 @@ ".qa/screenshots/workspaces-batch-mobile-review.png", ".qa/screenshots/workspaces-batch-mobile-rollback.png" ], - "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\batch-ui-76c717f8-eedf-4bc9-83b3-114c8d7bd851", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\batch-ui-967c4825-08d1-4105-8502-b6bf4890f226", "scope": "Real independent demo host and durable batch states; UI fixtures include actual owner conflict/rollback results. No real model credentials or user project were used." } diff --git a/docs/workspaces-context-ui-validation.json b/docs/workspaces-context-ui-validation.json index 095991f9..d09086e9 100644 --- a/docs/workspaces-context-ui-validation.json +++ b/docs/workspaces-context-ui-validation.json @@ -1,7 +1,7 @@ { "success": true, "version": "1.6.0", - "testedAt": "2026-10-29T15:35:50.543Z", + "testedAt": "2026-10-29T16:08:50.277Z", "passed": [ "desktop request estimate, actual usage, complete goal and history identity are visible", "paged complete history opens actual tool result artifacts without executing tools", @@ -23,8 +23,8 @@ ".qa/screenshots/workspaces-context-mobile-request-body.png", ".qa/screenshots/workspaces-context-mobile-read-pause.png" ], - "root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\context-ui-b5407282-c7c2-4aa1-815c-fbd7823915e7", - "data": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\context-ui-b5407282-c7c2-4aa1-815c-fbd7823915e7\\data", + "root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\context-ui-ab0a6d68-36d7-47b9-82ac-5e038c835db7", + "data": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\context-ui-ab0a6d68-36d7-47b9-82ac-5e038c835db7\\data", "mode": "saved synthetic context evidence; no real model or project commands executed by this UI verifier", "browser": "156.0.4314.42" } diff --git a/docs/workspaces-delivery-ui-validation.json b/docs/workspaces-delivery-ui-validation.json index 13fa7464..1bda3014 100644 --- a/docs/workspaces-delivery-ui-validation.json +++ b/docs/workspaces-delivery-ui-validation.json @@ -1,7 +1,7 @@ { "success": true, "version": "1.6.0", - "testedAt": "2026-10-29T15:35:09.290Z", + "testedAt": "2026-10-29T16:08:08.238Z", "browser": "156.0.4314.42", "passed": [ "actual failing tests and four source proposals retain the original project and task", @@ -16,12 +16,12 @@ ], "pageErrors": [], "requestFailures": [], - "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\delivery-ui-c9d8072a-f17c-46e1-a43a-9657ebc092cb\\四模块交付工程", - "projectId": "8d85cdd4-da9a-4136-8363-0f8bed9f127e", - "sessionId": "a5df1ec9-f4f7-4f88-addb-c62d85f5866e", - "taskId": "7581f010-a89a-4ad3-872a-c5269808e567", - "commit": "711f097db7c4eb670211c0eabe9f9acf930e2487", - "recoveryCommit": "e2e0a943aea8f56dde9d3f414251edcf8168d31d", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\delivery-ui-e9cb4cf5-6f5a-42b5-b707-2eb1b32287e8\\四模块交付工程", + "projectId": "030a44a0-54c8-46da-9fbb-80d0511fb8c6", + "sessionId": "6eb6e4fd-17f4-4617-8bbe-3961ce0cba09", + "taskId": "d3c7fe8a-f7ff-4f9d-8617-620173d70e04", + "commit": "70af0ce2e79582d2c9ae43aa968f6976900d6757", + "recoveryCommit": "0e1b651539b21e1504c66fa6ae2dc30e773f2884", "testCounts": { "baselineFailed": 13, "passed": 14 diff --git a/docs/workspaces-diagnostics-ui-validation.json b/docs/workspaces-diagnostics-ui-validation.json index ab6223ae..a584406e 100644 --- a/docs/workspaces-diagnostics-ui-validation.json +++ b/docs/workspaces-diagnostics-ui-validation.json @@ -1,8 +1,8 @@ { "success": true, "version": "1.6.0", - "url": "http://127.0.0.1:59547", - "date": "2026-10-29T15:33:46.613Z", + "url": "http://127.0.0.1:63128", + "date": "2026-10-29T16:06:39.980Z", "passed": [ "model response validation checks the tentative connection before saving", "a model failure after successful tools shows source, attempts and local runtime diagnosis", diff --git a/docs/workspaces-execution-ui-validation.json b/docs/workspaces-execution-ui-validation.json index 21ceec0e..56aca4a5 100644 --- a/docs/workspaces-execution-ui-validation.json +++ b/docs/workspaces-execution-ui-validation.json @@ -1,7 +1,7 @@ { "success": true, "version": "1.6.0", - "testedAt": "2026-10-29T15:34:19.995Z", + "testedAt": "2026-10-29T16:07:14.862Z", "browser": "156.0.4314.42", "passed": [ "model-selected checks wait for approval and display actual counted results", @@ -14,6 +14,6 @@ ], "pageErrors": [], "requestFailures": [], - "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\execution-ui-be3c81da-3231-4a7c-845c-6a8239197747\\project", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\execution-ui-bf4adc23-443b-4a89-95be-e2ad84ae4b00\\project", "model": "controlled local HTTP fixture" } \ No newline at end of file diff --git a/docs/workspaces-index-ui-validation.json b/docs/workspaces-index-ui-validation.json index 1f6682e3..fcd1391b 100644 --- a/docs/workspaces-index-ui-validation.json +++ b/docs/workspaces-index-ui-validation.json @@ -1,5 +1,5 @@ { - "checkedAt": "2026-10-29T15:35:15.743Z", + "checkedAt": "2026-10-29T16:08:14.605Z", "version": "1.6.0", "passed": [ "工程索引可独立于任务使用,实际覆盖范围与损坏文件显示明确", @@ -13,7 +13,7 @@ ], "pageErrors": [], "requestFailures": [], - "root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\index-ui-838b7181-b341-4595-a841-c1a627c29b8d", - "primaryProjectId": "dfe47e01-988b-4aa9-8217-ce92a8e04bff", - "otherProjectId": "6b4cdbb1-1748-4107-a011-8df0cc6a4e17" + "root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\index-ui-212ed008-fef3-49bf-9b0c-577280ab193a", + "primaryProjectId": "384d4323-3550-4996-8163-049ee5a67dd3", + "otherProjectId": "75f909e4-dec5-457d-a52d-c1979277a49b" } diff --git a/docs/workspaces-release-validation.json b/docs/workspaces-release-validation.json new file mode 100644 index 00000000..2f1fd16c --- /dev/null +++ b/docs/workspaces-release-validation.json @@ -0,0 +1,34 @@ +{ + "success": true, + "date": "2026-10-29T15:46:40.682Z", + "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.6.0-win-x64", + "version": "1.6.0", + "nodeVersion": "v24.22.1", + "verifiedFiles": 2232, + "url": "http://127.0.0.1:59252", + "reusedPid": 36492, + "checks": { + "jobId": "50e6fb3f-db72-449f-8c6d-78af89e0c884", + "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 +} \ No newline at end of file diff --git a/docs/workspaces-source-initial-failure.json b/docs/workspaces-source-initial-failure.json new file mode 100644 index 00000000..0b02b544 --- /dev/null +++ b/docs/workspaces-source-initial-failure.json @@ -0,0 +1,28 @@ +{ + "success": false, + "version": "1.6.0", + "stage": "independent-source-tests", + "counts": { + "tests": 190, + "pass": 185, + "fail": 5, + "cancelled": 0, + "skipped": 0, + "todo": 0 + }, + "logFile": ".qa/workspaces-source-initial-failure.tap", + "logSha256": "4841ab94b1e3990bbdff69dad8651490f90a520b86876fef3dc60875bbaa4a56", + "failedCases": [ + "actual process exit at workspace git_finished preserves source and reconciles without creation replay", + "actual process exit at workspace verifying preserves source and reconciles without creation replay", + "actual process exit at workspace registering preserves source and reconciles without creation replay", + "actual process exit at workspace project_registered preserves source and reconciles without creation replay", + "actual process exit at workspace session_registered preserves source and reconciles without creation replay" + ], + "diagnosis": { + "gitExitCode": 128, + "message": "fatal: '$GIT_DIR' too big", + "source": "https://github.com/git/git/blob/v2.54.0/setup.c", + "observation": "Git startup rejects an oversized explicit GIT_DIR even with core.longpaths. The independent source directory made long checkout basenames exceed the internal buffer. Compact UUID directory names and a pre-creation Windows metadata limit address this; repeat acceptance pending." + } +} diff --git a/docs/workspaces-tests-initial-validation.json b/docs/workspaces-tests-initial-validation.json new file mode 100644 index 00000000..cdfc185b --- /dev/null +++ b/docs/workspaces-tests-initial-validation.json @@ -0,0 +1,21 @@ +{ + "success": true, + "version": "1.6.0", + "testedAt": "2026-10-29T15:42:53.755Z", + "counts": { + "tests": 190, + "pass": 190, + "fail": 0, + "cancelled": 0, + "skipped": 0, + "todo": 0 + }, + "exitCode": 0, + "logFile": ".qa/workspaces-tests-before-compact-path.log", + "logSha256": "c2433ebdd086a29cd39c131fd95a06162a5404bd0a80aee694cb7367d1e89895", + "testFiles": 23, + "concurrency": 2, + "initialFailureLog": ".qa/workspaces-tests-initial.log", + "scope": "Real filesystem, Git, HTTP, process-exit, recovery and synthetic-provider tests. Configured-model acceptance is recorded separately.", + "note": "Initial 190-case development acceptance before the independent Windows Git path failure was found." +} diff --git a/docs/workspaces-tests-validation.json b/docs/workspaces-tests-validation.json index 85568122..3e18d6ca 100644 --- a/docs/workspaces-tests-validation.json +++ b/docs/workspaces-tests-validation.json @@ -1,10 +1,10 @@ { "success": true, "version": "1.6.0", - "testedAt": "2026-10-29T15:42:53.755Z", + "testedAt": "2026-10-29T16:13:50.442Z", "counts": { - "tests": 190, - "pass": 190, + "tests": 192, + "pass": 192, "fail": 0, "cancelled": 0, "skipped": 0, @@ -12,9 +12,12 @@ }, "exitCode": 0, "logFile": ".qa/workspaces-tests.log", - "logSha256": "c2433ebdd086a29cd39c131fd95a06162a5404bd0a80aee694cb7367d1e89895", + "logSha256": "7cf53b34c727446d6a59c9f428435ffe58bdf3e165493bf9706a77af8b3e784f", "testFiles": 23, "concurrency": 2, "initialFailureLog": ".qa/workspaces-tests-initial.log", - "scope": "Real filesystem, Git, HTTP, process-exit, recovery and synthetic-provider tests. Configured-model acceptance is recorded separately." + "scope": "Real filesystem, Git, HTTP, process-exit, recovery and synthetic-provider tests. Configured-model acceptance is recorded separately.", + "windowsMetadataPathRegression": true, + "initialDevelopmentAcceptance": "docs/workspaces-tests-initial-validation.json", + "initialIndependentFailure": "docs/workspaces-source-initial-failure.json" } diff --git a/docs/workspaces-ui-validation.json b/docs/workspaces-ui-validation.json index 4bddea09..8628253f 100644 --- a/docs/workspaces-ui-validation.json +++ b/docs/workspaces-ui-validation.json @@ -1,7 +1,7 @@ { "success": true, "version": "1.6.0", - "at": "2026-10-29T15:36:15.266Z", + "at": "2026-10-29T16:09:16.603Z", "browser": "156.0.4314.42", "passed": [ "desktop preview seals the committed version and shows existing staged/unstaged/untracked source changes", @@ -23,6 +23,6 @@ ".qa/screenshots/1.6-workspace-review-mobile.png", ".qa/screenshots/1.6-workspace-child-mobile.png" ], - "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workspace-ui-13e158a6-04c7-41c4-b588-25791134bca0", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\workspace-ui-ed857d82-796c-48fc-911c-156ce84dd194", "scope": "Independent synthetic Git projects and real browser flows. Desktop/390×844, actual worktree creation, source preservation, explicit external recovery, ownership navigation, delayed success/error/navigation. No production service or real model credential used." } diff --git a/findings.md b/findings.md index 3006acfe..5d17065e 100644 --- a/findings.md +++ b/findings.md @@ -208,3 +208,7 @@ Claude Code 报告已验证工具输入校验、权限决定、队列并发屏 - Git审查边界的实际HTTP测试证实只发送1次响应;同消息里的后续run_command记interrupted、无审批或文件副作用,协议完整;重开Store后仍拒绝模型续接,确认原预览才完成Git。另测修改署名/预览和撤回不写Git、保留原Task;旧UI验收由等待completed修正为等待needs_review/git_review,9组复验通过。 - 两次组合补丁包含只给长行前缀的无效锚点,整体被拒绝,无部分写入;随后以完整锚点/相邻短行完成。查询误用verify-batch-ui.mjs和不存在的.qa聚合器,只读失败,实际脚本是verify-change-sets-ui.mjs;后续使用rg --files定位。 + +- 独立1.6.0源码在更深目录暴露Git startup对绝对GIT_DIR的内部长度限制(Git 2.54.0 setup.c预留PATH_MAX以下40字节),core.longpaths=true无效。原长slug+UUID工作区造成5个真实退出用例失败;短ready成功。新物理目录采用w-完整UUID,Windows创建前按UTF-8限制预测Git管理路径至200字节,已存在/未知结果仍保持只读核对,不能自动删除重试。两个深Unicode/超限无副作用专项通过;完整192项和独立包需再次验收。 + +- 下一工程切片的源码核对:project-inspector已识别npm的test/typecheck/check/lint/build及Node/Vitest/Jest;CheckRunner已统一Task、计划、审批、真实退出码、来源失效、日志与取消。Python目前只作为文件语言登记,createCheckList对非npm返回空列表;因此Python执行器必须独立提供可核验的解释器/argv/测试统计,复用现有准入和恢复,不能用泛用run_command充当已集成工程检查。React/TypeScript可沿用已识别npm类型/构建检查,仍须封存真实工程样本而不是只靠工作台自身tsc构建。 diff --git a/progress.md b/progress.md index c274a329..30255dcb 100644 --- a/progress.md +++ b/progress.md @@ -173,3 +173,10 @@ - 完整190/190回归通过,0失败/取消/跳过,日志SHA256及并发2保存workspaces-tests-validation.json;1.6.0实测界面72组与实际退出/API成果同步公开范围。准备本地UI/版本/验证提交、不可变打包与独立源码验收;此时尚未升级正式1.5.1或启动新的模型任务。只读查询误用不存在的src/core/runtime.mjs,按rg --files定位实际runtime后继续,无写入。 - AGENTS补丁误用了task_plan中的阶段段落,整批校验拒绝、后续提交/打包未执行;按真实AGENTS末段补充不可变升级和工作区边界后继续。 + +- UI/版本/验证实现已提交bb48f69。初始不可变1.6.0便携2232份/源码410份清单、CRC/SHA与独立便携启动/同PID复用/随附Node和npm实际4项检查/停止通过;源码独立离线安装及6份编译文件比对通过,190项独立回归尚在运行。升级器和新四模块真实模型工作区验收器已准备并通过语法核对,尚未执行正式升级或模型请求。 + +- 独立源码回归185/190、5个工作区退出切点失败,原JSON/TAP保存workspaces-source-initial-failure.*。独立复现确认Git退出128及fatal: '$GIT_DIR' too big,core.longpaths=true仍无效;较长的可读工作区目录名使深源码验收目录的Git管理路径超过内部长度,短ready用例通过。正式1.5.1保持;优先缩短新工作区目录并做实际路径预检,再重新打包和验收,不能将开发目录通过当独立源码通过。 +- 新目录使用完整UUID的短标识,Windows Git管理目录在创建前按UTF-8字节预检;既有/待核对目录仍只读核对。首次27项针对性25通过/2失败,新增深目录fixture遗漏README,Git add在样本准备阶段失败;补复制原fixture README,断言不变,先复验这2项再构建并运行完整192项。 + +- 路径修正版构建、192/192完整回归及72组独立界面全部通过,0失败/取消/跳过/页面或请求异常;首次190项开发和185/190源码失败各自保存独立记录。390px短UUID预览目视复验通过,保护原目录/状态和创建前拒绝的行为有实际断言。保存本地修复提交后创建新不可变1.6.0目录,继续独立源码验收;尚未升级正式1.5.1。 diff --git a/src/core/workspaces/git-workspaces.mjs b/src/core/workspaces/git-workspaces.mjs index 6940b302..6dedca63 100644 --- a/src/core/workspaces/git-workspaces.mjs +++ b/src/core/workspaces/git-workspaces.mjs @@ -133,6 +133,13 @@ export class WorkspaceManager { if (fs.readdirSync(this.hooksDirectory).length || !config.isFile() || config.isSymbolicLink() || config.nlink !== 1 || config.size !== 0) throw conflict('工作区执行配置已被外部修改。'); if (!inside(this.outputRoot, record.root) || !same(path.dirname(record.root), this.outputRoot)) throw conflict('工作区目标超出当前执行宿主拥有的目录。'); if (same(record.root, record.source.root) || inside(record.source.root, record.root) || inside(record.root, record.source.root)) throw conflict('隔离工作区与来源目录不能互相嵌套。'); + // Git setup_explicit_git_dir reserves 40 bytes below PATH_MAX, even with + // core.longpaths. Keep room for Windows path conversion and Git suffixes. + // Apply this only before creation; existing/unknown workspaces stay readable. + if (absent && process.platform === 'win32' + && Buffer.byteLength(path.join(record.source.commonDir, 'worktrees', path.basename(record.root)), 'utf8') > 200) { + throw conflict('来源Git管理目录过长,Windows Git无法可靠创建独立工作区;请将来源工程放在较短目录后重新准备。'); + } if (fs.existsSync(record.root)) { if (absent) throw conflict('目标工作区目录已存在,不能覆盖或复用外部目录。'); if (checkExisting) ordinaryDirectory(record.root); } @@ -211,7 +218,7 @@ export class WorkspaceManager { const slug = label.trim().toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 32) || 'task'; const record = { schemaVersion: 1, id, projectId: session.projectId, sessionId: session.id, taskId: session.taskId ?? null, runId: session.runId ?? null, label: label.trim(), source, - root: path.join(this.outputRoot, slug + '-' + id), branch: 'workbench/' + slug + '-' + id.slice(0, 12), + root: path.join(this.outputRoot, 'w-' + id), branch: 'workbench/' + slug + '-' + id.slice(0, 12), childProjectId: randomUUID(), childSessionId: randomUUID(), createdAt: at(), updatedAt: at(), finishedAt: null, status: 'prepared', phase: 'prepared', creationAttempted: false, requiresVerification: false, ownerPid: null, gitPid: null, sourcePreserved: null, observation: null, summary: '已封存来源提交和原工作区状态,确认后创建独立Git工作区。' }; @@ -262,7 +269,8 @@ export class WorkspaceManager { record.gitResult = { code: result.code, ok: result.ok, timedOut: result.timedOut, aborted: result.aborted, message: this.redact(result.error).slice(0, 2000) }; record.gitPid = null; this.save(session, record, 'git_finished'); - if (!result.ok) throw conflict('Git创建没有完整确认结果,请核对实际分支和工作区。'); + if (!result.ok) throw conflict('Git创建没有完整确认结果(退出码 ' + String(result.code) + '),请核对实际分支和工作区。' + + (record.gitResult.message ? '\n' + record.gitResult.message : '')); record.status = 'verifying'; this.save(session, record, 'verifying'); const observation = await this.observe(record); record.observation = observation; diff --git a/task_plan.md b/task_plan.md index e85bde6d..000b8c31 100644 --- a/task_plan.md +++ b/task_plan.md @@ -191,7 +191,7 @@ 1. [complete] Git预览后确定性停止模型请求并等待审查;34项相关回归/9组界面和本地提交7d60dc9保留。 2. [complete] 工作区快照、普通检出、过滤器/hook关闭、稳定归属和实际进程恢复;21项初批行为及2项真实API交付通过,新增关闭等待和配置隐私用例进入全量回归。 3. [complete] 原项目/子工作区导航与桌面/390px界面,异步操作有完整归属保护;1.6.0共72组界面通过。 -4. [in_progress] 全部190项回归、不可变1.6.0包/独立源码验收、原PID/连接升级、真实模型工作区工程交付与证据本地提交。 +4. [in_progress] 首次开发190项通过,独立源码185/190暴露Windows Git管理路径限制;短UUID及创建预检已修复,完整192项/72组界面重新通过。继续新的不可变包和独立源码192项验收,随后原PID升级和真实模型交付。 5. [pending] 继续React/TypeScript与Python工程检查、REA证据绑定的机制适配和Purge实验;Electron/移动配对及完整M2/M6另行验收。 本轮错误:首批API验证的2项失败均在测试阶段。Windows隐藏.git不能以创建标志覆盖,改为r+打开原控制文件;Git提交completed早于报告工件保存,改为同时等待报告身份再核对。没有修改正式服务或真实凭据。 diff --git a/tests/fixtures/workspace-crash-worker.mjs b/tests/fixtures/workspace-crash-worker.mjs index 32b91834..935287d9 100644 --- a/tests/fixtures/workspace-crash-worker.mjs +++ b/tests/fixtures/workspace-crash-worker.mjs @@ -9,5 +9,6 @@ const manager = new WorkspaceManager(store, { initialize: false, faultInjector: } }); const record = store.owned('workspace', workspaceId, sessionId); await (await manager.start(store.session(sessionId), record.id, record.fingerprint)).promise; -process.stderr.write('Workspace did not reach crash cut: ' + cut + ' / ' + record.status + ' / ' + record.summary + '\n'); +process.stderr.write('Workspace did not reach crash cut: ' + cut + ' / ' + record.status + ' / ' + record.summary + + '\nGit result: ' + JSON.stringify(record.gitResult ?? null) + '\nObservation: ' + JSON.stringify(record.observation?.problems ?? []) + '\n'); await manager.stopAll(); store.close(); process.exit(74); diff --git a/tests/workspace-policy.test.mjs b/tests/workspace-policy.test.mjs index 89f94114..d2680569 100644 --- a/tests/workspace-policy.test.mjs +++ b/tests/workspace-policy.test.mjs @@ -81,6 +81,42 @@ test('workspace preparation refuses known shared-repository activity and preserv assert.equal(f.store.core.workspace.size, 1); }); +function deepSource(f, bytes) { + const prefix = path.join(f.root, '深', 'repo', '.git'); + const padding = Math.max(0, bytes - Buffer.byteLength(prefix, 'utf8')); + const root = path.join(f.root, '深' + 'p'.repeat(padding), 'repo'); + assert.ok(path.resolve(root).startsWith(path.resolve(f.root) + path.sep)); + fs.mkdirSync(root, { recursive: true }); + fs.copyFileSync(path.join(f.projectRoot, 'README.md'), path.join(root, 'README.md')); + f.projectRoot = root; f.project = f.store.addProject(root); f.session = f.store.createSession(f.project.id); + createDeliveryProject(f); +} + +test('compact checkout identities create in deep Unicode source directories while retaining the human branch name', async t => { + const f = fixture(t); deepSource(f, 142); + const before = captureWorkspaceSource(f), manager = new WorkspaceManager(f.store); + const label = 'x'.repeat(64), record = await manager.prepare(f.session, label); + assert.equal(path.basename(record.root), 'w-' + record.id); + assert.ok(record.branch.startsWith('workbench/' + 'x'.repeat(32) + '-')); + await (await manager.start(f.session, record.id, record.fingerprint)).promise; + assert.equal(record.status, 'ready', record.summary); + assertWorkspaceSource(assert, f, before, record.branch); +}); + +test('Windows Git metadata path limits reject creation before publishing a branch or changing source bytes', async t => { + const f = fixture(t); deepSource(f, 168); + const before = captureWorkspaceSource(f), manager = new WorkspaceManager(f.store); + if (process.platform === 'win32') { + await assert.rejects(manager.prepare(f.session, 'deep metadata'), /Git管理目录过长/); + assert.equal(f.store.core.workspace.size, 0); + assertWorkspaceSource(assert, f, before, 'not-created'); + } else { + const record = await manager.prepare(f.session, 'deep metadata'); + assert.equal(record.creationAttempted, false); + assertWorkspaceSource(assert, f, before, record.branch); + } +}); + test('a pending source snapshot participates in shutdown and completes before storage can close', async t => { const f = fixture(t); createDeliveryProject(f, { ownerChanges: false }); const runtime = new Runtime(f.store, new Provider()), manager = runtime.workspaceManager();