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

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