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

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