conversation-session-model-output-token-preflight-smoke.json 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-model-output-token-preflight-smoke",
  4. "spec": "./test/e2e/conversation-session/models/conversation-session-model-output-token-preflight-smoke.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "otb11-title",
  8. "description": "OTB11 首轮标题生成固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于预算语义,只隔离其请求,避免干扰逐轮 main request 计数。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "otb-preflight-smoke-64k-48k"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "statusMessage": "OK",
  24. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  25. "body": "data: {\"id\":\"chatcmpl-otb11-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"Mixed Context Budget\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  26. }
  27. },
  28. {
  29. "id": "otb11-turn-1",
  30. "description": "OTB11 第一轮真实发送并建立 8K provider usage 锚点。",
  31. "metadata": {
  32. "kind": "main",
  33. "timingPolicy": "fast-text",
  34. "source": "synthetic",
  35. "syntheticReason": "固定首轮 usage,使后续混合长度消息在小窗口内可复现地跨过 cap 起点。"
  36. },
  37. "maxMatches": 1,
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "lastUserMessageIncludes": ["E2E_OTB11_TURN_1"],
  42. "bodyIncludes": ["otb-preflight-smoke-64k-48k"],
  43. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "statusMessage": "OK",
  48. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  49. "body": "data: {\"id\":\"chatcmpl-otb11-turn-1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb11-turn-1-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":8000,\"completion_tokens\":8,\"total_tokens\":8008}}\n\ndata: [DONE]\n\n"
  50. }
  51. },
  52. {
  53. "id": "otb11-turn-2",
  54. "description": "OTB11 第二轮仍处于 48K baseline 区间。",
  55. "metadata": {
  56. "kind": "main",
  57. "timingPolicy": "fast-text",
  58. "source": "synthetic",
  59. "syntheticReason": "固定 14K usage,作为下一轮进入 preflight cap 区间的 provider 锚点。"
  60. },
  61. "maxMatches": 1,
  62. "match": {
  63. "method": "POST",
  64. "pathIncludes": "/chat/completions",
  65. "lastUserMessageIncludes": ["E2E_OTB11_TURN_2"],
  66. "bodyIncludes": ["otb-preflight-smoke-64k-48k"],
  67. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  68. },
  69. "response": {
  70. "statusCode": 200,
  71. "statusMessage": "OK",
  72. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  73. "body": "data: {\"id\":\"chatcmpl-otb11-turn-2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb11-turn-2-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":14000,\"completion_tokens\":8,\"total_tokens\":14008}}\n\ndata: [DONE]\n\n"
  74. }
  75. },
  76. {
  77. "id": "otb11-turn-3",
  78. "description": "OTB11 第一次在剩余窗口小于 48K 后缩小 max_completion_tokens。",
  79. "metadata": {
  80. "kind": "main",
  81. "timingPolicy": "fast-text",
  82. "source": "synthetic",
  83. "syntheticReason": "18.5K usage 锚点让后续请求继续位于 cap 区间,同时保持低于 30K compact threshold。"
  84. },
  85. "maxMatches": 1,
  86. "match": {
  87. "method": "POST",
  88. "pathIncludes": "/chat/completions",
  89. "lastUserMessageIncludes": ["E2E_OTB11_TURN_3"],
  90. "bodyIncludes": ["otb-preflight-smoke-64k-48k"],
  91. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  92. },
  93. "response": {
  94. "statusCode": 200,
  95. "statusMessage": "OK",
  96. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  97. "body": "data: {\"id\":\"chatcmpl-otb11-turn-3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb11-turn-3-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":18500,\"completion_tokens\":8,\"total_tokens\":18508}}\n\ndata: [DONE]\n\n"
  98. }
  99. },
  100. {
  101. "id": "otb11-turn-4",
  102. "description": "OTB11 第二次按更高 usage 单调缩小 max_completion_tokens。",
  103. "metadata": {
  104. "kind": "main",
  105. "timingPolicy": "fast-text",
  106. "source": "synthetic",
  107. "syntheticReason": "23.5K usage 锚点稳定形成第二个不同的 cap,验证不是单一边界样例。"
  108. },
  109. "maxMatches": 1,
  110. "match": {
  111. "method": "POST",
  112. "pathIncludes": "/chat/completions",
  113. "lastUserMessageIncludes": ["E2E_OTB11_TURN_4"],
  114. "bodyIncludes": ["otb-preflight-smoke-64k-48k"],
  115. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  116. },
  117. "response": {
  118. "statusCode": 200,
  119. "statusMessage": "OK",
  120. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  121. "body": "data: {\"id\":\"chatcmpl-otb11-turn-4\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-4\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb11-turn-4-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-4\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":23500,\"completion_tokens\":8,\"total_tokens\":23508}}\n\ndata: [DONE]\n\n"
  122. }
  123. },
  124. {
  125. "id": "otb11-turn-5",
  126. "description": "OTB11 第三次缩小 max_completion_tokens,并把 provider usage 推近 30K threshold。",
  127. "metadata": {
  128. "kind": "main",
  129. "timingPolicy": "fast-text",
  130. "source": "synthetic",
  131. "syntheticReason": "28.5K usage 锚点结合固定 seed 的第六条消息,确定性触发下一轮 Auto Compact。"
  132. },
  133. "maxMatches": 1,
  134. "match": {
  135. "method": "POST",
  136. "pathIncludes": "/chat/completions",
  137. "lastUserMessageIncludes": ["E2E_OTB11_TURN_5"],
  138. "bodyIncludes": ["otb-preflight-smoke-64k-48k"],
  139. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  140. },
  141. "response": {
  142. "statusCode": 200,
  143. "statusMessage": "OK",
  144. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  145. "body": "data: {\"id\":\"chatcmpl-otb11-turn-5\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-5\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb11-turn-5-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-5\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":28500,\"completion_tokens\":8,\"total_tokens\":28508}}\n\ndata: [DONE]\n\n"
  146. }
  147. },
  148. {
  149. "id": "otb11-auto-compact",
  150. "description": "OTB11 第六轮先执行 Auto Compact summary。",
  151. "metadata": {
  152. "kind": "main",
  153. "timingPolicy": "fast-text",
  154. "source": "synthetic",
  155. "syntheticReason": "成功 summary 固定 compact 边界,验证 30K threshold 后原 pending message 的执行顺序。"
  156. },
  157. "maxMatches": 1,
  158. "match": {
  159. "method": "POST",
  160. "pathIncludes": "/chat/completions",
  161. "bodyIncludes": [
  162. "E2E_OTB11_TURN_5",
  163. "create a detailed summary",
  164. "\"max_completion_tokens\":21000",
  165. "otb-preflight-smoke-64k-48k"
  166. ],
  167. "bodyExcludes": ["Generate a concise title"]
  168. },
  169. "response": {
  170. "statusCode": 200,
  171. "statusMessage": "OK",
  172. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  173. "body": "data: {\"id\":\"chatcmpl-otb11-compact\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-compact\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"<summary>OTB11 retained the first five mixed-length turns.</summary>\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-compact\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":30754,\"completion_tokens\":32,\"total_tokens\":30786}}\n\ndata: [DONE]\n\n"
  174. }
  175. },
  176. {
  177. "id": "otb11-turn-6-after-compact",
  178. "description": "OTB11 Auto Compact 后继续原第六轮消息。",
  179. "metadata": {
  180. "kind": "main",
  181. "timingPolicy": "fast-text",
  182. "source": "synthetic",
  183. "syntheticReason": "短成功响应证明 pending message 未丢失,且此前动态 cap 没有持久化到压缩后的主请求。"
  184. },
  185. "maxMatches": 1,
  186. "match": {
  187. "method": "POST",
  188. "pathIncludes": "/chat/completions",
  189. "lastUserMessageIncludes": ["E2E_OTB11_TURN_6"],
  190. "bodyIncludes": ["otb-preflight-smoke-64k-48k"],
  191. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  192. },
  193. "response": {
  194. "statusCode": 200,
  195. "statusMessage": "OK",
  196. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  197. "body": "data: {\"id\":\"chatcmpl-otb11-turn-6\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-6\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb11-turn-6-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb11-turn-6\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-64k-48k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":2500,\"completion_tokens\":8,\"total_tokens\":2508}}\n\ndata: [DONE]\n\n"
  198. }
  199. },
  200. {
  201. "id": "otb12-title",
  202. "description": "OTB12 首轮标题生成固定响应。",
  203. "metadata": {
  204. "kind": "common",
  205. "timingPolicy": "fast-text",
  206. "source": "synthetic",
  207. "syntheticReason": "标题不属于预算语义,只隔离其请求,避免干扰逐轮 main request 计数。"
  208. },
  209. "maxMatches": 1,
  210. "match": {
  211. "method": "POST",
  212. "pathIncludes": "/chat/completions",
  213. "bodyIncludes": ["Generate a concise title", "otb-preflight-smoke-200k-128k"]
  214. },
  215. "response": {
  216. "statusCode": 200,
  217. "statusMessage": "OK",
  218. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  219. "body": "data: {\"id\":\"chatcmpl-otb12-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"Large Context Budget\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  220. }
  221. },
  222. {
  223. "id": "otb12-turn-1",
  224. "description": "OTB12 第一轮真实发送并建立 45K provider usage 锚点。",
  225. "metadata": {
  226. "kind": "main",
  227. "timingPolicy": "fast-text",
  228. "source": "synthetic",
  229. "syntheticReason": "固定首轮 usage,使 200K/128K 场景先证明未达到 71K cap 起点时仍发送 baseline。"
  230. },
  231. "maxMatches": 1,
  232. "match": {
  233. "method": "POST",
  234. "pathIncludes": "/chat/completions",
  235. "lastUserMessageIncludes": ["E2E_OTB12_TURN_1"],
  236. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  237. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  238. },
  239. "response": {
  240. "statusCode": 200,
  241. "statusMessage": "OK",
  242. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  243. "body": "data: {\"id\":\"chatcmpl-otb12-turn-1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-1-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":45000,\"completion_tokens\":8,\"total_tokens\":45008}}\n\ndata: [DONE]\n\n"
  244. }
  245. },
  246. {
  247. "id": "otb12-turn-2",
  248. "description": "OTB12 第二轮仍处于 128K baseline 区间。",
  249. "metadata": {
  250. "kind": "main",
  251. "timingPolicy": "fast-text",
  252. "source": "synthetic",
  253. "syntheticReason": "固定 70K usage,作为下一轮跨过 71K preflight cap 起点的 provider 锚点。"
  254. },
  255. "maxMatches": 1,
  256. "match": {
  257. "method": "POST",
  258. "pathIncludes": "/chat/completions",
  259. "lastUserMessageIncludes": ["E2E_OTB12_TURN_2"],
  260. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  261. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  262. },
  263. "response": {
  264. "statusCode": 200,
  265. "statusMessage": "OK",
  266. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  267. "body": "data: {\"id\":\"chatcmpl-otb12-turn-2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-2-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":70000,\"completion_tokens\":8,\"total_tokens\":70008}}\n\ndata: [DONE]\n\n"
  268. }
  269. },
  270. {
  271. "id": "otb12-turn-3",
  272. "description": "OTB12 第一次跨过 71K 后缩小 max_completion_tokens。",
  273. "metadata": {
  274. "kind": "main",
  275. "timingPolicy": "fast-text",
  276. "source": "synthetic",
  277. "syntheticReason": "100K usage 锚点让后续请求继续位于大窗口 cap 区间,同时保持低于 166K threshold。"
  278. },
  279. "maxMatches": 1,
  280. "match": {
  281. "method": "POST",
  282. "pathIncludes": "/chat/completions",
  283. "lastUserMessageIncludes": ["E2E_OTB12_TURN_3"],
  284. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  285. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  286. },
  287. "response": {
  288. "statusCode": 200,
  289. "statusMessage": "OK",
  290. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  291. "body": "data: {\"id\":\"chatcmpl-otb12-turn-3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-3-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":100000,\"completion_tokens\":8,\"total_tokens\":100008}}\n\ndata: [DONE]\n\n"
  292. }
  293. },
  294. {
  295. "id": "otb12-turn-4",
  296. "description": "OTB12 第二次按更高 usage 单调缩小 max_completion_tokens。",
  297. "metadata": {
  298. "kind": "main",
  299. "timingPolicy": "fast-text",
  300. "source": "synthetic",
  301. "syntheticReason": "135K usage 锚点形成第二个明显不同的 cap,证明 128K baseline 下仍按相同公式缩放。"
  302. },
  303. "maxMatches": 1,
  304. "match": {
  305. "method": "POST",
  306. "pathIncludes": "/chat/completions",
  307. "lastUserMessageIncludes": ["E2E_OTB12_TURN_4"],
  308. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  309. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  310. },
  311. "response": {
  312. "statusCode": 200,
  313. "statusMessage": "OK",
  314. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  315. "body": "data: {\"id\":\"chatcmpl-otb12-turn-4\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-4\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-4-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-4\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":135000,\"completion_tokens\":8,\"total_tokens\":135008}}\n\ndata: [DONE]\n\n"
  316. }
  317. },
  318. {
  319. "id": "otb12-turn-5",
  320. "description": "OTB12 第三次缩小 max_completion_tokens,并把 provider usage 推近 166K threshold。",
  321. "metadata": {
  322. "kind": "main",
  323. "timingPolicy": "fast-text",
  324. "source": "synthetic",
  325. "syntheticReason": "164K usage 锚点让后续两条较短消息在 Compact 前形成约 34.3K、33.1K 的临界 cap。"
  326. },
  327. "maxMatches": 1,
  328. "match": {
  329. "method": "POST",
  330. "pathIncludes": "/chat/completions",
  331. "lastUserMessageIncludes": ["E2E_OTB12_TURN_5"],
  332. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  333. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  334. },
  335. "response": {
  336. "statusCode": 200,
  337. "statusMessage": "OK",
  338. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  339. "body": "data: {\"id\":\"chatcmpl-otb12-turn-5\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-5\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-5-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-5\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":164000,\"completion_tokens\":8,\"total_tokens\":164008}}\n\ndata: [DONE]\n\n"
  340. }
  341. },
  342. {
  343. "id": "otb12-turn-6",
  344. "description": "OTB12 第四次缩小 max_completion_tokens,以较短消息推进到约 34.3K。",
  345. "metadata": {
  346. "kind": "main",
  347. "timingPolicy": "fast-text",
  348. "source": "synthetic",
  349. "syntheticReason": "165.1K usage 锚点让下一条较短消息继续逼近 33K 临界 cap,但仍保持低于 166K threshold。"
  350. },
  351. "maxMatches": 1,
  352. "match": {
  353. "method": "POST",
  354. "pathIncludes": "/chat/completions",
  355. "lastUserMessageIncludes": ["E2E_OTB12_TURN_6"],
  356. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  357. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  358. },
  359. "response": {
  360. "statusCode": 200,
  361. "statusMessage": "OK",
  362. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  363. "body": "data: {\"id\":\"chatcmpl-otb12-turn-6\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-6\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-6-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-6\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":165092,\"completion_tokens\":8,\"total_tokens\":165100}}\n\ndata: [DONE]\n\n"
  364. }
  365. },
  366. {
  367. "id": "otb12-turn-7",
  368. "description": "OTB12 第五次缩小 max_completion_tokens,以约 33.1K 覆盖 Compact 前最后的主请求边界。",
  369. "metadata": {
  370. "kind": "main",
  371. "timingPolicy": "fast-text",
  372. "source": "synthetic",
  373. "syntheticReason": "165.8K usage 锚点结合最后一条短消息,使下一轮刚跨过 166K threshold 并确定性进入 Auto Compact。"
  374. },
  375. "maxMatches": 1,
  376. "match": {
  377. "method": "POST",
  378. "pathIncludes": "/chat/completions",
  379. "lastUserMessageIncludes": ["E2E_OTB12_TURN_7"],
  380. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  381. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  382. },
  383. "response": {
  384. "statusCode": 200,
  385. "statusMessage": "OK",
  386. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  387. "body": "data: {\"id\":\"chatcmpl-otb12-turn-7\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-7\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-7-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-7\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":165792,\"completion_tokens\":8,\"total_tokens\":165800}}\n\ndata: [DONE]\n\n"
  388. }
  389. },
  390. {
  391. "id": "otb12-auto-compact",
  392. "description": "OTB12 第八轮刚跨过 166K threshold 后先执行 Auto Compact summary。",
  393. "metadata": {
  394. "kind": "main",
  395. "timingPolicy": "fast-text",
  396. "source": "synthetic",
  397. "syntheticReason": "成功 summary 固定 166K compact 边界,验证大窗口下原 pending message 的执行顺序。"
  398. },
  399. "maxMatches": 1,
  400. "match": {
  401. "method": "POST",
  402. "pathIncludes": "/chat/completions",
  403. "bodyIncludes": [
  404. "E2E_OTB12_TURN_7",
  405. "create a detailed summary",
  406. "\"max_completion_tokens\":21000",
  407. "otb-preflight-smoke-200k-128k"
  408. ],
  409. "bodyExcludes": ["Generate a concise title"]
  410. },
  411. "response": {
  412. "statusCode": 200,
  413. "statusMessage": "OK",
  414. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  415. "body": "data: {\"id\":\"chatcmpl-otb12-compact\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-compact\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"<summary>OTB12 retained the first seven mixed-length turns.</summary>\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-compact\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":166024,\"completion_tokens\":32,\"total_tokens\":166056}}\n\ndata: [DONE]\n\n"
  416. }
  417. },
  418. {
  419. "id": "otb12-turn-8-after-compact",
  420. "description": "OTB12 Auto Compact 后继续原第八轮消息。",
  421. "metadata": {
  422. "kind": "main",
  423. "timingPolicy": "fast-text",
  424. "source": "synthetic",
  425. "syntheticReason": "短成功响应证明 pending message 未丢失,且 128K baseline 在压缩后重新计算而非沿用旧 cap。"
  426. },
  427. "maxMatches": 1,
  428. "match": {
  429. "method": "POST",
  430. "pathIncludes": "/chat/completions",
  431. "lastUserMessageIncludes": ["E2E_OTB12_TURN_8"],
  432. "bodyIncludes": ["otb-preflight-smoke-200k-128k"],
  433. "bodyExcludes": ["Generate a concise title", "create a detailed summary"]
  434. },
  435. "response": {
  436. "statusCode": 200,
  437. "statusMessage": "OK",
  438. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  439. "body": "data: {\"id\":\"chatcmpl-otb12-turn-8\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-8\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"otb12-turn-8-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-otb12-turn-8\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"otb-preflight-smoke-200k-128k\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":3500,\"completion_tokens\":8,\"total_tokens\":3508}}\n\ndata: [DONE]\n\n"
  440. }
  441. }
  442. ]
  443. }