conversation-session-goal-run-cases.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-goal-run-cases",
  4. "spec": "./test/e2e/conversation-session/conversation-session-goal-run-cases.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-goal-run-title",
  8. "description": "Goal Run case 内的标题生成固定响应,避免标题请求进入产品重试并干扰后续运行态窗口。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "标题生成不是本 case 的产品语义,只需稳定返回并与 goal/main 请求隔离。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "E2E_GR_",
  20. "Generate a concise title"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "statusMessage": "OK",
  26. "headers": {
  27. "content-type": "application/json; charset=utf-8"
  28. },
  29. "body": "{\"id\":\"upstream-e2e-goal-run-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Goal Run E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8,\"service_tier\":\"standard\"}}"
  30. }
  31. },
  32. {
  33. "id": "upstream-goal-run-high-usage-slow",
  34. "description": "MR-GOAL-09/17 使用高 usage 慢响应稳定制造 running queue 和后续 auto compact。",
  35. "metadata": {
  36. "kind": "main",
  37. "source": "synthetic",
  38. "timingPolicy": "controlled-stream",
  39. "syntheticReason": "真实 provider 的 token usage 和响应速度不可控,无法稳定形成 auto compact 前的 queue 窗口。"
  40. },
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/messages",
  44. "bodyIncludes": ["E2E_GR_HIGH_USAGE_SLOW"],
  45. "bodyExcludes": [
  46. "Generate a concise title",
  47. "CRITICAL: Respond with TEXT ONLY"
  48. ],
  49. "lastUserMessageIncludes": ["E2E_GR_HIGH_USAGE_SLOW"]
  50. },
  51. "response": {
  52. "statusCode": 200,
  53. "statusMessage": "OK",
  54. "headers": {
  55. "cache-control": "no-cache",
  56. "content-type": "text/event-stream; charset=utf-8"
  57. },
  58. "events": [
  59. {
  60. "sequence": 0,
  61. "offsetMs": 0,
  62. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-run-high-usage\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  63. },
  64. {
  65. "sequence": 1,
  66. "offsetMs": 100,
  67. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  68. },
  69. {
  70. "sequence": 2,
  71. "offsetMs": 200,
  72. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
  73. },
  74. {
  75. "sequence": 3,
  76. "offsetMs": 2500,
  77. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
  78. },
  79. {
  80. "sequence": 4,
  81. "offsetMs": 2600,
  82. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
  83. },
  84. {
  85. "sequence": 5,
  86. "offsetMs": 2700,
  87. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  88. }
  89. ]
  90. }
  91. },
  92. {
  93. "id": "upstream-goal-run-auto-compact-summary",
  94. "description": "MR-GOAL-09/17 高 usage turn 后的 auto compact summary。",
  95. "metadata": {
  96. "kind": "main",
  97. "source": "synthetic",
  98. "timingPolicy": "fast-text",
  99. "syntheticReason": "固定有效 summary,避免真实模型返回无法通过 compact 校验的文本。"
  100. },
  101. "match": {
  102. "method": "POST",
  103. "pathIncludes": "/messages",
  104. "bodyIncludes": [
  105. "CRITICAL: Respond with TEXT ONLY",
  106. "E2E_GR_HIGH_USAGE_SLOW"
  107. ]
  108. },
  109. "response": {
  110. "statusCode": 200,
  111. "text": {
  112. "id": "upstream-e2e-goal-run-auto-compact",
  113. "inputTokens": 210,
  114. "outputTokens": 48,
  115. "text": "<analysis>Summarized the goal queue setup.</analysis>\n\n<summary>E2E_GR_HIGH_USAGE_SLOW history and the queued goal remain available after automatic compaction.</summary>"
  116. }
  117. }
  118. },
  119. {
  120. "id": "upstream-goal-run-fast-goal-context-summary",
  121. "description": "普通 fast goal verifier 超出小模型上下文后的自动摘要。",
  122. "metadata": {
  123. "kind": "main",
  124. "source": "synthetic",
  125. "timingPolicy": "fast-text",
  126. "syntheticReason": "Goal Run spec 使用小上下文验证 auto compact;verifier prompt 也可能真实越过阈值,必须保留 fast goal marker 供摘要后队列续跑。"
  127. },
  128. "match": {
  129. "method": "POST",
  130. "pathIncludes": "/messages",
  131. "bodyIncludes": [
  132. "Please provide your summary",
  133. "E2E_GR_GOAL_FAST"
  134. ],
  135. "bodyExcludes": [
  136. "E2E_GR_HIGH_USAGE_SLOW"
  137. ]
  138. },
  139. "response": {
  140. "statusCode": 200,
  141. "text": {
  142. "id": "upstream-e2e-goal-run-fast-goal-context-summary",
  143. "inputTokens": 40,
  144. "outputTokens": 24,
  145. "text": "<analysis>Preserved completed fast goal context.</analysis>\n\n<summary>E2E_GR_GOAL_FAST history remains available after automatic compaction.</summary>"
  146. }
  147. }
  148. },
  149. {
  150. "id": "upstream-goal-run-slow-goal-context-summary",
  151. "description": "普通 slow goal 超出小模型上下文后的自动摘要。",
  152. "metadata": {
  153. "kind": "main",
  154. "source": "synthetic",
  155. "timingPolicy": "fast-text",
  156. "syntheticReason": "保留 slow goal marker,使摘要后的 goal continuation 仍命中受控流 fixture。"
  157. },
  158. "match": {
  159. "method": "POST",
  160. "pathIncludes": "/messages",
  161. "bodyIncludes": [
  162. "Please provide your summary",
  163. "E2E_GR_GOAL_SLOW"
  164. ]
  165. },
  166. "response": {
  167. "statusCode": 200,
  168. "text": {
  169. "id": "upstream-e2e-goal-run-slow-goal-context-summary",
  170. "inputTokens": 40,
  171. "outputTokens": 24,
  172. "text": "<analysis>Preserved slow goal context.</analysis>\n\n<summary>E2E_GR_GOAL_SLOW history remains available after automatic compaction.</summary>"
  173. }
  174. }
  175. },
  176. {
  177. "id": "upstream-goal-run-verifier-goal-context-summary",
  178. "description": "verifier-blocking goal 超出小模型上下文后的自动摘要。",
  179. "metadata": {
  180. "kind": "main",
  181. "source": "synthetic",
  182. "timingPolicy": "fast-text",
  183. "syntheticReason": "保留 verifier goal marker,使摘要后的 verifier/queue 时序仍由专用 fixture 控制。"
  184. },
  185. "match": {
  186. "method": "POST",
  187. "pathIncludes": "/messages",
  188. "bodyIncludes": [
  189. "Please provide your summary",
  190. "E2E_GR_GOAL_VERIFY_SLOW"
  191. ]
  192. },
  193. "response": {
  194. "statusCode": 200,
  195. "text": {
  196. "id": "upstream-e2e-goal-run-verifier-goal-context-summary",
  197. "inputTokens": 40,
  198. "outputTokens": 24,
  199. "text": "<analysis>Preserved verifier goal context.</analysis>\n\n<summary>E2E_GR_GOAL_VERIFY_SLOW history remains available after automatic compaction.</summary>"
  200. }
  201. }
  202. },
  203. {
  204. "id": "upstream-goal-run-manual-compact-history",
  205. "description": "MR-GOAL-08/16/18 的普通 completed history。",
  206. "metadata": {
  207. "kind": "main",
  208. "source": "synthetic",
  209. "timingPolicy": "fast-text",
  210. "syntheticReason": "提供可重复的两轮 compactable history。"
  211. },
  212. "match": {
  213. "method": "POST",
  214. "pathIncludes": "/messages",
  215. "bodyIncludes": ["E2E_GR_COMPACT_HISTORY"],
  216. "bodyExcludes": [
  217. "Generate a concise title",
  218. "CRITICAL: Respond with TEXT ONLY"
  219. ],
  220. "lastUserMessageIncludes": ["E2E_GR_COMPACT_HISTORY"]
  221. },
  222. "response": {
  223. "statusCode": 200,
  224. "text": {
  225. "id": "upstream-e2e-goal-run-compact-history",
  226. "inputTokens": 40,
  227. "outputTokens": 12,
  228. "text": "upstream-e2e-ok"
  229. }
  230. }
  231. },
  232. {
  233. "id": "upstream-goal-run-manual-compact-summary",
  234. "description": "MR-GOAL-08/16/18 的 manual compact success。",
  235. "metadata": {
  236. "kind": "main",
  237. "source": "synthetic",
  238. "timingPolicy": "controlled-stream",
  239. "syntheticReason": "三秒窗口让 GUI 能在 compact running 时提交 future goal。"
  240. },
  241. "match": {
  242. "method": "POST",
  243. "pathIncludes": "/messages",
  244. "bodyIncludes": [
  245. "CRITICAL: Respond with TEXT ONLY",
  246. "E2E_GR_COMPACT_HISTORY"
  247. ]
  248. },
  249. "response": {
  250. "statusCode": 200,
  251. "delayMs": 3000,
  252. "text": {
  253. "id": "upstream-e2e-goal-run-manual-compact",
  254. "inputTokens": 210,
  255. "outputTokens": 48,
  256. "text": "<analysis>Summarized the manual compact setup.</analysis>\n\n<summary>E2E_GR_COMPACT_HISTORY remains available and future goal commands stay queued.</summary>"
  257. }
  258. }
  259. },
  260. {
  261. "id": "upstream-goal-run-verifier-slow-continuation",
  262. "description": "MR-GOAL-13/14/22 快速结束 continuation,进入 verifier。",
  263. "metadata": {
  264. "kind": "goal-continuation",
  265. "source": "synthetic",
  266. "timingPolicy": "fast-text",
  267. "syntheticReason": "稳定推进到 verifier admission 边界。"
  268. },
  269. "match": {
  270. "method": "POST",
  271. "pathIncludes": "/messages",
  272. "bodyIncludes": [
  273. "E2E_GR_GOAL_VERIFY_SLOW",
  274. "Continue working toward the active session goal"
  275. ],
  276. "bodyExcludes": [
  277. "Generate a concise title",
  278. "CRITICAL: Respond with TEXT ONLY",
  279. "Verify whether the active session goal"
  280. ]
  281. },
  282. "response": {
  283. "statusCode": 200,
  284. "delayMs": 200,
  285. "text": {
  286. "id": "upstream-e2e-goal-run-verifier-continuation",
  287. "inputTokens": 20,
  288. "outputTokens": 12,
  289. "text": "upstream-e2e-ok"
  290. }
  291. }
  292. },
  293. {
  294. "id": "upstream-goal-run-verifier-slow",
  295. "description": "MR-GOAL-13/14/22 保持 verifier completion-blocking 窗口。",
  296. "metadata": {
  297. "kind": "goal-verifier",
  298. "source": "synthetic",
  299. "timingPolicy": "controlled-stream",
  300. "syntheticReason": "真实 verifier 可能在 future input 入队前完成。"
  301. },
  302. "match": {
  303. "method": "POST",
  304. "pathIncludes": "/messages",
  305. "bodyIncludes": [
  306. "E2E_GR_GOAL_VERIFY_SLOW",
  307. "Verify whether the active session goal"
  308. ],
  309. "bodyExcludes": [
  310. "Generate a concise title",
  311. "CRITICAL: Respond with TEXT ONLY"
  312. ]
  313. },
  314. "response": {
  315. "statusCode": 200,
  316. "statusMessage": "OK",
  317. "headers": {
  318. "cache-control": "no-cache",
  319. "content-type": "text/event-stream; charset=utf-8"
  320. },
  321. "events": [
  322. {
  323. "sequence": 0,
  324. "offsetMs": 0,
  325. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-run-verifier-slow\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  326. },
  327. {
  328. "sequence": 1,
  329. "offsetMs": 100,
  330. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  331. },
  332. {
  333. "sequence": 2,
  334. "offsetMs": 60000,
  335. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"{\\\"passed\\\":true,\\\"reason\\\":\\\"fixture verifier pass\\\",\\\"nextAction\\\":\\\"\\\"}\"}}\n\n"
  336. },
  337. {
  338. "sequence": 3,
  339. "offsetMs": 60100,
  340. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  341. }
  342. ]
  343. }
  344. },
  345. {
  346. "id": "upstream-goal-run-slow-goal-continuation",
  347. "description": "需要 active goal output 窗口的 MR-GOAL case。",
  348. "metadata": {
  349. "kind": "goal-continuation",
  350. "source": "synthetic",
  351. "timingPolicy": "controlled-stream",
  352. "syntheticReason": "真实 continuation 可能在 Stop、queue 或 send-now 动作前完成。"
  353. },
  354. "match": {
  355. "method": "POST",
  356. "pathIncludes": "/messages",
  357. "bodyIncludes": [
  358. "E2E_GR_GOAL_SLOW",
  359. "Continue working toward the active session goal"
  360. ],
  361. "bodyExcludes": [
  362. "Generate a concise title",
  363. "CRITICAL: Respond with TEXT ONLY",
  364. "Verify whether the active session goal"
  365. ]
  366. },
  367. "response": {
  368. "statusCode": 200,
  369. "statusMessage": "OK",
  370. "headers": {
  371. "cache-control": "no-cache",
  372. "content-type": "text/event-stream; charset=utf-8"
  373. },
  374. "events": [
  375. {
  376. "sequence": 0,
  377. "offsetMs": 0,
  378. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-run-slow-goal\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  379. },
  380. {
  381. "sequence": 1,
  382. "offsetMs": 100,
  383. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  384. },
  385. {
  386. "sequence": 2,
  387. "offsetMs": 200,
  388. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
  389. },
  390. {
  391. "sequence": 3,
  392. "offsetMs": 60000,
  393. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
  394. },
  395. {
  396. "sequence": 4,
  397. "offsetMs": 60100,
  398. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  399. }
  400. ]
  401. }
  402. },
  403. {
  404. "id": "upstream-goal-run-fast-goal-continuation",
  405. "description": "自然完成 goal 的 continuation。",
  406. "metadata": {
  407. "kind": "goal-continuation",
  408. "source": "synthetic",
  409. "timingPolicy": "controlled-stream",
  410. "syntheticReason": "短暂 active 窗口同时允许 UI 断言并快速进入 verifier。"
  411. },
  412. "match": {
  413. "method": "POST",
  414. "pathIncludes": "/messages",
  415. "bodyIncludes": [
  416. "E2E_GR_GOAL_FAST",
  417. "Continue working toward the active session goal"
  418. ],
  419. "bodyExcludes": [
  420. "Generate a concise title",
  421. "CRITICAL: Respond with TEXT ONLY",
  422. "Verify whether the active session goal"
  423. ]
  424. },
  425. "response": {
  426. "statusCode": 200,
  427. "delayMs": 1000,
  428. "text": {
  429. "id": "upstream-e2e-goal-run-fast-goal",
  430. "inputTokens": 20,
  431. "outputTokens": 12,
  432. "text": "upstream-e2e-ok"
  433. }
  434. }
  435. },
  436. {
  437. "id": "upstream-goal-run-fast-goal-verifier",
  438. "description": "自然完成 goal 的 verifier pass。",
  439. "metadata": {
  440. "kind": "goal-verifier",
  441. "source": "synthetic",
  442. "timingPolicy": "fast-text",
  443. "syntheticReason": "固定 passed 结果,稳定制造 completed goal。"
  444. },
  445. "match": {
  446. "method": "POST",
  447. "pathIncludes": "/messages",
  448. "bodyIncludes": [
  449. "E2E_GR_GOAL_FAST",
  450. "Verify whether the active session goal"
  451. ],
  452. "bodyExcludes": [
  453. "Generate a concise title",
  454. "CRITICAL: Respond with TEXT ONLY"
  455. ]
  456. },
  457. "response": {
  458. "statusCode": 200,
  459. "body": "{\"id\":\"upstream-e2e-goal-run-verifier-pass\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":true,\\\"reason\\\":\\\"fixture response matched objective\\\",\\\"nextAction\\\":\\\"\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":20,\"output_tokens\":12}}"
  460. }
  461. },
  462. {
  463. "id": "upstream-goal-run-ordinary-slow",
  464. "description": "普通 running/held queue setup。",
  465. "metadata": {
  466. "kind": "main",
  467. "source": "synthetic",
  468. "timingPolicy": "controlled-stream",
  469. "syntheticReason": "真实普通回复可能在 goal 入队、编辑或 send-now 前完成。"
  470. },
  471. "match": {
  472. "method": "POST",
  473. "pathIncludes": "/messages",
  474. "bodyIncludes": ["E2E_GR_SLOW"],
  475. "bodyExcludes": [
  476. "Generate a concise title",
  477. "CRITICAL: Respond with TEXT ONLY"
  478. ],
  479. "lastUserMessageIncludes": ["E2E_GR_SLOW"]
  480. },
  481. "response": {
  482. "statusCode": 200,
  483. "statusMessage": "OK",
  484. "headers": {
  485. "cache-control": "no-cache",
  486. "content-type": "text/event-stream; charset=utf-8"
  487. },
  488. "events": [
  489. {
  490. "sequence": 0,
  491. "offsetMs": 0,
  492. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-run-ordinary-slow\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  493. },
  494. {
  495. "sequence": 1,
  496. "offsetMs": 100,
  497. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  498. },
  499. {
  500. "sequence": 2,
  501. "offsetMs": 200,
  502. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
  503. },
  504. {
  505. "sequence": 3,
  506. "offsetMs": 60000,
  507. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
  508. },
  509. {
  510. "sequence": 4,
  511. "offsetMs": 60100,
  512. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":20,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  513. }
  514. ]
  515. }
  516. },
  517. {
  518. "id": "upstream-goal-run-ordinary-fast",
  519. "description": "普通完成、queued text send-now 和 edit rerun。",
  520. "metadata": {
  521. "kind": "main",
  522. "source": "synthetic",
  523. "timingPolicy": "fast-text",
  524. "syntheticReason": "固定普通回复内容,避免真实模型文案影响 GUI 断言。"
  525. },
  526. "match": {
  527. "method": "POST",
  528. "pathIncludes": "/messages",
  529. "bodyIncludes": ["E2E_GR_FAST"],
  530. "bodyExcludes": [
  531. "Generate a concise title",
  532. "CRITICAL: Respond with TEXT ONLY"
  533. ],
  534. "lastUserMessageIncludes": ["E2E_GR_FAST"]
  535. },
  536. "response": {
  537. "statusCode": 200,
  538. "text": {
  539. "id": "upstream-e2e-goal-run-ordinary-fast",
  540. "inputTokens": 20,
  541. "outputTokens": 12,
  542. "text": "upstream-e2e-ok"
  543. }
  544. }
  545. }
  546. ]
  547. }