conversation-session-goal-timeline.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-goal-timeline",
  4. "spec": "./test/e2e/conversation-session/goals/conversation-session-goal-timeline.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-goal-timeline-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["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-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  27. }
  28. },
  29. {
  30. "id": "upstream-goal-timeline-new-target-continuation",
  31. "description": "新目标第一次校验未完成后的合法续跑,等待测试停止。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "controlled-stream",
  35. "source": "synthetic",
  36. "syntheticReason": "新目标未完成后存在真实自动续跑;发送正文前缀后保持流打开,测试核对时间线后通过真实 Stop 取消,不能让 Missing Fixture 500 代替正常续跑。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_GOAL_TIMELINE_REPRO_B", "Reason: 没有交付 10w 字小说。"],
  43. "bodyExcludes": ["Generate a concise title", "Verify whether the active session goal"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "headers": {
  48. "cache-control": "no-cache",
  49. "content-type": "text/event-stream; charset=utf-8"
  50. },
  51. "chunks": [
  52. {
  53. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-new-target-reply\",\"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",
  54. "delayMs": 0
  55. },
  56. {
  57. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n",
  58. "delayMs": 0
  59. },
  60. {
  61. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_GOAL_TIMELINE_REPRO_B_CONTINUING\"}}\n\n",
  62. "delayMs": 0
  63. },
  64. {
  65. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n",
  66. "delayMs": 0
  67. },
  68. {
  69. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":16,\"service_tier\":\"standard\"}}\n\n",
  70. "delayMs": 0
  71. },
  72. {
  73. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
  74. "delayMs": 0
  75. }
  76. ],
  77. "releaseAfterChunks": 3
  78. }
  79. },
  80. {
  81. "id": "upstream-goal-timeline-first-reply",
  82. "description": "Goal timeline 回归 case:第 1 轮 goal continuation 先返回未达标短句。",
  83. "metadata": {
  84. "kind": "main",
  85. "timingPolicy": "fast-text",
  86. "source": "synthetic",
  87. "syntheticReason": "该响应用于稳定复现第 1 轮 goal 未完成后的 timeline 锚点,真实文案内容不影响产品语义。"
  88. },
  89. "maxMatches": 1,
  90. "match": {
  91. "method": "POST",
  92. "pathIncludes": "/messages",
  93. "bodyIncludes": [
  94. "E2E_GOAL_TIMELINE_REPRO",
  95. "Continue working toward the active session goal"
  96. ],
  97. "bodyExcludes": [
  98. "Generate a concise title",
  99. "CRITICAL: Respond with TEXT ONLY",
  100. "Verify whether the active session goal",
  101. "The active session goal was not accepted"
  102. ]
  103. },
  104. "response": {
  105. "statusCode": 200,
  106. "statusMessage": "OK",
  107. "headers": {
  108. "cache-control": "no-cache",
  109. "content-type": "text/event-stream; charset=utf-8"
  110. },
  111. "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-first-reply\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":160,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"人类灭绝后,机器哭了。\"}}\n\nevent: 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\":160,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  112. }
  113. },
  114. {
  115. "id": "upstream-goal-timeline-first-verifier-failed",
  116. "description": "Goal timeline 回归 case:第 1 次 verifier 未通过并给出下一轮动作。",
  117. "metadata": {
  118. "kind": "main",
  119. "timingPolicy": "fast-text",
  120. "source": "synthetic",
  121. "syntheticReason": "该 verifier 响应用于固定第 1 次目标未完成状态,驱动自动续跑与 timeline separator。"
  122. },
  123. "maxMatches": 1,
  124. "match": {
  125. "method": "POST",
  126. "pathIncludes": "/messages",
  127. "bodyIncludes": [
  128. "E2E_GOAL_TIMELINE_REPRO",
  129. "Verify whether the active session goal",
  130. "人类灭绝后,机器哭了。"
  131. ],
  132. "bodyExcludes": [
  133. "Generate a concise title",
  134. "CRITICAL: Respond with TEXT ONLY",
  135. "人类灭绝之后,机器哭了。"
  136. ]
  137. },
  138. "response": {
  139. "statusCode": 200,
  140. "statusMessage": "OK",
  141. "headers": {
  142. "content-type": "application/json; charset=utf-8"
  143. },
  144. "body": "{\"id\":\"upstream-e2e-goal-timeline-first-verifier-failed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":false,\\\"reason\\\":\\\"第一轮只有九个汉字。\\\",\\\"nextAction\\\":\\\"写出恰好十个汉字的科幻小说。\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":220,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":32,\"service_tier\":\"standard\"}}"
  145. }
  146. },
  147. {
  148. "id": "upstream-goal-timeline-second-reply",
  149. "description": "Goal timeline 回归 case:verifier 未通过后自动 continuation 返回达标短句。",
  150. "metadata": {
  151. "kind": "main",
  152. "timingPolicy": "fast-text",
  153. "source": "synthetic",
  154. "syntheticReason": "该响应用于固定同一 target 第 2 次迭代输出,验证后续 verifier divider 仍锚定本轮 assistant。"
  155. },
  156. "maxMatches": 1,
  157. "match": {
  158. "method": "POST",
  159. "pathIncludes": "/messages",
  160. "bodyIncludes": [
  161. "E2E_GOAL_TIMELINE_REPRO",
  162. "Completion verifier result:",
  163. "Reason: 第一轮只有九个汉字。",
  164. "写出恰好十个汉字的科幻小说"
  165. ],
  166. "bodyExcludes": [
  167. "Generate a concise title",
  168. "CRITICAL: Respond with TEXT ONLY",
  169. "Verify whether the active session goal"
  170. ]
  171. },
  172. "response": {
  173. "statusCode": 200,
  174. "statusMessage": "OK",
  175. "headers": {
  176. "cache-control": "no-cache",
  177. "content-type": "text/event-stream; charset=utf-8"
  178. },
  179. "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-second-reply\",\"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\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"人类灭绝之后,机器哭了。\"}}\n\nevent: 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,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  180. }
  181. },
  182. {
  183. "id": "upstream-goal-timeline-second-verifier-passed",
  184. "description": "Goal timeline 回归 case:第 2 次 verifier 通过。",
  185. "metadata": {
  186. "kind": "main",
  187. "timingPolicy": "fast-text",
  188. "source": "synthetic",
  189. "syntheticReason": "该 verifier 响应用于固定同一 target 第 2 次迭代完成状态,验证完成 divider 的位置。"
  190. },
  191. "maxMatches": 1,
  192. "match": {
  193. "method": "POST",
  194. "pathIncludes": "/messages",
  195. "bodyIncludes": [
  196. "E2E_GOAL_TIMELINE_REPRO",
  197. "Verify whether the active session goal",
  198. "人类灭绝之后,机器哭了。"
  199. ],
  200. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  201. },
  202. "response": {
  203. "statusCode": 200,
  204. "statusMessage": "OK",
  205. "headers": {
  206. "content-type": "application/json; charset=utf-8"
  207. },
  208. "body": "{\"id\":\"upstream-e2e-goal-timeline-second-verifier-passed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":true,\\\"reason\\\":\\\"第二轮输出恰好十个汉字。\\\",\\\"nextAction\\\":\\\"\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":240,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  209. }
  210. },
  211. {
  212. "id": "upstream-goal-timeline-new-target-reply",
  213. "description": "Goal timeline 回归 case:新 target 的第 1 轮回复,模拟十万字目标没有真正交付。",
  214. "metadata": {
  215. "kind": "main",
  216. "timingPolicy": "fast-text",
  217. "source": "synthetic",
  218. "syntheticReason": "该响应用于创建新 target 的 assistant anchor,验证新 target timeline 不会串进上一个 target。"
  219. },
  220. "maxMatches": 1,
  221. "match": {
  222. "method": "POST",
  223. "pathIncludes": "/messages",
  224. "bodyIncludes": [
  225. "E2E_GOAL_TIMELINE_REPRO_B",
  226. "Continue working toward the active session goal"
  227. ],
  228. "bodyExcludes": [
  229. "Generate a concise title",
  230. "CRITICAL: Respond with TEXT ONLY",
  231. "Verify whether the active session goal",
  232. "The active session goal was not accepted"
  233. ]
  234. },
  235. "response": {
  236. "statusCode": 200,
  237. "statusMessage": "OK",
  238. "headers": {
  239. "cache-control": "no-cache",
  240. "content-type": "text/event-stream; charset=utf-8"
  241. },
  242. "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-new-target-reply\",\"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\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"这需要长篇连载,无法一次交付十万字。\"}}\n\nevent: 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,\"output_tokens\":16,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  243. }
  244. },
  245. {
  246. "id": "upstream-goal-timeline-new-target-verifier-failed",
  247. "description": "Goal timeline 回归 case:新 target verifier 返回语义上 false,保持新 target 第 1 次未完成状态。",
  248. "metadata": {
  249. "kind": "main",
  250. "timingPolicy": "fast-text",
  251. "source": "synthetic",
  252. "syntheticReason": "该 verifier 响应用于固定新 target 的第 1 次未完成 divider,覆盖目标切换后的 timeline 归属。"
  253. },
  254. "maxMatches": 1,
  255. "match": {
  256. "method": "POST",
  257. "pathIncludes": "/messages",
  258. "bodyIncludes": [
  259. "E2E_GOAL_TIMELINE_REPRO_B",
  260. "Verify whether the active session goal",
  261. "这需要长篇连载,无法一次交付十万字。"
  262. ],
  263. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  264. },
  265. "response": {
  266. "statusCode": 200,
  267. "statusMessage": "OK",
  268. "headers": {
  269. "content-type": "application/json; charset=utf-8"
  270. },
  271. "body": "{\"id\":\"upstream-e2e-goal-timeline-new-target-verifier-failed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":false,\\\"reason\\\":\\\"没有交付 10w 字小说。\\\",\\\"nextAction\\\":\\\"继续写 10w 字小说。\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":240,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  272. }
  273. }
  274. ]
  275. }