From 04c93eafec412974aa5bf365c688bc8b4540b448 Mon Sep 17 00:00:00 2001 From: Agent Workbench Dev Date: Thu, 29 Oct 2026 15:20:28 +0800 Subject: [PATCH] release: validate portable Node npm host and preserve live connection in 1.1.0 upgrade --- AGENTS.md | 2 +- THIRD_PARTY_NOTICES.txt | 240 +++++++++++++++++++++++++ docs/VALIDATION.md | 7 +- docs/deployment.json | 7 +- docs/m1-archives-validation.json | 23 +++ docs/m1-release-validation.json | 34 ++++ docs/m1-source-package-validation.json | 23 +++ docs/m1-upgrade-live-validation.json | 113 ++++++++++++ progress.md | 4 + scripts/package.mjs | 8 +- scripts/verify-release.mjs | 10 +- task_plan.md | 6 +- 12 files changed, 465 insertions(+), 12 deletions(-) create mode 100644 docs/m1-archives-validation.json create mode 100644 docs/m1-release-validation.json create mode 100644 docs/m1-source-package-validation.json create mode 100644 docs/m1-upgrade-live-validation.json diff --git a/AGENTS.md b/AGENTS.md index 0aa89e87..3468df6d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ 本仓库专注AI编程与能力研究工作台。其他项目不纳入本项目计划或代码。用户确定的研究对象为Codex、Claude Code、Cursor、DeepSeek Harness、WorkBuddy及DSH-purge;目标是将有证据的机制独立开发成自有Harness内置能力。 -当前1.0.0是已验证基础里程碑。后续实现与真实工程验收见docs/PRODUCT-PLAN.md、docs/CAPABILITIES.md和docs/RESEARCH-ROADMAP.md。计划中的能力不能写成已经实现。 +1.0.0是已保存的基础里程碑;当前1.1.0已交付M1可靠内核、任务记录和Node/npm工程检查切片。后续实现与真实工程验收见docs/PRODUCT-PLAN.md、docs/CAPABILITIES.md和docs/RESEARCH-ROADMAP.md。计划中的能力不能写成已经实现。 ## 研究与来源 diff --git a/THIRD_PARTY_NOTICES.txt b/THIRD_PARTY_NOTICES.txt index de7c8c2c..e5951c30 100644 --- a/THIRD_PARTY_NOTICES.txt +++ b/THIRD_PARTY_NOTICES.txt @@ -8838,3 +8838,243 @@ The externally maintained libraries used by Node.js are: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + +======================================================================== +npm bundled with Node.js +Complete package and dependency licenses are retained under runtime/node_modules/npm/. + +The npm application +Copyright (c) npm, Inc. and Contributors +Licensed on the terms of The Artistic License 2.0 + +Node package dependencies of the npm application +Copyright (c) their respective copyright owners +Licensed on their respective license terms + +The npm public registry at https://registry.npmjs.org +and the npm website at https://www.npmjs.com +Operated by npm, Inc. +Use governed by terms published on https://www.npmjs.com + +"Node.js" +Trademark Joyent, Inc., https://joyent.com +Neither npm nor npm, Inc. are affiliated with Joyent, Inc. + +The Node.js application +Project of Node Foundation, https://nodejs.org + +The npm Logo +Copyright (c) Mathias Pettersson and Brian Hammond + +"Gubblebum Blocky" typeface +Copyright (c) Tjarda Koster, https://jelloween.deviantart.com +Used with permission + + +-------- + + +The Artistic License 2.0 + +Copyright (c) 2000-2006, The Perl Foundation. + +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +Preamble + +This license establishes the terms under which a given free software +Package may be copied, modified, distributed, and/or redistributed. +The intent is that the Copyright Holder maintains some artistic +control over the development of that Package while still keeping the +Package available as open source and free software. + +You are always permitted to make arrangements wholly outside of this +license directly with the Copyright Holder of a given Package. If the +terms of this license do not permit the full use that you propose to +make of the Package, you should contact the Copyright Holder and seek +a different licensing arrangement. + +Definitions + + "Copyright Holder" means the individual(s) or organization(s) + named in the copyright notice for the entire Package. + + "Contributor" means any party that has contributed code or other + material to the Package, in accordance with the Copyright Holder's + procedures. + + "You" and "your" means any person who would like to copy, + distribute, or modify the Package. + + "Package" means the collection of files distributed by the + Copyright Holder, and derivatives of that collection and/or of + those files. A given Package may consist of either the Standard + Version, or a Modified Version. + + "Distribute" means providing a copy of the Package or making it + accessible to anyone else, or in the case of a company or + organization, to others outside of your company or organization. + + "Distributor Fee" means any fee that you charge for Distributing + this Package or providing support for this Package to another + party. It does not mean licensing fees. + + "Standard Version" refers to the Package if it has not been + modified, or has been modified only in ways explicitly requested + by the Copyright Holder. + + "Modified Version" means the Package, if it has been changed, and + such changes were not explicitly requested by the Copyright + Holder. + + "Original License" means this Artistic License as Distributed with + the Standard Version of the Package, in its current version or as + it may be modified by The Perl Foundation in the future. + + "Source" form means the source code, documentation source, and + configuration files for the Package. + + "Compiled" form means the compiled bytecode, object code, binary, + or any other form resulting from mechanical transformation or + translation of the Source form. + + +Permission for Use and Modification Without Distribution + +(1) You are permitted to use the Standard Version and create and use +Modified Versions for any purpose without restriction, provided that +you do not Distribute the Modified Version. + + +Permissions for Redistribution of the Standard Version + +(2) You may Distribute verbatim copies of the Source form of the +Standard Version of this Package in any medium without restriction, +either gratis or for a Distributor Fee, provided that you duplicate +all of the original copyright notices and associated disclaimers. At +your discretion, such verbatim copies may or may not include a +Compiled form of the Package. + +(3) You may apply any bug fixes, portability changes, and other +modifications made available from the Copyright Holder. The resulting +Package will still be considered the Standard Version, and as such +will be subject to the Original License. + + +Distribution of Modified Versions of the Package as Source + +(4) You may Distribute your Modified Version as Source (either gratis +or for a Distributor Fee, and with or without a Compiled form of the +Modified Version) provided that you clearly document how it differs +from the Standard Version, including, but not limited to, documenting +any non-standard features, executables, or modules, and provided that +you do at least ONE of the following: + + (a) make the Modified Version available to the Copyright Holder + of the Standard Version, under the Original License, so that the + Copyright Holder may include your modifications in the Standard + Version. + + (b) ensure that installation of your Modified Version does not + prevent the user installing or running the Standard Version. In + addition, the Modified Version must bear a name that is different + from the name of the Standard Version. + + (c) allow anyone who receives a copy of the Modified Version to + make the Source form of the Modified Version available to others + under + + (i) the Original License or + + (ii) a license that permits the licensee to freely copy, + modify and redistribute the Modified Version using the same + licensing terms that apply to the copy that the licensee + received, and requires that the Source form of the Modified + Version, and of any works derived from it, be made freely + available in that license fees are prohibited but Distributor + Fees are allowed. + + +Distribution of Compiled Forms of the Standard Version +or Modified Versions without the Source + +(5) You may Distribute Compiled forms of the Standard Version without +the Source, provided that you include complete instructions on how to +get the Source of the Standard Version. Such instructions must be +valid at the time of your distribution. If these instructions, at any +time while you are carrying out such distribution, become invalid, you +must provide new instructions on demand or cease further distribution. +If you provide valid instructions or cease distribution within thirty +days after you become aware that the instructions are invalid, then +you do not forfeit any of your rights under this license. + +(6) You may Distribute a Modified Version in Compiled form without +the Source, provided that you comply with Section 4 with respect to +the Source of the Modified Version. + + +Aggregating or Linking the Package + +(7) You may aggregate the Package (either the Standard Version or +Modified Version) with other packages and Distribute the resulting +aggregation provided that you do not charge a licensing fee for the +Package. Distributor Fees are permitted, and licensing fees for other +components in the aggregation are permitted. The terms of this license +apply to the use and Distribution of the Standard or Modified Versions +as included in the aggregation. + +(8) You are permitted to link Modified and Standard Versions with +other works, to embed the Package in a larger work of your own, or to +build stand-alone binary or bytecode versions of applications that +include the Package, and Distribute the result without restriction, +provided the result does not expose a direct interface to the Package. + + +Items That are Not Considered Part of a Modified Version + +(9) Works (including, but not limited to, modules and scripts) that +merely extend or make use of the Package, do not, by themselves, cause +the Package to be a Modified Version. In addition, such works are not +considered parts of the Package itself, and are not subject to the +terms of this license. + + +General Provisions + +(10) Any use, modification, and distribution of the Standard or +Modified Versions is governed by this Artistic License. By using, +modifying or distributing the Package, you accept this license. Do not +use, modify, or distribute the Package, if you do not accept this +license. + +(11) If your Modified Version has been derived from a Modified +Version made by someone other than you, you are nevertheless required +to ensure that your Modified Version complies with the requirements of +this license. + +(12) This license does not grant you the right to use any trademark, +service mark, tradename, or logo of the Copyright Holder. + +(13) This license includes the non-exclusive, worldwide, +free-of-charge patent license to make, have made, use, offer to sell, +sell, import and otherwise transfer the Package with respect to any +patent claims licensable by the Copyright Holder that are necessarily +infringed by the Package. If you institute patent litigation +(including a cross-claim or counterclaim) against any party alleging +that the Package constitutes direct or contributory patent +infringement, then this Artistic License to you shall terminate on the +date that such litigation is filed. + +(14) Disclaimer of Warranty: +THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS +IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR +NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL +LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +-------- diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index 3ffbd24c..24df149f 100644 --- a/docs/VALIDATION.md +++ b/docs/VALIDATION.md @@ -10,8 +10,11 @@ | 基础界面 | 10/10通过 | [m1-ui-validation.json](m1-ui-validation.json) | | 模型错误与诊断界面 | 9/9通过 | [m1-diagnostics-ui-validation.json](m1-diagnostics-ui-validation.json) | | 任务、工件、断流、预算和审核后继续 | 7/7通过 | [m1-execution-ui-validation.json](m1-execution-ui-validation.json) | -| 1.1.0便携宿主与随附npm | 待发行验证 | 后续记录 | -| 正式原进程升级与真实模型四模块交付 | 待实际验证 | 后续记录 | +| 1.1.0便携宿主与随附npm | 启动/复用/停止及4项真实示例测试通过 | [m1-release-validation.json](m1-release-validation.json) | +| 源码ZIP独立安装、构建和回归 | 离线安装、6份构建文件逐字节匹配、68/68通过 | [m1-source-package-validation.json](m1-source-package-validation.json) | +| 两个ZIP的CRC、路径、清单与散列 | 全部通过 | [m1-archives-validation.json](m1-archives-validation.json) | +| 正式原进程升级 | 1.1.0、同PID/内存连接、3项目/9会话及历史hash保留 | [m1-upgrade-live-validation.json](m1-upgrade-live-validation.json) | +| 真实模型四模块交付 | 正在实际执行 | 后续记录 | 26组界面流程的页面异常/请求失败均为0,覆盖桌面和390px。已目视核对任务、差异和手机日志弹窗:标题、hash、正文、关闭/分页及固定任务输入区均可用,无遮挡或横向溢出。新增继续按钮使用明确的可访问名称。 diff --git a/docs/deployment.json b/docs/deployment.json index 7eeac71d..2d74f074 100644 --- a/docs/deployment.json +++ b/docs/deployment.json @@ -1,13 +1,14 @@ { "ready": true, "url": "http://127.0.0.1:4318", - "version": "1.0.0", + "version": "1.1.0", "mode": "compatible", "model": "gpt-6.1-sol", "hasKey": true, "pid": 23080, - "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.0.0-win-x64", + "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.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-29T02:24:14.084Z" + "upgradedAt": "2026-10-29T07:18:42.778Z", + "storage": "sqlite" } \ No newline at end of file diff --git a/docs/m1-archives-validation.json b/docs/m1-archives-validation.json new file mode 100644 index 00000000..b9444d79 --- /dev/null +++ b/docs/m1-archives-validation.json @@ -0,0 +1,23 @@ +{ + "success": true, + "version": "1.1.0", + "archives": [ + { + "kind": "portable", + "path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.0-win-x64.zip", + "files": 2079, + "crcPassed": true, + "manifestAndDirectoryMatch": true, + "sha256": "24d1e6f8235619e3de603cc877c2c6a9c47066296c8ca794c7ce99f623cae397" + }, + { + "kind": "source", + "path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.0-source.zip", + "files": 205, + "crcPassed": true, + "manifestAndDirectoryMatch": true, + "sha256": "39982b9e822e886869a440b9d79e40d7d252318c03673e0c7a2166e88be77ce7" + } + ], + "extractionRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-1.1.0-check\\Agent-Workbench-1.1.0-source" +} \ No newline at end of file diff --git a/docs/m1-release-validation.json b/docs/m1-release-validation.json new file mode 100644 index 00000000..97c69e78 --- /dev/null +++ b/docs/m1-release-validation.json @@ -0,0 +1,34 @@ +{ + "success": true, + "date": "2026-10-29T07:14:02.661Z", + "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.0-win-x64", + "version": "1.1.0", + "nodeVersion": "v24.22.1", + "verifiedFiles": 2079, + "url": "http://127.0.0.1:4320", + "reusedPid": 45104, + "checks": { + "jobId": "4d023576-7322-4448-b755-ea9e66d027c2", + "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/m1-source-package-validation.json b/docs/m1-source-package-validation.json new file mode 100644 index 00000000..e124da11 --- /dev/null +++ b/docs/m1-source-package-validation.json @@ -0,0 +1,23 @@ +{ + "success": true, + "version": "1.1.0", + "testedAt": "2026-10-29T07:18:41.945Z", + "sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-1.1.0-check\\Agent-Workbench-1.1.0-source", + "testedArchiveSha256": "39982b9e822e886869a440b9d79e40d7d252318c03673e0c7a2166e88be77ce7", + "offlineInstall": true, + "independentBuild": true, + "buildBytesMatch": [ + "dist-client\\assets\\index-BFvdw2_I.css", + "dist-client\\assets\\index-Bz4OeVZd.js", + "dist-client\\favicon.svg", + "dist-client\\index.html", + "dist-server\\hot-upgrade.mjs", + "dist-server\\server.mjs" + ], + "tests": 68, + "passed": 68, + "failed": 0, + "skipped": 0, + "cancelled": 0, + "testDurationMs": 60202.2425 +} \ No newline at end of file diff --git a/docs/m1-upgrade-live-validation.json b/docs/m1-upgrade-live-validation.json new file mode 100644 index 00000000..f630e00c --- /dev/null +++ b/docs/m1-upgrade-live-validation.json @@ -0,0 +1,113 @@ +{ + "success": true, + "testedAt": "2026-10-29T07:18:42.778Z", + "version": "1.1.0", + "pid": 23080, + "hasKey": true, + "projects": 3, + "sessions": 10, + "appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.0-win-x64", + "verified": true, + "connectionPreserved": true, + "url": "http://127.0.0.1:4318", + "model": "gpt-6.1-sol", + "storage": { + "engine": "sqlite", + "schemaVersion": 1, + "eventCursor": 10, + "pendingPublications": 10, + "migratedFromJson": true, + "recovery": "verify-unknown-results", + "compatibilityExport": "explicit-json" + }, + "originalAppRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-0.1.0-win-x64", + "appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.1.0-win-x64", + "dataRoot": "C:\\Users\\wangy\\AppData\\Local\\AgentWorkbench", + "previousVersion": "1.0.0", + "preservedSessionSnapshots": [ + { + "id": "997213e9-ccd7-485e-a099-ad348b626610", + "messages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "providerMessages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "status": "idle", + "revision": 1 + }, + { + "id": "af2827eb-b31c-456e-b9ab-6f34ab8f600e", + "messages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "providerMessages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "status": "idle", + "revision": 1 + }, + { + "id": "03d6acd3-01ee-46fb-aa1c-90483307737e", + "messages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "providerMessages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "status": "idle", + "revision": 1 + }, + { + "id": "1102be26-9799-4f0f-9a28-7a4ce552f3a9", + "messages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "providerMessages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "status": "idle", + "revision": 1 + }, + { + "id": "c52d620a-dbaa-4bbd-9039-0eabe53ba03d", + "messages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "providerMessages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "status": "idle", + "revision": 1 + }, + { + "id": "50c279be-66ad-48b8-a483-4e11c814db47", + "messages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "providerMessages": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "status": "idle", + "revision": 1 + }, + { + "id": "72d3d22f-14d9-4bca-bb6a-ab686bc96b26", + "messages": "179f776107a25f32670fcf2a6cadc168649892d19ce602d034364af23f24230e", + "providerMessages": "e8ef29970703aa6fc9a87b770829cce824129d7c187d4708236b1480fbee4b15", + "changes": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "approvals": "f838d6e786bc55629f15b6010719a17b810df587a4f8a0ad365a201ecfba00af", + "status": "failed", + "revision": 209 + }, + { + "id": "4abc4201-549e-46e0-947c-3d3f5b53ffae", + "messages": "2463725fc4dce801dfd6752be582ff53489bc42950a3dd7a6cb917735f90069c", + "providerMessages": "702122497f434b20551b3e855d3f34a2280fd75b80301aeb579f49cc22713803", + "changes": "4003d773bd4c1e64cee7131978501d3fc4f58554f28748e37cbcf0b0f2db7c70", + "approvals": "39f314958af6dca471ff5de6f362c0ee33a241a11ea4085bc6f22b5577e35f5e", + "status": "needs_review", + "revision": 59 + }, + { + "id": "569c9457-d399-46e6-b53e-4b1fdbb02109", + "messages": "6dff812dc2055b1cffa6fbbdc22012bd1de1d716157645fb9df652808584e2ad", + "providerMessages": "ee92dc51e2fa5ce923b487bc9979d9b069fb9b67e24a9b3987fc7cfd82ec4fc9", + "changes": "5692c4bbc8e20ffb3d9e3b00570873697fb2a1350348b27b6f75d616d7b5dd46", + "approvals": "61bac489195c9f0a98f1282fb54181c98100e21237fc19db1c999803ee253edd", + "status": "completed", + "revision": 199 + } + ], + "projectsPreserved": true, + "inspectorClosed": true, + "credentialsHandling": "The original provider object retained the model key; the verification never read, copied or saved it." +} \ No newline at end of file diff --git a/progress.md b/progress.md index f0547fe1..8e6a25bc 100644 --- a/progress.md +++ b/progress.md @@ -87,3 +87,7 @@ - 基础UI10/10、诊断UI9/9通过,页面异常/请求失败为零。任务UI正在完成新增继续交付场景;便携验证器增加无系统Node/npm下的真实4项示例检查和日志校验。 - 任务UI最终7/7通过,含应用→继续原Task→实际检查。首轮定位因辅助说明进入accessible name而超时,新增明确aria-label后通过;手机日志和桌面差异/输入区域已目视核对。 - 持久Node REPL的Edge自动发现路径不存在,已使用实测Program Files (x86)路径恢复浏览器;未安装或替换系统浏览器。 +- 本次继续全量推进:1.1.0便携包2079份清单文件核对、独立启动/复用/停止和无系统Node/npm下实际4项示例检查通过;两个ZIP的CRC、路径、散列和目录一致性通过。 +- 源码ZIP独立解压,离线安装、完整构建与68/68测试通过;6份客户端/服务端构建文件与本仓库逐字节相同。 +- 4318已成功升级至1.1.0,仍是原PID23080,gpt-6.1-sol内存连接、3个项目、9个原会话及消息/工具/提案hash和revision保留;调试端口已关闭。 +- 真实模型四模块交付验证已启动,只操作独立合成工程,不使用原用户项目作为实验输入。界面新版本链接已提交给当前Codex面板。 diff --git a/scripts/package.mjs b/scripts/package.mjs index 95dc0390..24e58114 100644 --- a/scripts/package.mjs +++ b/scripts/package.mjs @@ -18,8 +18,8 @@ for (const target of [portableRoot, sourceRoot]) { fs.mkdirSync(target, { recursive: true }); } -const portableFiles = ['dist-client', 'dist-server', 'docs', 'examples', 'README.md', 'CHANGELOG.md', 'DESIGN.md', 'Start-Workbench.cmd', 'Stop-Workbench.cmd']; -const sourceFiles = ['src', 'public', 'scripts', 'tests', 'docs', 'examples', 'package.json', 'package-lock.json', 'vite.config.ts', 'tsconfig.json', 'index.html', '.gitignore', 'README.md', 'CHANGELOG.md', 'DESIGN.md', 'task_plan.md', 'findings.md', 'progress.md', 'Start-Workbench.cmd', 'Stop-Workbench.cmd']; +const portableFiles = ['dist-client', 'dist-server', 'docs', 'examples', 'benchmarks', 'research', 'README.md', 'CHANGELOG.md', 'DESIGN.md', 'AGENTS.md', 'Start-Workbench.cmd', 'Stop-Workbench.cmd']; +const sourceFiles = ['src', 'public', 'scripts', 'tests', 'docs', 'examples', 'benchmarks', 'research', 'package.json', 'package-lock.json', 'vite.config.ts', 'tsconfig.json', 'index.html', '.gitignore', 'README.md', 'CHANGELOG.md', 'DESIGN.md', 'AGENTS.md', 'task_plan.md', 'findings.md', 'progress.md', 'Start-Workbench.cmd', 'Stop-Workbench.cmd']; const copyTree = (source, destination) => fs.cpSync(source, destination, { recursive: true, filter: (from, to) => { if (!fs.statSync(from).isFile() || !fs.existsSync(to)) return true; return !fs.readFileSync(from).equals(fs.readFileSync(to)); @@ -39,6 +39,9 @@ fs.mkdirSync(path.join(portableRoot, 'runtime'), { recursive: true }); const runtimeDestination = path.join(portableRoot, 'runtime', 'node.exe'); const digest = file => createHash('sha256').update(fs.readFileSync(file)).digest('hex'); if (!fs.existsSync(runtimeDestination) || digest(runtimeDestination) !== digest(nodeBinary)) fs.copyFileSync(nodeBinary, runtimeDestination); +const npmRoot = path.join(path.dirname(nodeBinary), 'node_modules', 'npm'); +if (!fs.existsSync(path.join(npmRoot, 'bin', 'npm-cli.js'))) throw new Error('The portable engineering runner requires the npm shipped with this Node distribution.'); +copyTree(npmRoot, path.join(portableRoot, 'runtime', 'node_modules', 'npm')); const notices = ['Agent Workbench third-party notices', '', 'Original product code is supplied for the project owner. Its redistribution terms are determined by the project owner.', @@ -66,6 +69,7 @@ for (const [location, entry] of Object.entries(lock.packages).sort(([a], [b]) => const nodeLicenseText = fs.readFileSync(nodeLicense, 'utf8'); fs.writeFileSync(path.join(licenseRoot, 'Node-' + nodeVersion + '-LICENSE.txt'), nodeLicenseText); notices.push('='.repeat(72), 'Node.js ' + nodeVersion, '', nodeLicenseText); +notices.push('='.repeat(72), 'npm bundled with Node.js', 'Complete package and dependency licenses are retained under runtime/node_modules/npm/.', '', fs.readFileSync(path.join(npmRoot, 'LICENSE'), 'utf8')); fs.writeFileSync(path.join(root, 'THIRD_PARTY_NOTICES.txt'), notices.join('\n')); for (const output of [portableRoot, sourceRoot]) { fs.cpSync(licenseRoot, path.join(output, 'licenses'), { recursive: true }); diff --git a/scripts/verify-release.mjs b/scripts/verify-release.mjs index 928fe267..7270afc4 100644 --- a/scripts/verify-release.mjs +++ b/scripts/verify-release.mjs @@ -72,13 +72,21 @@ try { await until(async () => { current = await api('/sessions/' + session.id); return current.status === 'needs_review'; }); const command = current.events.find(event => event.tool === 'run_command'); assert.equal(command.phase, 'completed'); assert.match(command.output, new RegExp(manifest.nodeVersion.replaceAll('.', '\\.'))); + for (const proposal of current.changes.filter(change => change.status === 'pending')) await api('/sessions/' + session.id + '/changes/' + proposal.id + '/reject', {}); + const planned = await api('/sessions/' + session.id + '/check-plans', { names: ['test'] }); + const plan = planned.execution.plans.at(-1); assert.ok(plan.checks.some(check => check.name === 'test')); + const accepted = await api('/sessions/' + session.id + '/check-jobs', { planId: plan.id }); const jobId = accepted.execution.checks.at(-1).id; + let checked; await until(async () => { checked = await api('/sessions/' + session.id + '/check-jobs/' + jobId); return !['queued', 'running'].includes(checked.status); }); + assert.equal(checked.status, 'passed'); assert.equal(checked.results[0].tests.total, 4); assert.equal(checked.results[0].tests.passed, 4); + const checkLog = await api('/artifacts/' + checked.results[0].logArtifactId + '?session=' + session.id); assert.match(checkLog.content, /tests 4/); + assert.ok(fs.existsSync(path.join(appRoot, 'runtime/node_modules/npm/bin/npm-cli.js'))); assert.equal((await api('/research')).length, 4); const page = await fetch(url); assert.equal(page.status, 200); assert.match(await page.text(), /Agent Workbench/); console.log((await stop()).trim()); started = false; await until(async () => { try { await fetch(url + '/api/health'); return false; } catch { return true; } }); const result = { success: true, date: new Date().toISOString(), appRoot, version: manifest.version, nodeVersion: manifest.nodeVersion, - verifiedFiles: manifest.files.length, url, reusedPid: firstInfo.pid, steps: ['manifest hashes', 'bundled Node launch', 'same-service reuse', 'packaged example and static page', 'explicit command consent', 'actual bundled Node version', 'report availability', 'graceful stop'], realModel: false }; + verifiedFiles: manifest.files.length, url, reusedPid: firstInfo.pid, checks: { jobId, status: checked.status, tests: checked.results[0].tests }, 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 }; fs.writeFileSync('.qa/release-validation.json', JSON.stringify(result, null, 2)); console.log(JSON.stringify(result, null, 2)); } finally { if (started) { try { await stop(); } catch {} } } diff --git a/task_plan.md b/task_plan.md index 77c3ae42..0ef05e6b 100644 --- a/task_plan.md +++ b/task_plan.md @@ -117,8 +117,8 @@ 2. [complete] 实现独立任务/运行契约、SQLite状态与追加事件、JSON迁移/备份、恢复和工具结果核对;10个实际退出切点通过。 3. [complete] Runtime、配置/预算、审批/工具身份、任务/运行/工件界面和SSE补发已接入;6组任务UI及手机弹窗目视验收通过。 4. [in_progress] 有界工程识别、npm检查计划/真实job和Git基线已实现并验证;正在建立真实模型跨文件工程交付样本。 -5. [in_progress] 当前65项独立行为/API/退出恢复测试完整通过,6组新增任务UI通过;基础/诊断UI、新发行包与真实工程交付待最终验证。 -6. [pending] 验证现有连接保留的升级路径,交付可运行版本和实际验收记录。 +5. [in_progress] 当前68项完整测试、基础10/诊断9/任务7组界面通过;便携与源码独立构建/68项回归已通过,正在真实模型工程交付。 +6. [in_progress] 1.1.0已保留原进程与连接升级至4318;完整ZIP/清单通过,待补入真实工程记录并封存最终发行。 ### 本轮执行边界与发现 @@ -139,6 +139,6 @@ - 保留已提交的2ea3485与已有未提交续作,接续审核后继续、日志工件读取、随附npm和封存工程样本。 - [complete] 完善“继续检查与交付”的Task归属、重复操作与请求失败行为,API并发/重启及7组任务界面已通过。 - [complete] 独立端口基础10/诊断9/任务7组回归通过,桌面与390px窄屏截图已目视核对。 -- [pending] 建立真实模型验收器,使用现有内存连接修复四模块工程,保护测试/fixtures/构建脚本,保存失败和通过日志。 +- [in_progress] 真实模型验收器已启动,使用现有内存连接修复四模块工程,保护测试/fixtures/构建脚本,保存失败和通过日志。 - [in_progress] 验证1.1.0便携包及原进程保留连接升级,整理实际能力边界和本地Git提交。 - 恢复时父目录不是Git根目录;已定位到Agent-Workbench仓库。大批读取发生输出截断,后续按文件与关键段读取,不将未返回段落当已核对。