feat(vision): bind task screenshots, route vision and resume budget pauses

This commit is contained in:
Agent Workbench Dev
2026-11-01 00:48:38 +08:00
parent 0d1ab743f1
commit 96a7ed19c7
79 changed files with 1721 additions and 36 deletions
+9
View File
@@ -0,0 +1,9 @@
# 工程截图输入契约
1.18开发中。每个Task先支持一张PNG/JPEG,单图2MiB、解码上限16Mi像素。只接受用户主动选择的文件内容,不接受本机路径或远程URL。图片完整解码、PNG CRC/结束结构与尺寸通过,JPEG按EXIF方向归正;拒绝动态PNG和尾随负载。原字节/SHA与去元数据、最长边1024像素/768KiB的PNG发送副本分别保存。界面明确显示副本尺寸,原文件可下载。草稿属于会话/项目,发送时创建新的Task/Run引用,保留原draft与工件所属;同事务保存。移除仅作用于草稿,已发送的历史不会改写。
实际请求在当前Task注入一次发送副本,历史只存原附件引用;后续同Task请求保持同一图像身份。Chat使用image_url,Responses使用input_image,detail为high。所需vision能力从实际图像块推导,声明不替代验证;不兼容成员不能取得租约。图片不进入项目记忆和PWA壳缓存。
图像预留采用固定有界本地策略,并与文字估算、原请求字节及上游实际usage分列,不声称适用于所有品牌的精确计费。原参考:[OpenAI图片输入](https://developers.openai.com/api/docs/guides/images-vision),已实际读取;未知模型容量由用户按上游资料声明,不从名称自动提高。
中文工作台延续现有布局。在输入区上方放附件条,点击查看原图/发送副本,移除草稿后可刷新核对;执行历史显示绑定附件。预算暂停采用请求分解与同Task核对续接入口。独立页面或另开附件库会切断任务关系,本阶段不采用。手机权限与真实设备结论分别验收。
+27
View File
@@ -0,0 +1,27 @@
# 1.18 工程截图、视觉路由与同Task续接
开发基线0d1ab74,分支feat/vision-attachments-1.18。正式1.17/PID36552保持,所有新请求仅使用自有loopback固定响应服务。当前仍在验收,完整回归、独立发行、保留状态正式部署分别记录,不能用前置专项代替。
## A–C:附件输入与实际协议
PNG/JPEG原图完整解码,PNG逐块结束/CRC核对、JPEG扫描结构与EXIF方向归正;拒绝动态PNG、尾随负载、伪装、截断、超大编码或像素。原图2MiB/16Mi像素,发送副本去元数据并限制1024像素/768KiB,界面显示实际副本大小。每Task一张图,每会话最多8张草稿。草稿、撤回及已消费记录保留原所属;发送时创建新的Task/Run引用与工件记录,同SQLite事务保存,原文件不重写归属。
Chat image_url/Responses input_image实际HTTP每请求恰有一次图像,原providerMessages只有文字,原请求工件保留完整字节。模型池在租约前按vision需求排除未知/不支持成员,默认演示和未知legacy线路不能绕过。四色随机像素probe只验证一次合成图像识别,结论绑定连接/凭据修订,与工程推理效果分开。原图/副本在发送及核验时分别核对SHA和任务归属,热升级继续采用已有core新容器初始化及失败回滚。
首次专项24/30(含历史兼容),失败原件vision-core-first.log保留。产品问题是原实现试图改变持久draft工件归属,现改为新ID引用并保持数据库禁止移动约束;2MiB余数边界修正为413。测试另修正completion调用形状及中文拒绝断言。第二轮附件12/12通过。
## D:预算诊断及可核对续接
新Run预算暂停保存必需输入、请求格式/图像说明、目标与工程上下文、工具定义、历史依据、图像预留、响应/安全余量及Run/Task剩余。图片使用本地预留,不是厂商计费或任何品牌容量的硬保证。文字估算保持旧规则;原请求SHA仍涵盖完整Base64字节。
预览绑定原Task、Run、会话修订、配置/注册表/凭据身份、历史SHA和全部附件/实际工具。预览不调用模型;确认后在同Task新建Run,仅本次Run选择模型/预算,累计Task额度只能保留或明确增加。过期、篡改、容量被静默截小、修订变化和重复确认均拒绝;完成工具保留、未知结果仍须核对。五项专项最终5/5,原预算测试首次调用不存在的测试方法、第二轮封存比较误漏status的失败保留;后者修正后没有放宽封存校验。最终A–D合计17/17通过。
只读正式样本得到旧estimatedTokens=36771、旧记录未有新预算分解,且原公开样本没有可用的本次context-plan。不能把旧估算直接当必需输入,更不能补造旧暂停成因。新功能用独立含实际工具结果的Task复现并保存;未启动正式原任务。正式仍1.17/PID36552、17项目,连接和数据未修改。
## E:任务界面与手机观察
延续现有中文React工作台,在原输入上方添加截图、选择/撤回、预览和路由说明;原任务消息保留附件核对/下载,失败后任务文字及草稿保留。预算诊断在原会话内,通过预览和明确确认续接。手机仅按原项目观察权限查看当前Task截图、核对原字节和下载原图;不通过observe权限新增任务、上传或调整预算。
实际Edge桌面1440×1000、390×844及真实自有TLS网关的5组流程通过;首次UI失败源于QA修改全局配置会切回legacy、以及固定响应夹具误用旧Task工具结果,已按实际选路与最后用户消息修正。原失败与截图保留。回看发现预览曾显示被排除的池首成员,改为显示符合当前任务能力的成员,运行时间以分钟显示,窄屏移除/选择触控区域补强;修正后的结果单独记录。
构建通过。回看修正后第三轮5组完整UI再次通过,零pageerror;原失败未覆盖。相关兼容62/64原轮其余均通过,剩余2项为上述预算封存status问题,修正后5/5;完整整轮尚待F。新手机截图流程的Edge/TLS结果不当成iPhone实机,真实模型视觉工程与Purge收益继续按用户选择另行待验。A–E原件与字节身份见vision-inputs-ae-evidence/manifest.json。
+17
View File
@@ -0,0 +1,17 @@
# 1.18 阶段回顾
## A–D:维持原身份,再增加能力
附件输入首先是Task所属工程数据。数据库对持久记录归属不可移动的守卫阻止了初始实现,这是需要保持的约束;最终以新Task引用连接原字节,草稿和原工件身份均保持。真解码、方向、原图/发送副本SHA、视觉前选池和两协议实际HTTP一起验证;仅支持文件选择不能算工程视觉链路完成。
图像预算与普通文字估算分开,但实际请求仍封存全部字节。预算暂停必须解释限制来源,不能静默增大模型窗口或舍弃用户要求;同Task续接通过冻结预览、修订/容量核对和一次确认完成,旧结果和未知操作不自动重放。新专项17/17,原失败保留。
## E:回看内容,而不只看测试绿色
第一次成功流程的截图暴露预算预览显示了实际被排除的文字池成员;这会影响用户对发送对象的判断,因此改为列出符合本次任务能力的成员。保留原中文产品布局,不新增独立附件管理页面。手机沿用明确的观察/审批/停止权限,这次只添加观察数据,不让观察权限暗中变成上传或执行授权。
新Edge/窄屏/自有TLS流程与iPhone实机是不同证据;固定模型只检验协议和工程执行,不检验视觉推理水平。正式原任务只读复核,没有启动、改写或补造旧预算分解。
## F:尚待完成
完整历史回归、含附件工程交付、独立源码/便携/同载荷安装、原PID与所有数据保持升级、原生回看及证据封存仍是发行门槛。下一阶段计划应依据本阶段实际结果书写,不能把未完成项标成已交付。
@@ -0,0 +1,246 @@
{
"stage": "1.18 A-E",
"realModelRequests": 0,
"entries": [
{
"source": ".qa/vision-core-first.log",
"file": "vision-core-first.log",
"bytes": 12956,
"sha256": "aed4ba5d7809f9a4a977007fa0c8c9319e67b19a65f9afff7a96b4c9e4d4ba54"
},
{
"source": ".qa/vision-core-second.log",
"file": "vision-core-second.log",
"bytes": 1593,
"sha256": "42c14555f38e05263a1491c2b276973de290db3272e8dc4d49e557a388664152"
},
{
"source": ".qa/vision-budget-first.log",
"file": "vision-budget-first.log",
"bytes": 5962,
"sha256": "b48a9390baa1bcee64da60feb79ec73277e96073ebedd26294930740a0bbcd0b"
},
{
"source": ".qa/vision-budget-third.log",
"file": "vision-budget-third.log",
"bytes": 818,
"sha256": "74d6fd0b1638c47aa371c40b1cf515709b14823662ec2ec2ccfdf5ccd80ed5f3"
},
{
"source": ".qa/vision-compat-second.log",
"file": "vision-compat-second.log",
"bytes": 9266,
"sha256": "ccd33dc28ff6d99d32928ce7be31a6bbaff41e7d5f77974284b77b4a3fc1e90e"
},
{
"source": ".qa/vision-ad-final.log",
"file": "vision-ad-final.log",
"bytes": 2295,
"sha256": "98bc56787e12cfe76f0ab2595dfcf3fb811183b40f4aad6f5fbe1a44a3795e0d"
},
{
"source": ".qa/vision-ui-first.log",
"file": "vision-ui-first.log",
"bytes": 730,
"sha256": "29f931948910fee21fd81f43645b5202f567f0177b2c983cb9c384ec8a4b9793"
},
{
"source": ".qa/vision-ui-second.log",
"file": "vision-ui-second.log",
"bytes": 624,
"sha256": "c71b644facc20cac3c38d6fdeababb2aae5475e38a1870ce7d1f8cb2b3dc33da"
},
{
"source": ".qa/vision-ui-third.log",
"file": "vision-ui-third.log",
"bytes": 624,
"sha256": "e56ca23da0fc18a1a64ed7c52cbfa28be83381413b6602d78a8355ba5c47c1d4"
},
{
"source": ".qa/vision-e-build.log",
"file": "vision-e-build.log",
"bytes": 978,
"sha256": "c31aadf039f42c9d0b0e592d77e16a05df5d19f78cedc1f84d675a276f0bd82d"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/desktop-attached.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--desktop-attached.png",
"bytes": 88839,
"sha256": "e6fd08ee3360452e9240234ae720477fea0adf16be9dfb36c93afa96158540c9"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/desktop-draft.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--desktop-draft.png",
"bytes": 101507,
"sha256": "8a8ebe249ad4d8f36c328f0b4fd7240d3cb1b5c0d710584d2c63d9d472245c1c"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/downloaded-original.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--downloaded-original.png",
"bytes": 4864,
"sha256": "0f103ba6a48431e86d9257f0e147c1c36f68694038db2e22138c23dc3a90379b"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/engineering-screenshot.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--engineering-screenshot.png",
"bytes": 4864,
"sha256": "0f103ba6a48431e86d9257f0e147c1c36f68694038db2e22138c23dc3a90379b"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/failure-desktop.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--failure-desktop.png",
"bytes": 101204,
"sha256": "ac55b02ec54a6b53bc732f33005ace702136415a06dceae9adaa2a8577b97eb8"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/forged.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--forged.png",
"bytes": 14,
"sha256": "c803805acb8f3a172061fddfe2cbba43f373f715b4ddf7f1d9a09fa683b1106f"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/narrow-attached.png",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--narrow-attached.png",
"bytes": 41092,
"sha256": "9d6c4f37f0a0005622ddc7c7206449110307848c1fe0548ad30e964f94978213"
},
{
"source": ".qa/vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54/result.json",
"file": "vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54--result.json",
"bytes": 1126,
"sha256": "8e52939cf6077d9c9a91029279f3b9c81375d716261c9dabaa74fba666aae811"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/companion-image.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--companion-image.png",
"bytes": 28813,
"sha256": "62e7fe98ab6fb546a1ce26f4963d31f2ded3e4deab39c85fb82e2071dc4b8d7f"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/desktop-attached.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--desktop-attached.png",
"bytes": 88762,
"sha256": "a6fb6598c81be53415789ea464557a02e4439662e84feae0835b4e1570eca8f4"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/desktop-budget-preview.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--desktop-budget-preview.png",
"bytes": 153015,
"sha256": "71d22e2cfb2bd22c0d86e61a44cee92a02fef84fcb791332f9f269bb7650fccf"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/desktop-draft.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--desktop-draft.png",
"bytes": 101507,
"sha256": "8a8ebe249ad4d8f36c328f0b4fd7240d3cb1b5c0d710584d2c63d9d472245c1c"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/desktop-image-stopped.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--desktop-image-stopped.png",
"bytes": 97607,
"sha256": "4cb67e4873df723d3517554ac5b619ba1089b3d06a5d3d07e8fb53da254f9bde"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/downloaded-original.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--downloaded-original.png",
"bytes": 4864,
"sha256": "0f103ba6a48431e86d9257f0e147c1c36f68694038db2e22138c23dc3a90379b"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/engineering-screenshot.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--engineering-screenshot.png",
"bytes": 4864,
"sha256": "0f103ba6a48431e86d9257f0e147c1c36f68694038db2e22138c23dc3a90379b"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/forged.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--forged.png",
"bytes": 14,
"sha256": "c803805acb8f3a172061fddfe2cbba43f373f715b4ddf7f1d9a09fa683b1106f"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/narrow-attached.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--narrow-attached.png",
"bytes": 41045,
"sha256": "665ab6c42b3cb677ec276671b233043ae740ab96b4b85b9e808913f02578fb8c"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/narrow-budget-preview.png",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--narrow-budget-preview.png",
"bytes": 56986,
"sha256": "47b1c815bd2ccb4f09b36e839daeb7050979b919e20ff1301168e1c0743ebb3b"
},
{
"source": ".qa/vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f/result.json",
"file": "vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f--result.json",
"bytes": 2353,
"sha256": "5d661e71b905f08810c6d23f6dfa059631951154296fc8208490358196e46fb8"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/companion-image.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--companion-image.png",
"bytes": 28857,
"sha256": "7e6f6b96356d5ce645753768c24ded4461bbe91886f333d6f93855a92a8910b9"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/desktop-attached.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--desktop-attached.png",
"bytes": 88861,
"sha256": "5a68af81c3d5840b70734d7ac0d70d1fcf4c7fa9f140dbc5c8e1b9bae57fd93c"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/desktop-budget-preview.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--desktop-budget-preview.png",
"bytes": 153635,
"sha256": "9dcafa4c334f96e937a1be354a14f764b4f4be39afbf3f7aad513ba2992aceb2"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/desktop-draft.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--desktop-draft.png",
"bytes": 101507,
"sha256": "8a8ebe249ad4d8f36c328f0b4fd7240d3cb1b5c0d710584d2c63d9d472245c1c"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/desktop-image-stopped.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--desktop-image-stopped.png",
"bytes": 97752,
"sha256": "808ffa499eedfd1652caa320ac52d2f7810502f2220a45dd5abe04437fc9d6cf"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/downloaded-original.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--downloaded-original.png",
"bytes": 4864,
"sha256": "0f103ba6a48431e86d9257f0e147c1c36f68694038db2e22138c23dc3a90379b"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/engineering-screenshot.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--engineering-screenshot.png",
"bytes": 4864,
"sha256": "0f103ba6a48431e86d9257f0e147c1c36f68694038db2e22138c23dc3a90379b"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/forged.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--forged.png",
"bytes": 14,
"sha256": "c803805acb8f3a172061fddfe2cbba43f373f715b4ddf7f1d9a09fa683b1106f"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/narrow-attached.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--narrow-attached.png",
"bytes": 41125,
"sha256": "566a9c9cc865fb823691ea642b9c91e4f8deb4568d92d920efaf9e641bf504b2"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/narrow-budget-preview.png",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--narrow-budget-preview.png",
"bytes": 56640,
"sha256": "07415fab6f3423a16236467a00a6d999bccb87932a629717d03969b3f9ce64ea"
},
{
"source": ".qa/vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb/result.json",
"file": "vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb--result.json",
"bytes": 2353,
"sha256": "6f15b489a0a0f8f2f2ee8e734ea3480e6e188da5c45f68e62cc195650330904b"
}
]
}
@@ -0,0 +1,25 @@
✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (3199.9803ms)
✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (4197.9668ms)
✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (2584.9962ms)
✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (3142.2672ms)
✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (3974.6054ms)
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (103.3543ms)
✔ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (23.9248ms)
✔ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (1592.5941ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (1137.8139ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (2041.3517ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (887.0133ms)
✔ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (3034.6431ms)
✔ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2892.3659ms)
✔ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (2345.6865ms)
✔ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (1253.9727ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (1103.0949ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (2.3442ms)
ℹ tests 17
ℹ suites 0
ℹ pass 17
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 17227.4962
@@ -0,0 +1,72 @@
✖ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (942.5897ms)
✖ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (961.5493ms)
✖ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (1207.5803ms)
✖ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (1071.5479ms)
✖ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (1018.3573ms)
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (103.2372ms)
✔ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (23.8496ms)
✔ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (1743.7451ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (1205.6103ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (2101.2044ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (687.6118ms)
✔ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2167.6013ms)
✔ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (1945.9025ms)
✔ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (1614.9053ms)
✔ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (836.9181ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (703.0134ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (2.942ms)
ℹ tests 17
ℹ suites 0
ℹ pass 12
ℹ fail 5
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 13384.0766
✖ failing tests:
test at tests\budget-resume.test.mjs:19:1
✖ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (942.5897ms)
TypeError [Error]: f.store.updateConfig is not a function
at paused (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:10:60)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:20:11)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3)
test at tests\budget-resume.test.mjs:27:1
✖ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (961.5493ms)
TypeError [Error]: f.store.updateConfig is not a function
at paused (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:10:60)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:28:11)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
test at tests\budget-resume.test.mjs:38:1
✖ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (1207.5803ms)
TypeError [Error]: f.store.updateConfig is not a function
at paused (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:10:60)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:39:11)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
test at tests\budget-resume.test.mjs:44:1
✖ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (1071.5479ms)
TypeError [Error]: f.store.updateConfig is not a function
at paused (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:10:60)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:45:11)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
test at tests\budget-resume.test.mjs:56:1
✖ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (1018.3573ms)
TypeError [Error]: f.store.updateConfig is not a function
at paused (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:10:60)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:57:11)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
@@ -0,0 +1,13 @@
✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (1877.4029ms)
✔ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (2631.6384ms)
✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (1691.6229ms)
✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (2369.3845ms)
✔ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (2533.6439ms)
ℹ tests 5
ℹ suites 0
ℹ pass 5
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11274.7023
@@ -0,0 +1,101 @@
✔ a budget pause persists concrete text/tool/history/image breakdown and never dispatches an oversized request (2997.0554ms)
✖ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (3513.8586ms)
✔ insufficient budgets, silently clamped capacity and arbitrary config fields reject without a physical request or mutating task budget (3520.4991ms)
✔ changed session, changed registry, expiry and altered frozen preview all require a new explicit preview (3275.0687ms)
✖ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (3247.2136ms)
✔ pairing is short lived, single-use, generation-bound and validates exact permissions (965.5924ms)
✔ device transaction failure neither consumes the ticket nor leaves a credential (789.0047ms)
✔ devices have project and action boundaries; rotation, expiration, revocation and host changes reject old authority (1114.822ms)
✔ persistent registry stores hashes and a bounded audit, never raw credentials (1040.811ms)
✔ real TLS verifies IP SAN, CA chain, encrypted restart and public fingerprint (1273.6199ms)
✔ TLS sealing failure leaves listener closed and no plaintext or successful TLS registration (742.8388ms)
✔ HTTP pairing is concurrent single-use; secure cookie and strict origin/host checks (1093.9074ms)
✔ gateway never exposes management routes, arbitrary assets or unpaired project data (1121.7398ms)
✔ authorized project events paginate from original seq without leaking other project events or payloads (2176.9958ms)
✔ remote task projection excludes raw model history, host configuration, tool input and credentials (1064.2894ms)
✔ permission checks apply to direct remote mutation, not only UI controls (1064.1012ms)
✔ approval fingerprint and exact task/revision are bound; duplicate requests never execute twice (977.3428ms)
✔ unknown original operation is recorded and never replayed after response failure (1294.444ms)
✔ revocation and gateway closure reject old access without invoking runtime stop (1194.679ms)
✔ rate limits reject pairing brute force and do not persist candidate secrets (988.1917ms)
✔ real Windows CurrentUser DPAPI persists only a sealed CA and reopens it (2135.293ms)
✔ mobile approval executes the original Runtime command exactly once and rejects the later desktop decision (3246.1573ms)
✔ desktop rejection wins a concurrent mobile request and original command remains unexecuted (2258.763ms)
✔ phone stop waits for the original process exit and prevents later heartbeats and command replay (3645.9035ms)
✔ Run replacement during parent-stop wait is rejected rather than stopping the new Run (937.9841ms)
✔ diff pages preserve source SHA; report reads verify blobs and exclude unrelated artifact kinds (1484.4431ms)
✔ hot upgrade refuses an active gateway and restores closed gateway ownership on failure (923.7663ms)
✔ damaged device permissions or expiry fail closed and never overwrite the original registry (1138.4868ms)
✔ device revocation destroys its actual authenticated TLS connection (1193.174ms)
✔ companion observes only current Task screenshots, verifies original PNG bytes and loses access immediately on revoke (1513.6405ms)
✔ schema1 connections remain readable without inventing observed capabilities or migrating original state (1054.5251ms)
✔ protocol, unsupported capabilities and stream choice persist; client claims cannot forge verified evidence (794.7377ms)
✔ ability evidence belongs to exact connection and credential revision; unknown and unsupported reject required routing (0.2757ms)
✔ invalid declarations and inconsistent stream settings reject before registry, revision and credentials mutate (610.7537ms)
✔ saved engine budgets verify all Chat/Responses route variants and reject a mismatched output allowance (1215.7279ms)
✔ owned CC Switch SQLite imports the selected TOML Responses wire_api and leaves unknown clients untouched (1072.1526ms)
✔ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (3025.5661ms)
✔ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (3517.0097ms)
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
✔ Reject {"body":{"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial" (2101.2162ms)
✔ Reject {"body":{"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","cal (2247.4826ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","cal (2081.4415ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supporte (1807.2339ms)
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (8238.5498ms)
▶ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay
✔ chat-completions (1856.2509ms)
✔ responses (1984.9552ms)
✔ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay (3841.6985ms)
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.1784ms)
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (698.2482ms)
✔ HTTP download preserves original malformed SSE bytes and artifact SHA instead of decoding invalid UTF8 (2671.5639ms)
✔ real Chat SSE carries UTF8 and split tool JSON; Runtime executes only after DONE, stores partial progress and original usage (3549.964ms)
✔ Responses typed SSE validates original item identity, terminal data, raw usage and tool result pair (2055.8266ms)
✔ incomplete network stream retains unknown attempt and never automatically switches pool or dispatches fragment tools (1591.9915ms)
✔ stopping an active HTTP stream closes only original request and keeps partial text without executing tools (1387.9026ms)
✔ explicit streaming probe uses actual SSE despite unknown declaration and binds its own original attempt (634.4211ms)
✔ coalesced initial SSE events publish the latest partial state even when the upstream stays idle (1562.436ms)
✔ stream timeout closes the original HTTP response, preserves redacted capture and never retries (1006.5371ms)
✔ SSE accepts CR-only final event boundaries and retains exact invalid UTF8 bytes without dispatch (1.5802ms)
▶ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data
✔ reject 0 (0.4007ms)
✔ reject 1 (0.2435ms)
✔ reject 2 (0.2688ms)
✔ reject 3 (5.7145ms)
✔ reject 4 (0.1532ms)
✔ reject 5 (0.1481ms)
✔ stream parser rejects truncation, finish length, malformed JSON, duplicate sequence, changed final item and oversized data (7.7568ms)
ℹ tests 64
ℹ suites 0
ℹ pass 62
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 50232.4162
✖ failing tests:
test at tests\budget-resume.test.mjs:27:1
✖ explicit frozen preview resumes the same Task in a new Run, preserves completed tools and does not change global config or selected model (3513.8586ms)
Error: 原任务、连接或预算预览已变化,请重新准备后确认。
at fail (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/budget-resume.mjs:6:48)
at BudgetResume.verify (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/budget-resume.mjs:57:198)
at Runtime.resumeBudget (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/runtime.mjs:126:89)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:30:13)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
status: 409
}
test at tests\budget-resume.test.mjs:56:1
✖ preview preserves unknown invocation status and increasing Task allowance is committed only with confirmed new Run (3247.2136ms)
Error: 原任务、连接或预算预览已变化,请重新准备后确认。
at fail (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/budget-resume.mjs:6:48)
at BudgetResume.verify (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/budget-resume.mjs:57:198)
at Runtime.resumeBudget (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/runtime.mjs:126:89)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/budget-resume.test.mjs:61:13)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
status: 409
}
@@ -0,0 +1,158 @@
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (104.6542ms)
✖ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (23.5584ms)
✖ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (1095.482ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (1074.7241ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (2223.6267ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (1187.2725ms)
✖ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (1283.0097ms)
✖ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (1008.3599ms)
✖ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (1287.0283ms)
✖ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (1014.5866ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (1169.7763ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (2.2418ms)
✔ schema1 connections remain readable without inventing observed capabilities or migrating original state (855.9471ms)
✔ protocol, unsupported capabilities and stream choice persist; client claims cannot forge verified evidence (1193.9145ms)
✔ ability evidence belongs to exact connection and credential revision; unknown and unsupported reject required routing (0.7101ms)
✔ invalid declarations and inconsistent stream settings reject before registry, revision and credentials mutate (1018.1341ms)
✔ saved engine budgets verify all Chat/Responses route variants and reject a mismatched output allowance (1371.9733ms)
✔ owned CC Switch SQLite imports the selected TOML Responses wire_api and leaves unknown clients untouched (1416.8663ms)
✔ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (3365.0207ms)
✔ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (3263.2217ms)
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
✔ Reject {"body":{"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial" (1190.0446ms)
✔ Reject {"body":{"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","cal (1248.8223ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","cal (1388.761ms)
✔ Reject {"body":{"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supporte (1198.4518ms)
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (5027.5271ms)
▶ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay
✔ chat-completions (1340.444ms)
✔ responses (1234.363ms)
✔ invalid JSON in a nonstream Chat or Responses tool group prevents every tool and pool replay (2575.3827ms)
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.1751ms)
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (589.5139ms)
ℹ tests 30
ℹ suites 0
ℹ pass 24
ℹ fail 6
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 20907.3335
✖ failing tests:
test at tests\input-attachments.test.mjs:38:1
✖ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (23.5584ms)
AssertionError [ERR_ASSERTION]: The validation function is expected to return "true". Received false
Caught error:
Error: 图片编码或大小无效。
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:48:10)
at Test.runInAsyncScope (node:async_hooks:227:14)
at Test.run (node:internal/test_runner/test:1402:25)
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
at Test.postRun (node:internal/test_runner/test:1542:19)
at Test.run (node:internal/test_runner/test:1467:12)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: 图片编码或大小无效。
at reject (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/input-attachments.mjs:6:57)
at validateImage (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/input-attachments.mjs:87:110)
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:48:21
at getActual (node:assert:611:5)
at strict.throws (node:assert:759:24)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:48:10)
at Test.runInAsyncScope (node:async_hooks:227:14)
at Test.run (node:internal/test_runner/test:1402:25)
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
at Test.postRun (node:internal/test_runner/test:1542:19),
operator: 'throws',
diff: 'simple'
}
test at tests\input-attachments.test.mjs:51:1
✖ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (1095.482ms)
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /归属|所属|不存在/. Input:
'Error: 执行记录不属于当前会话。'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:55:58)
at Test.runInAsyncScope (node:async_hooks:227:14)
at Test.run (node:internal/test_runner/test:1402:25)
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
at Test.postRun (node:internal/test_runner/test:1542:19)
at Test.run (node:internal/test_runner/test:1467:12)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error: 执行记录不属于当前会话。
at Store.owned (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:602:130)
at InputAttachments.get (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/input-attachments.mjs:115:39)
at InputAttachments.read (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/context/input-attachments.mjs:126:20)
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:55:77
at getActual (node:assert:611:5)
at strict.throws (node:assert:759:24)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:55:58)
at Test.runInAsyncScope (node:async_hooks:227:14)
at Test.run (node:internal/test_runner/test:1402:25)
at Test.processPendingSubtests (node:internal/test_runner/test:974:18),
expected: /归属|所属|不存在/,
operator: 'throws',
diff: 'simple'
}
test at tests\input-attachments.test.mjs:88:56
✖ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (1283.0097ms)
Error: 持久执行记录不能移动到其他任务或项目。
at StateDatabase.writeRecords (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:67:15)
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:98:40
at StateDatabase.transaction (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:37:26)
at StateDatabase.save (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:97:17)
at Store.save (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:363:36)
at Store.beginRun (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:483:10)
at Runtime.start (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/runtime.mjs:188:31)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:97:77)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
test at tests\input-attachments.test.mjs:88:56
✖ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (1008.3599ms)
Error: 持久执行记录不能移动到其他任务或项目。
at StateDatabase.writeRecords (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:67:15)
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:98:40
at StateDatabase.transaction (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:37:26)
at StateDatabase.save (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:97:17)
at Store.save (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:363:36)
at Store.beginRun (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:483:10)
at Runtime.start (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/runtime.mjs:188:31)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:97:77)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
test at tests\input-attachments.test.mjs:106:1
✖ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (1287.0283ms)
Error: 持久执行记录不能移动到其他任务或项目。
at StateDatabase.writeRecords (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:67:15)
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:98:40
at StateDatabase.transaction (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:37:26)
at StateDatabase.save (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/storage/state-database.mjs:97:17)
at Store.save (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:363:36)
at Store.beginRun (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/store.mjs:483:10)
at Runtime.start (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/server/runtime.mjs:188:31)
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:112:11)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1409:7)
test at tests\input-attachments.test.mjs:117:1
✖ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (1014.5866ms)
Error: 服务没有返回纯文本响应;未标为已验证。
at error (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/models/model-hub.mjs:11:56)
at ModelHub.probe (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/src/core/models/model-hub.mjs:143:91)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/input-attachments.test.mjs:125:3)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
status: 400
}
@@ -0,0 +1,20 @@
✔ PNG bytes are fully decoded, metadata-free and bounded; JPEG EXIF orientation is applied to the sent PNG (103.3022ms)
✔ forged type, short headers, CRC damage, incomplete chunks, trailing payloads, animation and dimension bombs reject (23.319ms)
✔ draft image ownership, withdrawal, reload and atomic Task binding retain original SHA and original bytes (921.1045ms)
✔ a failed session transaction restores draft status and cannot leave a Run consuming the attachment (674.857ms)
✔ draft limits, duplicate selection, source changes and cross-Task association reject before dispatch (1182.5494ms)
✔ demo and legacy paths refuse image dispatch without creating a Task or consuming the draft (705.6051ms)
✔ chat-completions sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (1862.306ms)
✔ responses sends one owned image per actual request, pairs original tools and verifies exact sealed bytes (2011.1684ms)
✔ mixed pool excludes unknown vision before lease and sends zero HTTP to the incompatible member (1429.9673ms)
✔ vision probe requires correct randomized pixel order and evidence expires when the connection revision changes (883.0318ms)
✔ HTTP upload/read/withdraw uses session authorization, returns byte SHA and refuses unknown ownership (724.9261ms)
✔ image accounting excludes Base64 as text but seals every original request byte and reserves image input separately (3.0494ms)
ℹ tests 12
ℹ suites 0
ℹ pass 12
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 10766.1508
@@ -0,0 +1,20 @@
> local-agent-workbench@1.17.0 build
> tsc --noEmit && vite build && node scripts/build-mobile.mjs && node scripts/build-server.mjs
vite v7.3.7 building client environment for production...
transforming...
✓ 1729 modules transformed.
rendering chunks...
computing gzip size...
dist-client/.vite/manifest.json 0.55 kB │ gzip: 0.22 kB
dist-client/index.html 0.58 kB │ gzip: 0.40 kB
dist-client/mobile.html 0.82 kB │ gzip: 0.46 kB
dist-client/assets/mobile-CNDnI_ru.css 11.92 kB │ gzip: 3.12 kB
dist-client/assets/desktop-XQhtWX-k.css 138.56 kB │ gzip: 26.53 kB
dist-client/assets/mobile-DVWh54VU.js 24.31 kB │ gzip: 8.65 kB
dist-client/assets/x-Cc3T3VuL.js 225.51 kB │ gzip: 70.77 kB
dist-client/assets/desktop-DxyJCC9F.js 294.22 kB │ gzip: 83.36 kB
✓ built in 1.17s
Mobile shell built: 3 allowed assets; API and project data are never cached.
Server bundle built.
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

