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

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