diff --git a/CHANGELOG.md b/CHANGELOG.md index f4241b8c..ac8238f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,8 @@ - 新增propose_patch:按原文件SHA256、唯一锚点和不重叠范围产生审核提案,保留BOM、统一LF/CRLF与未选择原字节,拒绝旧基线、模糊锚点和无效Unicode。 - 长文件差异定位首处实际改动,审查页展示精确替换数与格式;标签保持单行,索引失败有明确项目归属和重试入口。 - 工程只读Git检查先禁用配置的clean/process过滤脚本并跳过子模块工作区;依赖、常见凭据与链接沿统一清单规则排除。 -- 完整112项行为/API/实际退出恢复检查通过。新索引界面8组流程通过;发行、真实模型与全部界面的最终证据汇总到[验收记录](docs/VALIDATION.md)。 +- 完整112项行为/API/实际退出恢复检查和43组界面流程通过;便携包与独立源码112项验收通过,原进程更新保留连接和会话。 +- 实际配置模型用索引和精确补丁修复四个长文件,13失败→14通过、build及工作台Git/报告完成,420行说明、BOM/换行和其他暂存改动保留。实际用量和验收边界见[验收记录](docs/VALIDATION.md)。 ## 1.2.0 · 2026-10-29 diff --git a/docs/QA-1.3.md b/docs/QA-1.3.md index 0e3c049d..26bc26b2 100644 --- a/docs/QA-1.3.md +++ b/docs/QA-1.3.md @@ -16,4 +16,4 @@ 桌面及390px的索引、文件行与精确差异截图已目视核对,见[screenshots](screenshots/1.3-index-desktop.png)。初始两项Windows Node HTTP连接重置已独立复验并采用有限QA请求独立连接,完整112项最终回归全部通过;没有自动重试副作用请求。 -便携包、独立源码安装/构建、原进程升级与真实模型长文件精确交付的最终结果汇总到[VALIDATION](VALIDATION.md)。真实模型样本增加420行受保护说明及两种BOM/换行格式,要求用索引定位正文、仅读取必要源码并提出精确补丁,沿原Task完成14项测试、Git和报告;不由单个样本推断完整M2/M6成功率。 +便携包启动/复用/随附Node与npm/优雅停止、源码ZIP独立离线安装/构建/112项回归,以及原PID23080保留模型连接的升级均已通过,结果见[VALIDATION](VALIDATION.md)。真实模型长文件样本119秒通过:420行说明和BOM/换行格式逐字节保留,索引定位正文、必要行读取、四份精确补丁,沿原Task完成14项测试、build、工作台Git和报告。用量15次请求/280253个已报告tokens;尚无同题成本对照,不宣称索引已节省用量。完整M2/M6验收继续实施。 diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index 27efd5d2..20c84318 100644 --- a/docs/VALIDATION.md +++ b/docs/VALIDATION.md @@ -1,5 +1,27 @@ # Agent Workbench 验收记录 +## 1.3.0 · 工程索引与精确补丁 + +Windows x64、Node24.22.1、Edge156.0.4314.42。构建和112/112项行为/API/实际进程退出与连续升级检查通过,0失败/跳过/取消。基础10、诊断9、任务7、Git交付9和索引8共43组真实界面流程全部通过,页面/请求异常为零;桌面与390px截图已目视核对。 + +| 验证 | 结果 | 结构化证据 | +| --- | --- | --- | +| AST/候选索引、增量依赖、精确补丁及原有恢复契约 | 112/112通过 | [m2-index-tests-validation.json](m2-index-tests-validation.json) | +| 基础/诊断/任务/Git/索引界面 | 10/9/7/9/8组全部通过 | [QA-1.3.md](QA-1.3.md) | +| 便携包与随附Node/npm | 独立启动/复用/停止、4项实际示例检查通过 | [m2-index-release-validation.json](m2-index-release-validation.json) | +| 源码ZIP独立安装/构建/回归 | 离线安装、6份构建文件一致、112/112通过 | [m2-index-source-package-validation.json](m2-index-source-package-validation.json) | +| 两个ZIP的CRC/路径/清单/散列 | 全部通过 | [m2-index-archives-validation.json](m2-index-archives-validation.json) | +| 正式原进程升级 | 1.3.0、PID23080/内存连接及历史状态保留 | [m2-index-upgrade-live-validation.json](m2-index-upgrade-live-validation.json) | +| 真实模型精确补丁交付 | 13失败→14通过、build、四文件commit和报告 | [m2-index-live-model-validation.json](m2-index-live-model-validation.json) | + +实际配置的gpt-6.1-sol用119秒、1Task/2Run、1次四文件审查完成长文件样本。模型调用1次index_project、2次query_code,仅读取各文件421行后的必要源码,四文件均用propose_patch。每个源文件420行受保护说明、normalize/cli的BOM与CRLF、summary/render的LF、10个保护输入、其他工作区与暂存修改均保留。封存14项测试由1通过/13失败变为14通过,build和构建CLI结果正确。 + +模型准备Git预览;验收器审核提案、批准封存的npm脚本和确认工作台预览,工作台自身生成并核对样本commit `5dec27e38ad9b3a2c5da53debb8af29884cec690`及[Markdown报告](m2-index-model-delivery-report.md)/[JSON报告](m2-index-model-delivery-report.json)。[实际diff](m2-index-live-model.diff)保存四文件的局部修改。验收器未编写修复实现或自行执行Git提交,未读取、复制或导出模型Key。 + +实际用量为15次请求,输入277387、输出2866、合计280253个已报告tokens,未知用量请求0;未配置单价不换算费用。这个样本证明定位和格式保留的正确性;尚未建立上下文成本下降的同题对照,不能据此宣称节省tokens。上下文投影与预算将继续优化。 + +这是一个合成Node工程样本;完整M2三类工程、ChangeSet/隔离worktree、外部引擎、Electron及手机配对继续实施。JS/TS/React索引是静态声明/导入证据,Python为声明候选,均不表示完整编译器引用或运行时依赖解析。首轮两项Windows HTTP连接重置已独立复验;有限QA请求使用独立连接,不重试副作用请求,最终完整回归通过。 + ## 1.2.0 · 当前Task的Git交付与证据报告 Windows x64、Node24.22.1、Edge156.0.4314.42。构建通过;完整92项行为/API/实际退出恢复测试全部通过,0失败/跳过/取消。首轮90/92的两个失败已定位并修复,15项相关专项及最终完整回归均通过。 diff --git a/docs/deployment.json b/docs/deployment.json index b421e838..c4127c12 100644 --- a/docs/deployment.json +++ b/docs/deployment.json @@ -1,14 +1,14 @@ { "ready": true, "url": "http://127.0.0.1:4318", - "version": "1.2.0", + "version": "1.3.0", "mode": "compatible", "model": "gpt-6.1-sol", "hasKey": true, "pid": 23080, - "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.2.0-win-x64-20261029085728391", + "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.3.0-win-x64", "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-29T08:58:58.364Z", + "upgradedAt": "2026-10-29T10:05:56.806Z", "storage": "sqlite" -} \ No newline at end of file +} diff --git a/docs/m2-index-archives-validation.json b/docs/m2-index-archives-validation.json new file mode 100644 index 00000000..8b1b9d76 --- /dev/null +++ b/docs/m2-index-archives-validation.json @@ -0,0 +1,24 @@ +{ + "success": true, + "version": "1.3.0", + "testedAt": "2026-10-29T10:00:17.501393+00:00", + "archives": [ + { + "kind": "portable", + "path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.3.0-win-x64.zip", + "files": 2130, + "crcPassed": true, + "manifestAndDirectoryMatch": true, + "sha256": "6feab9f89ac8b0658836c4ca1983b482693e30eadfa2620c30f0a2e5f545d153" + }, + { + "kind": "source", + "path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.3.0-source.zip", + "files": 275, + "crcPassed": true, + "manifestAndDirectoryMatch": true, + "sha256": "4cbbad34e0e80ca437020baa3ca331ab67666b595e185d7a3a5bcfeeabf4b620" + } + ], + "extractionRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-9e1b2f02ba574915ae640186d87f0e3c\\Agent-Workbench-1.3.0-source" +} \ No newline at end of file diff --git a/docs/m2-index-live-model-validation.json b/docs/m2-index-live-model-validation.json new file mode 100644 index 00000000..1584b8ef --- /dev/null +++ b/docs/m2-index-live-model-validation.json @@ -0,0 +1,515 @@ +{ + "success": true, + "version": "1.3.0", + "mode": "indexed-exact-patch", + "testedAt": "2026-10-29T10:08:50.486Z", + "model": "gpt-6.1-sol", + "projectRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\精确补丁交付工程", + "projectId": "d639fd99-3487-4f4b-b9eb-2d7c32ebb778", + "sessionId": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "baselineCommit": "b89e6bf296b299af7278fcd4351d3c8a60350b6d", + "deliveredCommit": "5dec27e38ad9b3a2c5da53debb8af29884cec690", + "deliveryPlan": { + "id": "46f674e8-5272-4d67-b4c3-7113df5bde45", + "sessionId": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8", + "projectId": "d639fd99-3487-4f4b-b9eb-2d7c32ebb778", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "runId": "f33d3132-1954-4a34-95ff-1145660cc84b", + "status": "planned", + "createdAt": "2026-10-29T10:08:32.206Z", + "message": "修复 Delivery Report 四模块:严格任务校验、完整汇总、中文渲染及 CLI 输出与错误处理", + "author": { + "name": "Agent Workbench", + "email": "local@agent-workbench.invalid", + "source": "workbench-local" + }, + "files": [ + { + "path": "src/cli.mjs", + "changeIds": [ + "a8e14540-efd9-43c7-9dc1-b7c190fcfef0" + ], + "mode": "100644", + "beforeBlob": "42aea37a024b2cd95edde67c51d3e5be5996624a", + "afterBlob": "84ccaced5061deb0b518a78eab9ac4fbe521222c", + "baseSha256": "79a11c00544279f14107ecf65c404b945d1a883b7e1ceeff562dfe88f2c86a63", + "sha256": "038a0ea3e1ac49ca0f9474ed3238f6cc65e4d667e1d4b6fa64d9d2e54ff2d0c1", + "reason": "依据实际CLI失败实现严格参数、共享summary的JSON/文本输出、中文错误前缀与退出码2;保留421–424行实际导入、前420行、BOM及CRLF。构建复制后仍使用相对模块导入。", + "additions": 13, + "deletions": 3, + "diff": "===================================================================\n--- a/src/cli.mjs\t\n+++ b/src/cli.mjs\t\n@@ -423,6 +423,16 @@\n import { summarize } from './summary.mjs';\r\n import { renderText } from './render.mjs';\r\n try {\r\n- const tasks = normalizeTasks(JSON.parse(fs.readFileSync(process.argv[2], 'utf8')));\r\n- console.log(renderText(summarize(tasks)));\r\n-} catch (error) { console.error(error.message); }\r\n+ const args = process.argv.slice(2);\r\n+ if (args.length < 1 || args.length > 2 || !args[0] || args[0].startsWith('-') ||\r\n+ (args.length === 2 && args[1] !== '--json')) {\r\n+ throw new TypeError('用法:node src/cli.mjs [--json]');\r\n+ }\r\n+ const tasks = normalizeTasks(JSON.parse(fs.readFileSync(args[0], 'utf8')));\r\n+ const summary = summarize(tasks);\r\n+ const output = args[1] === '--json' ? JSON.stringify(summary) : renderText(summary);\r\n+ process.stdout.write(output + '\\n');\r\n+} catch (error) {\r\n+ process.exitCode = 2;\r\n+ process.stderr.write('输入错误:' + error.message + '\\n');\r\n+}\r\n" + }, + { + "path": "src/normalize.mjs", + "changeIds": [ + "00230203-2540-4736-9949-f15ba53a6634" + ], + "mode": "100644", + "beforeBlob": "5a46e5a96e586e126c35443527bc4dfc22243159", + "afterBlob": "84107b9ebb302905111a174b292cf9cf976d5a50", + "baseSha256": "432fcd10d2acbfac6c081975df1289017b5e41ade79605fdf784038a303113fe", + "sha256": "f04ef9fdad8b2eb7ca02d38e4e587885a42ee731b6971002357b9659e7fbf8d8", + "reason": "依据实际失败和README要求1、2修复规范化与校验,仅替换421行后的函数,保留说明块、BOM及CRLF。", + "additions": 25, + "deletions": 2, + "diff": "===================================================================\n--- a/src/normalize.mjs\t\n+++ b/src/normalize.mjs\t\n@@ -419,6 +419,29 @@\n // 保留工程说明 419 · src/normalize.mjs · 原文🙂\r\n // 保留工程说明 420 · src/normalize.mjs · 原文🙂\r\n export function normalizeTasks(input) {\r\n- if (!Array.isArray(input)) throw new TypeError('tasks must be an array');\r\n- return input;\r\n+ if (!Array.isArray(input)) throw new TypeError('任务必须是数组');\r\n+ if (input.length > 10000) throw new RangeError('任务最多10000项');\r\n+ const ids = new Set();\r\n+ const statuses = new Set(['todo', 'doing', 'done', 'blocked']);\r\n+ const result = [];\r\n+ for (const task of input) {\r\n+ if (task === null || typeof task !== 'object' || Array.isArray(task)) {\r\n+ throw new TypeError('每项任务必须是对象');\r\n+ }\r\n+ if (typeof task.id !== 'string' || typeof task.title !== 'string') {\r\n+ throw new TypeError('id和title必须是非空字符串');\r\n+ }\r\n+ const id = task.id.trim();\r\n+ const title = task.title.trim();\r\n+ if (!id || !title) throw new TypeError('id和title不能为空');\r\n+ if (ids.has(id)) throw new TypeError('任务id不能重复');\r\n+ const { status, minutes } = task;\r\n+ if (!statuses.has(status)) throw new TypeError('任务状态无效');\r\n+ if (!Number.isSafeInteger(minutes) || minutes < 0 || minutes > 1000000) {\r\n+ throw new RangeError('minutes必须是0到1000000之间的安全整数');\r\n+ }\r\n+ ids.add(id);\r\n+ result.push({ id, title, status, minutes });\r\n+ }\r\n+ return result;\r\n }\r\n" + }, + { + "path": "src/render.mjs", + "changeIds": [ + "32e2ed5f-e141-47a7-b4c6-cfbfec4d6d8c" + ], + "mode": "100644", + "beforeBlob": "5cacc86906b607355b2adf447d7c9b15139345d3", + "afterBlob": "2752ba61d1a07a78c7232ea2c794d9eb138fd15b", + "baseSha256": "abc8178bd18ff103ea3470b838e76344ec73613d85db19f9fac842e9d8c1de45", + "sha256": "2882b485d686e1cbdaf8de2834592f9a84921ed63340dbae42916145df907ca7", + "reason": "依据实际文本渲染失败实现README精确三行中文输出,仅替换421行后的函数,保留说明块与LF。", + "additions": 6, + "deletions": 1, + "diff": "===================================================================\n--- a/src/render.mjs\t\n+++ b/src/render.mjs\t\n@@ -419,5 +419,10 @@\n // 保留工程说明 419 · src/render.mjs · 原文🙂\n // 保留工程说明 420 · src/render.mjs · 原文🙂\n export function renderText(summary) {\n- return `Done: ${summary.counts.done}/${summary.total}`;\n+ const { total, counts, completedPercent, remainingMinutes } = summary;\n+ return [\n+ `交付进度:${counts.done}/${total}(${completedPercent}%)`,\n+ `待办 ${counts.todo} · 进行中 ${counts.doing} · 已完成 ${counts.done} · 阻塞 ${counts.blocked}`,\n+ `剩余预计:${remainingMinutes} 分钟`\n+ ].join('\\n');\n }\n" + }, + { + "path": "src/summary.mjs", + "changeIds": [ + "f1245a00-5578-4b50-8a19-31e581cd51fd" + ], + "mode": "100644", + "beforeBlob": "6679d91838eb2b6f88aa3133f78f0b67684bc892", + "afterBlob": "29d07bef5f5a65ddac94d794c5ace8e852d0c717", + "baseSha256": "17df0269ffaaec8e913b44970962308def26ffe7ffa672854028741aa27b470b", + "sha256": "06c0bb1d5ae472c343e8137d05c175c7216ca7a5c8c1c6c0c7dcba0df38fbb13", + "reason": "依据实际汇总失败修复四状态计数、四舍五入进度、非done剩余分钟及空数组,仅替换421行后的函数并保留LF。", + "additions": 13, + "deletions": 3, + "diff": "===================================================================\n--- a/src/summary.mjs\t\n+++ b/src/summary.mjs\t\n@@ -419,7 +419,17 @@\n // 保留工程说明 419 · src/summary.mjs · 原文🙂\n // 保留工程说明 420 · src/summary.mjs · 原文🙂\n export function summarize(tasks) {\n- const done = tasks.filter(task => task.status === 'done').length;\n- return { total: tasks.length, counts: { done }, completedPercent: tasks.length ? 100 : 0,\n- remainingMinutes: tasks.reduce((sum, task) => sum + task.minutes, 0) };\n+ const counts = { todo: 0, doing: 0, done: 0, blocked: 0 };\n+ let remainingMinutes = 0;\n+ for (const task of tasks) {\n+ counts[task.status] += 1;\n+ if (task.status !== 'done') remainingMinutes += task.minutes;\n+ }\n+ const total = tasks.length;\n+ return {\n+ total,\n+ counts,\n+ completedPercent: total ? Math.round(counts.done / total * 100) : 0,\n+ remainingMinutes\n+ };\n }\n" + } + ], + "paths": [ + "src/cli.mjs", + "src/normalize.mjs", + "src/render.mjs", + "src/summary.mjs" + ], + "preparedBy": "agent", + "fingerprint": "cf56ca5a3dac2490ede838fff56902d01b0fbdc2d953155114f62acc6805c9cb", + "sourceFingerprint": "c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81", + "checkJobId": "1ff8446c-da8c-494a-a39e-c09779dd028b", + "checkSummary": [ + { + "name": "test", + "command": "npm run test", + "exitCode": 0, + "tests": { + "total": 14, + "passed": 14, + "failed": 0, + "cancelled": 0, + "skipped": 0 + }, + "logArtifactId": "e7798b4c-5703-445e-8191-0ead7038ce3c" + }, + { + "name": "build", + "command": "npm run build", + "exitCode": 0, + "tests": null, + "logArtifactId": "312e6e0f-ce50-4d99-8499-eb5125c1f49e" + } + ], + "protectedIndexSha256": "ad0acc1a521aacf1f5b2f2afbcc1f08ec8d6eec1b689d6ee3e29e9e0d1fa0d00", + "diffArtifactId": "76af5c23-8412-4e4c-aac8-b8443d3d0bd7", + "policy": { + "name": "local-reviewed-snapshot", + "hooks": "disabled", + "signing": "unsigned", + "remote": "none", + "note": "工作台生成本地普通提交,保留其他暂存与工作区改动;本次不执行仓库hooks和GPG签名。" + }, + "baseline": { + "head": "b89e6bf296b299af7278fcd4351d3c8a60350b6d", + "branch": "main", + "reference": "refs/heads/main" + } + }, + "deliveryJob": { + "id": "5815d851-ca27-467c-86ca-c834b22651ea", + "sessionId": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8", + "projectId": "d639fd99-3487-4f4b-b9eb-2d7c32ebb778", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "runId": "f33d3132-1954-4a34-95ff-1145660cc84b", + "planId": "46f674e8-5272-4d67-b4c3-7113df5bde45", + "status": "completed", + "startedAt": "2026-10-29T10:08:48.288Z", + "finishedAt": "2026-10-29T10:08:49.887Z", + "parent": "b89e6bf296b299af7278fcd4351d3c8a60350b6d", + "branch": "main", + "paths": [ + "src/cli.mjs", + "src/normalize.mjs", + "src/render.mjs", + "src/summary.mjs" + ], + "sourceFingerprint": "c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81", + "checkJobId": "1ff8446c-da8c-494a-a39e-c09779dd028b", + "message": "修复 Delivery Report 四模块:严格任务校验、完整汇总、中文渲染及 CLI 输出与错误处理", + "author": { + "name": "Agent Workbench", + "email": "local@agent-workbench.invalid", + "source": "workbench-local" + }, + "expectedCommit": "5dec27e38ad9b3a2c5da53debb8af29884cec690", + "commit": "5dec27e38ad9b3a2c5da53debb8af29884cec690", + "requiresVerification": false, + "originalSessionStatus": "completed", + "ownerPid": 23080, + "indexPath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\精确补丁交付工程\\.git\\index", + "indexBeforeSha256": "3398bcece314fe8a8197cda2a3d3e9cba47331ba2feef96fcf9650367a1fadd9", + "lockPath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\精确补丁交付工程\\.git\\index.lock", + "lockMarkerSha256": "79f0931100ce06558510d61c2c974ca1d5f921f57e727b9ede84e007e2cc5950", + "indexAfterSha256": "70f829d010c7104ccacf7231d20e4dd9841520c7e0740c54e0295f519af04019", + "tree": "722a110a72dfa811cdcf4017fe2ea850d4bf4dc5", + "refProcessPid": null, + "referenceAttempted": true, + "indexPreserved": true, + "workspacePreserved": true, + "summary": "已生成并核对本地提交;任务文件、实际检查和其他工作区/暂存改动均已保留。", + "stopRequested": false, + "reportArtifactId": "7be6dadf-a186-4066-88d9-0b1740955806", + "reportMarkdownArtifactId": "7121e554-0ca8-4606-a4d7-b2629826341c" + }, + "elapsedSeconds": 119, + "runs": 2, + "reviewRounds": 1, + "applied": [ + { + "id": "00230203-2540-4736-9949-f15ba53a6634", + "path": "src/normalize.mjs", + "sha256": "f04ef9fdad8b2eb7ca02d38e4e587885a42ee731b6971002357b9659e7fbf8d8", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "editKind": "exact-patch", + "patch": { + "edits": 1, + "lineEnding": "crlf", + "preservedBom": true, + "ranges": [ + { + "startLine": 421, + "endLine": 424, + "anchorSha256": "eea84117f6749dc00e3f8e67f9de26ab019d67e5a53660f95215dca7dd193df8", + "replacementSha256": "49dd7f6726106d185e68d7068302c69532c38a35a451fb7a51e41aeaaafc9779" + } + ] + } + }, + { + "id": "f1245a00-5578-4b50-8a19-31e581cd51fd", + "path": "src/summary.mjs", + "sha256": "06c0bb1d5ae472c343e8137d05c175c7216ca7a5c8c1c6c0c7dcba0df38fbb13", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "editKind": "exact-patch", + "patch": { + "edits": 1, + "lineEnding": "lf", + "preservedBom": false, + "ranges": [ + { + "startLine": 421, + "endLine": 425, + "anchorSha256": "8ebcd4173925f7a9ac959d465af9ff1b741ea2bad51bfeb5e4cf10cb37760e7a", + "replacementSha256": "935bcd6abde036ce38ab09fe44cc8acba1b195505bc1a5ca0df6b9ee4ed8bab9" + } + ] + } + }, + { + "id": "32e2ed5f-e141-47a7-b4c6-cfbfec4d6d8c", + "path": "src/render.mjs", + "sha256": "2882b485d686e1cbdaf8de2834592f9a84921ed63340dbae42916145df907ca7", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "editKind": "exact-patch", + "patch": { + "edits": 1, + "lineEnding": "lf", + "preservedBom": false, + "ranges": [ + { + "startLine": 421, + "endLine": 423, + "anchorSha256": "e9d1d61193c004ca525b4465e9425fd2b00281e79777395f2c8628120a087905", + "replacementSha256": "cec4d55b8bc0316ea22fd7e536c544460b732a35465c93124bee652f42b5203d" + } + ] + } + }, + { + "id": "a8e14540-efd9-43c7-9dc1-b7c190fcfef0", + "path": "src/cli.mjs", + "sha256": "038a0ea3e1ac49ca0f9474ed3238f6cc65e4d667e1d4b6fa64d9d2e54ff2d0c1", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "editKind": "exact-patch", + "patch": { + "edits": 1, + "lineEnding": "crlf", + "preservedBom": true, + "ranges": [ + { + "startLine": 425, + "endLine": 428, + "anchorSha256": "83e9ac0a231d48d6362714e4e39671411f2126417e0ed54631d245576d98fc28", + "replacementSha256": "608bb39da570589575a87bc73e3c9f182743fd0358e215991a52509ce440492c" + } + ] + } + } + ], + "protectedHashes": { + "README.md": "4279c14b07a2b73a1a2c10ce8e80b6841ad39338b5a121215935c9c668ec2832", + "package.json": "15ac7e2e1840870f36886d634129551dbb8490fd7e5e613292beed95e8c50b6f", + "test/delivery.test.mjs": "90afb188568b27fa5c7c5a721c78e632b90e9e84d3fc75ee9008208d1487bb3f", + "scripts/build.mjs": "9dbc4bea4940fb0e87e7924a4601166c422149d3e9f5ecf1d22efde3b6c8c302", + "fixtures/tasks.json": "0ec1b97c5b84df8e70ff62828e80a0cc548814720ff7b995a2853ab1228d847d", + "fixtures/invalid.json": "f014956200206e75f522e90037ad0ead201b00a368deb58cbbabffa972b4bb50", + ".gitignore": "ed19d3c9c8a5e34d0179e0b1a9c2907d2e657738733e4a432a8cf81c76ce56f1", + "OWNER-NOTES.md": "6e5f5b463e5b5c432583dff447bab6bde1147696fd5696016f84ad426985c234", + "OWNER-STAGED.txt": "bfd1dd9ec5d7b4ddb0d24c2b1782b50eb9cee42280e742428086c255b9d4a7f4", + "UNTRACKED-OWNER.txt": "c60890dc6730d3c4a43ef7d782720515d7fdb3e746cde16a2e6227af1c463a64" + }, + "ownerEditsPreserved": true, + "ownerStagePreserved": true, + "precisionEvidence": { + "bannerLines": 420, + "formats": { + "src/normalize.mjs": { + "bom": true, + "lineEnding": "crlf", + "firstSourceLine": 421 + }, + "src/summary.mjs": { + "bom": false, + "lineEnding": "lf", + "firstSourceLine": 421 + }, + "src/render.mjs": { + "bom": false, + "lineEnding": "lf", + "firstSourceLine": 421 + }, + "src/cli.mjs": { + "bom": true, + "lineEnding": "crlf", + "firstSourceLine": 421 + } + }, + "preservedPrefixes": { + "src/normalize.mjs": { + "bytes": 25935, + "sha256": "2fa0e25ea6d67eaedb5742c933fbb0522cd86e3d40a3736b32c3aed0229a3939" + }, + "src/summary.mjs": { + "bytes": 24672, + "sha256": "875db5c3e94e52bc65523f8a2ba4b239df0c880ee7f015d1923b90a5c8968d84" + }, + "src/render.mjs": { + "bytes": 24252, + "sha256": "5d0fce442f74125286a22c7636b539711aa8286365715a25a0a3f723d81abd39" + }, + "src/cli.mjs": { + "bytes": 23415, + "sha256": "0b6194f04a08231f89d49601543412c057359c2528eb6b6f9481e91330323422" + } + }, + "indexCalls": 1, + "queryCalls": 2, + "sourceReads": [ + { + "path": "src/normalize.mjs", + "startLine": 421, + "endLine": 460, + "runId": "027f0396-b8fc-4bff-9b73-ddae3efd932f" + }, + { + "path": "src/summary.mjs", + "startLine": 421, + "endLine": 460, + "runId": "027f0396-b8fc-4bff-9b73-ddae3efd932f" + }, + { + "path": "src/render.mjs", + "startLine": 421, + "endLine": 460, + "runId": "027f0396-b8fc-4bff-9b73-ddae3efd932f" + }, + { + "path": "src/cli.mjs", + "startLine": 421, + "endLine": 480, + "runId": "027f0396-b8fc-4bff-9b73-ddae3efd932f" + } + ], + "exactPatchesOnly": true, + "sourcePrefixesPreserved": true, + "formatPreserved": true + }, + "reportStatus": "verified_committed", + "reportPath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\delivery-report.md", + "buildOutput": { + "total": 4, + "counts": { + "todo": 0, + "doing": 1, + "done": 2, + "blocked": 1 + }, + "completedPercent": 50, + "remainingMinutes": 50 + }, + "usage": { + "requests": 15, + "inputTokens": 277387, + "outputTokens": 2866, + "totalTokens": 280253, + "unknownRequests": 0, + "estimatedUnknownTokens": 0 + }, + "checks": [ + { + "id": "01cb9efa-d788-4b09-b84b-64612b3d188d", + "sessionId": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8", + "projectId": "d639fd99-3487-4f4b-b9eb-2d7c32ebb778", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "runId": "027f0396-b8fc-4bff-9b73-ddae3efd932f", + "planId": "feba53c5-8840-4e5b-b44c-430f2a3ddbea", + "status": "failed", + "source": "agent", + "startedAt": "2026-10-29T10:07:02.627Z", + "finishedAt": "2026-10-29T10:07:03.832Z", + "results": [ + { + "id": "a51bfb35-337a-4d96-8ffb-60ad2286640e", + "name": "test", + "kind": "test", + "command": "npm run test", + "status": "failed", + "exitCode": 1, + "durationMs": 419, + "tests": { + "total": 14, + "passed": 1, + "failed": 13, + "cancelled": 0, + "skipped": 0 + }, + "timedOut": false, + "truncated": false, + "logArtifactId": "c846850b-9c11-4638-90e6-8872541fac1c", + "logExcerpt": "odo', minutes: 5, unrelated: true },\n expected: { id: 'one', title: '任务', status: 'todo', minutes: 5 },\n operator: 'deepStrictEqual',\n diff: 'simple'\n }\n\ntest at test\\delivery.test.mjs:19:1\n✖ summary reports complete state counts and excludes completed work from remaining time (0.7704ms)\n AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:\n + actual - expected\n \n {\n + completedPercent: 100,\n - completedPercent: 50,\n counts: {\n - blocked: 1,\n - doing: 1,\n done: 2,\n - todo: 0\n },\n + remainingMinutes: 100,\n - remainingMinutes: 50,\n total: 4\n }\n \n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:19:108)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: { total: 4, counts: { done: 2 }, completedPercent: 100, remainingMinutes: 100 },\n expected: { total: 4, counts: { todo: 0, doing: 1, done: 2, blocked: 1 }, completedPercent: 50, remainingMinutes: 50 },\n operator: 'deepStrictEqual',\n diff: 'simple'\n }\n\ntest at test\\delivery.test.mjs:20:1\n✖ summary rounds progress instead of truncating percentages (0.1176ms)\n AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n \n 100 !== 67\n \n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:20:80)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: 100,\n expected: 67,\n operator: 'strictEqual',\n diff: 'simple'\n }\n\ntest at test\\delivery.test.mjs:21:1\n✖ summary handles an empty plan with every state present (0.1825ms)\n AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:\n + actual - expected\n \n {\n completedPercent: 0,\n counts: {\n - blocked: 0,\n - doing: 0,\n done: 0,\n - todo: 0\n },\n remainingMinutes: 0,\n total: 0\n }\n \n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:21:77)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: { total: 0, counts: { done: 0 }, completedPercent: 0, remainingMinutes: 0 },\n expected: { total: 0, counts: { todo: 0, doing: 0, done: 0, blocked: 0 }, completedPercent: 0, remainingMinutes: 0 },\n operator: 'deepStrictEqual',\n diff: 'simple'\n }\n\ntest at test\\delivery.test.mjs:22:1\n✖ text rendering keeps the required three readable Chinese lines (0.2275ms)\n AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n + actual - expected\n \n + 'Done: 2/4'\n - '交付进度:2/4(50%)\\n待办 0 · 进行中 1 · 已完成 2 · 阻塞 1\\n剩余预计:50 分钟'\n \n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:22:85)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: 'Done: 2/4',\n expected: '交付进度:2/4(50%)\\n待办 0 · 进行中 1 · 已完成 2 · 阻塞 1\\n剩余预计:50 分钟',\n operator: 'strictEqual',\n diff: 'simple'\n }\n\ntest at test\\delivery.test.mjs:23:1\n✖ CLI JSON output matches the summary contract and has a trailing newline (47.2515ms)\n SyntaxError [Error]: Unexpected token 'D', \"Done: 2/4\n \" is not valid JSON\n at JSON.parse ()\n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:23:232)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)\n\ntest at test\\delivery.test.mjs:25:1\n✖ CLI missing arguments and unknown options return exit 2 without output (42.3334ms)\n AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n \n 0 !== 2\n \n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:25:237)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: 0,\n expected: 2,\n operator: 'strictEqual',\n diff: 'simple'\n }\n\ntest at test\\delivery.test.mjs:26:1\n✖ CLI invalid JSON and missing files preserve the failure exit code (45.5121ms)\n AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:\n \n 0 !== 2\n \n at TestContext. (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4/%E7%B2%BE%E7%A1%AE%E8%A1%A5%E4%B8%81%E4%BA%A4%E4%BB%98%E5%B7%A5%E7%A8%8B/test/delivery.test.mjs:26:194)\n at Test.runInAsyncScope (node:async_hooks:227:14)\n at Test.run (node:internal/test_runner/test:1402:25)\n at Test.processPendingSubtests (node:internal/test_runner/test:974:18)\n at Test.postRun (node:internal/test_runner/test:1542:19)\n at Test.run (node:internal/test_runner/test:1467:12)\n at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {\n generatedMessage: true,\n code: 'ERR_ASSERTION',\n actual: 0,\n expected: 2,\n operator: 'strictEqual',\n diff: 'simple'\n }\n" + }, + { + "id": "15068060-2a0a-4acf-ac8c-1dd7889bdb0b", + "name": "build", + "kind": "build", + "command": "npm run build", + "status": "passed", + "exitCode": 0, + "durationMs": 310, + "tests": null, + "timedOut": false, + "truncated": false, + "logArtifactId": "04b66fdd-c6dd-483c-8a75-7d7af9c5376e", + "logExcerpt": "\n> delivery-report-lab@0.1.0 build\n> node scripts/build.mjs\n\n四个模块语法检查及可运行构建完成。\n" + } + ], + "fingerprint": "f989f02e1c3cb0c332bd8f8ad0cd1d13458b5ce85f615b1c80a08ccfb67d867c", + "sourceFingerprint": "562e8ed287c08e873e83193d12fcfa9e2e3f937a86141beffa4fdc1c3704f5ce", + "baseline": { + "head": "b89e6bf296b299af7278fcd4351d3c8a60350b6d", + "branch": "main", + "dirty": true + }, + "originalSessionStatus": "running", + "currentCheck": null, + "stale": false, + "summary": "有检查失败,请查看退出码和日志后修复。" + }, + { + "id": "1ff8446c-da8c-494a-a39e-c09779dd028b", + "sessionId": "dccf608f-44c9-4031-a58c-5ba87fe3b3f8", + "projectId": "d639fd99-3487-4f4b-b9eb-2d7c32ebb778", + "taskId": "2cc4aa20-2798-44ea-a5ea-fae141d19d0f", + "runId": "f33d3132-1954-4a34-95ff-1145660cc84b", + "planId": "48721f31-d238-4f5d-82f0-660f84e5322f", + "status": "passed", + "source": "agent", + "startedAt": "2026-10-29T10:08:24.501Z", + "finishedAt": "2026-10-29T10:08:25.823Z", + "results": [ + { + "id": "7abbe936-a7e8-475e-90e6-96746b11d22b", + "name": "test", + "kind": "test", + "command": "npm run test", + "status": "passed", + "exitCode": 0, + "durationMs": 502, + "tests": { + "total": 14, + "passed": 14, + "failed": 0, + "cancelled": 0, + "skipped": 0 + }, + "timedOut": false, + "truncated": false, + "logArtifactId": "e7798b4c-5703-445e-8191-0ead7038ce3c", + "logExcerpt": "\n> delivery-report-lab@0.1.0 test\n> node --test test/*.test.mjs\n\n✔ normalize trims identifiers and titles into independent records (1.0521ms)\n✔ normalize rejects blank and duplicate normalized identifiers (0.196ms)\n✔ normalize validates record shape and bounded collection size (1.1133ms)\n✔ normalize supports all four states and rejects unknown states (0.1387ms)\n✔ normalize rejects noninteger and out-of-range estimates (0.1463ms)\n✔ normalize emits only the declared four-field contract (0.0798ms)\n✔ summary reports complete state counts and excludes completed work from remaining time (0.2018ms)\n✔ summary rounds progress instead of truncating percentages (0.1004ms)\n✔ summary handles an empty plan with every state present (0.0766ms)\n✔ text rendering keeps the required three readable Chinese lines (0.1303ms)\n✔ CLI JSON output matches the summary contract and has a trailing newline (43.0999ms)\n✔ CLI text output is readable and matches the shared rendering (44.2504ms)\n✔ CLI missing arguments and unknown options return exit 2 without output (127.9066ms)\n✔ CLI invalid JSON and missing files preserve the failure exit code (83.1797ms)\nℹ tests 14\nℹ suites 0\nℹ pass 14\nℹ fail 0\nℹ cancelled 0\nℹ skipped 0\nℹ todo 0\nℹ duration_ms 350.8039\n" + }, + { + "id": "80ac95d1-1995-420b-9582-16c9e36e3b9f", + "name": "build", + "kind": "build", + "command": "npm run build", + "status": "passed", + "exitCode": 0, + "durationMs": 310, + "tests": null, + "timedOut": false, + "truncated": false, + "logArtifactId": "312e6e0f-ce50-4d99-8499-eb5125c1f49e", + "logExcerpt": "\n> delivery-report-lab@0.1.0 build\n> node scripts/build.mjs\n\n四个模块语法检查及可运行构建完成。\n" + } + ], + "fingerprint": "cf56ca5a3dac2490ede838fff56902d01b0fbdc2d953155114f62acc6805c9cb", + "sourceFingerprint": "c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81", + "baseline": { + "head": "b89e6bf296b299af7278fcd4351d3c8a60350b6d", + "branch": "main", + "dirty": true + }, + "originalSessionStatus": "running", + "currentCheck": null, + "stale": false, + "summary": "所选检查全部通过,测试数量与源码快照已记录。" + } + ], + "decisions": [ + { + "approvalId": "76dc25ef-199a-4d59-a5e2-17f59134cc36", + "planId": "feba53c5-8840-4e5b-b44c-430f2a3ddbea", + "command": "npm run test\nnpm run build", + "allow": true + }, + { + "approvalId": "b575231a-e4df-4319-abb3-9726ea8cc9ae", + "planId": "48721f31-d238-4f5d-82f0-660f84e5322f", + "command": "npm run test\nnpm run build", + "allow": true + } + ], + "diffPath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\reviewed-changes.diff", + "sessionPath": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\session.json", + "credentialsHandling": "Calls use the running host model configuration; no model key was read, copied or saved.", + "intervention": "Verifier approved only sealed npm scripts, reviewed and applied four source proposals, and confirmed an owned Git preview through the Workbench API. Implementation came from the configured model; the Workbench generated and verified the commit and evidence reports.", + "scope": "One synthetic Node engineering sample; does not establish all M2 engineering classes, ChangeSet/worktree or M6 delivery success rates." +} \ No newline at end of file diff --git a/docs/m2-index-live-model.diff b/docs/m2-index-live-model.diff new file mode 100644 index 00000000..159ca9c6 --- /dev/null +++ b/docs/m2-index-live-model.diff @@ -0,0 +1,101 @@ +diff --git a/src/cli.mjs b/src/cli.mjs +index 42aea37..84ccace 100644 +--- a/src/cli.mjs ++++ b/src/cli.mjs +@@ -423,6 +423,16 @@ 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]'); ++ } ++ 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'); ++} catch (error) { ++ process.exitCode = 2; ++ process.stderr.write('输入错误:' + error.message + '\n'); ++} +diff --git a/src/normalize.mjs b/src/normalize.mjs +index 5a46e5a..84107b9 100644 +--- a/src/normalize.mjs ++++ b/src/normalize.mjs +@@ -419,6 +419,29 @@ + // 保留工程说明 419 · src/normalize.mjs · 原文🙂 + // 保留工程说明 420 · src/normalize.mjs · 原文🙂 + 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 statuses = new Set(['todo', 'doing', 'done', 'blocked']); ++ const result = []; ++ for (const task of input) { ++ if (task === null || typeof task !== 'object' || Array.isArray(task)) { ++ throw new TypeError('每项任务必须是对象'); ++ } ++ if (typeof task.id !== 'string' || typeof task.title !== 'string') { ++ throw new TypeError('id和title必须是非空字符串'); ++ } ++ const id = task.id.trim(); ++ const title = task.title.trim(); ++ if (!id || !title) throw new TypeError('id和title不能为空'); ++ if (ids.has(id)) throw new TypeError('任务id不能重复'); ++ const { status, minutes } = task; ++ if (!statuses.has(status)) throw new TypeError('任务状态无效'); ++ if (!Number.isSafeInteger(minutes) || minutes < 0 || minutes > 1000000) { ++ throw new RangeError('minutes必须是0到1000000之间的安全整数'); ++ } ++ ids.add(id); ++ result.push({ id, title, status, minutes }); ++ } ++ return result; + } +diff --git a/src/render.mjs b/src/render.mjs +index 5cacc86..2752ba6 100644 +--- a/src/render.mjs ++++ b/src/render.mjs +@@ -419,5 +419,10 @@ + // 保留工程说明 419 · src/render.mjs · 原文🙂 + // 保留工程说明 420 · src/render.mjs · 原文🙂 + 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 6679d91..29d07be 100644 +--- a/src/summary.mjs ++++ b/src/summary.mjs +@@ -419,7 +419,17 @@ + // 保留工程说明 419 · src/summary.mjs · 原文🙂 + // 保留工程说明 420 · src/summary.mjs · 原文🙂 + 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 ? Math.round(counts.done / total * 100) : 0, ++ remainingMinutes ++ }; + } diff --git a/docs/m2-index-model-delivery-report.json b/docs/m2-index-model-delivery-report.json new file mode 100644 index 00000000..f2dac73b --- /dev/null +++ b/docs/m2-index-model-delivery-report.json @@ -0,0 +1 @@ +{"schemaVersion":1,"kind":"engineering-delivery","generatedAt":"2026-10-29T10:08:50.011Z","status":"verified_committed","statusLabel":"检查通过并已提交","project":{"id":"d639fd99-3487-4f4b-b9eb-2d7c32ebb778","name":"精确补丁交付工程","root":"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\\精确补丁交付工程"},"task":{"id":"2cc4aa20-2798-44ea-a5ea-fae141d19d0f","goal":"完成当前 Delivery Report 工程,严格实现 README.md 的七项要求。先用 inspect_project 识别工程,再用 plan_checks 选择 test/build,并用 run_checks 实际运行封存输入,取得失败的测试和日志。依据实际失败读取有关文件,使用 read_artifact 进一步核对失败日志。先用 index_project 建立工程索引,再用 query_code 的 symbols/imports 结果定位源码,特别是CLI入口的实际导入行。每个源码模块前420行都是须原字节保留的说明;用 read_file 指定start_line至少421的必要行范围,取得最新SHA256。已有源码只能用 propose_patch 及该SHA256、唯一old_text锚点精确修改;保留BOM及原LF/CRLF,不使用 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预览,等待用户独立确认;最后用中文报告实际测试数量、构建结果和改动。","status":"completed","instructions":[{"id":"573b6607-b348-4956-90b5-952fe02c3c6f","content":"本任务的改动已经审查并应用。请继续原始目标,识别并实际执行工程检查,依据失败日志修复,完成审查和交付说明。","createdAt":"2026-10-29T10:08:10.427Z","source":"review-action"}],"acceptance":[],"requirementsAcceptance":"not_recorded","note":"源码和检查证据不代替业务需求验收。"},"source":{"fingerprint":"c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81","scope":{"complete":true,"scannedFiles":14,"bytes":108789,"excludedFiles":0,"maximumFiles":1000,"maximumBytes":16777216,"note":"有界快照;Git工程遵循ignore并包含未跟踪源码,跳过依赖、链接和常见凭据路径。"},"gitHead":"5dec27e38ad9b3a2c5da53debb8af29884cec690","branch":"main"},"runs":[{"id":"027f0396-b8fc-4bff-9b73-ddae3efd932f","resumeOf":null,"engine":"workbench","status":"needs_review","model":{"mode":"compatible","baseUrl":"https://api.apikey.fan","model":"gpt-6.1-sol","contextLimit":16000,"maxOutputTokens":2048,"configRevision":1},"startedAt":"2026-10-29T10:06:51.842Z","finishedAt":"2026-10-29T10:08:09.459Z","usage":{"requests":9,"inputTokens":122643,"outputTokens":2343,"totalTokens":124986,"unknownRequests":0,"estimatedUnknownTokens":0},"stopReason":null},{"id":"f33d3132-1954-4a34-95ff-1145660cc84b","resumeOf":"027f0396-b8fc-4bff-9b73-ddae3efd932f","engine":"workbench","status":"completed","model":{"mode":"compatible","baseUrl":"https://api.apikey.fan","model":"gpt-6.1-sol","contextLimit":16000,"maxOutputTokens":2048,"configRevision":1},"startedAt":"2026-10-29T10:08:10.427Z","finishedAt":"2026-10-29T10:08:47.701Z","usage":{"requests":6,"inputTokens":154744,"outputTokens":523,"totalTokens":155267,"unknownRequests":0,"estimatedUnknownTokens":0},"stopReason":null}],"usage":{"requests":15,"inputTokens":277387,"outputTokens":2866,"totalTokens":280253,"unknownRequests":0,"estimatedUnknownTokens":0,"priceStatus":"not_configured","amount":null,"currency":null},"changes":[{"id":"00230203-2540-4736-9949-f15ba53a6634","path":"src/normalize.mjs","status":"applied","reason":"依据实际失败和README要求1、2修复规范化与校验,仅替换421行后的函数,保留说明块、BOM及CRLF。","baseSha256":"432fcd10d2acbfac6c081975df1289017b5e41ade79605fdf784038a303113fe","sha256":"f04ef9fdad8b2eb7ca02d38e4e587885a42ee731b6971002357b9659e7fbf8d8","appliedAt":"2026-10-29T10:08:10.142Z","additions":25,"deletions":2},{"id":"f1245a00-5578-4b50-8a19-31e581cd51fd","path":"src/summary.mjs","status":"applied","reason":"依据实际汇总失败修复四状态计数、四舍五入进度、非done剩余分钟及空数组,仅替换421行后的函数并保留LF。","baseSha256":"17df0269ffaaec8e913b44970962308def26ffe7ffa672854028741aa27b470b","sha256":"06c0bb1d5ae472c343e8137d05c175c7216ca7a5c8c1c6c0c7dcba0df38fbb13","appliedAt":"2026-10-29T10:08:10.216Z","additions":13,"deletions":3},{"id":"32e2ed5f-e141-47a7-b4c6-cfbfec4d6d8c","path":"src/render.mjs","status":"applied","reason":"依据实际文本渲染失败实现README精确三行中文输出,仅替换421行后的函数,保留说明块与LF。","baseSha256":"abc8178bd18ff103ea3470b838e76344ec73613d85db19f9fac842e9d8c1de45","sha256":"2882b485d686e1cbdaf8de2834592f9a84921ed63340dbae42916145df907ca7","appliedAt":"2026-10-29T10:08:10.284Z","additions":6,"deletions":1},{"id":"a8e14540-efd9-43c7-9dc1-b7c190fcfef0","path":"src/cli.mjs","status":"applied","reason":"依据实际CLI失败实现严格参数、共享summary的JSON/文本输出、中文错误前缀与退出码2;保留421–424行实际导入、前420行、BOM及CRLF。构建复制后仍使用相对模块导入。","baseSha256":"79a11c00544279f14107ecf65c404b945d1a883b7e1ceeff562dfe88f2c86a63","sha256":"038a0ea3e1ac49ca0f9474ed3238f6cc65e4d667e1d4b6fa64d9d2e54ff2d0c1","appliedAt":"2026-10-29T10:08:10.353Z","additions":13,"deletions":3}],"checks":[{"id":"01cb9efa-d788-4b09-b84b-64612b3d188d","status":"failed","stale":true,"sourceFingerprint":"562e8ed287c08e873e83193d12fcfa9e2e3f937a86141beffa4fdc1c3704f5ce","startedAt":"2026-10-29T10:07:02.627Z","finishedAt":"2026-10-29T10:07:03.832Z","results":[{"id":"a51bfb35-337a-4d96-8ffb-60ad2286640e","name":"test","kind":"test","command":"npm run test","status":"failed","exitCode":1,"durationMs":419,"tests":{"total":14,"passed":1,"failed":13,"cancelled":0,"skipped":0},"timedOut":false,"truncated":false,"logArtifactId":"c846850b-9c11-4638-90e6-8872541fac1c","logSha256":"fd9fda5ef6e35159f1f33e908bdfb504b759d7153d0e0aeeb33c1fcef28ced10"},{"id":"15068060-2a0a-4acf-ac8c-1dd7889bdb0b","name":"build","kind":"build","command":"npm run build","status":"passed","exitCode":0,"durationMs":310,"tests":null,"timedOut":false,"truncated":false,"logArtifactId":"04b66fdd-c6dd-483c-8a75-7d7af9c5376e","logSha256":"38566d6bd1635a690931ce24b85aa15a188dc2844ff8d886289985039a9f9be5"}]},{"id":"1ff8446c-da8c-494a-a39e-c09779dd028b","status":"passed","stale":false,"sourceFingerprint":"c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81","startedAt":"2026-10-29T10:08:24.501Z","finishedAt":"2026-10-29T10:08:25.823Z","results":[{"id":"7abbe936-a7e8-475e-90e6-96746b11d22b","name":"test","kind":"test","command":"npm run test","status":"passed","exitCode":0,"durationMs":502,"tests":{"total":14,"passed":14,"failed":0,"cancelled":0,"skipped":0},"timedOut":false,"truncated":false,"logArtifactId":"e7798b4c-5703-445e-8191-0ead7038ce3c","logSha256":"79228e3ae61f187ec198bbdf6f19c95fe2058b3a317ed2aeea815883db8db3de"},{"id":"80ac95d1-1995-420b-9582-16c9e36e3b9f","name":"build","kind":"build","command":"npm run build","status":"passed","exitCode":0,"durationMs":310,"tests":null,"timedOut":false,"truncated":false,"logArtifactId":"312e6e0f-ce50-4d99-8499-eb5125c1f49e","logSha256":"38566d6bd1635a690931ce24b85aa15a188dc2844ff8d886289985039a9f9be5"}]}],"verifiedCheckJobId":"1ff8446c-da8c-494a-a39e-c09779dd028b","deliveries":[{"id":"5815d851-ca27-467c-86ca-c834b22651ea","status":"completed","commit":"5dec27e38ad9b3a2c5da53debb8af29884cec690","expectedCommit":"5dec27e38ad9b3a2c5da53debb8af29884cec690","parent":"b89e6bf296b299af7278fcd4351d3c8a60350b6d","sourceFingerprint":"c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81","paths":["src/cli.mjs","src/normalize.mjs","src/render.mjs","src/summary.mjs"],"summary":"已生成并核对本地提交;任务文件、实际检查和其他工作区/暂存改动均已保留。","requiresVerification":false,"workspacePreserved":true,"indexPreserved":true,"finishedAt":"2026-10-29T10:08:49.887Z"}],"requiresVerification":[],"limitations":["本切片验证已选工程检查和提交范围;业务需求验收另行记录。","提交为本地普通提交,不执行仓库hooks和GPG签名。","未配置模型单价,费用未知。"]} \ No newline at end of file diff --git a/docs/m2-index-model-delivery-report.md b/docs/m2-index-model-delivery-report.md new file mode 100644 index 00000000..6918ce7b --- /dev/null +++ b/docs/m2-index-model-delivery-report.md @@ -0,0 +1,57 @@ +# 项目交付报告 + +**检查通过并已提交** + +生成时间:2026-10-29T10:08:50.011Z + +项目:精确补丁交付工程 +项目目录:D:\Ai-project\REA逆向\Agent-Workbench\.qa\live-precision-62378407-9a63-4df8-b1a4-c3968684c9d4\精确补丁交付工程 +Task:2cc4aa20-2798-44ea-a5ea-fae141d19d0f + +## 任务与范围 + +完成当前 Delivery Report 工程,严格实现 README.md 的七项要求。先用 inspect_project 识别工程,再用 plan_checks 选择 test/build,并用 run_checks 实际运行封存输入,取得失败的测试和日志。依据实际失败读取有关文件,使用 read_artifact 进一步核对失败日志。先用 index_project 建立工程索引,再用 query_code 的 symbols/imports 结果定位源码,特别是CLI入口的实际导入行。每个源码模块前420行都是须原字节保留的说明;用 read_file 指定start_line至少421的必要行范围,取得最新SHA256。已有源码只能用 propose_patch 及该SHA256、唯一old_text锚点精确修改;保留BOM及原LF/CRLF,不使用 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预览,等待用户独立确认;最后用中文报告实际测试数量、构建结果和改动。 + +源码指纹:c37b327ad73343def8f30cd01d0edef7de8f62f2bcb35107aaa9d693ad1aff81 +当前Git HEAD:5dec27e38ad9b3a2c5da53debb8af29884cec690 +分支:main + +源码和检查证据不代替业务需求验收。 + +## 改动 + +| 文件 | 状态 | SHA256 | +| --- | --- | --- | +| src/normalize.mjs | applied | f04ef9fdad8b2eb7ca02d38e4e587885a42ee731b6971002357b9659e7fbf8d8 | +| src/summary.mjs | applied | 06c0bb1d5ae472c343e8137d05c175c7216ca7a5c8c1c6c0c7dcba0df38fbb13 | +| src/render.mjs | applied | 2882b485d686e1cbdaf8de2834592f9a84921ed63340dbae42916145df907ca7 | +| src/cli.mjs | applied | 038a0ea3e1ac49ca0f9474ed3238f6cc65e4d667e1d4b6fa64d9d2e54ff2d0c1 | + +## 实际检查 + +| Job / 命令 | 状态 | 退出码 | 实际测试 | 日志SHA256 | +| --- | --- | --- | --- | --- | +| 01cb9efa / npm run test | 源码已变化 / failed | 1 | 1/14 | fd9fda5ef6e35159f1f33e908bdfb504b759d7153d0e0aeeb33c1fcef28ced10 | +| 01cb9efa / npm run build | 源码已变化 / passed | 0 | 不适用或未知 | 38566d6bd1635a690931ce24b85aa15a188dc2844ff8d886289985039a9f9be5 | +| 1ff8446c / npm run test | passed | 0 | 14/14 | 79228e3ae61f187ec198bbdf6f19c95fe2058b3a317ed2aeea815883db8db3de | +| 1ff8446c / npm run build | passed | 0 | 不适用或未知 | 38566d6bd1635a690931ce24b85aa15a188dc2844ff8d886289985039a9f9be5 | + +## Git交付 + +- completed · 5dec27e38ad9b3a2c5da53debb8af29884cec690 · src/cli.mjs, src/normalize.mjs, src/render.mjs, src/summary.mjs + 已生成并核对本地提交;任务文件、实际检查和其他工作区/暂存改动均已保留。 + +## 模型与用量 + +| Run | 模型 | 状态 | 已报告tokens | +| --- | --- | --- | --- | +| 027f0396-b8fc-4bff-9b73-ddae3efd932f | gpt-6.1-sol | needs_review | 124986 | +| f33d3132-1954-4a34-95ff-1145660cc84b | gpt-6.1-sol | completed | 155267 | + +累计已报告:280253 tokens;未报告请求:0。费用:未知。 + +## 尚待确认 + +- 本切片验证已选工程检查和提交范围;业务需求验收另行记录。 +- 提交为本地普通提交,不执行仓库hooks和GPG签名。 +- 未配置模型单价,费用未知。 diff --git a/docs/m2-index-release-validation.json b/docs/m2-index-release-validation.json new file mode 100644 index 00000000..3323db18 --- /dev/null +++ b/docs/m2-index-release-validation.json @@ -0,0 +1,34 @@ +{ + "success": true, + "date": "2026-10-29T10:00:38.764Z", + "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.3.0-win-x64", + "version": "1.3.0", + "nodeVersion": "v24.22.1", + "verifiedFiles": 2130, + "url": "http://127.0.0.1:51900", + "reusedPid": 47112, + "checks": { + "jobId": "d1578f3f-e1ca-4915-9f8a-32cee13e6a5f", + "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/m2-index-source-package-validation.json b/docs/m2-index-source-package-validation.json new file mode 100644 index 00000000..345587a6 --- /dev/null +++ b/docs/m2-index-source-package-validation.json @@ -0,0 +1,17 @@ +{ + "success": true, + "version": "1.3.0", + "testedAt": "2026-10-29T10:03:52.533Z", + "sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-9e1b2f02ba574915ae640186d87f0e3c\\Agent-Workbench-1.3.0-source", + "offlineInstall": true, + "buildMatchedFiles": 6, + "tests": { + "tests": 112, + "pass": 112, + "fail": 0, + "cancelled": 0, + "skipped": 0, + "todo": 0 + }, + "credentialsHandling": "Only build/runtime environment paths are inherited; no model configuration or credentials are used." +} \ No newline at end of file diff --git a/docs/m2-index-upgrade-live-validation.json b/docs/m2-index-upgrade-live-validation.json new file mode 100644 index 00000000..ad3db934 --- /dev/null +++ b/docs/m2-index-upgrade-live-validation.json @@ -0,0 +1,83 @@ +{ + "success": true, + "version": "1.3.0", + "records": [ + { + "version": "1.3.0", + "pid": 23080, + "hasKey": true, + "projects": 5, + "sessions": 13, + "appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.3.0-win-x64", + "verified": true, + "connectionPreserved": true, + "url": "http://127.0.0.1:4318", + "testedAt": "2026-10-29T10:05:56.806Z", + "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", + "execution": "35647b0b3eea1b171a765bbc20badbdd7f4db1495436a7d788867031d83cda86" + }, + { + "id": "1cf22a27-ac13-4c95-a878-9b4356ccb5b3", + "projectId": "3423bff0-d418-4a6d-9cc7-66bd85875a51", + "status": "completed", + "revision": 34, + "messages": "b91dc3a60b34051b3df0bc501372e15a614eafe3594943b8da88addd0557af73", + "events": "41e7056c3f824a03d9d1b5abd4ee3868d964ecb144e33642bc9bbd67df987bfb", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "execution": "f6ba74f339fae6a5d301ddf6440fd6494309364308430c758ca36de21d8e8a6d" + }, + { + "id": "e8846c6e-1ba2-497e-b0db-ca5778181eb0", + "projectId": "3423bff0-d418-4a6d-9cc7-66bd85875a51", + "status": "completed", + "revision": 182, + "messages": "396c60e8f21d630f5a19867a24f8e9fe36208ac24c55e65a581d499e3542fb91", + "events": "3fa8b3f0a07275989f80dfc151db767b2e62943ce46f86940a1623585c2c794f", + "changes": "a78838fdd7e236110212b0eea2eb87a59c5d3a00ac6a49a98e2b44f87c1e8069", + "execution": "8c27fe79d5367826f8cc9fd8af582b4140b55eb685f0e7150042d06b8b82e087" + }, + { + "id": "72d3d22f-14d9-4bca-bb6a-ab686bc96b26", + "projectId": "ffb29b87-9b26-4bcc-9337-2ba535301c27", + "status": "failed", + "revision": 209, + "messages": "179f776107a25f32670fcf2a6cadc168649892d19ce602d034364af23f24230e", + "events": "7db9260050d3550f4ef333fe8047939e8eccd1e0e1ee648059408a92b04fb293", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "execution": "60edd1935ae62945a4dde1908229b00a37376fa0ba6960a55bbeb8b6f5282980" + }, + { + "id": "4abc4201-549e-46e0-947c-3d3f5b53ffae", + "projectId": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18", + "status": "needs_review", + "revision": 59, + "messages": "2463725fc4dce801dfd6752be582ff53489bc42950a3dd7a6cb917735f90069c", + "events": "594b16c254b0f09cf3f53dab113827a40a08156f263c57365d20b478d26001fa", + "changes": "8fdcbd54c3cafda6bb0a35a19ef244265b6ce4c250017b7d509a69d70c482dde", + "execution": "b8239c1241e17cf78298e20e62a41a13ee609b9a20307e04cdc0ee1da2112323" + }, + { + "id": "569c9457-d399-46e6-b53e-4b1fdbb02109", + "projectId": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18", + "status": "completed", + "revision": 199, + "messages": "6dff812dc2055b1cffa6fbbdc22012bd1de1d716157645fb9df652808584e2ad", + "events": "76fcc4e99e0284c5c147170f17d9dffe88cb6f03f92d44a8a683da9f14beb8b9", + "changes": "e2f726458686db2092bc532514c9ffdbb5cad5c5c586980aa501c60cbc199874", + "execution": "63a02ad224b153236d595e4076aa74e8dfeacb048f9696fe8ec98da37916f614" + } + ], + "storage": "sqlite" + } + ] +} diff --git a/findings.md b/findings.md index c1a94f6b..59f6fc83 100644 --- a/findings.md +++ b/findings.md @@ -145,3 +145,10 @@ Claude Code 报告已验证工具输入校验、权限决定、队列并发屏 - 首轮14项专项10通过/4失败,实际暴露默认箭头导出/TS声明函数遗漏、Python候选跨字符串及旧作用域误报、Git文件清单中的依赖目录未排除和Unicode半字符可被补丁选择。已分别补齐AST导出、跨行词法状态、统一清单排除与有效Unicode约束;待复验。 - 精确补丁BOM/CRLF、LF与混合换行、32个编辑上限、同一原文的唯一锚点和重叠/过期冲突已通过首轮检查;未应用前不写入,实际应用备份原字节。 - 合成Git工程证实普通status及当前inspectProject会运行配置的clean过滤器。已先只读取得过滤器键名,在本次status禁用clean/process/required,并跳过子模块工作区;无法确认配置时保持未完成基线,避免以只读索引隐式执行项目代码。专项同时核对Git索引原字节,待复验。 + +## 1.3.0实际长文件精确交付证据 + +- 来源为.qa/live-precision-validation.json及其封存样本,已复制到docs/m2-index-live-model-validation.json、diff与交付报告。119秒、1Task/2Run/1次审核;1次索引、2次查询、4份421行后读取、4份exact-patch,正文前420行及两种格式逐字节保留。 +- 真实模型用量15请求/280253tokens(输入277387、输出2866),未知用量请求0。正确定位不等于费用下降,当前仍重复投影较长历史;后续须同题对照、保留工具结果可追溯引用的有界上下文投影与预算,不用此样本宣称成本改善。 +- 实现源码与检查冻结后,最终发行只增加文档/证据;用全部src/tests/public/scripts与6份构建产物对照已离线安装和112项验收的独立源码,避免无依据重复全套测试或覆盖运行发行目录。 +- 证据复制时误将live.reportPath指向的Markdown另存为JSON,JSON解析检查发现;已改为按同目录delivery-report.json复制并复验,运行代码与样本结果未变。 diff --git a/progress.md b/progress.md index 6713f6d9..3c220c30 100644 --- a/progress.md +++ b/progress.md @@ -125,3 +125,9 @@ - 新增两项声明/候选专项2/2通过,重建后完整112/112通过,零失败/跳过/取消。验收记录已保存;本轮QA有限请求不自动重试任何副作用。 - 已关闭本轮旧QA11548并以新编译源码/独立数据启动38436,原4318/PID23080保持。接续全部基础/诊断/任务/Git/索引UI,之后保存实现本地提交并验证发行与真实模型精确补丁样本。 - 新源码独立QA完整基础10/诊断9/任务7/Git9/索引8共43组全部通过,零页面/请求异常。索引/行定位/首处差异及390px截图已核对,证据复制到docs;开始保存实现本地Git提交并生成独立1.3.0包。 + +## 2026-10-29 1.3.0发布收尾与下一批核心开发 + +- 实现提交14ce622已保存。真实gpt-6.1-sol长文件样本119秒通过:1Task/2Run/1次四文件审查,13失败变14通过,build与CLI正确;模型索引/查询/必要行读取后仅精确补丁,工作台自身生成样本commit5dec27e38ad9b3a2c5da53debb8af29884cec690及JSON/Markdown报告。 +- 420行说明、BOM/CRLF/LF、10个保护输入及其他工作区/暂存改动全部保留。实际15请求、输入277387/输出2866/合计280253已报告tokens;不能据此宣称降低上下文成本。 +- 初始1.3.0便携与源码ZIP/112项独立源码验收、43组界面和原PID23080升级均已通过;本轮收集证据后创建最终独立时间戳发行,冻结核心/测试/构建/脚本与独立源码逐字节比对,再保留原进程升级。 diff --git a/task_plan.md b/task_plan.md index b7f6c25c..e31bf892 100644 --- a/task_plan.md +++ b/task_plan.md @@ -159,4 +159,4 @@ 1. [complete] JS/TS/React采用已安装MIT @babel/parser 7.29.11的静态符号/导入索引,逐文件SHA256增量复用并绑定项目;Python只登记有明确范围的声明定位。9项索引专项包含Git过滤脚本不执行已通过。 2. [complete] 带原文件SHA256、唯一锚点与不重叠范围的精确补丁提案;保留原有字节格式和审核/备份/冲突检查。6项补丁专项通过。 3. [complete] 索引/查询/补丁模型工具、只读API及任务面板;结果能定位实际文件/行并核对来源。完整112项行为/API与43组桌面/390px流程通过。 -4. [in_progress] 相关契约、实际模型工程样本、桌面/390px回归、独立发行与本地Git提交。开始保存实现并验证1.3.0发行;真实模型/正式部署结果待完成后登记。 +4. [in_progress] 实现已提交14ce622;112项回归/43组UI、初始便携与独立源码验收、原PID升级和真实模型长文件精确交付已通过。整理实际证据,发布最终独立时间戳包并保留原进程更新后完成本地提交。