@@ -0,0 +1,49 @@
{
"success": true,
"version": "1.17.0",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench",
"passed": [
"desktop upload, explicit route, refreshed draft, original download SHA, one paired tool and narrow task history",
"forged image rejects without losing task text or sending a model request",
"explicit budget preview and confirmation retain Task, attachment and completed tool while global capacity stays unchanged",
"paired TLS companion verifies same screenshot, refresh restores it and revoke clears project/image content",
"stopping screenshot SSE closes original HTTP and dispatches zero partial tools"
],
"screenshots": [
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\desktop-draft.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\desktop-attached.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\narrow-attached.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\desktop-budget-preview.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\narrow-budget-preview.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\companion-image.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb\\desktop-image-stopped.png"
],
"requests": [
{
"route": "/v1/responses",
"sha256": "53d125c9a125d4b4687dae6d7bb2a06ca4445b1dbfb15d933b0919c779f1dbcc",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "00ebfc2a3bebaeaab200e8d561f0f76ad01e69508437370450530ceb5f2b896c",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "762394eb8811ed1ca354fd99c46e980cbce18a0851923ba75d3e472a778d6cb2",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "7d358a6140bcb5d3684b1aec71606704c05e9e2e77d64f1c8e7a16fcb20a4a15",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "f364f9ba35c6f573a0b105b8ab984ceae02ab7f5b14d4195041a7ea8978c59e7",
"imageCount": 1
}
],
"pageErrors": []
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

@@ -0,0 +1,15 @@
{
"success": false,
"error": "Error: Timed out waiting for test state.\n at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-vision-ui.mjs:68:291",
"passed": [
"desktop upload, explicit route, refreshed draft, original download SHA, one paired tool and narrow task history",
"forged image rejects without losing task text or sending a model request"
],
"screenshots": [
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54\\desktop-draft.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54\\desktop-attached.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54\\narrow-attached.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54\\failure-desktop.png"
],
"pageErrors": []
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

@@ -0,0 +1,49 @@
{
"success": true,
"version": "1.17.0",
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench",
"passed": [
"desktop upload, explicit route, refreshed draft, original download SHA, one paired tool and narrow task history",
"forged image rejects without losing task text or sending a model request",
"explicit budget preview and confirmation retain Task, attachment and completed tool while global capacity stays unchanged",
"paired TLS companion verifies same screenshot, refresh restores it and revoke clears project/image content",
"stopping screenshot SSE closes original HTTP and dispatches zero partial tools"
],
"screenshots": [
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\desktop-draft.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\desktop-attached.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\narrow-attached.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\desktop-budget-preview.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\narrow-budget-preview.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\companion-image.png",
"D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f\\desktop-image-stopped.png"
],
"requests": [
{
"route": "/v1/responses",
"sha256": "78d6e369fedfba0b639a1186c553461f6020cf3d4d36ab0fd2e86993d1660ec1",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "6aa8d7007e6c5a9f09c035338da8525bf7fada9e51b8e996534382389a49b0da",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "65839702be1224f7cbf72336d3144bdf777e8e842bcc025273a3377624658ba9",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "2409e8e8885dae045496f918a8b35ac1d3b8aecd40e525dd16102a468c9e2c34",
"imageCount": 1
},
{
"route": "/v1/responses",
"sha256": "aaa78d531d2f8bac75ee9be8889c46276a3f8da36fd0069e5bbcf99aeb5461cf",
"imageCount": 1
}
],
"pageErrors": []
}
@@ -0,0 +1,13 @@
PASS desktop upload, explicit route, refreshed draft, original download SHA, one paired tool and narrow task history
PASS forged image rejects without losing task text or sending a model request
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\vision-ui-69df73a3-f93c-47fe-af3a-aa7f336d0e54
node:internal/modules/run_main:107
triggerUncaughtException(
^
Error: Timed out waiting for test state.
at until (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/helpers.mjs:39:38)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/verify-vision-ui.mjs:68:291
Node.js v24.22.1
@@ -0,0 +1,6 @@
PASS desktop upload, explicit route, refreshed draft, original download SHA, one paired tool and narrow task history
PASS forged image rejects without losing task text or sending a model request
PASS explicit budget preview and confirmation retain Task, attachment and completed tool while global capacity stays unchanged
PASS paired TLS companion verifies same screenshot, refresh restores it and revoke clears project/image content
PASS stopping screenshot SSE closes original HTTP and dispatches zero partial tools
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\vision-ui-b2426469-35ac-4e5a-83ef-2f8c0260276f
@@ -0,0 +1,6 @@
PASS desktop upload, explicit route, refreshed draft, original download SHA, one paired tool and narrow task history
PASS forged image rejects without losing task text or sending a model request
PASS explicit budget preview and confirmation retain Task, attachment and completed tool while global capacity stays unchanged
PASS paired TLS companion verifies same screenshot, refresh restores it and revoke clears project/image content
PASS stopping screenshot SSE closes original HTTP and dispatches zero partial tools
EVIDENCE D:\Ai-project\REA逆向\Agent-Workbench\.qa\vision-ui-0354cc03-2cb2-4456-ac32-f87cd11b63cb