test: keep deep REA fixture inside SQLite path limits

This commit is contained in:
Agent Workbench Dev
2026-10-30 05:57:34 +08:00
parent d6bbe25a9e
commit fc076c6cdc
4 changed files with 216 additions and 1 deletions
+2
View File
@@ -18,4 +18,6 @@ MCP/研究16项专项通过,覆盖分片UTF-8、最终响应、反向请求拒
新增深数据目录回归先失败,再为所属job分配较短输出目录;17项MCP/研究专项、构建及原深解压目录内三项真实REA复验通过,见[深路径实际分析](rea-engine-deep-export-validation.json)。专项第二轮中的测试变量拼写错误已校正;不把原失败或未运行的243项记为通过。修复后的不可变包与最终244项独立源码需另行验收。
独立修复源码的实际三项REA通过,244项回归为243通过/1失败,见[原完整回归](rea-engine-source-tests-initial-failure.json)。唯一失败发生在新夹具打开SQLite之前:固定增加4级目录在深解压路径超过SQLite自身范围。夹具按实际checkout补足165字符并为SQLite保留余量,仍断言REA必须使用所属短输出目录;17项专项复验通过。运行源码与编译文件未因夹具校正变化,新不可变源码仍将执行完整244项。
正式4318当前仍保留1.7.0/PID23080及原Provider。原真实任务在1.7.0的5次响应后no_progress、无提案的失败保留;本轮源码、接口夹具或静态分析通过均不代表真实模型已经交付工程,也不代表Purge、其他引擎、Electron安装端或手机配对完成。
@@ -0,0 +1,207 @@
{
"success": false,
"version": "1.8.0",
"stage": "tests",
"testedAt": "2026-10-29T21:53:41.503Z",
"sourceRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source",
"tests": {
"tests": 244,
"pass": 243,
"fail": 1,
"cancelled": 0,
"skipped": 0,
"todo": 0
},
"failure": "# Subtest: deep Windows data directories keep REA output within the external path allowance and retain owned evidence\nnot ok 178 - deep Windows data directories keep REA output within the external path allowance and retain owned evidence\n ---\n duration_ms: 798.4211\n type: 'test'\n location: 'D:\\\\Ai-project\\\\REA逆向\\\\Agent-Workbench\\\\.qa\\\\source-check-ff981b6813e54b0ba35a3145634baffd\\\\Agent-Workbench-1.8.0-source\\\\tests\\\\research.test.mjs:44:1'\n failureType: 'testCodeFailure'\n error: 'unable to open database file'\n code: 'ERR_SQLITE_ERROR'\n stack: |-\n new StateDatabase (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/source-check-ff981b6813e54b0ba35a3145634baffd/Agent-Workbench-1.8.0-source/src/core/storage/state-database.mjs:12:21)\n Store.ensureStorage (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/source-check-ff981b6813e54b0ba35a3145634baffd/Agent-Workbench-1.8.0-source/src/server/store.mjs:104:20)\n new Store (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/source-check-ff981b6813e54b0ba35a3145634baffd/Agent-Workbench-1.8.0-source/src/server/store.mjs:86:16)\n researchFixture (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/source-check-ff981b6813e54b0ba35a3145634baffd/Agent-Workbench-1.8.0-source/tests/research.test.mjs:19:19)\n TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/source-check-ff981b6813e54b0ba35a3145634baffd/Agent-Workbench-1.8.0-source/tests/research.test.mjs:45:13)\n Test.runInAsyncScope (node:async_hooks:227:14)\n Test.run (node:internal/test_runner/test:1402:25)\n Test.start (node:internal/test_runner/test:1262:17)\n startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17)\n ...\n",
"log": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source\\tests.tap",
"bytes": 66173,
"sha256": "aa1b2f0d13fda5080ddc1f04a19c4a2ece9af4823cc88285943f0fc447bac506"
},
"actualRea": {
"success": true,
"version": "1.8.0",
"testedAt": "2026-10-29T21:43:31.645Z",
"directory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source\\.qa\\rea-integration-42b6b188-cb1d-42fb-89bc-d60a7187904e",
"appDirectory": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source",
"installation": {
"status": "available",
"version": "6.8.0",
"packageRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source\\runtime\\node_modules\\rea-agents",
"entry": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source\\runtime\\node_modules\\rea-agents\\scripts\\rea.mjs",
"sha256": "67ca7682986ff2b90678e1797e625caca6026a1732d9cad1a1088253c7bb45e5"
},
"metadata": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source\\runtime\\node_modules\\rea-agents\\package.json",
"sha256": "b0fc212f6bea9b4ee6e2b3ab0b52dd95402c229da3b8652127e5f131c3445b39"
},
"protocolVersion": "2025-03-26",
"mcpEntry": {
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\source-check-ff981b6813e54b0ba35a3145634baffd\\Agent-Workbench-1.8.0-source\\runtime\\node_modules\\rea-agents\\dist\\mcp\\main.js",
"sha256": "2af98f5f6190a3374218c283eba99c60822dbf7c093d2b1ba7dd31c5f54c56c9"
},
"node": {
"path": "C:\\Program Files\\nodejs\\node.exe",
"version": "24.22.1"
},
"inputSchemaProfile": "compact",
"outputSchemaProfile": "off",
"operations": [
{
"id": "javascript",
"name": "analyze_javascript_application",
"extensions": [
".asar"
],
"label": "JavaScript / Electron静态分析"
},
{
"id": "pe-imports",
"name": "inspect_pe_imports",
"extensions": [
".exe",
".dll"
],
"label": "PE导入表"
},
{
"id": "pe-resources",
"name": "inspect_pe_resources",
"extensions": [
".exe",
".dll"
],
"label": "PE静态资源"
}
],
"identityScope": "package declaration, entry files and actual MCP handshake; not a full installation equivalence claim"
},
"taskId": "8c38e3f9-6dac-47c4-a043-2b9ef472c6b8",
"sessionId": "278416ac-1f5e-401a-937c-f0ece07699f6",
"modelRequests": 0,
"targetExecution": false,
"results": [
{
"operation": "javascript",
"targetSha256": "3143ad7793c6a66e24e3b9dceb9c1d3b8ea522a775bef2b3c352586e6287eac7",
"bytes": 631,
"evidenceId": "ev_a3be0122118a7261d18b4ea1f84d755afea54ba95b617c09181dd3157488e007",
"originalOperation": "analyze_javascript_application",
"normalizedFields": [
"format",
"graph",
"input_path",
"integrity_contradictions",
"inventory_graph_sha256",
"inventory_manifest_id",
"limitations",
"root_artifact_sha256",
"route_inventory",
"semantic_graph",
"statistics",
"summary"
],
"bundleSha256": "6613688f67b8a033957ac98a6c5e2109f6f69f4affd8d6b83f02eff0160d1334",
"evidenceSha256": "8b8525de8023142dbb17139df5024c53bb6379dfb7ff702a076d874f47bc6dcd",
"rawSha256": "8157e69ebd911448f0dbc26e41f3594b7c0a887f835fb67c5d53010e5e2ae6ba",
"advertisedTools": 229,
"cleanup": {
"connectionId": "b913d5e0-b2a7-4203-aec9-30dcb24414e6",
"pid": 48004,
"rootExited": true,
"forced": false,
"killError": null,
"exit": {
"code": 0,
"signal": null
},
"scope": "owned-stdio-process",
"finishedAt": "2026-10-29T21:43:27.629Z"
},
"reusedFromJobId": "9830e577-0d6f-445a-8d8d-dc3456f7410e",
"verification": "actual-REA-6.8.0; owned inert artifacts"
},
{
"operation": "pe-imports",
"targetSha256": "7102754492d544b471ff84afdb3bbec983824049e4c2118bd0e240f8e7cbe973",
"bytes": 1024,
"evidenceId": "ev_c85122729cabd1a5c007796534d0f3c6ac8ae9ffa2d617d00434782391c52a8d",
"originalOperation": "inspect_pe_imports",
"normalizedFields": [
"architecture",
"artifact",
"bits",
"coverage",
"delay_import_directory",
"delay_imports",
"format",
"imphash",
"import_directory",
"imports",
"issues",
"limitations",
"machine"
],
"bundleSha256": "e30488384299d530beb61f9d4202f8d3ccc7e0df77d59b7f293e99550373caa3",
"evidenceSha256": "ab43c61b7e0911e4c781b46c6eab7715538bafcc79ba9a2789b09b964f305c83",
"rawSha256": "623988f504c175537362ec4dbafc5375a06a295e45a75bac6ff7fef1614a62fd",
"advertisedTools": 229,
"cleanup": {
"connectionId": "00997402-a647-46e7-bf55-74317da911eb",
"pid": 19084,
"rootExited": true,
"forced": false,
"killError": null,
"exit": {
"code": 0,
"signal": null
},
"scope": "owned-stdio-process",
"finishedAt": "2026-10-29T21:43:29.591Z"
},
"reusedFromJobId": "a399b693-dd36-4871-9465-ac85226d9eaa",
"verification": "actual-REA-6.8.0; owned inert artifacts"
},
{
"operation": "pe-resources",
"targetSha256": "7102754492d544b471ff84afdb3bbec983824049e4c2118bd0e240f8e7cbe973",
"bytes": 1024,
"evidenceId": "ev_7e5a9b65b6b3c5b6290f0e3d6ac822da9cec743e9a21eb8f399a3b7e0a81fed8",
"originalOperation": "inspect_pe_resources",
"normalizedFields": [
"artifact",
"coverage",
"directories",
"directory",
"format",
"icon_groups",
"limitations",
"machine",
"resources"
],
"bundleSha256": "2bd8cc87b6a0a90ba77fe105723dfc9fd51b08e1b609800b168ba8a190b9db26",
"evidenceSha256": "833270f0466cb512a5144cbcd4e184f2b847fc0e6ff628d44fab73250118a68d",
"rawSha256": "23701e48f0b5d5b1c3811172bfb063eec3409d1498a5b2e87bf4b06ecf5562df",
"advertisedTools": 229,
"cleanup": {
"connectionId": "1f2d30c5-df25-4599-8720-7ed15549d24f",
"pid": 29536,
"rootExited": true,
"forced": false,
"killError": null,
"exit": {
"code": 0,
"signal": null
},
"scope": "owned-stdio-process",
"finishedAt": "2026-10-29T21:43:31.491Z"
},
"reusedFromJobId": "5524530a-6af6-455a-ad1f-7cdd6160d52d",
"verification": "actual-REA-6.8.0; owned inert artifacts"
}
],
"credentialsHandling": "No model connection, login state, key lookup or client MCP configuration changes."
},
"outcome": "Deep-path regression fixture exceeded the separate SQLite Windows path boundary before it reached REA; immutable original test and artifact outputs are retained."
}
+3
View File
@@ -252,3 +252,6 @@
- 首轮独立源码离线安装及6份构建对照通过,但实际REA导出失败,完整243项尚未运行。原export返回“Evidence output directory does not exist”,该目录实测存在、长度251字符,完整导出路径超过300字符;原响应、传输、根进程正常退出及失败源码保留。先补Windows深数据目录回归,再限定所属REA临时输出路径,不修改原REA包或忽略证据校验。
- 深目录回归修复前失败;修复后首轮16/17,新增测试最后用量断言引用session而非f.session,校正后17/17与构建通过。原深解压目录使用包内REA的三项实际分析、原Evidence、复用和根进程退出全部通过;最终244项源码验收将使用新不可变包,原失败和旧包保留。
- 修复包便携10773份、源码8978份完整归档及便携三项实际REA通过;独立源码实际REA也通过,完整244项为243通过/1失败。唯一失败是新增深目录夹具固定追加4段,在解压源码下让SQLite自身超过路径范围,尚未到REA。改为按实际checkout补足165字符并为SQLite保留余量,保持REA必须走短输出目录的断言;原244项TAP与目录保留,最终源码重新冻结验收。
- DeepSeek SDK首次实际initialize到20秒无响应,所属进程退出已核对,未发送prompt/模型请求;CLI版本0.2.1-rc.2与真实sdk-minimal默认配置已读取,继续定位启动与服务注入。OpenAI官方文档网页首次返回403,搜索只限定官方域;继续按可用官方页面核对,不能用空搜索或403当文档依据。
+4 -1
View File
@@ -15,7 +15,10 @@ const digest = text => createHash('sha256').update(text).digest('hex');
function researchFixture(t, behavior = null, { deepStore = false } = {}) {
let f = fixture(t);
if (deepStore) {
const data = path.join(f.root, ...Array.from({ length: 4 }, (_, index) => '用户深层数据目录-' + index + '-'.repeat(28)), 'data');
const parts = [];
while (path.join(f.root, ...parts, 'data').length < 165) parts.push('用户资料-' + parts.length + '-'.repeat(12));
const data = path.join(f.root, ...parts, 'data');
assert.ok(path.join(data, 'workbench.sqlite').length < 230, 'The REA export fixture must stay inside SQLite\'s separate Windows path limit.');
const store = new Store(data), project = store.addProject(f.projectRoot), session = store.createSession(project.id);
f.onCleanup(() => store.close()); f = { ...f, data, store, project, session };
}