conversation-session-dynamic-workflow-gray-always-on-resume.json 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-dynamic-workflow-gray-always-on-resume",
  4. "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-always-on-resume.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "dwu-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyExcludes": [],
  18. "bodyIncludes": ["Generate a concise title", "E2E_DWU_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\": \"msg_upstream_e2e_text\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"deepseek-v4-flash\", \"content\": [{\"type\": \"text\", \"text\": \"{\\\"title\\\":\\\"工作流恢复 E2E\\\"}\"}], \"stop_reason\": \"end_turn\", \"stop_sequence\": null, \"usage\": {\"input_tokens\": 128, \"cache_creation_input_tokens\": 0, \"cache_read_input_tokens\": 0, \"output_tokens\": 12, \"service_tier\": \"standard\"}}"
  26. }
  27. },
  28. {
  29. "id": "dwu-a-agent-done",
  30. "metadata": {
  31. "kind": "main",
  32. "source": "synthetic",
  33. "timingPolicy": "fast-text",
  34. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/messages",
  39. "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
  40. "bodyExcludes": [
  41. "Generate a concise title",
  42. "CRITICAL: Respond with TEXT ONLY",
  43. "You are now acting as the memory extraction subagent"
  44. ],
  45. "lastUserMessageIncludes": ["E2E_DWU_A_DONE_TASK"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "text": "E2E_DWU_A_DONE_ANSWER 记录已写好。"
  50. }
  51. },
  52. {
  53. "id": "dwu-a-agent-held-first",
  54. "metadata": {
  55. "kind": "main",
  56. "source": "synthetic",
  57. "timingPolicy": "controlled-stream",
  58. "syntheticReason": "子代理的回答以门闩挂起:第一次用来让用户在它未完成时停止,第二次让恢复后的运行态可被断言,不依赖固定响应延时。"
  59. },
  60. "match": {
  61. "method": "POST",
  62. "pathIncludes": "/messages",
  63. "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
  64. "bodyExcludes": [
  65. "Generate a concise title",
  66. "CRITICAL: Respond with TEXT ONLY",
  67. "You are now acting as the memory extraction subagent"
  68. ],
  69. "lastUserMessageIncludes": ["E2E_DWU_A_HELD_TASK"]
  70. },
  71. "response": {
  72. "statusCode": 200,
  73. "chunks": [
  74. {
  75. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_dwu-a-agent-held-first\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"usage\":{\"input_tokens\":256,\"output_tokens\":0}}}\n\n",
  76. "delayMs": 0
  77. },
  78. {
  79. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n",
  80. "delayMs": 0
  81. },
  82. {
  83. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_DWU_A_LOST_ANSWER 这一份永远不该送达。\"}}\n\n",
  84. "delayMs": 0
  85. },
  86. {
  87. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n",
  88. "delayMs": 0
  89. },
  90. {
  91. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\"},\"usage\":{\"output_tokens\":32}}\n\n",
  92. "delayMs": 0
  93. },
  94. {
  95. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
  96. "delayMs": 0
  97. }
  98. ],
  99. "releaseAfterChunks": 2
  100. },
  101. "maxMatches": 1
  102. },
  103. {
  104. "id": "dwu-a-agent-held-retry",
  105. "metadata": {
  106. "kind": "main",
  107. "source": "synthetic",
  108. "timingPolicy": "controlled-stream",
  109. "syntheticReason": "子代理的回答以门闩挂起:第一次用来让用户在它未完成时停止,第二次让恢复后的运行态可被断言,不依赖固定响应延时。"
  110. },
  111. "match": {
  112. "method": "POST",
  113. "pathIncludes": "/messages",
  114. "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
  115. "bodyExcludes": [
  116. "Generate a concise title",
  117. "CRITICAL: Respond with TEXT ONLY",
  118. "You are now acting as the memory extraction subagent"
  119. ],
  120. "lastUserMessageIncludes": ["E2E_DWU_A_HELD_TASK"]
  121. },
  122. "response": {
  123. "statusCode": 200,
  124. "chunks": [
  125. {
  126. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_dwu-a-agent-held-retry\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"usage\":{\"input_tokens\":256,\"output_tokens\":0}}}\n\n",
  127. "delayMs": 0
  128. },
  129. {
  130. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n",
  131. "delayMs": 0
  132. },
  133. {
  134. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_DWU_A_HELD_ANSWER 记录核对无误。\"}}\n\n",
  135. "delayMs": 0
  136. },
  137. {
  138. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n",
  139. "delayMs": 0
  140. },
  141. {
  142. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\"},\"usage\":{\"output_tokens\":32}}\n\n",
  143. "delayMs": 0
  144. },
  145. {
  146. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
  147. "delayMs": 0
  148. }
  149. ],
  150. "releaseAfterChunks": 2
  151. },
  152. "maxMatches": 1
  153. },
  154. {
  155. "id": "dwu-b-agent-done",
  156. "metadata": {
  157. "kind": "main",
  158. "source": "synthetic",
  159. "timingPolicy": "fast-text",
  160. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  161. },
  162. "match": {
  163. "method": "POST",
  164. "pathIncludes": "/messages",
  165. "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
  166. "bodyExcludes": [
  167. "Generate a concise title",
  168. "CRITICAL: Respond with TEXT ONLY",
  169. "You are now acting as the memory extraction subagent"
  170. ],
  171. "lastUserMessageIncludes": ["E2E_DWU_B_DONE_TASK"]
  172. },
  173. "response": {
  174. "statusCode": 200,
  175. "text": "E2E_DWU_B_DONE_ANSWER 准备完成。"
  176. }
  177. },
  178. {
  179. "id": "dwu-b-agent-last",
  180. "metadata": {
  181. "kind": "main",
  182. "source": "synthetic",
  183. "timingPolicy": "fast-text",
  184. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  185. },
  186. "match": {
  187. "method": "POST",
  188. "pathIncludes": "/messages",
  189. "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
  190. "bodyExcludes": [
  191. "Generate a concise title",
  192. "CRITICAL: Respond with TEXT ONLY",
  193. "You are now acting as the memory extraction subagent"
  194. ],
  195. "lastUserMessageIncludes": ["E2E_DWU_B_LAST_TASK"]
  196. },
  197. "response": {
  198. "statusCode": 200,
  199. "text": "E2E_DWU_B_LAST_ANSWER 收尾完成。"
  200. }
  201. },
  202. {
  203. "id": "dwu-a-stopped",
  204. "metadata": {
  205. "kind": "main",
  206. "source": "synthetic",
  207. "timingPolicy": "fast-text",
  208. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  209. },
  210. "match": {
  211. "method": "POST",
  212. "pathIncludes": "/messages",
  213. "lastUserMessageIncludes": [
  214. "<status>stopped</status>",
  215. "<description>E2E 恢复工作流甲</description>"
  216. ],
  217. "bodyExcludes": [
  218. "Generate a concise title",
  219. "CRITICAL: Respond with TEXT ONLY",
  220. "You are now acting as the memory extraction subagent",
  221. "You are a subagent inside a dynamic workflow run"
  222. ]
  223. },
  224. "response": {
  225. "statusCode": 200,
  226. "text": "E2E_DWU_A_STOP_NOTED 工作流已停止。"
  227. }
  228. },
  229. {
  230. "id": "dwu-a-completed",
  231. "metadata": {
  232. "kind": "main",
  233. "source": "synthetic",
  234. "timingPolicy": "fast-text",
  235. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  236. },
  237. "match": {
  238. "method": "POST",
  239. "pathIncludes": "/messages",
  240. "lastUserMessageIncludes": [
  241. "<status>completed</status>",
  242. "<description>E2E 恢复工作流甲</description>"
  243. ],
  244. "bodyExcludes": [
  245. "Generate a concise title",
  246. "CRITICAL: Respond with TEXT ONLY",
  247. "You are now acting as the memory extraction subagent",
  248. "You are a subagent inside a dynamic workflow run"
  249. ]
  250. },
  251. "response": {
  252. "statusCode": 200,
  253. "text": "E2E_DWU_A_DONE 工作流已跑完。"
  254. }
  255. },
  256. {
  257. "id": "dwu-a-skill",
  258. "metadata": {
  259. "kind": "main",
  260. "source": "synthetic",
  261. "timingPolicy": "fast-text",
  262. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  263. },
  264. "match": {
  265. "method": "POST",
  266. "pathIncludes": "/messages",
  267. "bodyExcludes": [
  268. "Generate a concise title",
  269. "CRITICAL: Respond with TEXT ONLY",
  270. "You are now acting as the memory extraction subagent",
  271. "You are a subagent inside a dynamic workflow run",
  272. "toolu_dwu_a_skill"
  273. ],
  274. "lastUserMessageIncludes": ["E2E_DWU_A_START"]
  275. },
  276. "response": {
  277. "statusCode": 200,
  278. "toolUse": {
  279. "id": "toolu_dwu_a_skill",
  280. "name": "Skill",
  281. "input": {
  282. "skill": "dynamic-workflows"
  283. }
  284. }
  285. }
  286. },
  287. {
  288. "id": "dwu-a-create",
  289. "metadata": {
  290. "kind": "main",
  291. "source": "synthetic",
  292. "timingPolicy": "fast-text",
  293. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  294. },
  295. "match": {
  296. "method": "POST",
  297. "pathIncludes": "/messages",
  298. "bodyExcludes": [
  299. "Generate a concise title",
  300. "CRITICAL: Respond with TEXT ONLY",
  301. "You are now acting as the memory extraction subagent",
  302. "You are a subagent inside a dynamic workflow run",
  303. "toolu_dwu_a_create"
  304. ],
  305. "bodyIncludes": ["E2E_DWU_A_START", "toolu_dwu_a_skill"]
  306. },
  307. "response": {
  308. "statusCode": 200,
  309. "toolUse": {
  310. "id": "toolu_dwu_a_create",
  311. "name": "CreateWorkflow",
  312. "input": {
  313. "name": "E2E 恢复工作流甲",
  314. "script": "phase(\"记录\");\nconst note = await agent(\"记录员\").ask(\"E2E_DWU_A_DONE_TASK 写一句记录。\");\nawait world.run(\"node\", [\"-e\", \"require('fs').appendFileSync('.e2e-dwu-a-count','x\\\\n')\"]);\nphase(\"核对\");\nconst check = await agent(\"核对员\").ask(\"E2E_DWU_A_HELD_TASK 核对这句记录。\");\nreturn { note, check };"
  315. }
  316. }
  317. }
  318. },
  319. {
  320. "id": "dwu-a-created",
  321. "metadata": {
  322. "kind": "main",
  323. "source": "synthetic",
  324. "timingPolicy": "fast-text",
  325. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  326. },
  327. "match": {
  328. "method": "POST",
  329. "pathIncludes": "/messages",
  330. "bodyIncludes": ["E2E_DWU_A_START", "toolu_dwu_a_create"],
  331. "lastUserMessageExcludes": ["<task-notification>", "<workflow-hole>"],
  332. "bodyExcludes": [
  333. "Generate a concise title",
  334. "CRITICAL: Respond with TEXT ONLY",
  335. "You are now acting as the memory extraction subagent",
  336. "You are a subagent inside a dynamic workflow run"
  337. ]
  338. },
  339. "response": {
  340. "statusCode": 200,
  341. "text": "E2E_DWU_A_STARTED 工作流已启动。"
  342. }
  343. },
  344. {
  345. "id": "dwu-b-completed",
  346. "metadata": {
  347. "kind": "main",
  348. "source": "synthetic",
  349. "timingPolicy": "fast-text",
  350. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  351. },
  352. "match": {
  353. "method": "POST",
  354. "pathIncludes": "/messages",
  355. "lastUserMessageIncludes": [
  356. "<status>completed</status>",
  357. "<description>E2E 恢复工作流乙</description>"
  358. ],
  359. "bodyExcludes": [
  360. "Generate a concise title",
  361. "CRITICAL: Respond with TEXT ONLY",
  362. "You are now acting as the memory extraction subagent",
  363. "You are a subagent inside a dynamic workflow run"
  364. ]
  365. },
  366. "response": {
  367. "statusCode": 200,
  368. "text": "E2E_DWU_B_DONE 工作流已跑完。"
  369. }
  370. },
  371. {
  372. "id": "dwu-b-skill",
  373. "metadata": {
  374. "kind": "main",
  375. "source": "synthetic",
  376. "timingPolicy": "fast-text",
  377. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  378. },
  379. "match": {
  380. "method": "POST",
  381. "pathIncludes": "/messages",
  382. "bodyExcludes": [
  383. "Generate a concise title",
  384. "CRITICAL: Respond with TEXT ONLY",
  385. "You are now acting as the memory extraction subagent",
  386. "You are a subagent inside a dynamic workflow run",
  387. "toolu_dwu_b_skill"
  388. ],
  389. "lastUserMessageIncludes": ["E2E_DWU_B_START"]
  390. },
  391. "response": {
  392. "statusCode": 200,
  393. "toolUse": {
  394. "id": "toolu_dwu_b_skill",
  395. "name": "Skill",
  396. "input": {
  397. "skill": "dynamic-workflows"
  398. }
  399. }
  400. }
  401. },
  402. {
  403. "id": "dwu-b-create",
  404. "metadata": {
  405. "kind": "main",
  406. "source": "synthetic",
  407. "timingPolicy": "fast-text",
  408. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  409. },
  410. "match": {
  411. "method": "POST",
  412. "pathIncludes": "/messages",
  413. "bodyExcludes": [
  414. "Generate a concise title",
  415. "CRITICAL: Respond with TEXT ONLY",
  416. "You are now acting as the memory extraction subagent",
  417. "You are a subagent inside a dynamic workflow run",
  418. "toolu_dwu_b_create"
  419. ],
  420. "bodyIncludes": ["E2E_DWU_B_START", "toolu_dwu_b_skill"]
  421. },
  422. "response": {
  423. "statusCode": 200,
  424. "toolUse": {
  425. "id": "toolu_dwu_b_create",
  426. "name": "CreateWorkflow",
  427. "input": {
  428. "name": "E2E 恢复工作流乙",
  429. "script": "phase(\"准备\");\nconst note = await agent(\"记录员\").ask(\"E2E_DWU_B_DONE_TASK 写一句准备记录。\");\nphase(\"等待放行\");\nawait world.run(\"node\", [\"-e\", \"const fs=require('fs');const t=setInterval(()=>{if(fs.existsSync('.e2e-dwu-b-release'))clearInterval(t)},100)\"], { timeoutMs: 600000 });\nphase(\"收尾\");\nconst last = await agent(\"收尾员\").ask(\"E2E_DWU_B_LAST_TASK 写一句收尾。\");\nreturn { note, last };"
  430. }
  431. }
  432. }
  433. },
  434. {
  435. "id": "dwu-b-created",
  436. "metadata": {
  437. "kind": "main",
  438. "source": "synthetic",
  439. "timingPolicy": "fast-text",
  440. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  441. },
  442. "match": {
  443. "method": "POST",
  444. "pathIncludes": "/messages",
  445. "bodyIncludes": ["E2E_DWU_B_START", "toolu_dwu_b_create"],
  446. "lastUserMessageExcludes": ["<task-notification>", "<workflow-hole>"],
  447. "bodyExcludes": [
  448. "Generate a concise title",
  449. "CRITICAL: Respond with TEXT ONLY",
  450. "You are now acting as the memory extraction subagent",
  451. "You are a subagent inside a dynamic workflow run"
  452. ]
  453. },
  454. "response": {
  455. "statusCode": 200,
  456. "text": "E2E_DWU_B_STARTED 工作流已启动。"
  457. }
  458. },
  459. {
  460. "id": "dwu-c-hole",
  461. "metadata": {
  462. "kind": "main",
  463. "source": "synthetic",
  464. "timingPolicy": "fast-text",
  465. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  466. },
  467. "match": {
  468. "method": "POST",
  469. "pathIncludes": "/messages",
  470. "lastUserMessageIncludes": ["<workflow-hole>"],
  471. "bodyExcludes": [
  472. "Generate a concise title",
  473. "CRITICAL: Respond with TEXT ONLY",
  474. "You are now acting as the memory extraction subagent",
  475. "You are a subagent inside a dynamic workflow run"
  476. ]
  477. },
  478. "response": {
  479. "statusCode": 200,
  480. "text": "E2E_DWU_C_WAITING 等待补全。"
  481. }
  482. },
  483. {
  484. "id": "dwu-c-stopped",
  485. "metadata": {
  486. "kind": "main",
  487. "source": "synthetic",
  488. "timingPolicy": "fast-text",
  489. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  490. },
  491. "match": {
  492. "method": "POST",
  493. "pathIncludes": "/messages",
  494. "lastUserMessageIncludes": [
  495. "<status>stopped</status>",
  496. "<description>E2E 恢复工作流丙</description>"
  497. ],
  498. "bodyExcludes": [
  499. "Generate a concise title",
  500. "CRITICAL: Respond with TEXT ONLY",
  501. "You are now acting as the memory extraction subagent",
  502. "You are a subagent inside a dynamic workflow run"
  503. ]
  504. },
  505. "response": {
  506. "statusCode": 200,
  507. "text": "E2E_DWU_C_STOP_NOTED 工作流已停止。"
  508. }
  509. },
  510. {
  511. "id": "dwu-c-completed",
  512. "metadata": {
  513. "kind": "main",
  514. "source": "synthetic",
  515. "timingPolicy": "fast-text",
  516. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  517. },
  518. "match": {
  519. "method": "POST",
  520. "pathIncludes": "/messages",
  521. "lastUserMessageIncludes": [
  522. "<status>completed</status>",
  523. "<description>E2E 恢复工作流丙</description>"
  524. ],
  525. "bodyExcludes": [
  526. "Generate a concise title",
  527. "CRITICAL: Respond with TEXT ONLY",
  528. "You are now acting as the memory extraction subagent",
  529. "You are a subagent inside a dynamic workflow run"
  530. ]
  531. },
  532. "response": {
  533. "statusCode": 200,
  534. "text": "E2E_DWU_C_DONE 工作流已跑完。"
  535. }
  536. },
  537. {
  538. "id": "dwu-c-early-fill",
  539. "metadata": {
  540. "kind": "main",
  541. "source": "synthetic",
  542. "timingPolicy": "fast-text",
  543. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  544. },
  545. "match": {
  546. "method": "POST",
  547. "pathIncludes": "/messages",
  548. "bodyExcludes": [
  549. "Generate a concise title",
  550. "CRITICAL: Respond with TEXT ONLY",
  551. "You are now acting as the memory extraction subagent",
  552. "You are a subagent inside a dynamic workflow run",
  553. "toolu_dwu_c_early"
  554. ],
  555. "lastUserMessageIncludes": ["E2E_DWU_C_EARLY_FILL"]
  556. },
  557. "response": {
  558. "statusCode": 200,
  559. "toolUse": {
  560. "id": "toolu_dwu_c_early",
  561. "name": "FillWorkflowHole",
  562. "input": {
  563. "run_id": "{{latestWorkflowRunId}}",
  564. "hole_id": "hole#21b40fca",
  565. "script": "phase(\"收集\");\nreturn { groups: [[\"early\"]] };"
  566. }
  567. }
  568. }
  569. },
  570. {
  571. "id": "dwu-c-resume",
  572. "metadata": {
  573. "kind": "main",
  574. "source": "synthetic",
  575. "timingPolicy": "fast-text",
  576. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  577. },
  578. "match": {
  579. "method": "POST",
  580. "pathIncludes": "/messages",
  581. "bodyExcludes": [
  582. "Generate a concise title",
  583. "CRITICAL: Respond with TEXT ONLY",
  584. "You are now acting as the memory extraction subagent",
  585. "You are a subagent inside a dynamic workflow run",
  586. "toolu_dwu_c_resume"
  587. ],
  588. "lastUserMessageIncludes": ["E2E_DWU_C_RESUME"]
  589. },
  590. "response": {
  591. "statusCode": 200,
  592. "toolUse": {
  593. "id": "toolu_dwu_c_resume",
  594. "name": "ResumeWorkflowRun",
  595. "input": {
  596. "run_id": "{{latestWorkflowRunId}}"
  597. }
  598. }
  599. }
  600. },
  601. {
  602. "id": "dwu-c-fill",
  603. "metadata": {
  604. "kind": "main",
  605. "source": "synthetic",
  606. "timingPolicy": "fast-text",
  607. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  608. },
  609. "match": {
  610. "method": "POST",
  611. "pathIncludes": "/messages",
  612. "bodyExcludes": [
  613. "Generate a concise title",
  614. "CRITICAL: Respond with TEXT ONLY",
  615. "You are now acting as the memory extraction subagent",
  616. "You are a subagent inside a dynamic workflow run",
  617. "toolu_dwu_c_fill"
  618. ],
  619. "lastUserMessageIncludes": ["E2E_DWU_C_FILL_NOW"]
  620. },
  621. "response": {
  622. "statusCode": 200,
  623. "toolUse": {
  624. "id": "toolu_dwu_c_fill",
  625. "name": "FillWorkflowHole",
  626. "input": {
  627. "run_id": "{{latestWorkflowRunId}}",
  628. "hole_id": "hole#21b40fca",
  629. "script": "phase(\"收集\");\nreturn { groups: [[\"one\"]] };"
  630. }
  631. }
  632. }
  633. },
  634. {
  635. "id": "dwu-c-filled",
  636. "metadata": {
  637. "kind": "main",
  638. "source": "synthetic",
  639. "timingPolicy": "fast-text",
  640. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  641. },
  642. "match": {
  643. "method": "POST",
  644. "pathIncludes": "/messages",
  645. "bodyIncludes": ["toolu_dwu_c_fill"],
  646. "bodyExcludes": [
  647. "Generate a concise title",
  648. "CRITICAL: Respond with TEXT ONLY",
  649. "You are now acting as the memory extraction subagent",
  650. "You are a subagent inside a dynamic workflow run"
  651. ]
  652. },
  653. "response": {
  654. "statusCode": 200,
  655. "text": "E2E_DWU_C_FILLED 留白已补全。"
  656. }
  657. },
  658. {
  659. "id": "dwu-c-resumed",
  660. "metadata": {
  661. "kind": "main",
  662. "source": "synthetic",
  663. "timingPolicy": "fast-text",
  664. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  665. },
  666. "match": {
  667. "method": "POST",
  668. "pathIncludes": "/messages",
  669. "bodyIncludes": ["toolu_dwu_c_resume"],
  670. "bodyExcludes": [
  671. "Generate a concise title",
  672. "CRITICAL: Respond with TEXT ONLY",
  673. "You are now acting as the memory extraction subagent",
  674. "You are a subagent inside a dynamic workflow run"
  675. ]
  676. },
  677. "response": {
  678. "statusCode": 200,
  679. "text": "E2E_DWU_C_RESUMED 工作流已恢复。"
  680. }
  681. },
  682. {
  683. "id": "dwu-c-early-refused",
  684. "metadata": {
  685. "kind": "main",
  686. "source": "synthetic",
  687. "timingPolicy": "fast-text",
  688. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  689. },
  690. "match": {
  691. "method": "POST",
  692. "pathIncludes": "/messages",
  693. "bodyIncludes": ["toolu_dwu_c_early"],
  694. "bodyExcludes": [
  695. "Generate a concise title",
  696. "CRITICAL: Respond with TEXT ONLY",
  697. "You are now acting as the memory extraction subagent",
  698. "You are a subagent inside a dynamic workflow run"
  699. ]
  700. },
  701. "response": {
  702. "statusCode": 200,
  703. "text": "E2E_DWU_C_EARLY_REFUSED 补全被拒绝。"
  704. }
  705. },
  706. {
  707. "id": "dwu-c-skill",
  708. "metadata": {
  709. "kind": "main",
  710. "source": "synthetic",
  711. "timingPolicy": "fast-text",
  712. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  713. },
  714. "match": {
  715. "method": "POST",
  716. "pathIncludes": "/messages",
  717. "bodyExcludes": [
  718. "Generate a concise title",
  719. "CRITICAL: Respond with TEXT ONLY",
  720. "You are now acting as the memory extraction subagent",
  721. "You are a subagent inside a dynamic workflow run",
  722. "toolu_dwu_c_skill"
  723. ],
  724. "lastUserMessageIncludes": ["E2E_DWU_C_START"]
  725. },
  726. "response": {
  727. "statusCode": 200,
  728. "toolUse": {
  729. "id": "toolu_dwu_c_skill",
  730. "name": "Skill",
  731. "input": {
  732. "skill": "dynamic-workflows"
  733. }
  734. }
  735. }
  736. },
  737. {
  738. "id": "dwu-c-create",
  739. "metadata": {
  740. "kind": "main",
  741. "source": "synthetic",
  742. "timingPolicy": "fast-text",
  743. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  744. },
  745. "match": {
  746. "method": "POST",
  747. "pathIncludes": "/messages",
  748. "bodyExcludes": [
  749. "Generate a concise title",
  750. "CRITICAL: Respond with TEXT ONLY",
  751. "You are now acting as the memory extraction subagent",
  752. "You are a subagent inside a dynamic workflow run",
  753. "toolu_dwu_c_create"
  754. ],
  755. "bodyIncludes": ["E2E_DWU_C_START", "toolu_dwu_c_skill"]
  756. },
  757. "response": {
  758. "statusCode": 200,
  759. "toolUse": {
  760. "id": "toolu_dwu_c_create",
  761. "name": "CreateWorkflow",
  762. "input": {
  763. "name": "E2E 恢复工作流丙",
  764. "script": "interface Plan { groups: string[][] }\nphase(\"准备\");\nconst plan = await hole<Plan>(\"决定分组\", \"补全须返回 Plan\");\nphase(\"汇总\");\nreturn { plan };"
  765. }
  766. }
  767. }
  768. },
  769. {
  770. "id": "dwu-c-created",
  771. "metadata": {
  772. "kind": "main",
  773. "source": "synthetic",
  774. "timingPolicy": "fast-text",
  775. "syntheticReason": "固定 Skill/CreateWorkflow、恢复与补全的模型选择以及子代理回答;真实工作流编译、审批、停止、中断收口、恢复重放、留白与通知由产品链路执行。"
  776. },
  777. "match": {
  778. "method": "POST",
  779. "pathIncludes": "/messages",
  780. "bodyIncludes": ["E2E_DWU_C_START", "toolu_dwu_c_create"],
  781. "lastUserMessageExcludes": ["<task-notification>", "<workflow-hole>"],
  782. "bodyExcludes": [
  783. "Generate a concise title",
  784. "CRITICAL: Respond with TEXT ONLY",
  785. "You are now acting as the memory extraction subagent",
  786. "You are a subagent inside a dynamic workflow run"
  787. ]
  788. },
  789. "response": {
  790. "statusCode": 200,
  791. "text": "E2E_DWU_C_STARTED 工作流已启动。"
  792. }
  793. }
  794. ]
  795. }