conversation-session-dynamic-workflow-gray-always-on-confirm.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-dynamic-workflow-gray-always-on-confirm",
  4. "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-always-on-confirm.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "dwc-title",
  8. "description": "E2E_DWC_ 各会话首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_DWC_ 各会话首发会触发默认 title sidecar;固定 case-local 标题响应,并用 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_DWC_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\":\"dwc-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\": \\\"Workflow Confirm E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8,\"service_tier\":\"standard\"}}"
  26. }
  27. },
  28. {
  29. "id": "dwc-run-notified",
  30. "description": "放行后的 run 完成,主代理读到 <task-notification> 后的收尾文本。",
  31. "metadata": {
  32. "kind": "main",
  33. "timingPolicy": "task-notification",
  34. "source": "synthetic",
  35. "syntheticReason": "放行的 run 由真实引擎跑完并发出真实通知;回放只固定主代理读到通知后的收尾文本。"
  36. },
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/messages",
  40. "bodyIncludes": ["E2E_DWC_"],
  41. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  42. "lastUserMessageIncludes": ["<task-notification>"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "text": {
  47. "id": "dwc-run-notified",
  48. "inputTokens": 80,
  49. "outputTokens": 8,
  50. "text": "E2E_DWC_NOTIFIED 工作流已完成。"
  51. }
  52. }
  53. },
  54. {
  55. "id": "dwc-deny-skill",
  56. "description": "DWC-01:先加载工作流 Skill。",
  57. "metadata": {
  58. "kind": "main",
  59. "timingPolicy": "fast-text",
  60. "source": "synthetic",
  61. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  62. },
  63. "maxMatches": 1,
  64. "match": {
  65. "method": "POST",
  66. "pathIncludes": "/messages",
  67. "bodyExcludes": [
  68. "Generate a concise title",
  69. "CRITICAL: Respond with TEXT ONLY",
  70. "toolu_dwc_deny_skill"
  71. ],
  72. "lastUserMessageIncludes": ["E2E_DWC_DENY"]
  73. },
  74. "response": {
  75. "statusCode": 200,
  76. "toolUse": {
  77. "id": "toolu_dwc_deny_skill",
  78. "name": "Skill",
  79. "input": {
  80. "skill": "dynamic-workflows"
  81. }
  82. }
  83. }
  84. },
  85. {
  86. "id": "dwc-deny-create",
  87. "description": "DWC-01:CreateWorkflow 打开确认窗。",
  88. "metadata": {
  89. "kind": "main",
  90. "timingPolicy": "fast-text",
  91. "source": "synthetic",
  92. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  93. },
  94. "maxMatches": 1,
  95. "match": {
  96. "method": "POST",
  97. "pathIncludes": "/messages",
  98. "bodyIncludes": ["E2E_DWC_DENY", "toolu_dwc_deny_skill"],
  99. "bodyExcludes": [
  100. "Generate a concise title",
  101. "CRITICAL: Respond with TEXT ONLY",
  102. "toolu_dwc_deny_create"
  103. ]
  104. },
  105. "response": {
  106. "statusCode": 200,
  107. "toolUse": {
  108. "id": "toolu_dwc_deny_create",
  109. "name": "CreateWorkflow",
  110. "input": {
  111. "name": "E2E_DWC_DENY_RUN",
  112. "script": "phase(\"检查\");\nreturn \"E2E_DWC_DENY_RESULT\";"
  113. }
  114. }
  115. }
  116. },
  117. {
  118. "id": "dwc-deny-final",
  119. "description": "DWC-01:拒绝后模型读到未获批准的结果,给出终态文本。",
  120. "metadata": {
  121. "kind": "main",
  122. "timingPolicy": "fast-text",
  123. "source": "synthetic",
  124. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  125. },
  126. "maxMatches": 1,
  127. "match": {
  128. "method": "POST",
  129. "pathIncludes": "/messages",
  130. "bodyIncludes": ["E2E_DWC_DENY", "toolu_dwc_deny_create"],
  131. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  132. },
  133. "response": {
  134. "statusCode": 200,
  135. "text": {
  136. "id": "dwc-deny-final",
  137. "inputTokens": 80,
  138. "outputTokens": 8,
  139. "text": "E2E_DWC_DENY_DONE 好的,不运行。"
  140. }
  141. }
  142. },
  143. {
  144. "id": "dwc-refine-skill",
  145. "description": "DWC-02:先加载工作流 Skill。",
  146. "metadata": {
  147. "kind": "main",
  148. "timingPolicy": "fast-text",
  149. "source": "synthetic",
  150. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  151. },
  152. "maxMatches": 1,
  153. "match": {
  154. "method": "POST",
  155. "pathIncludes": "/messages",
  156. "bodyExcludes": [
  157. "Generate a concise title",
  158. "CRITICAL: Respond with TEXT ONLY",
  159. "toolu_dwc_refine_skill"
  160. ],
  161. "lastUserMessageIncludes": ["E2E_DWC_REFINE_START"]
  162. },
  163. "response": {
  164. "statusCode": 200,
  165. "toolUse": {
  166. "id": "toolu_dwc_refine_skill",
  167. "name": "Skill",
  168. "input": {
  169. "skill": "dynamic-workflows"
  170. }
  171. }
  172. }
  173. },
  174. {
  175. "id": "dwc-refine-create-1",
  176. "description": "DWC-02:第一次 CreateWorkflow 打开确认窗。",
  177. "metadata": {
  178. "kind": "main",
  179. "timingPolicy": "fast-text",
  180. "source": "synthetic",
  181. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  182. },
  183. "maxMatches": 1,
  184. "match": {
  185. "method": "POST",
  186. "pathIncludes": "/messages",
  187. "bodyIncludes": ["E2E_DWC_REFINE_START", "toolu_dwc_refine_skill"],
  188. "bodyExcludes": [
  189. "Generate a concise title",
  190. "CRITICAL: Respond with TEXT ONLY",
  191. "toolu_dwc_refine_create_1"
  192. ]
  193. },
  194. "response": {
  195. "statusCode": 200,
  196. "toolUse": {
  197. "id": "toolu_dwc_refine_create_1",
  198. "name": "CreateWorkflow",
  199. "input": {
  200. "name": "E2E_DWC_REFINE_RUN_1",
  201. "script": "phase(\"检查\");\nreturn \"E2E_DWC_REFINE_1_RESULT\";"
  202. }
  203. }
  204. }
  205. },
  206. {
  207. "id": "dwc-refine-create-2",
  208. "description": "DWC-02:模型读到 Refine 反馈后修订重提,确认窗再次出现。",
  209. "metadata": {
  210. "kind": "main",
  211. "timingPolicy": "fast-text",
  212. "source": "synthetic",
  213. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  214. },
  215. "maxMatches": 1,
  216. "match": {
  217. "method": "POST",
  218. "pathIncludes": "/messages",
  219. "bodyIncludes": ["E2E_DWC_REFINE_START", "toolu_dwc_refine_create_1"],
  220. "bodyExcludes": [
  221. "Generate a concise title",
  222. "CRITICAL: Respond with TEXT ONLY",
  223. "toolu_dwc_refine_create_2"
  224. ],
  225. "lastUserMessageIncludes": ["E2E_DWC_REFINE_FEEDBACK"]
  226. },
  227. "response": {
  228. "statusCode": 200,
  229. "toolUse": {
  230. "id": "toolu_dwc_refine_create_2",
  231. "name": "CreateWorkflow",
  232. "input": {
  233. "name": "E2E_DWC_REFINE_RUN_2",
  234. "script": "phase(\"检查\");\nreturn \"E2E_DWC_REFINE_2_RESULT\";"
  235. }
  236. }
  237. }
  238. },
  239. {
  240. "id": "dwc-refine-final",
  241. "description": "DWC-02:修订后的窗被拒绝,给出终态文本。",
  242. "metadata": {
  243. "kind": "main",
  244. "timingPolicy": "fast-text",
  245. "source": "synthetic",
  246. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  247. },
  248. "maxMatches": 1,
  249. "match": {
  250. "method": "POST",
  251. "pathIncludes": "/messages",
  252. "bodyIncludes": ["E2E_DWC_REFINE_START", "toolu_dwc_refine_create_2"],
  253. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  254. },
  255. "response": {
  256. "statusCode": 200,
  257. "text": {
  258. "id": "dwc-refine-final",
  259. "inputTokens": 80,
  260. "outputTokens": 8,
  261. "text": "E2E_DWC_REFINE_DONE 好的,不运行。"
  262. }
  263. }
  264. },
  265. {
  266. "id": "dwc-session-skill",
  267. "description": "DWC-03:先加载工作流 Skill。",
  268. "metadata": {
  269. "kind": "main",
  270. "timingPolicy": "fast-text",
  271. "source": "synthetic",
  272. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  273. },
  274. "maxMatches": 1,
  275. "match": {
  276. "method": "POST",
  277. "pathIncludes": "/messages",
  278. "bodyExcludes": [
  279. "Generate a concise title",
  280. "CRITICAL: Respond with TEXT ONLY",
  281. "toolu_dwc_session_skill"
  282. ],
  283. "lastUserMessageIncludes": ["E2E_DWC_SESSION_FIRST"]
  284. },
  285. "response": {
  286. "statusCode": 200,
  287. "toolUse": {
  288. "id": "toolu_dwc_session_skill",
  289. "name": "Skill",
  290. "input": {
  291. "skill": "dynamic-workflows"
  292. }
  293. }
  294. }
  295. },
  296. {
  297. "id": "dwc-session-create-1",
  298. "description": "DWC-03:第一次 CreateWorkflow 打开确认窗,用户选本会话内始终允许。",
  299. "metadata": {
  300. "kind": "main",
  301. "timingPolicy": "fast-text",
  302. "source": "synthetic",
  303. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  304. },
  305. "maxMatches": 1,
  306. "match": {
  307. "method": "POST",
  308. "pathIncludes": "/messages",
  309. "bodyIncludes": ["E2E_DWC_SESSION_FIRST", "toolu_dwc_session_skill"],
  310. "bodyExcludes": [
  311. "Generate a concise title",
  312. "CRITICAL: Respond with TEXT ONLY",
  313. "toolu_dwc_session_create_1"
  314. ]
  315. },
  316. "response": {
  317. "statusCode": 200,
  318. "toolUse": {
  319. "id": "toolu_dwc_session_create_1",
  320. "name": "CreateWorkflow",
  321. "input": {
  322. "name": "E2E_DWC_SESSION_RUN_1",
  323. "script": "phase(\"检查\");\nreturn \"E2E_DWC_SESSION_1_RESULT\";"
  324. }
  325. }
  326. }
  327. },
  328. {
  329. "id": "dwc-session-started-1",
  330. "description": "DWC-03:第一次 run 启动后的文本。",
  331. "metadata": {
  332. "kind": "main",
  333. "timingPolicy": "fast-text",
  334. "source": "synthetic",
  335. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  336. },
  337. "maxMatches": 1,
  338. "match": {
  339. "method": "POST",
  340. "pathIncludes": "/messages",
  341. "bodyIncludes": ["E2E_DWC_SESSION_FIRST", "toolu_dwc_session_create_1"],
  342. "bodyExcludes": [
  343. "Generate a concise title",
  344. "CRITICAL: Respond with TEXT ONLY",
  345. "E2E_DWC_SESSION_AGAIN"
  346. ]
  347. },
  348. "response": {
  349. "statusCode": 200,
  350. "text": {
  351. "id": "dwc-session-started-1",
  352. "inputTokens": 80,
  353. "outputTokens": 8,
  354. "text": "E2E_DWC_SESSION_FIRST_STARTED 工作流已启动。"
  355. }
  356. }
  357. },
  358. {
  359. "id": "dwc-session-create-2",
  360. "description": "DWC-03:同一会话第二次 CreateWorkflow,不再弹窗。",
  361. "metadata": {
  362. "kind": "main",
  363. "timingPolicy": "fast-text",
  364. "source": "synthetic",
  365. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  366. },
  367. "maxMatches": 1,
  368. "match": {
  369. "method": "POST",
  370. "pathIncludes": "/messages",
  371. "bodyIncludes": ["E2E_DWC_SESSION_FIRST", "toolu_dwc_session_create_1"],
  372. "bodyExcludes": [
  373. "Generate a concise title",
  374. "CRITICAL: Respond with TEXT ONLY",
  375. "toolu_dwc_session_create_2"
  376. ],
  377. "lastUserMessageIncludes": ["E2E_DWC_SESSION_AGAIN"]
  378. },
  379. "response": {
  380. "statusCode": 200,
  381. "toolUse": {
  382. "id": "toolu_dwc_session_create_2",
  383. "name": "CreateWorkflow",
  384. "input": {
  385. "name": "E2E_DWC_SESSION_RUN_2",
  386. "script": "phase(\"检查\");\nreturn \"E2E_DWC_SESSION_2_RESULT\";"
  387. }
  388. }
  389. }
  390. },
  391. {
  392. "id": "dwc-session-started-2",
  393. "description": "DWC-03:第二次 run 启动后的文本。",
  394. "metadata": {
  395. "kind": "main",
  396. "timingPolicy": "fast-text",
  397. "source": "synthetic",
  398. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  399. },
  400. "maxMatches": 1,
  401. "match": {
  402. "method": "POST",
  403. "pathIncludes": "/messages",
  404. "bodyIncludes": ["E2E_DWC_SESSION_AGAIN", "toolu_dwc_session_create_2"],
  405. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  406. },
  407. "response": {
  408. "statusCode": 200,
  409. "text": {
  410. "id": "dwc-session-started-2",
  411. "inputTokens": 80,
  412. "outputTokens": 8,
  413. "text": "E2E_DWC_SESSION_AGAIN_STARTED 工作流已启动。"
  414. }
  415. }
  416. },
  417. {
  418. "id": "dwc-session-new-skill",
  419. "description": "DWC-03:新会话先加载工作流 Skill。",
  420. "metadata": {
  421. "kind": "main",
  422. "timingPolicy": "fast-text",
  423. "source": "synthetic",
  424. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  425. },
  426. "maxMatches": 1,
  427. "match": {
  428. "method": "POST",
  429. "pathIncludes": "/messages",
  430. "bodyExcludes": [
  431. "Generate a concise title",
  432. "CRITICAL: Respond with TEXT ONLY",
  433. "toolu_dwc_session_new_skill"
  434. ],
  435. "lastUserMessageIncludes": ["E2E_DWC_SESSION_NEW"]
  436. },
  437. "response": {
  438. "statusCode": 200,
  439. "toolUse": {
  440. "id": "toolu_dwc_session_new_skill",
  441. "name": "Skill",
  442. "input": {
  443. "skill": "dynamic-workflows"
  444. }
  445. }
  446. }
  447. },
  448. {
  449. "id": "dwc-session-new-create",
  450. "description": "DWC-03:新会话的 CreateWorkflow,会话授权不跨会话,确认窗再次出现。",
  451. "metadata": {
  452. "kind": "main",
  453. "timingPolicy": "fast-text",
  454. "source": "synthetic",
  455. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  456. },
  457. "maxMatches": 1,
  458. "match": {
  459. "method": "POST",
  460. "pathIncludes": "/messages",
  461. "bodyIncludes": ["E2E_DWC_SESSION_NEW", "toolu_dwc_session_new_skill"],
  462. "bodyExcludes": [
  463. "Generate a concise title",
  464. "CRITICAL: Respond with TEXT ONLY",
  465. "toolu_dwc_session_new_create"
  466. ]
  467. },
  468. "response": {
  469. "statusCode": 200,
  470. "toolUse": {
  471. "id": "toolu_dwc_session_new_create",
  472. "name": "CreateWorkflow",
  473. "input": {
  474. "name": "E2E_DWC_SESSION_RUN_NEW",
  475. "script": "phase(\"检查\");\nreturn \"E2E_DWC_SESSION_NEW_RESULT\";"
  476. }
  477. }
  478. }
  479. },
  480. {
  481. "id": "dwc-session-new-final",
  482. "description": "DWC-03:新会话的窗被拒绝,给出终态文本。",
  483. "metadata": {
  484. "kind": "main",
  485. "timingPolicy": "fast-text",
  486. "source": "synthetic",
  487. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  488. },
  489. "maxMatches": 1,
  490. "match": {
  491. "method": "POST",
  492. "pathIncludes": "/messages",
  493. "bodyIncludes": ["E2E_DWC_SESSION_NEW", "toolu_dwc_session_new_create"],
  494. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  495. },
  496. "response": {
  497. "statusCode": 200,
  498. "text": {
  499. "id": "dwc-session-new-final",
  500. "inputTokens": 80,
  501. "outputTokens": 8,
  502. "text": "E2E_DWC_SESSION_NEW_DONE 好的,不运行。"
  503. }
  504. }
  505. },
  506. {
  507. "id": "dwc-adjust-skill",
  508. "description": "DWC-04:先加载工作流 Skill。",
  509. "metadata": {
  510. "kind": "main",
  511. "timingPolicy": "fast-text",
  512. "source": "synthetic",
  513. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  514. },
  515. "maxMatches": 1,
  516. "match": {
  517. "method": "POST",
  518. "pathIncludes": "/messages",
  519. "bodyExcludes": [
  520. "Generate a concise title",
  521. "CRITICAL: Respond with TEXT ONLY",
  522. "toolu_dwc_adjust_skill"
  523. ],
  524. "lastUserMessageIncludes": ["E2E_DWC_ADJUST"]
  525. },
  526. "response": {
  527. "statusCode": 200,
  528. "toolUse": {
  529. "id": "toolu_dwc_adjust_skill",
  530. "name": "Skill",
  531. "input": {
  532. "skill": "dynamic-workflows"
  533. }
  534. }
  535. }
  536. },
  537. {
  538. "id": "dwc-adjust-create",
  539. "description": "DWC-04:不带 max_concurrency 的 CreateWorkflow,窗里的并发步进器从默认值起。",
  540. "metadata": {
  541. "kind": "main",
  542. "timingPolicy": "fast-text",
  543. "source": "synthetic",
  544. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  545. },
  546. "maxMatches": 1,
  547. "match": {
  548. "method": "POST",
  549. "pathIncludes": "/messages",
  550. "bodyIncludes": ["E2E_DWC_ADJUST", "toolu_dwc_adjust_skill"],
  551. "bodyExcludes": [
  552. "Generate a concise title",
  553. "CRITICAL: Respond with TEXT ONLY",
  554. "toolu_dwc_adjust_create"
  555. ]
  556. },
  557. "response": {
  558. "statusCode": 200,
  559. "toolUse": {
  560. "id": "toolu_dwc_adjust_create",
  561. "name": "CreateWorkflow",
  562. "input": {
  563. "name": "E2E_DWC_ADJUST_RUN",
  564. "script": "phase(\"检查\");\nreturn \"E2E_DWC_ADJUST_RESULT\";"
  565. }
  566. }
  567. }
  568. },
  569. {
  570. "id": "dwc-adjust-started",
  571. "description": "DWC-04:按调整后的设置启动后的文本。",
  572. "metadata": {
  573. "kind": "main",
  574. "timingPolicy": "fast-text",
  575. "source": "synthetic",
  576. "syntheticReason": "确认窗只由模型调用 CreateWorkflow 打开;回放只固定 Skill / CreateWorkflow 的模型选择与收尾文本,真实 Skill 加载、编译、确认窗、应答、run 启动与通知都走产品链路。"
  577. },
  578. "maxMatches": 1,
  579. "match": {
  580. "method": "POST",
  581. "pathIncludes": "/messages",
  582. "bodyIncludes": ["E2E_DWC_ADJUST", "toolu_dwc_adjust_create"],
  583. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  584. },
  585. "response": {
  586. "statusCode": 200,
  587. "text": {
  588. "id": "dwc-adjust-started",
  589. "inputTokens": 80,
  590. "outputTokens": 8,
  591. "text": "E2E_DWC_ADJUST_STARTED 工作流已启动。"
  592. }
  593. }
  594. }
  595. ]
  596. }