conversation-session-goal-timeline.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-goal-timeline",
  4. "spec": "./test/e2e/conversation-session/conversation-session-goal-timeline.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-goal-timeline-first-reply",
  8. "description": "Goal timeline 回归 case:第 1 轮 goal continuation 先返回未达标短句。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "该响应用于稳定复现第 1 轮 goal 未完成后的 timeline 锚点,真实文案内容不影响产品语义。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": [
  20. "E2E_GOAL_TIMELINE_REPRO",
  21. "Continue working toward the active session goal"
  22. ],
  23. "bodyExcludes": [
  24. "Generate a concise title",
  25. "CRITICAL: Respond with TEXT ONLY",
  26. "Verify whether the active session goal",
  27. "The active session goal was not accepted"
  28. ]
  29. },
  30. "response": {
  31. "statusCode": 200,
  32. "statusMessage": "OK",
  33. "headers": {
  34. "cache-control": "no-cache",
  35. "content-type": "text/event-stream; charset=utf-8"
  36. },
  37. "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"
  38. }
  39. },
  40. {
  41. "id": "upstream-goal-timeline-first-verifier-failed",
  42. "description": "Goal timeline 回归 case:第 1 次 verifier 未通过并给出下一轮动作。",
  43. "metadata": {
  44. "kind": "main",
  45. "timingPolicy": "fast-text",
  46. "source": "synthetic",
  47. "syntheticReason": "该 verifier 响应用于固定第 1 次目标未完成状态,驱动自动续跑与 timeline separator。"
  48. },
  49. "maxMatches": 1,
  50. "match": {
  51. "method": "POST",
  52. "pathIncludes": "/messages",
  53. "bodyIncludes": [
  54. "E2E_GOAL_TIMELINE_REPRO",
  55. "Verify whether the active session goal",
  56. "人类灭绝后,机器哭了。"
  57. ],
  58. "bodyExcludes": [
  59. "Generate a concise title",
  60. "CRITICAL: Respond with TEXT ONLY",
  61. "人类灭绝之后,机器哭了。"
  62. ]
  63. },
  64. "response": {
  65. "statusCode": 200,
  66. "statusMessage": "OK",
  67. "headers": {
  68. "content-type": "application/json; charset=utf-8"
  69. },
  70. "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\"}}"
  71. }
  72. },
  73. {
  74. "id": "upstream-goal-timeline-second-reply",
  75. "description": "Goal timeline 回归 case:verifier 未通过后自动 continuation 返回达标短句。",
  76. "metadata": {
  77. "kind": "main",
  78. "timingPolicy": "fast-text",
  79. "source": "synthetic",
  80. "syntheticReason": "该响应用于固定同一 target 第 2 次迭代输出,验证后续 verifier divider 仍锚定本轮 assistant。"
  81. },
  82. "maxMatches": 1,
  83. "match": {
  84. "method": "POST",
  85. "pathIncludes": "/messages",
  86. "bodyIncludes": [
  87. "E2E_GOAL_TIMELINE_REPRO",
  88. "Completion verifier result:",
  89. "Reason: 第一轮只有九个汉字。",
  90. "写出恰好十个汉字的科幻小说"
  91. ],
  92. "bodyExcludes": [
  93. "Generate a concise title",
  94. "CRITICAL: Respond with TEXT ONLY",
  95. "Verify whether the active session goal"
  96. ]
  97. },
  98. "response": {
  99. "statusCode": 200,
  100. "statusMessage": "OK",
  101. "headers": {
  102. "cache-control": "no-cache",
  103. "content-type": "text/event-stream; charset=utf-8"
  104. },
  105. "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"
  106. }
  107. },
  108. {
  109. "id": "upstream-goal-timeline-second-verifier-passed",
  110. "description": "Goal timeline 回归 case:第 2 次 verifier 通过。",
  111. "metadata": {
  112. "kind": "main",
  113. "timingPolicy": "fast-text",
  114. "source": "synthetic",
  115. "syntheticReason": "该 verifier 响应用于固定同一 target 第 2 次迭代完成状态,验证完成 divider 的位置。"
  116. },
  117. "maxMatches": 1,
  118. "match": {
  119. "method": "POST",
  120. "pathIncludes": "/messages",
  121. "bodyIncludes": [
  122. "E2E_GOAL_TIMELINE_REPRO",
  123. "Verify whether the active session goal",
  124. "人类灭绝之后,机器哭了。"
  125. ],
  126. "bodyExcludes": [
  127. "Generate a concise title",
  128. "CRITICAL: Respond with TEXT ONLY"
  129. ]
  130. },
  131. "response": {
  132. "statusCode": 200,
  133. "statusMessage": "OK",
  134. "headers": {
  135. "content-type": "application/json; charset=utf-8"
  136. },
  137. "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\"}}"
  138. }
  139. },
  140. {
  141. "id": "upstream-goal-timeline-new-target-reply",
  142. "description": "Goal timeline 回归 case:新 target 的第 1 轮回复,模拟十万字目标没有真正交付。",
  143. "metadata": {
  144. "kind": "main",
  145. "timingPolicy": "fast-text",
  146. "source": "synthetic",
  147. "syntheticReason": "该响应用于创建新 target 的 assistant anchor,验证新 target timeline 不会串进上一个 target。"
  148. },
  149. "maxMatches": 1,
  150. "match": {
  151. "method": "POST",
  152. "pathIncludes": "/messages",
  153. "bodyIncludes": [
  154. "E2E_GOAL_TIMELINE_REPRO_B",
  155. "Continue working toward the active session goal"
  156. ],
  157. "bodyExcludes": [
  158. "Generate a concise title",
  159. "CRITICAL: Respond with TEXT ONLY",
  160. "Verify whether the active session goal",
  161. "The active session goal was not accepted"
  162. ]
  163. },
  164. "response": {
  165. "statusCode": 200,
  166. "statusMessage": "OK",
  167. "headers": {
  168. "cache-control": "no-cache",
  169. "content-type": "text/event-stream; charset=utf-8"
  170. },
  171. "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"
  172. }
  173. },
  174. {
  175. "id": "upstream-goal-timeline-new-target-verifier-failed",
  176. "description": "Goal timeline 回归 case:新 target verifier 返回语义上 false,保持新 target 第 1 次未完成状态。",
  177. "metadata": {
  178. "kind": "main",
  179. "timingPolicy": "fast-text",
  180. "source": "synthetic",
  181. "syntheticReason": "该 verifier 响应用于固定新 target 的第 1 次未完成 divider,覆盖目标切换后的 timeline 归属。"
  182. },
  183. "maxMatches": 1,
  184. "match": {
  185. "method": "POST",
  186. "pathIncludes": "/messages",
  187. "bodyIncludes": [
  188. "E2E_GOAL_TIMELINE_REPRO_B",
  189. "Verify whether the active session goal",
  190. "这需要长篇连载,无法一次交付十万字。"
  191. ],
  192. "bodyExcludes": [
  193. "Generate a concise title",
  194. "CRITICAL: Respond with TEXT ONLY"
  195. ]
  196. },
  197. "response": {
  198. "statusCode": 200,
  199. "statusMessage": "OK",
  200. "headers": {
  201. "content-type": "application/json; charset=utf-8"
  202. },
  203. "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\"}}"
  204. }
  205. }
  206. ]
  207. }