conversation-session-dynamic-workflow-gray-always-on-lookup.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-dynamic-workflow-gray-always-on-lookup",
  4. "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-always-on-lookup.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "dwl-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyExcludes": [],
  18. "bodyIncludes": ["Generate a concise title", "E2E_DWL_"]
  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": "dwl-subagent-prep",
  30. "metadata": {
  31. "kind": "main",
  32. "source": "synthetic",
  33. "timingPolicy": "fast-text",
  34. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  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_DWL_PREP"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "text": "条目整理完毕:一、二。"
  50. }
  51. },
  52. {
  53. "id": "dwl-subagent-check",
  54. "metadata": {
  55. "kind": "main",
  56. "source": "synthetic",
  57. "timingPolicy": "fast-text",
  58. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  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. "toolu_dwl_escalate"
  69. ],
  70. "lastUserMessageIncludes": ["E2E_DWL_CHECK"]
  71. },
  72. "response": {
  73. "statusCode": 200,
  74. "toolUse": {
  75. "id": "toolu_dwl_escalate",
  76. "name": "escalate",
  77. "input": {
  78. "question": "E2E_DWL_QUESTION 条目二该不该保留?",
  79. "context": "E2E_DWL_CONTEXT 清单前后矛盾。"
  80. }
  81. }
  82. }
  83. },
  84. {
  85. "id": "dwl-done",
  86. "metadata": {
  87. "kind": "main",
  88. "source": "synthetic",
  89. "timingPolicy": "fast-text",
  90. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  91. },
  92. "match": {
  93. "method": "POST",
  94. "pathIncludes": "/messages",
  95. "bodyExcludes": [
  96. "Generate a concise title",
  97. "CRITICAL: Respond with TEXT ONLY",
  98. "You are now acting as the memory extraction subagent",
  99. "You are a subagent inside a dynamic workflow run"
  100. ],
  101. "bodyIncludes": ["E2E_DWL_START", "toolu_dwl_amend"],
  102. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"]
  103. },
  104. "response": {
  105. "statusCode": 200,
  106. "text": "E2E_DWL_DONE 调整后的工作流已完成。"
  107. }
  108. },
  109. {
  110. "id": "dwl-seen",
  111. "metadata": {
  112. "kind": "main",
  113. "source": "synthetic",
  114. "timingPolicy": "fast-text",
  115. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  116. },
  117. "match": {
  118. "method": "POST",
  119. "pathIncludes": "/messages",
  120. "bodyExcludes": [
  121. "Generate a concise title",
  122. "CRITICAL: Respond with TEXT ONLY",
  123. "You are now acting as the memory extraction subagent",
  124. "You are a subagent inside a dynamic workflow run"
  125. ],
  126. "bodyIncludes": ["E2E_DWL_START"],
  127. "lastUserMessageIncludes": ["<workflow-escalation>"]
  128. },
  129. "response": {
  130. "statusCode": 200,
  131. "text": "E2E_DWL_SEEN 子代理在问条目二,请你确认。"
  132. }
  133. },
  134. {
  135. "id": "dwl-after-done",
  136. "metadata": {
  137. "kind": "main",
  138. "source": "synthetic",
  139. "timingPolicy": "fast-text",
  140. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  141. },
  142. "match": {
  143. "method": "POST",
  144. "pathIncludes": "/messages",
  145. "bodyExcludes": [
  146. "Generate a concise title",
  147. "CRITICAL: Respond with TEXT ONLY",
  148. "You are now acting as the memory extraction subagent",
  149. "You are a subagent inside a dynamic workflow run"
  150. ],
  151. "bodyIncludes": ["toolu_dwl_after_list"]
  152. },
  153. "response": {
  154. "statusCode": 200,
  155. "text": "E2E_DWL_AFTER_DONE 重启后查询完毕。"
  156. }
  157. },
  158. {
  159. "id": "dwl-after-list",
  160. "metadata": {
  161. "kind": "main",
  162. "source": "synthetic",
  163. "timingPolicy": "fast-text",
  164. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  165. },
  166. "match": {
  167. "method": "POST",
  168. "pathIncludes": "/messages",
  169. "bodyExcludes": [
  170. "Generate a concise title",
  171. "CRITICAL: Respond with TEXT ONLY",
  172. "You are now acting as the memory extraction subagent",
  173. "You are a subagent inside a dynamic workflow run",
  174. "toolu_dwl_after_list"
  175. ],
  176. "bodyIncludes": ["toolu_dwl_after_get"]
  177. },
  178. "response": {
  179. "statusCode": 200,
  180. "toolUse": {
  181. "id": "toolu_dwl_after_list",
  182. "name": "ListWorkflowRuns",
  183. "input": {}
  184. }
  185. }
  186. },
  187. {
  188. "id": "dwl-after-get",
  189. "metadata": {
  190. "kind": "main",
  191. "source": "synthetic",
  192. "timingPolicy": "fast-text",
  193. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  194. },
  195. "match": {
  196. "method": "POST",
  197. "pathIncludes": "/messages",
  198. "bodyExcludes": [
  199. "Generate a concise title",
  200. "CRITICAL: Respond with TEXT ONLY",
  201. "You are now acting as the memory extraction subagent",
  202. "You are a subagent inside a dynamic workflow run",
  203. "toolu_dwl_after_get"
  204. ],
  205. "lastUserMessageIncludes": ["E2E_DWL_AFTER"]
  206. },
  207. "response": {
  208. "statusCode": 200,
  209. "toolUse": {
  210. "id": "toolu_dwl_after_get",
  211. "name": "GetWorkflowRun",
  212. "input": {
  213. "run_id": "{{latestWorkflowRunId}}"
  214. }
  215. }
  216. }
  217. },
  218. {
  219. "id": "dwl-get-b-done",
  220. "metadata": {
  221. "kind": "main",
  222. "source": "synthetic",
  223. "timingPolicy": "fast-text",
  224. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  225. },
  226. "match": {
  227. "method": "POST",
  228. "pathIncludes": "/messages",
  229. "bodyExcludes": [
  230. "Generate a concise title",
  231. "CRITICAL: Respond with TEXT ONLY",
  232. "You are now acting as the memory extraction subagent",
  233. "You are a subagent inside a dynamic workflow run"
  234. ],
  235. "bodyIncludes": ["toolu_dwl_get_b"]
  236. },
  237. "response": {
  238. "statusCode": 200,
  239. "text": "E2E_DWL_GET_B_DONE 新实例已完成。"
  240. }
  241. },
  242. {
  243. "id": "dwl-get-b",
  244. "metadata": {
  245. "kind": "main",
  246. "source": "synthetic",
  247. "timingPolicy": "fast-text",
  248. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  249. },
  250. "match": {
  251. "method": "POST",
  252. "pathIncludes": "/messages",
  253. "bodyExcludes": [
  254. "Generate a concise title",
  255. "CRITICAL: Respond with TEXT ONLY",
  256. "You are now acting as the memory extraction subagent",
  257. "You are a subagent inside a dynamic workflow run",
  258. "toolu_dwl_get_b"
  259. ],
  260. "lastUserMessageIncludes": ["E2E_DWL_GET_B"]
  261. },
  262. "response": {
  263. "statusCode": 200,
  264. "toolUse": {
  265. "id": "toolu_dwl_get_b",
  266. "name": "GetWorkflowRun",
  267. "input": {
  268. "run_id": "{{latestWorkflowRunId}}"
  269. }
  270. }
  271. }
  272. },
  273. {
  274. "id": "dwl-list-done",
  275. "metadata": {
  276. "kind": "main",
  277. "source": "synthetic",
  278. "timingPolicy": "fast-text",
  279. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  280. },
  281. "match": {
  282. "method": "POST",
  283. "pathIncludes": "/messages",
  284. "bodyExcludes": [
  285. "Generate a concise title",
  286. "CRITICAL: Respond with TEXT ONLY",
  287. "You are now acting as the memory extraction subagent",
  288. "You are a subagent inside a dynamic workflow run"
  289. ],
  290. "bodyIncludes": ["toolu_dwl_get_a_stopped"]
  291. },
  292. "response": {
  293. "statusCode": 200,
  294. "text": "E2E_DWL_LIST_DONE 实例都列出来了。"
  295. }
  296. },
  297. {
  298. "id": "dwl-get-a-stopped",
  299. "metadata": {
  300. "kind": "main",
  301. "source": "synthetic",
  302. "timingPolicy": "fast-text",
  303. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  304. },
  305. "match": {
  306. "method": "POST",
  307. "pathIncludes": "/messages",
  308. "bodyExcludes": [
  309. "Generate a concise title",
  310. "CRITICAL: Respond with TEXT ONLY",
  311. "You are now acting as the memory extraction subagent",
  312. "You are a subagent inside a dynamic workflow run",
  313. "toolu_dwl_get_a_stopped"
  314. ],
  315. "bodyIncludes": ["toolu_dwl_list_limited"]
  316. },
  317. "response": {
  318. "statusCode": 200,
  319. "toolUse": {
  320. "id": "toolu_dwl_get_a_stopped",
  321. "name": "GetWorkflowRun",
  322. "input": {
  323. "run_id": "{{latestWorkflowRunId}}"
  324. }
  325. }
  326. }
  327. },
  328. {
  329. "id": "dwl-list-limited",
  330. "metadata": {
  331. "kind": "main",
  332. "source": "synthetic",
  333. "timingPolicy": "fast-text",
  334. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  335. },
  336. "match": {
  337. "method": "POST",
  338. "pathIncludes": "/messages",
  339. "bodyExcludes": [
  340. "Generate a concise title",
  341. "CRITICAL: Respond with TEXT ONLY",
  342. "You are now acting as the memory extraction subagent",
  343. "You are a subagent inside a dynamic workflow run",
  344. "toolu_dwl_list_limited"
  345. ],
  346. "bodyIncludes": ["toolu_dwl_list_final"]
  347. },
  348. "response": {
  349. "statusCode": 200,
  350. "toolUse": {
  351. "id": "toolu_dwl_list_limited",
  352. "name": "ListWorkflowRuns",
  353. "input": {
  354. "limit": 1
  355. }
  356. }
  357. }
  358. },
  359. {
  360. "id": "dwl-list-final",
  361. "metadata": {
  362. "kind": "main",
  363. "source": "synthetic",
  364. "timingPolicy": "fast-text",
  365. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  366. },
  367. "match": {
  368. "method": "POST",
  369. "pathIncludes": "/messages",
  370. "bodyExcludes": [
  371. "Generate a concise title",
  372. "CRITICAL: Respond with TEXT ONLY",
  373. "You are now acting as the memory extraction subagent",
  374. "You are a subagent inside a dynamic workflow run",
  375. "toolu_dwl_list_final"
  376. ],
  377. "lastUserMessageIncludes": ["E2E_DWL_LIST"]
  378. },
  379. "response": {
  380. "statusCode": 200,
  381. "toolUse": {
  382. "id": "toolu_dwl_list_final",
  383. "name": "ListWorkflowRuns",
  384. "input": {}
  385. }
  386. }
  387. },
  388. {
  389. "id": "dwl-amended",
  390. "metadata": {
  391. "kind": "main",
  392. "source": "synthetic",
  393. "timingPolicy": "fast-text",
  394. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  395. },
  396. "match": {
  397. "method": "POST",
  398. "pathIncludes": "/messages",
  399. "bodyExcludes": [
  400. "Generate a concise title",
  401. "CRITICAL: Respond with TEXT ONLY",
  402. "You are now acting as the memory extraction subagent",
  403. "You are a subagent inside a dynamic workflow run"
  404. ],
  405. "bodyIncludes": ["toolu_dwl_amend"],
  406. "lastUserMessageExcludes": ["<task-notification>"]
  407. },
  408. "response": {
  409. "statusCode": 200,
  410. "text": "E2E_DWL_AMENDED 已按新脚本调整工作流。"
  411. }
  412. },
  413. {
  414. "id": "dwl-amend",
  415. "metadata": {
  416. "kind": "main",
  417. "source": "synthetic",
  418. "timingPolicy": "fast-text",
  419. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  420. },
  421. "match": {
  422. "method": "POST",
  423. "pathIncludes": "/messages",
  424. "bodyExcludes": [
  425. "Generate a concise title",
  426. "CRITICAL: Respond with TEXT ONLY",
  427. "You are now acting as the memory extraction subagent",
  428. "You are a subagent inside a dynamic workflow run",
  429. "toolu_dwl_amend"
  430. ],
  431. "lastUserMessageIncludes": ["E2E_DWL_AMEND"]
  432. },
  433. "response": {
  434. "statusCode": 200,
  435. "toolUse": {
  436. "id": "toolu_dwl_amend",
  437. "name": "AmendWorkflow",
  438. "input": {
  439. "run_id": "{{latestWorkflowRunId}}",
  440. "script": "phase(\"准备\");\nconst prep = await agent(\"整理员\").ask(\"E2E_DWL_PREP 列出要处理的条目\");\nphase(\"收尾\");\nreturn { prep, amended: true };"
  441. }
  442. }
  443. }
  444. },
  445. {
  446. "id": "dwl-peek-done",
  447. "metadata": {
  448. "kind": "main",
  449. "source": "synthetic",
  450. "timingPolicy": "fast-text",
  451. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  452. },
  453. "match": {
  454. "method": "POST",
  455. "pathIncludes": "/messages",
  456. "bodyExcludes": [
  457. "Generate a concise title",
  458. "CRITICAL: Respond with TEXT ONLY",
  459. "You are now acting as the memory extraction subagent",
  460. "You are a subagent inside a dynamic workflow run"
  461. ],
  462. "bodyIncludes": ["toolu_dwl_peek_get"]
  463. },
  464. "response": {
  465. "statusCode": 200,
  466. "text": "E2E_DWL_PEEK_DONE 另一个会话看完了。"
  467. }
  468. },
  469. {
  470. "id": "dwl-peek-get",
  471. "metadata": {
  472. "kind": "main",
  473. "source": "synthetic",
  474. "timingPolicy": "fast-text",
  475. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  476. },
  477. "match": {
  478. "method": "POST",
  479. "pathIncludes": "/messages",
  480. "bodyExcludes": [
  481. "Generate a concise title",
  482. "CRITICAL: Respond with TEXT ONLY",
  483. "You are now acting as the memory extraction subagent",
  484. "You are a subagent inside a dynamic workflow run",
  485. "toolu_dwl_peek_get"
  486. ],
  487. "bodyIncludes": ["toolu_dwl_peek_list"]
  488. },
  489. "response": {
  490. "statusCode": 200,
  491. "toolUse": {
  492. "id": "toolu_dwl_peek_get",
  493. "name": "GetWorkflowRun",
  494. "input": {
  495. "run_id": "{{latestWorkflowRunId}}"
  496. }
  497. }
  498. }
  499. },
  500. {
  501. "id": "dwl-peek-list",
  502. "metadata": {
  503. "kind": "main",
  504. "source": "synthetic",
  505. "timingPolicy": "fast-text",
  506. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  507. },
  508. "match": {
  509. "method": "POST",
  510. "pathIncludes": "/messages",
  511. "bodyExcludes": [
  512. "Generate a concise title",
  513. "CRITICAL: Respond with TEXT ONLY",
  514. "You are now acting as the memory extraction subagent",
  515. "You are a subagent inside a dynamic workflow run",
  516. "toolu_dwl_peek_list"
  517. ],
  518. "lastUserMessageIncludes": ["E2E_DWL_PEEK"]
  519. },
  520. "response": {
  521. "statusCode": 200,
  522. "toolUse": {
  523. "id": "toolu_dwl_peek_list",
  524. "name": "ListWorkflowRuns",
  525. "input": {}
  526. }
  527. }
  528. },
  529. {
  530. "id": "dwl-look-done",
  531. "metadata": {
  532. "kind": "main",
  533. "source": "synthetic",
  534. "timingPolicy": "fast-text",
  535. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  536. },
  537. "match": {
  538. "method": "POST",
  539. "pathIncludes": "/messages",
  540. "bodyExcludes": [
  541. "Generate a concise title",
  542. "CRITICAL: Respond with TEXT ONLY",
  543. "You are now acting as the memory extraction subagent",
  544. "You are a subagent inside a dynamic workflow run"
  545. ],
  546. "bodyIncludes": ["toolu_dwl_look_list"]
  547. },
  548. "response": {
  549. "statusCode": 200,
  550. "text": "E2E_DWL_LOOK_DONE 工作流还在跑,有一个问题在等。"
  551. }
  552. },
  553. {
  554. "id": "dwl-look-list",
  555. "metadata": {
  556. "kind": "main",
  557. "source": "synthetic",
  558. "timingPolicy": "fast-text",
  559. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  560. },
  561. "match": {
  562. "method": "POST",
  563. "pathIncludes": "/messages",
  564. "bodyExcludes": [
  565. "Generate a concise title",
  566. "CRITICAL: Respond with TEXT ONLY",
  567. "You are now acting as the memory extraction subagent",
  568. "You are a subagent inside a dynamic workflow run",
  569. "toolu_dwl_look_list"
  570. ],
  571. "bodyIncludes": ["toolu_dwl_look_get"]
  572. },
  573. "response": {
  574. "statusCode": 200,
  575. "toolUse": {
  576. "id": "toolu_dwl_look_list",
  577. "name": "ListWorkflowRuns",
  578. "input": {}
  579. }
  580. }
  581. },
  582. {
  583. "id": "dwl-look-get",
  584. "metadata": {
  585. "kind": "main",
  586. "source": "synthetic",
  587. "timingPolicy": "fast-text",
  588. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  589. },
  590. "match": {
  591. "method": "POST",
  592. "pathIncludes": "/messages",
  593. "bodyExcludes": [
  594. "Generate a concise title",
  595. "CRITICAL: Respond with TEXT ONLY",
  596. "You are now acting as the memory extraction subagent",
  597. "You are a subagent inside a dynamic workflow run",
  598. "toolu_dwl_look_get"
  599. ],
  600. "lastUserMessageIncludes": ["E2E_DWL_LOOK"]
  601. },
  602. "response": {
  603. "statusCode": 200,
  604. "toolUse": {
  605. "id": "toolu_dwl_look_get",
  606. "name": "GetWorkflowRun",
  607. "input": {
  608. "run_id": "{{latestWorkflowRunId}}"
  609. }
  610. }
  611. }
  612. },
  613. {
  614. "id": "dwl-skill",
  615. "metadata": {
  616. "kind": "main",
  617. "source": "synthetic",
  618. "timingPolicy": "fast-text",
  619. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  620. },
  621. "match": {
  622. "method": "POST",
  623. "pathIncludes": "/messages",
  624. "bodyExcludes": [
  625. "Generate a concise title",
  626. "CRITICAL: Respond with TEXT ONLY",
  627. "You are now acting as the memory extraction subagent",
  628. "You are a subagent inside a dynamic workflow run",
  629. "toolu_dwl_skill"
  630. ],
  631. "lastUserMessageIncludes": ["E2E_DWL_START"]
  632. },
  633. "response": {
  634. "statusCode": 200,
  635. "toolUse": {
  636. "id": "toolu_dwl_skill",
  637. "name": "Skill",
  638. "input": {
  639. "skill": "dynamic-workflows"
  640. }
  641. }
  642. }
  643. },
  644. {
  645. "id": "dwl-create",
  646. "metadata": {
  647. "kind": "main",
  648. "source": "synthetic",
  649. "timingPolicy": "fast-text",
  650. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  651. },
  652. "match": {
  653. "method": "POST",
  654. "pathIncludes": "/messages",
  655. "bodyExcludes": [
  656. "Generate a concise title",
  657. "CRITICAL: Respond with TEXT ONLY",
  658. "You are now acting as the memory extraction subagent",
  659. "You are a subagent inside a dynamic workflow run",
  660. "toolu_dwl_create"
  661. ],
  662. "bodyIncludes": ["E2E_DWL_START", "toolu_dwl_skill"]
  663. },
  664. "response": {
  665. "statusCode": 200,
  666. "toolUse": {
  667. "id": "toolu_dwl_create",
  668. "name": "CreateWorkflow",
  669. "input": {
  670. "name": "E2E 查询工作流",
  671. "script": "phase(\"准备\");\nconst prep = await agent(\"整理员\").ask(\"E2E_DWL_PREP 列出要处理的条目\");\nlog(\"E2E_DWL_LOG 条目已列出\");\nphase(\"核对\");\n// 闸文件:用例在启动轮收尾之后才写它,升级通知因此唤起自己的一轮,不并进启动轮。\nawait world.run(\"node\", [\"-e\", \"const fs = require(\\\"node:fs\\\"); const timer = setInterval(() => { if (fs.existsSync(\\\"{{e2eRuntimeRoot}}/dwl-gate\\\")) clearInterval(timer); }, 100);\"], { output: \"discard\", timeoutMs: 600000 });\nconst check = await agent(\"核对员\").ask(\"E2E_DWL_CHECK 核对条目;拿不准时用 escalate 问主代理。\");\nphase(\"收尾\");\nreturn { prep, check };"
  672. }
  673. }
  674. }
  675. },
  676. {
  677. "id": "dwl-created",
  678. "metadata": {
  679. "kind": "main",
  680. "source": "synthetic",
  681. "timingPolicy": "fast-text",
  682. "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
  683. },
  684. "match": {
  685. "method": "POST",
  686. "pathIncludes": "/messages",
  687. "bodyExcludes": [
  688. "Generate a concise title",
  689. "CRITICAL: Respond with TEXT ONLY",
  690. "You are now acting as the memory extraction subagent",
  691. "You are a subagent inside a dynamic workflow run"
  692. ],
  693. "bodyIncludes": ["E2E_DWL_START", "toolu_dwl_create"]
  694. },
  695. "response": {
  696. "statusCode": 200,
  697. "text": "E2E_DWL_STARTED 工作流已启动。"
  698. }
  699. }
  700. ]
  701. }