app-control-cross-project-search.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. {
  2. "version": 1,
  3. "caseName": "app-control-cross-project-search",
  4. "spec": "./test/e2e/conversation-session/session-control/app-control-cross-project-search.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "sct07-title",
  8. "description": "SCT07 setup title",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_SCT07"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "text": "{\"title\":\"E2E_SCT07\"}"
  24. }
  25. }
  26. },
  27. {
  28. "id": "sct07-target-read",
  29. "description": "SCT07 TARGET real readonly tool",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  35. },
  36. "maxMatches": 1,
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/messages",
  40. "bodyIncludes": ["E2E_SCT07_TARGET"],
  41. "bodyExcludes": [
  42. "Generate a concise title",
  43. "CRITICAL: Respond with TEXT ONLY",
  44. "E2E_SCT07_DISCOVER:",
  45. "E2E_SCT07_FILTER:",
  46. "E2E_READONLY_TOOL_FILE_CONTENT",
  47. "E2E_SCT07_READ:",
  48. "E2E_SCT07_OPEN:"
  49. ]
  50. },
  51. "response": {
  52. "statusCode": 200,
  53. "toolUse": {
  54. "name": "Read",
  55. "id": "toolu_sct07_setup_TARGET",
  56. "input": {
  57. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  58. }
  59. }
  60. }
  61. },
  62. {
  63. "id": "sct07-target-ready",
  64. "description": "SCT07 TARGET completed history",
  65. "metadata": {
  66. "kind": "main",
  67. "timingPolicy": "fast-text",
  68. "source": "synthetic",
  69. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  70. },
  71. "maxMatches": 1,
  72. "match": {
  73. "method": "POST",
  74. "pathIncludes": "/messages",
  75. "bodyIncludes": ["E2E_SCT07_TARGET", "E2E_READONLY_TOOL_FILE_CONTENT"],
  76. "bodyExcludes": [
  77. "Generate a concise title",
  78. "CRITICAL: Respond with TEXT ONLY",
  79. "E2E_SCT07_DISCOVER:",
  80. "E2E_SCT07_FILTER:",
  81. "E2E_SCT07_READ:",
  82. "E2E_SCT07_OPEN:"
  83. ]
  84. },
  85. "response": {
  86. "statusCode": 200,
  87. "text": {
  88. "text": "upstream-e2e-ok"
  89. }
  90. }
  91. },
  92. {
  93. "id": "sct07-archived-read",
  94. "description": "SCT07 ARCHIVED real readonly tool",
  95. "metadata": {
  96. "kind": "main",
  97. "timingPolicy": "fast-text",
  98. "source": "synthetic",
  99. "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
  100. },
  101. "maxMatches": 1,
  102. "match": {
  103. "method": "POST",
  104. "pathIncludes": "/messages",
  105. "bodyIncludes": ["E2E_SCT07_ARCHIVED"],
  106. "bodyExcludes": [
  107. "Generate a concise title",
  108. "CRITICAL: Respond with TEXT ONLY",
  109. "E2E_SCT07_DISCOVER:",
  110. "E2E_SCT07_FILTER:",
  111. "E2E_READONLY_TOOL_FILE_CONTENT",
  112. "E2E_SCT07_READ:",
  113. "E2E_SCT07_OPEN:"
  114. ]
  115. },
  116. "response": {
  117. "statusCode": 200,
  118. "toolUse": {
  119. "name": "Read",
  120. "id": "toolu_sct07_setup_ARCHIVED",
  121. "input": {
  122. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  123. }
  124. }
  125. }
  126. },
  127. {
  128. "id": "sct07-archived-ready",
  129. "description": "SCT07 ARCHIVED completed history",
  130. "metadata": {
  131. "kind": "main",
  132. "timingPolicy": "fast-text",
  133. "source": "synthetic",
  134. "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
  135. },
  136. "maxMatches": 1,
  137. "match": {
  138. "method": "POST",
  139. "pathIncludes": "/messages",
  140. "bodyIncludes": ["E2E_SCT07_ARCHIVED", "E2E_READONLY_TOOL_FILE_CONTENT"],
  141. "bodyExcludes": [
  142. "Generate a concise title",
  143. "CRITICAL: Respond with TEXT ONLY",
  144. "E2E_SCT07_DISCOVER:",
  145. "E2E_SCT07_FILTER:",
  146. "E2E_SCT07_READ:",
  147. "E2E_SCT07_OPEN:"
  148. ]
  149. },
  150. "response": {
  151. "statusCode": 200,
  152. "text": {
  153. "text": "upstream-e2e-ok"
  154. }
  155. }
  156. },
  157. {
  158. "id": "sct07-mobile-read",
  159. "description": "SCT07 MOBILE real readonly tool",
  160. "metadata": {
  161. "kind": "main",
  162. "timingPolicy": "fast-text",
  163. "source": "synthetic",
  164. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  165. },
  166. "maxMatches": 1,
  167. "match": {
  168. "method": "POST",
  169. "pathIncludes": "/messages",
  170. "bodyIncludes": ["E2E_SCT07_MOBILE"],
  171. "bodyExcludes": [
  172. "Generate a concise title",
  173. "CRITICAL: Respond with TEXT ONLY",
  174. "E2E_SCT07_DISCOVER:",
  175. "E2E_SCT07_FILTER:",
  176. "E2E_READONLY_TOOL_FILE_CONTENT",
  177. "E2E_SCT07_READ:",
  178. "E2E_SCT07_OPEN:"
  179. ]
  180. },
  181. "response": {
  182. "statusCode": 200,
  183. "toolUse": {
  184. "name": "Read",
  185. "id": "toolu_sct07_setup_MOBILE",
  186. "input": {
  187. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  188. }
  189. }
  190. }
  191. },
  192. {
  193. "id": "sct07-mobile-ready",
  194. "description": "SCT07 MOBILE completed history",
  195. "metadata": {
  196. "kind": "main",
  197. "timingPolicy": "fast-text",
  198. "source": "synthetic",
  199. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  200. },
  201. "maxMatches": 1,
  202. "match": {
  203. "method": "POST",
  204. "pathIncludes": "/messages",
  205. "bodyIncludes": ["E2E_SCT07_MOBILE", "E2E_READONLY_TOOL_FILE_CONTENT"],
  206. "bodyExcludes": [
  207. "Generate a concise title",
  208. "CRITICAL: Respond with TEXT ONLY",
  209. "E2E_SCT07_DISCOVER:",
  210. "E2E_SCT07_FILTER:",
  211. "E2E_SCT07_READ:",
  212. "E2E_SCT07_OPEN:"
  213. ]
  214. },
  215. "response": {
  216. "statusCode": 200,
  217. "text": {
  218. "text": "upstream-e2e-ok"
  219. }
  220. }
  221. },
  222. {
  223. "id": "sct07-caller-read",
  224. "description": "SCT07 CALLER real readonly tool",
  225. "metadata": {
  226. "kind": "main",
  227. "timingPolicy": "fast-text",
  228. "source": "synthetic",
  229. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  230. },
  231. "maxMatches": 1,
  232. "match": {
  233. "method": "POST",
  234. "pathIncludes": "/messages",
  235. "bodyIncludes": ["E2E_SCT07_CALLER"],
  236. "bodyExcludes": [
  237. "Generate a concise title",
  238. "CRITICAL: Respond with TEXT ONLY",
  239. "E2E_SCT07_DISCOVER:",
  240. "E2E_SCT07_FILTER:",
  241. "E2E_READONLY_TOOL_FILE_CONTENT",
  242. "E2E_SCT07_READ:",
  243. "E2E_SCT07_OPEN:"
  244. ]
  245. },
  246. "response": {
  247. "statusCode": 200,
  248. "toolUse": {
  249. "name": "Read",
  250. "id": "toolu_sct07_setup_CALLER",
  251. "input": {
  252. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  253. }
  254. }
  255. }
  256. },
  257. {
  258. "id": "sct07-caller-ready",
  259. "description": "SCT07 CALLER completed history",
  260. "metadata": {
  261. "kind": "main",
  262. "timingPolicy": "fast-text",
  263. "source": "synthetic",
  264. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  265. },
  266. "maxMatches": 1,
  267. "match": {
  268. "method": "POST",
  269. "pathIncludes": "/messages",
  270. "bodyIncludes": ["E2E_SCT07_CALLER", "E2E_READONLY_TOOL_FILE_CONTENT"],
  271. "bodyExcludes": [
  272. "Generate a concise title",
  273. "CRITICAL: Respond with TEXT ONLY",
  274. "E2E_SCT07_DISCOVER:",
  275. "E2E_SCT07_FILTER:",
  276. "E2E_SCT07_READ:",
  277. "E2E_SCT07_OPEN:"
  278. ]
  279. },
  280. "response": {
  281. "statusCode": 200,
  282. "text": {
  283. "text": "upstream-e2e-ok"
  284. }
  285. }
  286. },
  287. {
  288. "id": "sct07-discover",
  289. "description": "SCT07 global title search and accessible projects",
  290. "metadata": {
  291. "kind": "main",
  292. "timingPolicy": "fast-text",
  293. "source": "synthetic",
  294. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  295. },
  296. "maxMatches": 1,
  297. "match": {
  298. "method": "POST",
  299. "pathIncludes": "/messages",
  300. "bodyIncludes": ["E2E_SCT07_DISCOVER:", "E2E_SCT07_TARGET_SESSION_ID"],
  301. "bodyExcludes": [
  302. "Generate a concise title",
  303. "CRITICAL: Respond with TEXT ONLY",
  304. "E2E_SCT07_FILTER:",
  305. "E2E_SCT07_READ:",
  306. "E2E_SCT07_OPEN:"
  307. ]
  308. },
  309. "response": {
  310. "statusCode": 200,
  311. "toolUses": [
  312. {
  313. "name": "ListSessions",
  314. "id": "toolu_sct07_search",
  315. "input": {
  316. "query": "小说"
  317. }
  318. },
  319. {
  320. "name": "ListProjects",
  321. "id": "toolu_sct07_projects",
  322. "input": {}
  323. }
  324. ]
  325. }
  326. },
  327. {
  328. "id": "sct07-discovery-returned",
  329. "description": "SCT07 actual discovery results reached model",
  330. "metadata": {
  331. "kind": "main",
  332. "timingPolicy": "fast-text",
  333. "source": "synthetic",
  334. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  335. },
  336. "maxMatches": 1,
  337. "match": {
  338. "method": "POST",
  339. "pathIncludes": "/messages",
  340. "bodyIncludes": ["E2E_SCT07_DISCOVER:", "toolu_sct07_search", "toolu_sct07_projects"],
  341. "bodyExcludes": [
  342. "Generate a concise title",
  343. "CRITICAL: Respond with TEXT ONLY",
  344. "E2E_SCT07_FILTER:",
  345. "E2E_SCT07_READ:",
  346. "E2E_SCT07_OPEN:"
  347. ]
  348. },
  349. "response": {
  350. "statusCode": 200,
  351. "text": {
  352. "text": "SCT07_DISCOVERY_RETURNED"
  353. }
  354. }
  355. },
  356. {
  357. "id": "sct07-filter",
  358. "description": "SCT07 project filter uses full ref from true list result",
  359. "metadata": {
  360. "kind": "main",
  361. "timingPolicy": "fast-text",
  362. "source": "synthetic",
  363. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  364. },
  365. "maxMatches": 1,
  366. "match": {
  367. "method": "POST",
  368. "pathIncludes": "/messages",
  369. "bodyIncludes": ["E2E_SCT07_FILTER:"],
  370. "bodyExcludes": [
  371. "Generate a concise title",
  372. "CRITICAL: Respond with TEXT ONLY",
  373. "E2E_SCT07_READ:",
  374. "E2E_SCT07_OPEN:"
  375. ]
  376. },
  377. "response": {
  378. "statusCode": 200,
  379. "toolUse": {
  380. "name": "ListSessions",
  381. "id": "toolu_sct07_filter",
  382. "input": {
  383. "query": "小说",
  384. "project": "{{appControlTargetProjectRef}}"
  385. }
  386. }
  387. }
  388. },
  389. {
  390. "id": "sct07-filter-returned",
  391. "description": "SCT07 actual filtered result reached model",
  392. "metadata": {
  393. "kind": "main",
  394. "timingPolicy": "fast-text",
  395. "source": "synthetic",
  396. "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
  397. },
  398. "maxMatches": 1,
  399. "match": {
  400. "method": "POST",
  401. "pathIncludes": "/messages",
  402. "bodyIncludes": ["E2E_SCT07_FILTER:", "toolu_sct07_filter"],
  403. "bodyExcludes": [
  404. "Generate a concise title",
  405. "CRITICAL: Respond with TEXT ONLY",
  406. "E2E_SCT07_READ:",
  407. "E2E_SCT07_OPEN:"
  408. ]
  409. },
  410. "response": {
  411. "statusCode": 200,
  412. "text": {
  413. "text": "SCT07_FILTER_RETURNED"
  414. }
  415. }
  416. },
  417. {
  418. "id": "sct07-read",
  419. "description": "SCT07 real cross-project read with complete list ref",
  420. "metadata": {
  421. "kind": "main",
  422. "timingPolicy": "fast-text",
  423. "source": "synthetic",
  424. "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
  425. },
  426. "maxMatches": 1,
  427. "match": {
  428. "method": "POST",
  429. "pathIncludes": "/messages",
  430. "bodyIncludes": ["E2E_SCT07_READ:"],
  431. "bodyExcludes": [
  432. "Generate a concise title",
  433. "CRITICAL: Respond with TEXT ONLY",
  434. "E2E_SCT07_OPEN:"
  435. ]
  436. },
  437. "response": {
  438. "statusCode": 200,
  439. "toolUse": {
  440. "name": "ReadSession",
  441. "id": "toolu_sct07_read",
  442. "input": {
  443. "view": "messages",
  444. "sessionId": "{{appControlTargetSessionId}}"
  445. }
  446. }
  447. }
  448. },
  449. {
  450. "id": "sct07-read-returned",
  451. "description": "SCT07 actual read receipt reaches model",
  452. "metadata": {
  453. "kind": "main",
  454. "timingPolicy": "fast-text",
  455. "source": "synthetic",
  456. "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
  457. },
  458. "maxMatches": 1,
  459. "match": {
  460. "method": "POST",
  461. "pathIncludes": "/messages",
  462. "bodyIncludes": ["E2E_SCT07_READ:", "toolu_sct07_read"],
  463. "bodyExcludes": [
  464. "Generate a concise title",
  465. "CRITICAL: Respond with TEXT ONLY",
  466. "E2E_SCT07_OPEN:"
  467. ]
  468. },
  469. "response": {
  470. "statusCode": 200,
  471. "text": {
  472. "text": "SCT07_READ_RETURNED"
  473. }
  474. }
  475. },
  476. {
  477. "id": "sct07-open",
  478. "description": "SCT07 real cross-project open with complete list ref",
  479. "metadata": {
  480. "kind": "main",
  481. "timingPolicy": "fast-text",
  482. "source": "synthetic",
  483. "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
  484. },
  485. "maxMatches": 1,
  486. "match": {
  487. "method": "POST",
  488. "pathIncludes": "/messages",
  489. "bodyIncludes": ["E2E_SCT07_OPEN:"],
  490. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  491. },
  492. "response": {
  493. "statusCode": 200,
  494. "toolUse": {
  495. "name": "OpenSession",
  496. "id": "toolu_sct07_open",
  497. "input": {
  498. "sessionId": "{{appControlTargetSessionId}}"
  499. }
  500. }
  501. }
  502. },
  503. {
  504. "id": "sct07-open-returned",
  505. "description": "SCT07 actual open receipt reaches model",
  506. "metadata": {
  507. "kind": "main",
  508. "timingPolicy": "fast-text",
  509. "source": "synthetic",
  510. "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
  511. },
  512. "maxMatches": 1,
  513. "match": {
  514. "method": "POST",
  515. "pathIncludes": "/messages",
  516. "bodyIncludes": ["E2E_SCT07_OPEN:", "toolu_sct07_open", "opened"],
  517. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  518. },
  519. "response": {
  520. "statusCode": 200,
  521. "text": {
  522. "text": "SCT07_OPEN_RETURNED opened"
  523. }
  524. }
  525. }
  526. ]
  527. }