Files
Agent-Workbench/docs/reliability-1.25.2-evidence/validation/startup-exact-layout/result.json
T

1249 lines
43 KiB
JSON

{
"success": true,
"elapsedMs": 1123,
"label": "exact-layout",
"timeoutMs": 15000,
"variant": "temp-original-cwd",
"invocation": "C:\\Users\\wangy\\AppData\\Local\\Temp\\AgentWorkbench-Engine-Runs\\44135347-af79-4f0e-b69b-14ce3e071842",
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\release-bf42f32d-eeac-47aa-8fa5-5167208d9035\\workspaces\\checkouts\\w-9c0e368060e03cf55fc5",
"scope": "Diagnostic only, no product wait change, no remote model; original pure prompt experiment and catalogue.",
"ready": {
"schemaVersion": 1,
"nonce": "7436810d-da8e-4453-b36e-d76c2d30d059",
"pid": 23132,
"signal": "appReady",
"readyAt": "2026-11-04T13:20:43.252Z",
"owner": {
"sessionId": "e1436cd4-baef-4e7a-b3cf-31d694e7e2f8",
"projectId": "fa74824d-8462-4f5b-a777-b5dc501e5a21",
"taskId": "6b275b3b-17fe-4021-97b3-9a549af12e9f",
"runId": "fb6fc5c6-f68b-45d4-985f-42a1dab9444e",
"jobId": "a4eeabf1-31a9-4a96-a7ad-5efa782fb2f9"
},
"sdkSessionId": "ec8e4440-fd21-46d9-97d8-a220e711e676",
"catalogue": [
{
"name": "diagnose_environment",
"description": "只读诊断当前Task工程的Node/npm或Python/pytest、声明/锁文件和实际依赖,不安装、不执行项目代码。缺依赖属于环境问题,应先处理;返回所属原诊断工件。",
"parameters": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
{
"name": "index_project",
"description": "为当前项目建立有文件SHA256的增量符号/导入索引。JS/TS/React来自静态AST,Python是声明候选;返回范围、摘要和完整工件,不执行项目代码。动态绑定和路径别名未核对。",
"parameters": {
"type": "object",
"properties": {}
}
},
{
"name": "inspect_project",
"description": "静态识别工程语言、入口、规则、npm脚本、Python测试声明和只读Git基线;返回有界源码指纹,不执行项目代码。",
"parameters": {
"type": "object",
"properties": {}
}
},
{
"name": "inspect_session",
"description": "读取当前工作台会话的错误来源、模型请求、终端环境、近期工具结果和最新提案状态。解释工作台报错或执行状态时优先使用;只读取本地记录,不搜索项目,不联网,不返回密钥。",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "list_files",
"description": "查看当前项目的相对文件路径。依赖、版本目录、链接及常见凭据文件不会加入列表。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"depth": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"path"
]
}
},
{
"name": "plan_checks",
"description": "为当前Task封存已识别的npm或Python检查范围。返回plan id、检查目标、实际解释器身份和源码指纹;不执行项目检查,项目解释器探测等待确认。",
"parameters": {
"type": "object",
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 6,
"description": "可选:已识别test/typecheck/check/lint/build或python:test、python:compile;混合项目缺省保留npm范围。"
}
}
}
},
{
"name": "plan_environment",
"description": "为工作台管理的独立工作区封存npm ci准备计划;固定Node/npm、锁文件、目标、注册源、脚本策略、缓存与时限。只准备计划,不执行。默认跳过生命周期脚本。原项目请先让用户在任务记录创建并打开独立工作区。",
"parameters": {
"type": "object",
"properties": {
"registry": {
"type": "string"
},
"scripts": {
"type": "string",
"enum": [
"skip",
"allow"
]
},
"offline": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
{
"name": "prepare_change_set",
"description": "把当前Task的1到32份待审查文件提案按change_ids封存为统一审查批次。原/新字节快照和Git基线持久保存;不写盘。用户在改动面板确认后才应用;不能自动应用或重放未知批次。",
"parameters": {
"type": "object",
"properties": {
"change_ids": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"uniqueItems": true,
"items": {
"type": "string"
}
}
},
"required": [
"change_ids"
]
}
},
{
"name": "prepare_environment",
"description": "请求用户明确确认后,只执行一次原依赖准备计划。输入变化或原计划已用则拒绝,不自动重试;保留真实日志/退出码/环境身份。安装成功不代表检查通过。",
"parameters": {
"type": "object",
"properties": {
"plan_id": {
"type": "string"
},
"fingerprint": {
"type": "string"
}
},
"required": [
"plan_id",
"fingerprint"
],
"additionalProperties": false
}
},
{
"name": "propose_file",
"description": "提出一个文本文件的完整新内容。只产生待审查提案,不写入项目;由用户查看差异后应用。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"reason": {
"type": "string"
},
"base_sha256": {
"type": [
"string",
"null"
],
"description": "如已读取文件,可传入该文件的 SHA256 检查读取后变化;新文件为 null。"
}
},
"required": [
"path",
"content",
"reason"
]
}
},
{
"name": "propose_patch",
"description": "按读取时的原文件SHA256,用唯一old_text锚点提出精确替换。所有替换基于同一原文且不得重叠;自动保留UTF-8 BOM和统一换行格式。只保存待审查提案,不写盘;哈希变化或锚点不唯一拒绝。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"base_sha256": {
"type": "string",
"pattern": "^[a-fA-F0-9]{64}$"
},
"reason": {
"type": "string"
},
"edits": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"items": {
"type": "object",
"properties": {
"old_text": {
"type": "string",
"minLength": 1
},
"new_text": {
"type": "string"
}
},
"required": [
"old_text",
"new_text"
],
"additionalProperties": false
}
}
},
"required": [
"path",
"base_sha256",
"reason",
"edits"
]
}
},
{
"name": "query_code",
"description": "在当前工程索引中按名称或文件路径查找符号、导入和文件,自动核对增量变化。返回实际文件/行/SHA256及证据方法;定位后用read_file读取必要代码。无结果只代表当前范围。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 200
},
"kind": {
"type": "string",
"enum": [
"all",
"symbols",
"imports",
"files"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 60
}
},
"required": [
"query"
]
}
},
{
"name": "read_artifact",
"description": "读取当前会话保存的实际执行工件或检查日志,校验归属和SHA256。offset/limit分页,默认2000字符,实际页按当前完整请求预算缩小;用返回的next_offset读取下一页,已读区间不要重复。完整原工件保留。优先读取实际结果/日志,不反复扫描更新的历史索引;不重新执行检查。",
"parameters": {
"type": "object",
"properties": {
"artifact_id": {
"type": "string"
},
"offset": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16000
}
},
"required": [
"artifact_id"
]
}
},
{
"name": "read_file",
"description": "读取项目UTF-8行与SHA256(最多300行),按预算分页。续读保持range_start_line/range_end_line,以next_offset为offset并传expected_sha256核对版本;范围读完用next_start_line。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"start_line": {
"type": "integer"
},
"end_line": {
"type": "integer"
},
"offset": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16000
},
"expected_sha256": {
"type": "string",
"pattern": "^[a-fA-F0-9]{64}$"
}
},
"required": [
"path"
]
}
},
{
"name": "run_checks",
"description": "请求用户确认后执行plan_checks产生的检查计划。保存独立job、实际退出码、测试数量和日志工件;过期计划不执行,未报告测试数量不能记通过。",
"parameters": {
"type": "object",
"properties": {
"plan_id": {
"type": "string"
}
},
"required": [
"plan_id"
]
}
},
{
"name": "search_files",
"description": "在当前项目的文本文件中按字面内容检索。结果声明已搜索文件数与数量上限。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"case_sensitive": {
"type": "boolean"
}
},
"required": [
"query"
]
}
}
],
"catalogueSha256": "ada410017dd1d828cac0390c4caa6d41b34e977c7d498ed6a9e7745f56a444df",
"providers": [
"agent-workbench"
],
"promptExperimentSha256": "40ed62dc4db453c1c8f93fce0a99d4c0a7c1d61a6d87ac53c55c20b16e559035"
},
"observations": [
{
"state": "starting",
"elapsedMs": 234,
"pid": 23132
},
{
"state": "ownership",
"elapsedMs": 649,
"pid": 23132
},
{
"state": "initializing",
"elapsedMs": 914
},
{
"state": "ready",
"elapsedMs": 1123
}
],
"report": {
"schemaVersion": 1,
"scope": "deepseek-workbench-engine-v1",
"owner": {
"sessionId": "e1436cd4-baef-4e7a-b3cf-31d694e7e2f8",
"projectId": "fa74824d-8462-4f5b-a777-b5dc501e5a21",
"taskId": "6b275b3b-17fe-4021-97b3-9a549af12e9f",
"runId": "fb6fc5c6-f68b-45d4-985f-42a1dab9444e",
"jobId": "a4eeabf1-31a9-4a96-a7ad-5efa782fb2f9"
},
"sdkSessionId": "ec8e4440-fd21-46d9-97d8-a220e711e676",
"installationSha256": "289e1e930be588264d74414f32ccc1638b1a1d4ff6723b2027cfae1b90d4584e",
"startedAt": "2026-11-04T13:20:42.564Z",
"responses": [
{
"method": "initialize",
"params": {
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\release-bf42f32d-eeac-47aa-8fa5-5167208d9035\\workspaces\\checkouts\\w-9c0e368060e03cf55fc5",
"provider": "agent-workbench",
"model": "owned-readiness-probe",
"maxTokens": 2048
},
"result": {
"serverInfo": {
"name": "deepseek-harness-sdk-runtime",
"version": "0.0.1"
}
},
"trace": {
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"id": 1,
"method": "initialize",
"parametersSha256": "6e98afe6d48fc622b0ac35e0fffc8962a3c2b0e7b2909c046a6933d68b258587",
"startedAt": "2026-11-04T13:20:43.474Z",
"finishedAt": "2026-11-04T13:20:43.475Z",
"status": "completed",
"dispatched": true,
"resultSha256": "eb9d4fa4bc4e7298228adf7affacab34a046b92aa168f8a77feeda8bbd740b5e",
"errorCode": null
}
},
{
"method": "session/working-directory/get",
"params": {
"sessionId": "ec8e4440-fd21-46d9-97d8-a220e711e676"
},
"result": {
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\release-bf42f32d-eeac-47aa-8fa5-5167208d9035\\workspaces\\checkouts\\w-9c0e368060e03cf55fc5"
},
"trace": {
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"id": 2,
"method": "session/working-directory/get",
"parametersSha256": "977b49ba54a037667c43dd1f5a44692d16fcfb752679ea41c0efb77bb1b32fcf",
"startedAt": "2026-11-04T13:20:43.575Z",
"finishedAt": "2026-11-04T13:20:43.579Z",
"status": "completed",
"dispatched": true,
"resultSha256": "84541e30a2146b218d9f4f0b8cd166dd6f088616441c834753eed7caa99ab05d",
"errorCode": null
}
}
],
"notifications": [],
"unownedNotifications": [],
"rejectedServerRequests": [],
"bridgeRequests": [],
"cleanup": {
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"pid": 23132,
"rootExited": true,
"forced": false,
"killError": null,
"exit": {
"code": 0,
"signal": null
},
"scope": "owned-stdio-process",
"finishedAt": "2026-11-04T13:20:43.601Z",
"treeConfirmed": true,
"remainingProcesses": []
},
"modelRequests": 0,
"toolRequests": 0,
"launchInputs": {
"plugin": {
"path": "C:\\Users\\wangy\\AppData\\Local\\Temp\\AgentWorkbench-Engine-Runs\\44135347-af79-4f0e-b69b-14ce3e071842\\bridge.mjs",
"bytes": 6614,
"sha256": "b535eebb25cdaa9c5268737c4ead0dae24a6ec71a43f534bd0fdb45fb20d5117"
},
"patch": {
"path": "C:\\Users\\wangy\\AppData\\Local\\Temp\\AgentWorkbench-Engine-Runs\\44135347-af79-4f0e-b69b-14ce3e071842\\bridge.patch.json",
"bytes": 8895,
"sha256": "5d953ac9cf393d79d95c048cdcef8acb88db9f3bf6763fbec69ee092c89d84ef"
},
"cwd": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\release-bf42f32d-eeac-47aa-8fa5-5167208d9035\\workspaces\\checkouts\\w-9c0e368060e03cf55fc5",
"disabledPlugins": [
"tool-fs",
"tool-working-directory",
"persistent-bash",
"persistent-pwsh",
"terminal-bash",
"terminal-pwsh",
"llm-deepseek",
"llm-retry"
],
"catalogue": [
{
"name": "diagnose_environment",
"description": "只读诊断当前Task工程的Node/npm或Python/pytest、声明/锁文件和实际依赖,不安装、不执行项目代码。缺依赖属于环境问题,应先处理;返回所属原诊断工件。",
"parameters": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
{
"name": "index_project",
"description": "为当前项目建立有文件SHA256的增量符号/导入索引。JS/TS/React来自静态AST,Python是声明候选;返回范围、摘要和完整工件,不执行项目代码。动态绑定和路径别名未核对。",
"parameters": {
"type": "object",
"properties": {}
}
},
{
"name": "inspect_project",
"description": "静态识别工程语言、入口、规则、npm脚本、Python测试声明和只读Git基线;返回有界源码指纹,不执行项目代码。",
"parameters": {
"type": "object",
"properties": {}
}
},
{
"name": "inspect_session",
"description": "读取当前工作台会话的错误来源、模型请求、终端环境、近期工具结果和最新提案状态。解释工作台报错或执行状态时优先使用;只读取本地记录,不搜索项目,不联网,不返回密钥。",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "list_files",
"description": "查看当前项目的相对文件路径。依赖、版本目录、链接及常见凭据文件不会加入列表。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"depth": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"path"
]
}
},
{
"name": "plan_checks",
"description": "为当前Task封存已识别的npm或Python检查范围。返回plan id、检查目标、实际解释器身份和源码指纹;不执行项目检查,项目解释器探测等待确认。",
"parameters": {
"type": "object",
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 6,
"description": "可选:已识别test/typecheck/check/lint/build或python:test、python:compile;混合项目缺省保留npm范围。"
}
}
}
},
{
"name": "plan_environment",
"description": "为工作台管理的独立工作区封存npm ci准备计划;固定Node/npm、锁文件、目标、注册源、脚本策略、缓存与时限。只准备计划,不执行。默认跳过生命周期脚本。原项目请先让用户在任务记录创建并打开独立工作区。",
"parameters": {
"type": "object",
"properties": {
"registry": {
"type": "string"
},
"scripts": {
"type": "string",
"enum": [
"skip",
"allow"
]
},
"offline": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
{
"name": "prepare_change_set",
"description": "把当前Task的1到32份待审查文件提案按change_ids封存为统一审查批次。原/新字节快照和Git基线持久保存;不写盘。用户在改动面板确认后才应用;不能自动应用或重放未知批次。",
"parameters": {
"type": "object",
"properties": {
"change_ids": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"uniqueItems": true,
"items": {
"type": "string"
}
}
},
"required": [
"change_ids"
]
}
},
{
"name": "prepare_environment",
"description": "请求用户明确确认后,只执行一次原依赖准备计划。输入变化或原计划已用则拒绝,不自动重试;保留真实日志/退出码/环境身份。安装成功不代表检查通过。",
"parameters": {
"type": "object",
"properties": {
"plan_id": {
"type": "string"
},
"fingerprint": {
"type": "string"
}
},
"required": [
"plan_id",
"fingerprint"
],
"additionalProperties": false
}
},
{
"name": "propose_file",
"description": "提出一个文本文件的完整新内容。只产生待审查提案,不写入项目;由用户查看差异后应用。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"reason": {
"type": "string"
},
"base_sha256": {
"type": [
"string",
"null"
],
"description": "如已读取文件,可传入该文件的 SHA256 检查读取后变化;新文件为 null。"
}
},
"required": [
"path",
"content",
"reason"
]
}
},
{
"name": "propose_patch",
"description": "按读取时的原文件SHA256,用唯一old_text锚点提出精确替换。所有替换基于同一原文且不得重叠;自动保留UTF-8 BOM和统一换行格式。只保存待审查提案,不写盘;哈希变化或锚点不唯一拒绝。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"base_sha256": {
"type": "string",
"pattern": "^[a-fA-F0-9]{64}$"
},
"reason": {
"type": "string"
},
"edits": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"items": {
"type": "object",
"properties": {
"old_text": {
"type": "string",
"minLength": 1
},
"new_text": {
"type": "string"
}
},
"required": [
"old_text",
"new_text"
],
"additionalProperties": false
}
}
},
"required": [
"path",
"base_sha256",
"reason",
"edits"
]
}
},
{
"name": "query_code",
"description": "在当前工程索引中按名称或文件路径查找符号、导入和文件,自动核对增量变化。返回实际文件/行/SHA256及证据方法;定位后用read_file读取必要代码。无结果只代表当前范围。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 200
},
"kind": {
"type": "string",
"enum": [
"all",
"symbols",
"imports",
"files"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 60
}
},
"required": [
"query"
]
}
},
{
"name": "read_artifact",
"description": "读取当前会话保存的实际执行工件或检查日志,校验归属和SHA256。offset/limit分页,默认2000字符,实际页按当前完整请求预算缩小;用返回的next_offset读取下一页,已读区间不要重复。完整原工件保留。优先读取实际结果/日志,不反复扫描更新的历史索引;不重新执行检查。",
"parameters": {
"type": "object",
"properties": {
"artifact_id": {
"type": "string"
},
"offset": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16000
}
},
"required": [
"artifact_id"
]
}
},
{
"name": "read_file",
"description": "读取项目UTF-8行与SHA256(最多300行),按预算分页。续读保持range_start_line/range_end_line,以next_offset为offset并传expected_sha256核对版本;范围读完用next_start_line。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"start_line": {
"type": "integer"
},
"end_line": {
"type": "integer"
},
"offset": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16000
},
"expected_sha256": {
"type": "string",
"pattern": "^[a-fA-F0-9]{64}$"
}
},
"required": [
"path"
]
}
},
{
"name": "run_checks",
"description": "请求用户确认后执行plan_checks产生的检查计划。保存独立job、实际退出码、测试数量和日志工件;过期计划不执行,未报告测试数量不能记通过。",
"parameters": {
"type": "object",
"properties": {
"plan_id": {
"type": "string"
}
},
"required": [
"plan_id"
]
}
},
{
"name": "search_files",
"description": "在当前项目的文本文件中按字面内容检索。结果声明已搜索文件数与数量上限。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"case_sensitive": {
"type": "boolean"
}
},
"required": [
"query"
]
}
}
],
"catalogueSha256": "ada410017dd1d828cac0390c4caa6d41b34e977c7d498ed6a9e7745f56a444df"
},
"process": {
"pid": 23132,
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"startedAt": "2026-11-04T13:20:42.691Z",
"ownership": "one-process-per-engine-run",
"rootCreatedAt": "2026-11-04T13:20:42.6830310Z",
"descendants": [
{
"pid": 50184,
"parentPid": 23132,
"createdAt": "2026-11-04T13:20:42.6933010Z",
"executable": "C:\\WINDOWS\\system32\\conhost.exe"
}
],
"treeRemainingPids": [],
"treeObservedAt": "2026-11-04T13:20:43.991Z"
},
"readiness": {
"schemaVersion": 1,
"nonce": "7436810d-da8e-4453-b36e-d76c2d30d059",
"pid": 23132,
"signal": "appReady",
"readyAt": "2026-11-04T13:20:43.252Z",
"owner": {
"sessionId": "e1436cd4-baef-4e7a-b3cf-31d694e7e2f8",
"projectId": "fa74824d-8462-4f5b-a777-b5dc501e5a21",
"taskId": "6b275b3b-17fe-4021-97b3-9a549af12e9f",
"runId": "fb6fc5c6-f68b-45d4-985f-42a1dab9444e",
"jobId": "a4eeabf1-31a9-4a96-a7ad-5efa782fb2f9"
},
"sdkSessionId": "ec8e4440-fd21-46d9-97d8-a220e711e676",
"catalogue": [
{
"name": "diagnose_environment",
"description": "只读诊断当前Task工程的Node/npm或Python/pytest、声明/锁文件和实际依赖,不安装、不执行项目代码。缺依赖属于环境问题,应先处理;返回所属原诊断工件。",
"parameters": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
{
"name": "index_project",
"description": "为当前项目建立有文件SHA256的增量符号/导入索引。JS/TS/React来自静态AST,Python是声明候选;返回范围、摘要和完整工件,不执行项目代码。动态绑定和路径别名未核对。",
"parameters": {
"type": "object",
"properties": {}
}
},
{
"name": "inspect_project",
"description": "静态识别工程语言、入口、规则、npm脚本、Python测试声明和只读Git基线;返回有界源码指纹,不执行项目代码。",
"parameters": {
"type": "object",
"properties": {}
}
},
{
"name": "inspect_session",
"description": "读取当前工作台会话的错误来源、模型请求、终端环境、近期工具结果和最新提案状态。解释工作台报错或执行状态时优先使用;只读取本地记录,不搜索项目,不联网,不返回密钥。",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"name": "list_files",
"description": "查看当前项目的相对文件路径。依赖、版本目录、链接及常见凭据文件不会加入列表。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"depth": {
"type": "integer",
"minimum": 0,
"maximum": 10
}
},
"required": [
"path"
]
}
},
{
"name": "plan_checks",
"description": "为当前Task封存已识别的npm或Python检查范围。返回plan id、检查目标、实际解释器身份和源码指纹;不执行项目检查,项目解释器探测等待确认。",
"parameters": {
"type": "object",
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 6,
"description": "可选:已识别test/typecheck/check/lint/build或python:test、python:compile;混合项目缺省保留npm范围。"
}
}
}
},
{
"name": "plan_environment",
"description": "为工作台管理的独立工作区封存npm ci准备计划;固定Node/npm、锁文件、目标、注册源、脚本策略、缓存与时限。只准备计划,不执行。默认跳过生命周期脚本。原项目请先让用户在任务记录创建并打开独立工作区。",
"parameters": {
"type": "object",
"properties": {
"registry": {
"type": "string"
},
"scripts": {
"type": "string",
"enum": [
"skip",
"allow"
]
},
"offline": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
{
"name": "prepare_change_set",
"description": "把当前Task的1到32份待审查文件提案按change_ids封存为统一审查批次。原/新字节快照和Git基线持久保存;不写盘。用户在改动面板确认后才应用;不能自动应用或重放未知批次。",
"parameters": {
"type": "object",
"properties": {
"change_ids": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"uniqueItems": true,
"items": {
"type": "string"
}
}
},
"required": [
"change_ids"
]
}
},
{
"name": "prepare_environment",
"description": "请求用户明确确认后,只执行一次原依赖准备计划。输入变化或原计划已用则拒绝,不自动重试;保留真实日志/退出码/环境身份。安装成功不代表检查通过。",
"parameters": {
"type": "object",
"properties": {
"plan_id": {
"type": "string"
},
"fingerprint": {
"type": "string"
}
},
"required": [
"plan_id",
"fingerprint"
],
"additionalProperties": false
}
},
{
"name": "propose_file",
"description": "提出一个文本文件的完整新内容。只产生待审查提案,不写入项目;由用户查看差异后应用。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
},
"reason": {
"type": "string"
},
"base_sha256": {
"type": [
"string",
"null"
],
"description": "如已读取文件,可传入该文件的 SHA256 检查读取后变化;新文件为 null。"
}
},
"required": [
"path",
"content",
"reason"
]
}
},
{
"name": "propose_patch",
"description": "按读取时的原文件SHA256,用唯一old_text锚点提出精确替换。所有替换基于同一原文且不得重叠;自动保留UTF-8 BOM和统一换行格式。只保存待审查提案,不写盘;哈希变化或锚点不唯一拒绝。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"base_sha256": {
"type": "string",
"pattern": "^[a-fA-F0-9]{64}$"
},
"reason": {
"type": "string"
},
"edits": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"items": {
"type": "object",
"properties": {
"old_text": {
"type": "string",
"minLength": 1
},
"new_text": {
"type": "string"
}
},
"required": [
"old_text",
"new_text"
],
"additionalProperties": false
}
}
},
"required": [
"path",
"base_sha256",
"reason",
"edits"
]
}
},
{
"name": "query_code",
"description": "在当前工程索引中按名称或文件路径查找符号、导入和文件,自动核对增量变化。返回实际文件/行/SHA256及证据方法;定位后用read_file读取必要代码。无结果只代表当前范围。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 200
},
"kind": {
"type": "string",
"enum": [
"all",
"symbols",
"imports",
"files"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 60
}
},
"required": [
"query"
]
}
},
{
"name": "read_artifact",
"description": "读取当前会话保存的实际执行工件或检查日志,校验归属和SHA256。offset/limit分页,默认2000字符,实际页按当前完整请求预算缩小;用返回的next_offset读取下一页,已读区间不要重复。完整原工件保留。优先读取实际结果/日志,不反复扫描更新的历史索引;不重新执行检查。",
"parameters": {
"type": "object",
"properties": {
"artifact_id": {
"type": "string"
},
"offset": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16000
}
},
"required": [
"artifact_id"
]
}
},
{
"name": "read_file",
"description": "读取项目UTF-8行与SHA256(最多300行),按预算分页。续读保持range_start_line/range_end_line,以next_offset为offset并传expected_sha256核对版本;范围读完用next_start_line。",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"start_line": {
"type": "integer"
},
"end_line": {
"type": "integer"
},
"offset": {
"type": "integer",
"minimum": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16000
},
"expected_sha256": {
"type": "string",
"pattern": "^[a-fA-F0-9]{64}$"
}
},
"required": [
"path"
]
}
},
{
"name": "run_checks",
"description": "请求用户确认后执行plan_checks产生的检查计划。保存独立job、实际退出码、测试数量和日志工件;过期计划不执行,未报告测试数量不能记通过。",
"parameters": {
"type": "object",
"properties": {
"plan_id": {
"type": "string"
}
},
"required": [
"plan_id"
]
}
},
{
"name": "search_files",
"description": "在当前项目的文本文件中按字面内容检索。结果声明已搜索文件数与数量上限。",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"case_sensitive": {
"type": "boolean"
}
},
"required": [
"query"
]
}
}
],
"catalogueSha256": "ada410017dd1d828cac0390c4caa6d41b34e977c7d498ed6a9e7745f56a444df",
"providers": [
"agent-workbench"
],
"promptExperimentSha256": "40ed62dc4db453c1c8f93fce0a99d4c0a7c1d61a6d87ac53c55c20b16e559035",
"artifact": {
"path": "C:\\Users\\wangy\\AppData\\Local\\Temp\\AgentWorkbench-Engine-Runs\\44135347-af79-4f0e-b69b-14ce3e071842\\ready.json",
"bytes": 7525,
"sha256": "b2f6cd7f1ee50155fb34ed2d27f3195677b8182aa1dc460aab8c8cb1b4971686"
}
},
"trace": [
{
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"id": 1,
"method": "initialize",
"parametersSha256": "6e98afe6d48fc622b0ac35e0fffc8962a3c2b0e7b2909c046a6933d68b258587",
"startedAt": "2026-11-04T13:20:43.474Z",
"finishedAt": "2026-11-04T13:20:43.475Z",
"status": "completed",
"dispatched": true,
"resultSha256": "eb9d4fa4bc4e7298228adf7affacab34a046b92aa168f8a77feeda8bbd740b5e",
"errorCode": null
},
{
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"id": 2,
"method": "session/working-directory/get",
"parametersSha256": "977b49ba54a037667c43dd1f5a44692d16fcfb752679ea41c0efb77bb1b32fcf",
"startedAt": "2026-11-04T13:20:43.575Z",
"finishedAt": "2026-11-04T13:20:43.579Z",
"status": "completed",
"dispatched": true,
"resultSha256": "84541e30a2146b218d9f4f0b8cd166dd6f088616441c834753eed7caa99ab05d",
"errorCode": null
},
{
"connectionId": "d9e28a1b-4400-4cdd-a5bd-1eea66659d2c",
"id": 3,
"method": "shutdown",
"parametersSha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"startedAt": "2026-11-04T13:20:43.580Z",
"finishedAt": "2026-11-04T13:20:43.581Z",
"status": "completed",
"dispatched": true,
"resultSha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"errorCode": null
}
],
"stderr": "",
"finishedAt": "2026-11-04T13:20:44.092Z",
"status": "closed"
},
"realModelRequests": 0
}