app-control-explicit-navigation.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. {
  2. "version": 1,
  3. "caseName": "app-control-explicit-navigation",
  4. "spec": "./test/e2e/conversation-session/session-control/app-control-explicit-navigation.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "sct03-title",
  8. "description": "SCT03 title",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_SCT03"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "text": "{\"title\":\"E2E_SCT03\"}"
  24. }
  25. }
  26. },
  27. {
  28. "id": "sct03-target-read",
  29. "description": "SCT03 target-read",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  35. },
  36. "maxMatches": 1,
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/messages",
  40. "bodyIncludes": ["E2E_SCT03_TARGET"],
  41. "bodyExcludes": [
  42. "Generate a concise title",
  43. "CRITICAL: Respond with TEXT ONLY",
  44. "E2E_READONLY_TOOL_FILE_CONTENT",
  45. "E2E_SCT03_BACKGROUND",
  46. "E2E_SCT03_OPEN"
  47. ]
  48. },
  49. "response": {
  50. "statusCode": 200,
  51. "toolUse": {
  52. "name": "Read",
  53. "id": "toolu_sct03_setup_TARGET",
  54. "input": {
  55. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  56. }
  57. }
  58. }
  59. },
  60. {
  61. "id": "sct03-target-ready",
  62. "description": "SCT03 target-ready",
  63. "metadata": {
  64. "kind": "main",
  65. "timingPolicy": "fast-text",
  66. "source": "synthetic",
  67. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  68. },
  69. "maxMatches": 1,
  70. "match": {
  71. "method": "POST",
  72. "pathIncludes": "/messages",
  73. "bodyIncludes": ["E2E_SCT03_TARGET", "E2E_READONLY_TOOL_FILE_CONTENT"],
  74. "bodyExcludes": [
  75. "Generate a concise title",
  76. "CRITICAL: Respond with TEXT ONLY",
  77. "E2E_SCT03_BACKGROUND",
  78. "E2E_SCT03_OPEN"
  79. ]
  80. },
  81. "response": {
  82. "statusCode": 200,
  83. "text": {
  84. "text": "upstream-e2e-ok"
  85. }
  86. }
  87. },
  88. {
  89. "id": "sct03-caller-read",
  90. "description": "SCT03 caller-read",
  91. "metadata": {
  92. "kind": "main",
  93. "timingPolicy": "fast-text",
  94. "source": "synthetic",
  95. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  96. },
  97. "maxMatches": 1,
  98. "match": {
  99. "method": "POST",
  100. "pathIncludes": "/messages",
  101. "bodyIncludes": ["E2E_SCT03_CALLER"],
  102. "bodyExcludes": [
  103. "Generate a concise title",
  104. "CRITICAL: Respond with TEXT ONLY",
  105. "E2E_READONLY_TOOL_FILE_CONTENT",
  106. "E2E_SCT03_BACKGROUND",
  107. "E2E_SCT03_OPEN"
  108. ]
  109. },
  110. "response": {
  111. "statusCode": 200,
  112. "toolUse": {
  113. "name": "Read",
  114. "id": "toolu_sct03_setup_CALLER",
  115. "input": {
  116. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  117. }
  118. }
  119. }
  120. },
  121. {
  122. "id": "sct03-caller-ready",
  123. "description": "SCT03 caller-ready",
  124. "metadata": {
  125. "kind": "main",
  126. "timingPolicy": "fast-text",
  127. "source": "synthetic",
  128. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  129. },
  130. "maxMatches": 1,
  131. "match": {
  132. "method": "POST",
  133. "pathIncludes": "/messages",
  134. "bodyIncludes": ["E2E_SCT03_CALLER", "E2E_READONLY_TOOL_FILE_CONTENT"],
  135. "bodyExcludes": [
  136. "Generate a concise title",
  137. "CRITICAL: Respond with TEXT ONLY",
  138. "E2E_SCT03_BACKGROUND",
  139. "E2E_SCT03_OPEN"
  140. ]
  141. },
  142. "response": {
  143. "statusCode": 200,
  144. "text": {
  145. "text": "upstream-e2e-ok"
  146. }
  147. }
  148. },
  149. {
  150. "id": "sct03-background-target",
  151. "description": "SCT03 background-target",
  152. "metadata": {
  153. "kind": "main",
  154. "timingPolicy": "fast-text",
  155. "source": "synthetic",
  156. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  157. },
  158. "match": {
  159. "method": "POST",
  160. "pathIncludes": "/messages",
  161. "lastUserMessageIncludes": ["E2E_SCT03_BACKGROUND_TARGET: reply exactly background-done"],
  162. "lastUserMessageExcludes": ["E2E_SCT03_BACKGROUND:"],
  163. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  164. },
  165. "response": {
  166. "statusCode": 200,
  167. "text": {
  168. "text": "background-done"
  169. }
  170. }
  171. },
  172. {
  173. "id": "sct03-list",
  174. "description": "SCT03 list",
  175. "metadata": {
  176. "kind": "main",
  177. "timingPolicy": "fast-text",
  178. "source": "synthetic",
  179. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  180. },
  181. "maxMatches": 1,
  182. "match": {
  183. "method": "POST",
  184. "pathIncludes": "/messages",
  185. "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "E2E_SCT03_TARGET_SESSION_ID"],
  186. "bodyExcludes": [
  187. "Generate a concise title",
  188. "CRITICAL: Respond with TEXT ONLY",
  189. "E2E_SCT03_OPEN:"
  190. ]
  191. },
  192. "response": {
  193. "statusCode": 200,
  194. "toolUse": {
  195. "name": "ListSessions",
  196. "id": "toolu_sct03_list",
  197. "input": {}
  198. }
  199. }
  200. },
  201. {
  202. "id": "sct03-read",
  203. "description": "SCT03 read",
  204. "metadata": {
  205. "kind": "main",
  206. "timingPolicy": "fast-text",
  207. "source": "synthetic",
  208. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  209. },
  210. "maxMatches": 1,
  211. "match": {
  212. "method": "POST",
  213. "pathIncludes": "/messages",
  214. "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "toolu_sct03_list"],
  215. "bodyExcludes": [
  216. "Generate a concise title",
  217. "CRITICAL: Respond with TEXT ONLY",
  218. "E2E_SCT03_OPEN:"
  219. ]
  220. },
  221. "response": {
  222. "statusCode": 200,
  223. "toolUse": {
  224. "name": "ReadSession",
  225. "id": "toolu_sct03_read",
  226. "input": {
  227. "view": "summary",
  228. "sessionId": "{{appControlTargetSessionId}}"
  229. }
  230. }
  231. }
  232. },
  233. {
  234. "id": "sct03-send",
  235. "description": "SCT03 send",
  236. "metadata": {
  237. "kind": "main",
  238. "timingPolicy": "fast-text",
  239. "source": "synthetic",
  240. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  241. },
  242. "maxMatches": 1,
  243. "match": {
  244. "method": "POST",
  245. "pathIncludes": "/messages",
  246. "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "toolu_sct03_read"],
  247. "bodyExcludes": [
  248. "Generate a concise title",
  249. "CRITICAL: Respond with TEXT ONLY",
  250. "E2E_SCT03_OPEN:"
  251. ]
  252. },
  253. "response": {
  254. "statusCode": 200,
  255. "toolUse": {
  256. "name": "SendToSession",
  257. "id": "toolu_sct03_send",
  258. "input": {
  259. "prompt": "E2E_SCT03_BACKGROUND_TARGET: reply exactly background-done",
  260. "sessionId": "{{appControlTargetSessionId}}"
  261. }
  262. }
  263. }
  264. },
  265. {
  266. "id": "sct03-background-ready",
  267. "description": "SCT03 background-ready",
  268. "metadata": {
  269. "kind": "main",
  270. "timingPolicy": "fast-text",
  271. "source": "synthetic",
  272. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  273. },
  274. "maxMatches": 1,
  275. "match": {
  276. "method": "POST",
  277. "pathIncludes": "/messages",
  278. "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "toolu_sct03_send", "accepted"],
  279. "bodyExcludes": [
  280. "Generate a concise title",
  281. "CRITICAL: Respond with TEXT ONLY",
  282. "E2E_SCT03_OPEN:"
  283. ]
  284. },
  285. "response": {
  286. "statusCode": 200,
  287. "text": {
  288. "text": "SCT03_BACKGROUND_ACCEPTED"
  289. }
  290. }
  291. },
  292. {
  293. "id": "sct03-open",
  294. "description": "SCT03 open",
  295. "metadata": {
  296. "kind": "main",
  297. "timingPolicy": "fast-text",
  298. "source": "synthetic",
  299. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  300. },
  301. "maxMatches": 1,
  302. "match": {
  303. "method": "POST",
  304. "pathIncludes": "/messages",
  305. "bodyIncludes": ["E2E_SCT03_OPEN:"],
  306. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  307. },
  308. "response": {
  309. "statusCode": 200,
  310. "toolUse": {
  311. "name": "OpenSession",
  312. "id": "toolu_sct03_open",
  313. "input": {
  314. "sessionId": "{{appControlTargetSessionId}}"
  315. }
  316. }
  317. }
  318. },
  319. {
  320. "id": "sct03-open-ready",
  321. "description": "SCT03 open-ready",
  322. "metadata": {
  323. "kind": "main",
  324. "timingPolicy": "fast-text",
  325. "source": "synthetic",
  326. "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
  327. },
  328. "maxMatches": 1,
  329. "match": {
  330. "method": "POST",
  331. "pathIncludes": "/messages",
  332. "bodyIncludes": ["E2E_SCT03_OPEN:", "toolu_sct03_open", "opened"],
  333. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  334. },
  335. "response": {
  336. "statusCode": 200,
  337. "text": {
  338. "text": "SCT03_OPEN_CONFIRMED opened"
  339. }
  340. }
  341. }
  342. ]
  343. }