app-control-session-lifecycle.json 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569
  1. {
  2. "version": 1,
  3. "caseName": "app-control-session-lifecycle",
  4. "spec": "./test/e2e/conversation-session/session-control/app-control-session-lifecycle.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "sct04-title",
  8. "description": "SCT04 sct04-title",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_SCT04"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "text": "{\"title\":\"E2E_SCT04\"}"
  24. }
  25. }
  26. },
  27. {
  28. "id": "sct04-caller-ready",
  29. "description": "SCT04 sct04-caller-ready",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/messages",
  39. "bodyIncludes": ["E2E_SCT04_CALLER", "E2E_READONLY_TOOL_FILE_CONTENT"],
  40. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  41. },
  42. "response": {
  43. "statusCode": 200,
  44. "text": {
  45. "text": "upstream-e2e-ok"
  46. }
  47. },
  48. "maxMatches": 1
  49. },
  50. {
  51. "id": "sct04-create-target",
  52. "description": "SCT04 sct04-create-target",
  53. "metadata": {
  54. "kind": "main",
  55. "timingPolicy": "controlled-stream",
  56. "source": "synthetic",
  57. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  58. },
  59. "match": {
  60. "method": "POST",
  61. "pathIncludes": "/messages",
  62. "lastUserMessageIncludes": ["E2E_SCT04_CREATE_TARGET"],
  63. "lastUserMessageExcludes": ["E2E_SCT04_ACTION_"],
  64. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  65. },
  66. "response": {
  67. "statusCode": 200,
  68. "headers": {
  69. "content-type": "text/event-stream; charset=utf-8"
  70. },
  71. "chunks": [
  72. {
  73. "offsetMs": 0,
  74. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"sct04-create\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"output_tokens\":0}}}\n\n"
  75. },
  76. {
  77. "offsetMs": 0,
  78. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  79. },
  80. {
  81. "offsetMs": 0,
  82. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"SCT04_CREATE_STREAMING \"}}\n\n"
  83. },
  84. {
  85. "offsetMs": 0,
  86. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"SCT04_CREATE_DONE\"}}\n\n"
  87. },
  88. {
  89. "offsetMs": 0,
  90. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  91. },
  92. {
  93. "offsetMs": 0,
  94. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":16}}\n\n"
  95. },
  96. {
  97. "offsetMs": 0,
  98. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  99. }
  100. ],
  101. "releaseAfterChunks": 3
  102. },
  103. "maxMatches": 1
  104. },
  105. {
  106. "id": "sct04-send-target",
  107. "description": "SCT04 sct04-send-target",
  108. "metadata": {
  109. "kind": "main",
  110. "timingPolicy": "fast-text",
  111. "source": "synthetic",
  112. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  113. },
  114. "match": {
  115. "method": "POST",
  116. "pathIncludes": "/messages",
  117. "lastUserMessageIncludes": ["E2E_SCT04_SEND_TARGET"],
  118. "lastUserMessageExcludes": ["E2E_SCT04_ACTION_"],
  119. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  120. },
  121. "response": {
  122. "statusCode": 200,
  123. "text": {
  124. "text": "SCT04_SEND_DONE"
  125. }
  126. },
  127. "maxMatches": 1
  128. },
  129. {
  130. "id": "sct04-interrupt-target",
  131. "description": "SCT04 sct04-interrupt-target",
  132. "metadata": {
  133. "kind": "main",
  134. "timingPolicy": "controlled-stream",
  135. "source": "synthetic",
  136. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  137. },
  138. "match": {
  139. "method": "POST",
  140. "pathIncludes": "/messages",
  141. "lastUserMessageIncludes": ["E2E_SCT04_INTERRUPT_TARGET"],
  142. "lastUserMessageExcludes": ["E2E_SCT04_ACTION_"],
  143. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  144. },
  145. "response": {
  146. "statusCode": 200,
  147. "headers": {
  148. "content-type": "text/event-stream; charset=utf-8"
  149. },
  150. "chunks": [
  151. {
  152. "offsetMs": 0,
  153. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"sct04-interrupt\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"output_tokens\":0}}}\n\n"
  154. },
  155. {
  156. "offsetMs": 0,
  157. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  158. },
  159. {
  160. "offsetMs": 0,
  161. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"SCT04_INTERRUPT_STREAMING \"}}\n\n"
  162. },
  163. {
  164. "offsetMs": 0,
  165. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"SCT04_INTERRUPT_DONE\"}}\n\n"
  166. },
  167. {
  168. "offsetMs": 0,
  169. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  170. },
  171. {
  172. "offsetMs": 0,
  173. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":16}}\n\n"
  174. },
  175. {
  176. "offsetMs": 0,
  177. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  178. }
  179. ],
  180. "releaseAfterChunks": 3
  181. },
  182. "maxMatches": 1
  183. },
  184. {
  185. "id": "sct04-next-target",
  186. "description": "SCT04 sct04-next-target",
  187. "metadata": {
  188. "kind": "main",
  189. "timingPolicy": "controlled-stream",
  190. "source": "synthetic",
  191. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  192. },
  193. "match": {
  194. "method": "POST",
  195. "pathIncludes": "/messages",
  196. "lastUserMessageIncludes": ["E2E_SCT04_NEXT_TARGET"],
  197. "lastUserMessageExcludes": ["E2E_SCT04_ACTION_"],
  198. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  199. },
  200. "response": {
  201. "statusCode": 200,
  202. "headers": {
  203. "content-type": "text/event-stream; charset=utf-8"
  204. },
  205. "chunks": [
  206. {
  207. "offsetMs": 0,
  208. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"sct04-next\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"output_tokens\":0}}}\n\n"
  209. },
  210. {
  211. "offsetMs": 0,
  212. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  213. },
  214. {
  215. "offsetMs": 0,
  216. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"SCT04_NEXT_STREAMING \"}}\n\n"
  217. },
  218. {
  219. "offsetMs": 0,
  220. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"SCT04_NEXT_DONE\"}}\n\n"
  221. },
  222. {
  223. "offsetMs": 0,
  224. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  225. },
  226. {
  227. "offsetMs": 0,
  228. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":16}}\n\n"
  229. },
  230. {
  231. "offsetMs": 0,
  232. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  233. }
  234. ],
  235. "releaseAfterChunks": 3
  236. },
  237. "maxMatches": 1
  238. },
  239. {
  240. "id": "sct04-projects",
  241. "description": "SCT04 sct04-projects",
  242. "metadata": {
  243. "kind": "main",
  244. "timingPolicy": "fast-text",
  245. "source": "synthetic",
  246. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  247. },
  248. "match": {
  249. "method": "POST",
  250. "pathIncludes": "/messages",
  251. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_PROJECTS:"],
  252. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  253. },
  254. "response": {
  255. "statusCode": 200,
  256. "toolUse": {
  257. "name": "ListProjects",
  258. "id": "toolu_sct04_projects",
  259. "input": {
  260. "query": "ZCodeProject"
  261. }
  262. }
  263. },
  264. "maxMatches": 1
  265. },
  266. {
  267. "id": "sct04-projects-returned",
  268. "description": "SCT04 sct04-projects-returned",
  269. "metadata": {
  270. "kind": "main",
  271. "timingPolicy": "fast-text",
  272. "source": "synthetic",
  273. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  274. },
  275. "match": {
  276. "method": "POST",
  277. "pathIncludes": "/messages",
  278. "bodyIncludes": ["E2E_SCT04_ACTION_PROJECTS:", "toolu_sct04_projects"],
  279. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  280. },
  281. "response": {
  282. "statusCode": 200,
  283. "text": {
  284. "text": "SCT04_PROJECTS_RETURNED"
  285. }
  286. },
  287. "maxMatches": 1
  288. },
  289. {
  290. "id": "sct04-create",
  291. "description": "SCT04 sct04-create",
  292. "metadata": {
  293. "kind": "main",
  294. "timingPolicy": "fast-text",
  295. "source": "synthetic",
  296. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  297. },
  298. "match": {
  299. "method": "POST",
  300. "pathIncludes": "/messages",
  301. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_CREATE:"],
  302. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  303. "bodyIncludes": ["E2E_SCT04_CREATE"]
  304. },
  305. "response": {
  306. "statusCode": 200,
  307. "toolUse": {
  308. "name": "CreateSession",
  309. "id": "toolu_sct04_create",
  310. "input": {
  311. "project": "{{appControlResult:toolu_sct04_projects.projects.0.project}}",
  312. "prompt": "E2E_SCT04_CREATE_TARGET"
  313. }
  314. }
  315. },
  316. "maxMatches": 1
  317. },
  318. {
  319. "id": "sct04-create-returned",
  320. "description": "SCT04 sct04-create-returned",
  321. "metadata": {
  322. "kind": "main",
  323. "timingPolicy": "fast-text",
  324. "source": "synthetic",
  325. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  326. },
  327. "match": {
  328. "method": "POST",
  329. "pathIncludes": "/messages",
  330. "bodyIncludes": ["E2E_SCT04_ACTION_CREATE:", "toolu_sct04_create"],
  331. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  332. },
  333. "response": {
  334. "statusCode": 200,
  335. "text": {
  336. "text": "SCT04_CREATE_RETURNED"
  337. }
  338. },
  339. "maxMatches": 1
  340. },
  341. {
  342. "id": "sct04-send",
  343. "description": "SCT04 sct04-send",
  344. "metadata": {
  345. "kind": "main",
  346. "timingPolicy": "fast-text",
  347. "source": "synthetic",
  348. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  349. },
  350. "match": {
  351. "method": "POST",
  352. "pathIncludes": "/messages",
  353. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_SEND:"],
  354. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  355. "bodyIncludes": ["E2E_SCT04_SEND"]
  356. },
  357. "response": {
  358. "statusCode": 200,
  359. "toolUse": {
  360. "name": "SendToSession",
  361. "id": "toolu_sct04_send",
  362. "input": {
  363. "sessionId": "{{appControlResult:toolu_sct04_create.session.sessionId}}",
  364. "prompt": "E2E_SCT04_SEND_TARGET"
  365. }
  366. }
  367. },
  368. "maxMatches": 1
  369. },
  370. {
  371. "id": "sct04-send-returned",
  372. "description": "SCT04 sct04-send-returned",
  373. "metadata": {
  374. "kind": "main",
  375. "timingPolicy": "fast-text",
  376. "source": "synthetic",
  377. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  378. },
  379. "match": {
  380. "method": "POST",
  381. "pathIncludes": "/messages",
  382. "bodyIncludes": ["E2E_SCT04_ACTION_SEND:", "toolu_sct04_send"],
  383. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  384. },
  385. "response": {
  386. "statusCode": 200,
  387. "text": {
  388. "text": "SCT04_SEND_RETURNED"
  389. }
  390. },
  391. "maxMatches": 1
  392. },
  393. {
  394. "id": "sct04-pending",
  395. "description": "SCT04 sct04-pending",
  396. "metadata": {
  397. "kind": "main",
  398. "timingPolicy": "fast-text",
  399. "source": "synthetic",
  400. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  401. },
  402. "match": {
  403. "method": "POST",
  404. "pathIncludes": "/messages",
  405. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_PENDING:"],
  406. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  407. },
  408. "response": {
  409. "statusCode": 200,
  410. "toolUse": {
  411. "name": "WaitSessions",
  412. "id": "toolu_sct04_pending",
  413. "input": {
  414. "operations": [
  415. {
  416. "sessionId": "{{appControlResult:toolu_sct04_create.session.sessionId}}",
  417. "commandId": "{{appControlResult:toolu_sct04_create.operation.commandId}}"
  418. },
  419. {
  420. "sessionId": "{{appControlResult:toolu_sct04_send.session.sessionId}}",
  421. "commandId": "{{appControlResult:toolu_sct04_send.operation.commandId}}"
  422. }
  423. ],
  424. "mode": "all",
  425. "timeoutMs": 0
  426. }
  427. }
  428. },
  429. "maxMatches": 1
  430. },
  431. {
  432. "id": "sct04-pending-returned",
  433. "description": "SCT04 sct04-pending-returned",
  434. "metadata": {
  435. "kind": "main",
  436. "timingPolicy": "fast-text",
  437. "source": "synthetic",
  438. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  439. },
  440. "match": {
  441. "method": "POST",
  442. "pathIncludes": "/messages",
  443. "bodyIncludes": ["E2E_SCT04_ACTION_PENDING:", "toolu_sct04_pending"],
  444. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  445. },
  446. "response": {
  447. "statusCode": 200,
  448. "text": {
  449. "text": "SCT04_PENDING_RETURNED"
  450. }
  451. },
  452. "maxMatches": 1
  453. },
  454. {
  455. "id": "sct04-completed",
  456. "description": "SCT04 sct04-completed",
  457. "metadata": {
  458. "kind": "main",
  459. "timingPolicy": "fast-text",
  460. "source": "synthetic",
  461. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  462. },
  463. "match": {
  464. "method": "POST",
  465. "pathIncludes": "/messages",
  466. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_COMPLETED:"],
  467. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  468. },
  469. "response": {
  470. "statusCode": 200,
  471. "toolUse": {
  472. "name": "WaitSessions",
  473. "id": "toolu_sct04_completed",
  474. "input": {
  475. "operations": [
  476. {
  477. "sessionId": "{{appControlResult:toolu_sct04_create.session.sessionId}}",
  478. "commandId": "{{appControlResult:toolu_sct04_create.operation.commandId}}"
  479. },
  480. {
  481. "sessionId": "{{appControlResult:toolu_sct04_send.session.sessionId}}",
  482. "commandId": "{{appControlResult:toolu_sct04_send.operation.commandId}}"
  483. }
  484. ],
  485. "mode": "all",
  486. "timeoutMs": 30000
  487. }
  488. }
  489. },
  490. "maxMatches": 1
  491. },
  492. {
  493. "id": "sct04-completed-returned",
  494. "description": "SCT04 sct04-completed-returned",
  495. "metadata": {
  496. "kind": "main",
  497. "timingPolicy": "fast-text",
  498. "source": "synthetic",
  499. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  500. },
  501. "match": {
  502. "method": "POST",
  503. "pathIncludes": "/messages",
  504. "bodyIncludes": ["E2E_SCT04_ACTION_COMPLETED:", "toolu_sct04_completed"],
  505. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  506. },
  507. "response": {
  508. "statusCode": 200,
  509. "text": {
  510. "text": "SCT04_COMPLETED_RETURNED"
  511. }
  512. },
  513. "maxMatches": 1
  514. },
  515. {
  516. "id": "sct04-page",
  517. "description": "SCT04 sct04-page",
  518. "metadata": {
  519. "kind": "main",
  520. "timingPolicy": "fast-text",
  521. "source": "synthetic",
  522. "syntheticReason": "真实历史首条用户输入单独分页,cursor 仅来自实际工具回执,验证向前连续读取。"
  523. },
  524. "match": {
  525. "method": "POST",
  526. "pathIncludes": "/messages",
  527. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_PAGE:"],
  528. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  529. },
  530. "response": {
  531. "statusCode": 200,
  532. "toolUse": {
  533. "name": "ReadSession",
  534. "id": "toolu_sct04_page",
  535. "input": {
  536. "view": "messages",
  537. "limit": 1,
  538. "sessionId": "{{appControlResult:toolu_sct04_create.session.sessionId}}"
  539. }
  540. }
  541. },
  542. "maxMatches": 1
  543. },
  544. {
  545. "id": "sct04-page-returned",
  546. "description": "SCT04 sct04-page-returned",
  547. "metadata": {
  548. "kind": "main",
  549. "timingPolicy": "fast-text",
  550. "source": "synthetic",
  551. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  552. },
  553. "match": {
  554. "method": "POST",
  555. "pathIncludes": "/messages",
  556. "bodyIncludes": ["E2E_SCT04_ACTION_PAGE:", "toolu_sct04_page"],
  557. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  558. },
  559. "response": {
  560. "statusCode": 200,
  561. "text": {
  562. "text": "SCT04_PAGE_RETURNED"
  563. }
  564. },
  565. "maxMatches": 1
  566. },
  567. {
  568. "id": "sct04-page2",
  569. "description": "SCT04 sct04-page2",
  570. "metadata": {
  571. "kind": "main",
  572. "timingPolicy": "fast-text",
  573. "source": "synthetic",
  574. "syntheticReason": "按真实 cursor 读取剩余完整历史,保留内部消息;真实用户输入各出现一次,消息 ID 无重复且无后续 cursor。"
  575. },
  576. "match": {
  577. "method": "POST",
  578. "pathIncludes": "/messages",
  579. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_PAGE2:"],
  580. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  581. },
  582. "response": {
  583. "statusCode": 200,
  584. "toolUse": {
  585. "name": "ReadSession",
  586. "id": "toolu_sct04_page2",
  587. "input": {
  588. "sessionId": "{{appControlResult:toolu_sct04_create.session.sessionId}}",
  589. "view": "messages",
  590. "limit": 200,
  591. "cursor": "{{appControlResult:toolu_sct04_page.nextCursor}}"
  592. }
  593. }
  594. },
  595. "maxMatches": 1
  596. },
  597. {
  598. "id": "sct04-page2-returned",
  599. "description": "SCT04 sct04-page2-returned",
  600. "metadata": {
  601. "kind": "main",
  602. "timingPolicy": "fast-text",
  603. "source": "synthetic",
  604. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  605. },
  606. "match": {
  607. "method": "POST",
  608. "pathIncludes": "/messages",
  609. "bodyIncludes": ["E2E_SCT04_ACTION_PAGE2:", "toolu_sct04_page2"],
  610. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  611. },
  612. "response": {
  613. "statusCode": 200,
  614. "text": {
  615. "text": "SCT04_PAGE2_RETURNED"
  616. }
  617. },
  618. "maxMatches": 1
  619. },
  620. {
  621. "id": "sct04-fork",
  622. "description": "SCT04 sct04-fork",
  623. "metadata": {
  624. "kind": "main",
  625. "timingPolicy": "fast-text",
  626. "source": "synthetic",
  627. "syntheticReason": "从真实第二页工具结果按 assistant 角色选择首轮完成边界,测试核对 SCT04_CREATE_DONE;不假定消息下标,不从提示构造 ID。"
  628. },
  629. "match": {
  630. "method": "POST",
  631. "pathIncludes": "/messages",
  632. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_FORK:"],
  633. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  634. "bodyIncludes": ["E2E_SCT04_FORK"]
  635. },
  636. "response": {
  637. "statusCode": 200,
  638. "toolUse": {
  639. "name": "ForkSession",
  640. "id": "toolu_sct04_fork",
  641. "input": {
  642. "atMessage": "{{appControlResult:toolu_sct04_page2.messages.firstAssistant.id}}",
  643. "sessionId": "{{appControlResult:toolu_sct04_create.session.sessionId}}"
  644. }
  645. }
  646. },
  647. "maxMatches": 1
  648. },
  649. {
  650. "id": "sct04-fork-returned",
  651. "description": "SCT04 sct04-fork-returned",
  652. "metadata": {
  653. "kind": "main",
  654. "timingPolicy": "fast-text",
  655. "source": "synthetic",
  656. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  657. },
  658. "match": {
  659. "method": "POST",
  660. "pathIncludes": "/messages",
  661. "bodyIncludes": ["E2E_SCT04_ACTION_FORK:", "toolu_sct04_fork"],
  662. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  663. },
  664. "response": {
  665. "statusCode": 200,
  666. "text": {
  667. "text": "SCT04_FORK_RETURNED"
  668. }
  669. },
  670. "maxMatches": 1
  671. },
  672. {
  673. "id": "sct04-fork_history",
  674. "description": "SCT04 sct04-fork_history",
  675. "metadata": {
  676. "kind": "main",
  677. "timingPolicy": "fast-text",
  678. "source": "synthetic",
  679. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  680. },
  681. "match": {
  682. "method": "POST",
  683. "pathIncludes": "/messages",
  684. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_FORK_HISTORY:"],
  685. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  686. },
  687. "response": {
  688. "statusCode": 200,
  689. "toolUse": {
  690. "name": "ReadSession",
  691. "id": "toolu_sct04_fork_history",
  692. "input": {
  693. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  694. "view": "messages",
  695. "limit": 20
  696. }
  697. }
  698. },
  699. "maxMatches": 1
  700. },
  701. {
  702. "id": "sct04-fork_history-returned",
  703. "description": "SCT04 sct04-fork_history-returned",
  704. "metadata": {
  705. "kind": "main",
  706. "timingPolicy": "fast-text",
  707. "source": "synthetic",
  708. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  709. },
  710. "match": {
  711. "method": "POST",
  712. "pathIncludes": "/messages",
  713. "bodyIncludes": ["E2E_SCT04_ACTION_FORK_HISTORY:", "toolu_sct04_fork_history"],
  714. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  715. },
  716. "response": {
  717. "statusCode": 200,
  718. "text": {
  719. "text": "SCT04_FORK_HISTORY_RETURNED"
  720. }
  721. },
  722. "maxMatches": 1
  723. },
  724. {
  725. "id": "sct04-run",
  726. "description": "SCT04 sct04-run",
  727. "metadata": {
  728. "kind": "main",
  729. "timingPolicy": "fast-text",
  730. "source": "synthetic",
  731. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  732. },
  733. "match": {
  734. "method": "POST",
  735. "pathIncludes": "/messages",
  736. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_RUN:"],
  737. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  738. "bodyIncludes": ["E2E_SCT04_RUN"]
  739. },
  740. "response": {
  741. "statusCode": 200,
  742. "toolUse": {
  743. "name": "SendToSession",
  744. "id": "toolu_sct04_run",
  745. "input": {
  746. "prompt": "E2E_SCT04_INTERRUPT_TARGET",
  747. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}"
  748. }
  749. }
  750. },
  751. "maxMatches": 1
  752. },
  753. {
  754. "id": "sct04-run-returned",
  755. "description": "SCT04 sct04-run-returned",
  756. "metadata": {
  757. "kind": "main",
  758. "timingPolicy": "fast-text",
  759. "source": "synthetic",
  760. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  761. },
  762. "match": {
  763. "method": "POST",
  764. "pathIncludes": "/messages",
  765. "bodyIncludes": ["E2E_SCT04_ACTION_RUN:", "toolu_sct04_run"],
  766. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  767. },
  768. "response": {
  769. "statusCode": 200,
  770. "text": {
  771. "text": "SCT04_RUN_RETURNED"
  772. }
  773. },
  774. "maxMatches": 1
  775. },
  776. {
  777. "id": "sct04-running",
  778. "description": "SCT04 sct04-running",
  779. "metadata": {
  780. "kind": "main",
  781. "timingPolicy": "fast-text",
  782. "source": "synthetic",
  783. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  784. },
  785. "match": {
  786. "method": "POST",
  787. "pathIncludes": "/messages",
  788. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_RUNNING:"],
  789. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  790. },
  791. "response": {
  792. "statusCode": 200,
  793. "toolUse": {
  794. "name": "ReadSession",
  795. "id": "toolu_sct04_running",
  796. "input": {
  797. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  798. "view": "summary"
  799. }
  800. }
  801. },
  802. "maxMatches": 1
  803. },
  804. {
  805. "id": "sct04-running-returned",
  806. "description": "SCT04 sct04-running-returned",
  807. "metadata": {
  808. "kind": "main",
  809. "timingPolicy": "fast-text",
  810. "source": "synthetic",
  811. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  812. },
  813. "match": {
  814. "method": "POST",
  815. "pathIncludes": "/messages",
  816. "bodyIncludes": ["E2E_SCT04_ACTION_RUNNING:", "toolu_sct04_running"],
  817. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  818. },
  819. "response": {
  820. "statusCode": 200,
  821. "text": {
  822. "text": "SCT04_RUNNING_RETURNED"
  823. }
  824. },
  825. "maxMatches": 1
  826. },
  827. {
  828. "id": "sct04-rename",
  829. "description": "SCT04 sct04-rename",
  830. "metadata": {
  831. "kind": "main",
  832. "timingPolicy": "fast-text",
  833. "source": "synthetic",
  834. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  835. },
  836. "match": {
  837. "method": "POST",
  838. "pathIncludes": "/messages",
  839. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_RENAME:"],
  840. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  841. "bodyIncludes": ["E2E_SCT04_RENAME"]
  842. },
  843. "response": {
  844. "statusCode": 200,
  845. "toolUse": {
  846. "name": "RenameSession",
  847. "id": "toolu_sct04_rename",
  848. "input": {
  849. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  850. "title": "SCT04 生命周期分叉"
  851. }
  852. }
  853. },
  854. "maxMatches": 1
  855. },
  856. {
  857. "id": "sct04-rename-returned",
  858. "description": "SCT04 sct04-rename-returned",
  859. "metadata": {
  860. "kind": "main",
  861. "timingPolicy": "fast-text",
  862. "source": "synthetic",
  863. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  864. },
  865. "match": {
  866. "method": "POST",
  867. "pathIncludes": "/messages",
  868. "bodyIncludes": ["E2E_SCT04_ACTION_RENAME:", "toolu_sct04_rename"],
  869. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  870. },
  871. "response": {
  872. "statusCode": 200,
  873. "text": {
  874. "text": "SCT04_RENAME_RETURNED"
  875. }
  876. },
  877. "maxMatches": 1
  878. },
  879. {
  880. "id": "sct04-pin",
  881. "description": "SCT04 sct04-pin",
  882. "metadata": {
  883. "kind": "main",
  884. "timingPolicy": "fast-text",
  885. "source": "synthetic",
  886. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  887. },
  888. "match": {
  889. "method": "POST",
  890. "pathIncludes": "/messages",
  891. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_PIN:"],
  892. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  893. "bodyIncludes": ["E2E_SCT04_PIN"]
  894. },
  895. "response": {
  896. "statusCode": 200,
  897. "toolUse": {
  898. "name": "SetSessionPinned",
  899. "id": "toolu_sct04_pin",
  900. "input": {
  901. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  902. "pinned": true
  903. }
  904. }
  905. },
  906. "maxMatches": 1
  907. },
  908. {
  909. "id": "sct04-pin-returned",
  910. "description": "SCT04 sct04-pin-returned",
  911. "metadata": {
  912. "kind": "main",
  913. "timingPolicy": "fast-text",
  914. "source": "synthetic",
  915. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  916. },
  917. "match": {
  918. "method": "POST",
  919. "pathIncludes": "/messages",
  920. "bodyIncludes": ["E2E_SCT04_ACTION_PIN:", "toolu_sct04_pin"],
  921. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  922. },
  923. "response": {
  924. "statusCode": 200,
  925. "text": {
  926. "text": "SCT04_PIN_RETURNED"
  927. }
  928. },
  929. "maxMatches": 1
  930. },
  931. {
  932. "id": "sct04-archive",
  933. "description": "SCT04 sct04-archive",
  934. "metadata": {
  935. "kind": "main",
  936. "timingPolicy": "fast-text",
  937. "source": "synthetic",
  938. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  939. },
  940. "match": {
  941. "method": "POST",
  942. "pathIncludes": "/messages",
  943. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_ARCHIVE:"],
  944. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  945. "bodyIncludes": ["E2E_SCT04_ARCHIVE"]
  946. },
  947. "response": {
  948. "statusCode": 200,
  949. "toolUse": {
  950. "name": "SetSessionArchived",
  951. "id": "toolu_sct04_archive",
  952. "input": {
  953. "archived": true,
  954. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}"
  955. }
  956. }
  957. },
  958. "maxMatches": 1
  959. },
  960. {
  961. "id": "sct04-archive-returned",
  962. "description": "SCT04 sct04-archive-returned",
  963. "metadata": {
  964. "kind": "main",
  965. "timingPolicy": "fast-text",
  966. "source": "synthetic",
  967. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  968. },
  969. "match": {
  970. "method": "POST",
  971. "pathIncludes": "/messages",
  972. "bodyIncludes": ["E2E_SCT04_ACTION_ARCHIVE:", "toolu_sct04_archive"],
  973. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  974. },
  975. "response": {
  976. "statusCode": 200,
  977. "text": {
  978. "text": "SCT04_ARCHIVE_RETURNED"
  979. }
  980. },
  981. "maxMatches": 1
  982. },
  983. {
  984. "id": "sct04-archived",
  985. "description": "SCT04 sct04-archived",
  986. "metadata": {
  987. "kind": "main",
  988. "timingPolicy": "fast-text",
  989. "source": "synthetic",
  990. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  991. },
  992. "match": {
  993. "method": "POST",
  994. "pathIncludes": "/messages",
  995. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_ARCHIVED:"],
  996. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  997. },
  998. "response": {
  999. "statusCode": 200,
  1000. "toolUse": {
  1001. "name": "ReadSession",
  1002. "id": "toolu_sct04_archived",
  1003. "input": {
  1004. "view": "summary",
  1005. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}"
  1006. }
  1007. }
  1008. },
  1009. "maxMatches": 1
  1010. },
  1011. {
  1012. "id": "sct04-archived-returned",
  1013. "description": "SCT04 sct04-archived-returned",
  1014. "metadata": {
  1015. "kind": "main",
  1016. "timingPolicy": "fast-text",
  1017. "source": "synthetic",
  1018. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1019. },
  1020. "match": {
  1021. "method": "POST",
  1022. "pathIncludes": "/messages",
  1023. "bodyIncludes": ["E2E_SCT04_ACTION_ARCHIVED:", "toolu_sct04_archived"],
  1024. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1025. },
  1026. "response": {
  1027. "statusCode": 200,
  1028. "text": {
  1029. "text": "SCT04_ARCHIVED_RETURNED"
  1030. }
  1031. },
  1032. "maxMatches": 1
  1033. },
  1034. {
  1035. "id": "sct04-unarchive",
  1036. "description": "SCT04 sct04-unarchive",
  1037. "metadata": {
  1038. "kind": "main",
  1039. "timingPolicy": "fast-text",
  1040. "source": "synthetic",
  1041. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1042. },
  1043. "match": {
  1044. "method": "POST",
  1045. "pathIncludes": "/messages",
  1046. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_UNARCHIVE:"],
  1047. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1048. "bodyIncludes": ["E2E_SCT04_UNARCHIVE"]
  1049. },
  1050. "response": {
  1051. "statusCode": 200,
  1052. "toolUse": {
  1053. "name": "SetSessionArchived",
  1054. "id": "toolu_sct04_unarchive",
  1055. "input": {
  1056. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  1057. "archived": false
  1058. }
  1059. }
  1060. },
  1061. "maxMatches": 1
  1062. },
  1063. {
  1064. "id": "sct04-unarchive-returned",
  1065. "description": "SCT04 sct04-unarchive-returned",
  1066. "metadata": {
  1067. "kind": "main",
  1068. "timingPolicy": "fast-text",
  1069. "source": "synthetic",
  1070. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1071. },
  1072. "match": {
  1073. "method": "POST",
  1074. "pathIncludes": "/messages",
  1075. "bodyIncludes": ["E2E_SCT04_ACTION_UNARCHIVE:", "toolu_sct04_unarchive"],
  1076. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1077. },
  1078. "response": {
  1079. "statusCode": 200,
  1080. "text": {
  1081. "text": "SCT04_UNARCHIVE_RETURNED"
  1082. }
  1083. },
  1084. "maxMatches": 1
  1085. },
  1086. {
  1087. "id": "sct04-unpin",
  1088. "description": "SCT04 sct04-unpin",
  1089. "metadata": {
  1090. "kind": "main",
  1091. "timingPolicy": "fast-text",
  1092. "source": "synthetic",
  1093. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1094. },
  1095. "match": {
  1096. "method": "POST",
  1097. "pathIncludes": "/messages",
  1098. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_UNPIN:"],
  1099. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1100. "bodyIncludes": ["E2E_SCT04_UNPIN"]
  1101. },
  1102. "response": {
  1103. "statusCode": 200,
  1104. "toolUse": {
  1105. "name": "SetSessionPinned",
  1106. "id": "toolu_sct04_unpin",
  1107. "input": {
  1108. "pinned": false,
  1109. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}"
  1110. }
  1111. }
  1112. },
  1113. "maxMatches": 1
  1114. },
  1115. {
  1116. "id": "sct04-unpin-returned",
  1117. "description": "SCT04 sct04-unpin-returned",
  1118. "metadata": {
  1119. "kind": "main",
  1120. "timingPolicy": "fast-text",
  1121. "source": "synthetic",
  1122. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1123. },
  1124. "match": {
  1125. "method": "POST",
  1126. "pathIncludes": "/messages",
  1127. "bodyIncludes": ["E2E_SCT04_ACTION_UNPIN:", "toolu_sct04_unpin"],
  1128. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1129. },
  1130. "response": {
  1131. "statusCode": 200,
  1132. "text": {
  1133. "text": "SCT04_UNPIN_RETURNED"
  1134. }
  1135. },
  1136. "maxMatches": 1
  1137. },
  1138. {
  1139. "id": "sct04-interrupt",
  1140. "description": "SCT04 sct04-interrupt",
  1141. "metadata": {
  1142. "kind": "main",
  1143. "timingPolicy": "fast-text",
  1144. "source": "synthetic",
  1145. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1146. },
  1147. "match": {
  1148. "method": "POST",
  1149. "pathIncludes": "/messages",
  1150. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_INTERRUPT:"],
  1151. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1152. "bodyIncludes": ["E2E_SCT04_INTERRUPT"]
  1153. },
  1154. "response": {
  1155. "statusCode": 200,
  1156. "toolUse": {
  1157. "name": "InterruptSession",
  1158. "id": "toolu_sct04_interrupt",
  1159. "input": {
  1160. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  1161. "expectedExecutionId": "{{appControlResult:toolu_sct04_running.summary.executionId}}"
  1162. }
  1163. }
  1164. },
  1165. "maxMatches": 1
  1166. },
  1167. {
  1168. "id": "sct04-interrupt-returned",
  1169. "description": "SCT04 sct04-interrupt-returned",
  1170. "metadata": {
  1171. "kind": "main",
  1172. "timingPolicy": "fast-text",
  1173. "source": "synthetic",
  1174. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1175. },
  1176. "match": {
  1177. "method": "POST",
  1178. "pathIncludes": "/messages",
  1179. "bodyIncludes": ["E2E_SCT04_ACTION_INTERRUPT:", "toolu_sct04_interrupt"],
  1180. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1181. },
  1182. "response": {
  1183. "statusCode": 200,
  1184. "text": {
  1185. "text": "SCT04_INTERRUPT_RETURNED"
  1186. }
  1187. },
  1188. "maxMatches": 1
  1189. },
  1190. {
  1191. "id": "sct04-interrupted",
  1192. "description": "SCT04 sct04-interrupted",
  1193. "metadata": {
  1194. "kind": "main",
  1195. "timingPolicy": "fast-text",
  1196. "source": "synthetic",
  1197. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1198. },
  1199. "match": {
  1200. "method": "POST",
  1201. "pathIncludes": "/messages",
  1202. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_INTERRUPTED:"],
  1203. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1204. },
  1205. "response": {
  1206. "statusCode": 200,
  1207. "toolUse": {
  1208. "name": "WaitSessions",
  1209. "id": "toolu_sct04_interrupted",
  1210. "input": {
  1211. "operations": [
  1212. {
  1213. "sessionId": "{{appControlResult:toolu_sct04_run.session.sessionId}}",
  1214. "commandId": "{{appControlResult:toolu_sct04_run.operation.commandId}}"
  1215. }
  1216. ],
  1217. "mode": "all",
  1218. "timeoutMs": 30000
  1219. }
  1220. }
  1221. },
  1222. "maxMatches": 1
  1223. },
  1224. {
  1225. "id": "sct04-interrupted-returned",
  1226. "description": "SCT04 sct04-interrupted-returned",
  1227. "metadata": {
  1228. "kind": "main",
  1229. "timingPolicy": "fast-text",
  1230. "source": "synthetic",
  1231. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1232. },
  1233. "match": {
  1234. "method": "POST",
  1235. "pathIncludes": "/messages",
  1236. "bodyIncludes": ["E2E_SCT04_ACTION_INTERRUPTED:", "toolu_sct04_interrupted"],
  1237. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1238. },
  1239. "response": {
  1240. "statusCode": 200,
  1241. "text": {
  1242. "text": "SCT04_INTERRUPTED_RETURNED"
  1243. }
  1244. },
  1245. "maxMatches": 1
  1246. },
  1247. {
  1248. "id": "sct04-next",
  1249. "description": "SCT04 sct04-next",
  1250. "metadata": {
  1251. "kind": "main",
  1252. "timingPolicy": "fast-text",
  1253. "source": "synthetic",
  1254. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1255. },
  1256. "match": {
  1257. "method": "POST",
  1258. "pathIncludes": "/messages",
  1259. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_NEXT:"],
  1260. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1261. "bodyIncludes": ["E2E_SCT04_NEXT"]
  1262. },
  1263. "response": {
  1264. "statusCode": 200,
  1265. "toolUse": {
  1266. "name": "SendToSession",
  1267. "id": "toolu_sct04_next",
  1268. "input": {
  1269. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  1270. "prompt": "E2E_SCT04_NEXT_TARGET"
  1271. }
  1272. }
  1273. },
  1274. "maxMatches": 1
  1275. },
  1276. {
  1277. "id": "sct04-next-returned",
  1278. "description": "SCT04 sct04-next-returned",
  1279. "metadata": {
  1280. "kind": "main",
  1281. "timingPolicy": "fast-text",
  1282. "source": "synthetic",
  1283. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1284. },
  1285. "match": {
  1286. "method": "POST",
  1287. "pathIncludes": "/messages",
  1288. "bodyIncludes": ["E2E_SCT04_ACTION_NEXT:", "toolu_sct04_next"],
  1289. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1290. },
  1291. "response": {
  1292. "statusCode": 200,
  1293. "text": {
  1294. "text": "SCT04_NEXT_RETURNED"
  1295. }
  1296. },
  1297. "maxMatches": 1
  1298. },
  1299. {
  1300. "id": "sct04-next_running",
  1301. "description": "SCT04 sct04-next_running",
  1302. "metadata": {
  1303. "kind": "main",
  1304. "timingPolicy": "fast-text",
  1305. "source": "synthetic",
  1306. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1307. },
  1308. "match": {
  1309. "method": "POST",
  1310. "pathIncludes": "/messages",
  1311. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_NEXT_RUNNING:"],
  1312. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1313. },
  1314. "response": {
  1315. "statusCode": 200,
  1316. "toolUse": {
  1317. "name": "ReadSession",
  1318. "id": "toolu_sct04_next_running",
  1319. "input": {
  1320. "view": "summary",
  1321. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}"
  1322. }
  1323. }
  1324. },
  1325. "maxMatches": 1
  1326. },
  1327. {
  1328. "id": "sct04-next_running-returned",
  1329. "description": "SCT04 sct04-next_running-returned",
  1330. "metadata": {
  1331. "kind": "main",
  1332. "timingPolicy": "fast-text",
  1333. "source": "synthetic",
  1334. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1335. },
  1336. "match": {
  1337. "method": "POST",
  1338. "pathIncludes": "/messages",
  1339. "bodyIncludes": ["E2E_SCT04_ACTION_NEXT_RUNNING:", "toolu_sct04_next_running"],
  1340. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1341. },
  1342. "response": {
  1343. "statusCode": 200,
  1344. "text": {
  1345. "text": "SCT04_NEXT_RUNNING_RETURNED"
  1346. }
  1347. },
  1348. "maxMatches": 1
  1349. },
  1350. {
  1351. "id": "sct04-stale",
  1352. "description": "SCT04 sct04-stale",
  1353. "metadata": {
  1354. "kind": "main",
  1355. "timingPolicy": "fast-text",
  1356. "source": "synthetic",
  1357. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1358. },
  1359. "match": {
  1360. "method": "POST",
  1361. "pathIncludes": "/messages",
  1362. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_STALE:"],
  1363. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1364. "bodyIncludes": ["E2E_SCT04_STALE"]
  1365. },
  1366. "response": {
  1367. "statusCode": 200,
  1368. "toolUse": {
  1369. "name": "InterruptSession",
  1370. "id": "toolu_sct04_stale",
  1371. "input": {
  1372. "expectedExecutionId": "{{appControlResult:toolu_sct04_running.summary.executionId}}",
  1373. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}"
  1374. }
  1375. }
  1376. },
  1377. "maxMatches": 1
  1378. },
  1379. {
  1380. "id": "sct04-stale-returned",
  1381. "description": "SCT04 sct04-stale-returned",
  1382. "metadata": {
  1383. "kind": "main",
  1384. "timingPolicy": "fast-text",
  1385. "source": "synthetic",
  1386. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1387. },
  1388. "match": {
  1389. "method": "POST",
  1390. "pathIncludes": "/messages",
  1391. "bodyIncludes": ["E2E_SCT04_ACTION_STALE:", "toolu_sct04_stale"],
  1392. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1393. },
  1394. "response": {
  1395. "statusCode": 200,
  1396. "text": {
  1397. "text": "SCT04_STALE_RETURNED"
  1398. }
  1399. },
  1400. "maxMatches": 1
  1401. },
  1402. {
  1403. "id": "sct04-still_running",
  1404. "description": "SCT04 sct04-still_running",
  1405. "metadata": {
  1406. "kind": "main",
  1407. "timingPolicy": "fast-text",
  1408. "source": "synthetic",
  1409. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1410. },
  1411. "match": {
  1412. "method": "POST",
  1413. "pathIncludes": "/messages",
  1414. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_STILL_RUNNING:"],
  1415. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1416. },
  1417. "response": {
  1418. "statusCode": 200,
  1419. "toolUse": {
  1420. "name": "WaitSessions",
  1421. "id": "toolu_sct04_still_running",
  1422. "input": {
  1423. "operations": [
  1424. {
  1425. "sessionId": "{{appControlResult:toolu_sct04_next.session.sessionId}}",
  1426. "commandId": "{{appControlResult:toolu_sct04_next.operation.commandId}}"
  1427. }
  1428. ],
  1429. "mode": "all",
  1430. "timeoutMs": 0
  1431. }
  1432. }
  1433. },
  1434. "maxMatches": 1
  1435. },
  1436. {
  1437. "id": "sct04-still_running-returned",
  1438. "description": "SCT04 sct04-still_running-returned",
  1439. "metadata": {
  1440. "kind": "main",
  1441. "timingPolicy": "fast-text",
  1442. "source": "synthetic",
  1443. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1444. },
  1445. "match": {
  1446. "method": "POST",
  1447. "pathIncludes": "/messages",
  1448. "bodyIncludes": ["E2E_SCT04_ACTION_STILL_RUNNING:", "toolu_sct04_still_running"],
  1449. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1450. },
  1451. "response": {
  1452. "statusCode": 200,
  1453. "text": {
  1454. "text": "SCT04_STILL_RUNNING_RETURNED"
  1455. }
  1456. },
  1457. "maxMatches": 1
  1458. },
  1459. {
  1460. "id": "sct04-next_completed",
  1461. "description": "SCT04 sct04-next_completed",
  1462. "metadata": {
  1463. "kind": "main",
  1464. "timingPolicy": "fast-text",
  1465. "source": "synthetic",
  1466. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1467. },
  1468. "match": {
  1469. "method": "POST",
  1470. "pathIncludes": "/messages",
  1471. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_NEXT_COMPLETED:"],
  1472. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1473. },
  1474. "response": {
  1475. "statusCode": 200,
  1476. "toolUse": {
  1477. "name": "WaitSessions",
  1478. "id": "toolu_sct04_next_completed",
  1479. "input": {
  1480. "operations": [
  1481. {
  1482. "sessionId": "{{appControlResult:toolu_sct04_next.session.sessionId}}",
  1483. "commandId": "{{appControlResult:toolu_sct04_next.operation.commandId}}"
  1484. }
  1485. ],
  1486. "mode": "all",
  1487. "timeoutMs": 30000
  1488. }
  1489. }
  1490. },
  1491. "maxMatches": 1
  1492. },
  1493. {
  1494. "id": "sct04-next_completed-returned",
  1495. "description": "SCT04 sct04-next_completed-returned",
  1496. "metadata": {
  1497. "kind": "main",
  1498. "timingPolicy": "fast-text",
  1499. "source": "synthetic",
  1500. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1501. },
  1502. "match": {
  1503. "method": "POST",
  1504. "pathIncludes": "/messages",
  1505. "bodyIncludes": ["E2E_SCT04_ACTION_NEXT_COMPLETED:", "toolu_sct04_next_completed"],
  1506. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1507. },
  1508. "response": {
  1509. "statusCode": 200,
  1510. "text": {
  1511. "text": "SCT04_NEXT_COMPLETED_RETURNED"
  1512. }
  1513. },
  1514. "maxMatches": 1
  1515. },
  1516. {
  1517. "id": "sct04-final_history",
  1518. "description": "SCT04 sct04-final_history",
  1519. "metadata": {
  1520. "kind": "main",
  1521. "timingPolicy": "fast-text",
  1522. "source": "synthetic",
  1523. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1524. },
  1525. "match": {
  1526. "method": "POST",
  1527. "pathIncludes": "/messages",
  1528. "lastUserMessageIncludes": ["E2E_SCT04_ACTION_FINAL_HISTORY:"],
  1529. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1530. },
  1531. "response": {
  1532. "statusCode": 200,
  1533. "toolUse": {
  1534. "name": "ReadSession",
  1535. "id": "toolu_sct04_final_history",
  1536. "input": {
  1537. "sessionId": "{{appControlResult:toolu_sct04_fork.session.sessionId}}",
  1538. "view": "messages",
  1539. "limit": 20
  1540. }
  1541. }
  1542. },
  1543. "maxMatches": 1
  1544. },
  1545. {
  1546. "id": "sct04-final_history-returned",
  1547. "description": "SCT04 sct04-final_history-returned",
  1548. "metadata": {
  1549. "kind": "main",
  1550. "timingPolicy": "fast-text",
  1551. "source": "synthetic",
  1552. "syntheticReason": "受控模型只选择工具和响应文本;真实 Electron/Host/Agent 执行,动态身份、operation、分页边界与 execution 仅从真实 tool_result 读取;显式流闸门固定运行窗口。"
  1553. },
  1554. "match": {
  1555. "method": "POST",
  1556. "pathIncludes": "/messages",
  1557. "bodyIncludes": ["E2E_SCT04_ACTION_FINAL_HISTORY:", "toolu_sct04_final_history"],
  1558. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1559. },
  1560. "response": {
  1561. "statusCode": 200,
  1562. "text": {
  1563. "text": "SCT04_FINAL_HISTORY_RETURNED"
  1564. }
  1565. },
  1566. "maxMatches": 1
  1567. }
  1568. ]
  1569. }