conversation-session-v4-rewind-compact-extended.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-rewind-compact-extended",
  4. "spec": "./test/e2e/conversation-session/conversation-session-v4-rewind-compact-extended.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "pv4-18-title",
  8. "description": "PV4-18 attachment edit case-local 标题。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不影响附件 branch cut 语义。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_PV4_18_ATTACHMENT_ORIGINAL"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "text": {
  26. "id": "pv4-18-title",
  27. "inputTokens": 48,
  28. "outputTokens": 8,
  29. "text": "{\"title\":\"PV4 18 Attachment Rewind\"}"
  30. }
  31. }
  32. },
  33. {
  34. "id": "pv4-18-original",
  35. "description": "PV4-18 compact 前的附件原回复。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "被 same-session branch cut 移出 active branch。"
  41. },
  42. "maxMatches": 1,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": ["E2E_PV4_18_ATTACHMENT_ORIGINAL"],
  47. "bodyExcludes": [
  48. "Generate a concise title",
  49. "CRITICAL: Respond with TEXT ONLY"
  50. ]
  51. },
  52. "response": {
  53. "statusCode": 200,
  54. "text": {
  55. "id": "pv4-18-original",
  56. "inputTokens": 72,
  57. "outputTokens": 8,
  58. "text": "PV4_18_ATTACHMENT_ORIGINAL_REPLY"
  59. }
  60. }
  61. },
  62. {
  63. "id": "pv4-18-compact",
  64. "description": "PV4-18 覆盖附件 turn 的 stable compact summary。",
  65. "metadata": {
  66. "kind": "main",
  67. "timingPolicy": "fast-text",
  68. "source": "synthetic",
  69. "syntheticReason": "证明 compact-covered 附件 edit 不 fork。"
  70. },
  71. "maxMatches": 1,
  72. "match": {
  73. "method": "POST",
  74. "pathIncludes": "/messages",
  75. "bodyIncludes": [
  76. "E2E_PV4_18_ATTACHMENT_ORIGINAL",
  77. "PV4_18_ATTACHMENT_ORIGINAL_REPLY",
  78. "CRITICAL: Respond with TEXT ONLY",
  79. "\"stream\":true"
  80. ],
  81. "bodyExcludes": ["Generate a concise title"]
  82. },
  83. "response": {
  84. "statusCode": 200,
  85. "text": {
  86. "id": "pv4-18-compact",
  87. "inputTokens": 128,
  88. "outputTokens": 24,
  89. "text": "<summary>PV4_18_ATTACHMENT_SUMMARY</summary>"
  90. }
  91. }
  92. },
  93. {
  94. "id": "pv4-18-edited",
  95. "description": "PV4-18 附件 canonical ref 重放后的回复。",
  96. "metadata": {
  97. "kind": "main",
  98. "timingPolicy": "fast-text",
  99. "source": "synthetic",
  100. "syntheticReason": "新 provider request 必须同时携带 edited text 和原附件。"
  101. },
  102. "maxMatches": 1,
  103. "match": {
  104. "method": "POST",
  105. "pathIncludes": "/messages",
  106. "lastUserMessageIncludes": ["E2E_PV4_18_ATTACHMENT_EDITED"],
  107. "bodyExcludes": ["Generate a concise title"]
  108. },
  109. "response": {
  110. "statusCode": 200,
  111. "text": {
  112. "id": "pv4-18-edited",
  113. "inputTokens": 72,
  114. "outputTokens": 8,
  115. "text": "PV4_18_ATTACHMENT_EDITED_REPLY"
  116. }
  117. }
  118. },
  119. {
  120. "id": "pv4-19-title",
  121. "description": "PV4-19 multiple compact case-local 标题。",
  122. "metadata": {
  123. "kind": "common",
  124. "timingPolicy": "fast-text",
  125. "source": "synthetic",
  126. "syntheticReason": "标题不参与 boundary 选择。"
  127. },
  128. "match": {
  129. "method": "POST",
  130. "pathIncludes": "/messages",
  131. "bodyIncludes": ["Generate a concise title", "E2E_PV4_19_FIRST"]
  132. },
  133. "response": {
  134. "statusCode": 200,
  135. "text": {
  136. "id": "pv4-19-title",
  137. "inputTokens": 48,
  138. "outputTokens": 8,
  139. "text": "{\"title\":\"PV4 19 Multiple Compact\"}"
  140. }
  141. }
  142. },
  143. {
  144. "id": "pv4-19-first",
  145. "description": "PV4-19 第一轮回复。",
  146. "metadata": {
  147. "kind": "main",
  148. "timingPolicy": "fast-text",
  149. "source": "synthetic",
  150. "syntheticReason": "建立第一个仍需保留的 compact boundary。"
  151. },
  152. "maxMatches": 1,
  153. "match": {
  154. "method": "POST",
  155. "pathIncludes": "/messages",
  156. "lastUserMessageIncludes": ["E2E_PV4_19_FIRST"],
  157. "bodyExcludes": [
  158. "Generate a concise title",
  159. "CRITICAL: Respond with TEXT ONLY"
  160. ]
  161. },
  162. "response": {
  163. "statusCode": 200,
  164. "text": {
  165. "id": "pv4-19-first",
  166. "inputTokens": 56,
  167. "outputTokens": 8,
  168. "text": "PV4_19_FIRST_REPLY"
  169. }
  170. }
  171. },
  172. {
  173. "id": "pv4-19-compact-first",
  174. "description": "PV4-19 第一个 compact summary,编辑目标之前仍有效。",
  175. "metadata": {
  176. "kind": "main",
  177. "timingPolicy": "fast-text",
  178. "source": "synthetic",
  179. "syntheticReason": "cold follow-up 必须仍能看到 PV4_19_FIRST_SUMMARY。"
  180. },
  181. "maxMatches": 1,
  182. "match": {
  183. "method": "POST",
  184. "pathIncludes": "/messages",
  185. "bodyIncludes": [
  186. "E2E_PV4_19_FIRST",
  187. "PV4_19_FIRST_REPLY",
  188. "CRITICAL: Respond with TEXT ONLY",
  189. "\"stream\":true"
  190. ],
  191. "bodyExcludes": [
  192. "Generate a concise title",
  193. "E2E_PV4_19_SECOND_ORIGINAL"
  194. ]
  195. },
  196. "response": {
  197. "statusCode": 200,
  198. "text": {
  199. "id": "pv4-19-compact-first",
  200. "inputTokens": 128,
  201. "outputTokens": 24,
  202. "text": "<summary>PV4_19_FIRST_SUMMARY</summary>"
  203. }
  204. }
  205. },
  206. {
  207. "id": "pv4-19-second-original",
  208. "description": "PV4-19 被第二次 compact 覆盖的 latest input 原回复。",
  209. "metadata": {
  210. "kind": "main",
  211. "timingPolicy": "fast-text",
  212. "source": "synthetic",
  213. "syntheticReason": "编辑后必须退出 active/cold/provider history。"
  214. },
  215. "maxMatches": 1,
  216. "match": {
  217. "method": "POST",
  218. "pathIncludes": "/messages",
  219. "lastUserMessageIncludes": ["E2E_PV4_19_SECOND_ORIGINAL"],
  220. "bodyExcludes": [
  221. "Generate a concise title",
  222. "CRITICAL: Respond with TEXT ONLY"
  223. ]
  224. },
  225. "response": {
  226. "statusCode": 200,
  227. "text": {
  228. "id": "pv4-19-second-original",
  229. "inputTokens": 64,
  230. "outputTokens": 8,
  231. "text": "PV4_19_SECOND_ORIGINAL_REPLY"
  232. }
  233. }
  234. },
  235. {
  236. "id": "pv4-19-compact-second",
  237. "description": "PV4-19 第二个 compact summary,跨 boundary edit 后应失效。",
  238. "metadata": {
  239. "kind": "main",
  240. "timingPolicy": "fast-text",
  241. "source": "synthetic",
  242. "syntheticReason": "cold follow-up 不得再看到 PV4_19_SECOND_SUMMARY。"
  243. },
  244. "maxMatches": 1,
  245. "match": {
  246. "method": "POST",
  247. "pathIncludes": "/messages",
  248. "bodyIncludes": [
  249. "PV4_19_FIRST_SUMMARY",
  250. "E2E_PV4_19_SECOND_ORIGINAL",
  251. "PV4_19_SECOND_ORIGINAL_REPLY",
  252. "CRITICAL: Respond with TEXT ONLY",
  253. "\"stream\":true"
  254. ],
  255. "bodyExcludes": ["Generate a concise title"]
  256. },
  257. "response": {
  258. "statusCode": 200,
  259. "text": {
  260. "id": "pv4-19-compact-second",
  261. "inputTokens": 144,
  262. "outputTokens": 28,
  263. "text": "<summary>PV4_19_SECOND_SUMMARY includes E2E_PV4_19_SECOND_ORIGINAL</summary>"
  264. }
  265. }
  266. },
  267. {
  268. "id": "pv4-19-second-edited",
  269. "description": "PV4-19 same-session branch cut 后第二轮新回复。",
  270. "metadata": {
  271. "kind": "main",
  272. "timingPolicy": "fast-text",
  273. "source": "synthetic",
  274. "syntheticReason": "证明跨最新 boundary 后按 edited intent 重放。"
  275. },
  276. "maxMatches": 1,
  277. "match": {
  278. "method": "POST",
  279. "pathIncludes": "/messages",
  280. "lastUserMessageIncludes": ["E2E_PV4_19_SECOND_EDITED"],
  281. "bodyExcludes": ["Generate a concise title"]
  282. },
  283. "response": {
  284. "statusCode": 200,
  285. "text": {
  286. "id": "pv4-19-second-edited",
  287. "inputTokens": 64,
  288. "outputTokens": 8,
  289. "text": "PV4_19_SECOND_EDITED_REPLY"
  290. }
  291. }
  292. },
  293. {
  294. "id": "pv4-19-followup",
  295. "description": "PV4-19 cold restore 后 follow-up 回复。",
  296. "metadata": {
  297. "kind": "main",
  298. "timingPolicy": "fast-text",
  299. "source": "synthetic",
  300. "syntheticReason": "捕获请求体断言第一 summary 保留、第二 summary/旧输入失效。"
  301. },
  302. "maxMatches": 1,
  303. "match": {
  304. "method": "POST",
  305. "pathIncludes": "/messages",
  306. "lastUserMessageIncludes": ["E2E_PV4_19_FOLLOWUP"],
  307. "bodyExcludes": ["Generate a concise title"]
  308. },
  309. "response": {
  310. "statusCode": 200,
  311. "text": {
  312. "id": "pv4-19-followup",
  313. "inputTokens": 72,
  314. "outputTokens": 8,
  315. "text": "PV4_19_FOLLOWUP_REPLY"
  316. }
  317. }
  318. }
  319. ]
  320. }