conversation-session-instruction-file-delta.json 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-instruction-file-delta",
  4. "spec": "./test/e2e/conversation-session/context/conversation-session-instruction-file-delta.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ifd-a-title",
  8. "description": "任务 A 首发的确定性标题响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["Generate a concise title", "E2E_IFD_U1"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "text": {
  24. "id": "ifd-a-title",
  25. "inputTokens": 64,
  26. "outputTokens": 8,
  27. "text": "{\"title\": \"Instruction File Delta\"}"
  28. }
  29. }
  30. },
  31. {
  32. "id": "ifd-u1",
  33. "description": "IFD01 首轮:AGENTS.md 为 V1 的完整公告。",
  34. "metadata": {
  35. "kind": "main",
  36. "timingPolicy": "fast-text",
  37. "source": "synthetic",
  38. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  39. },
  40. "maxMatches": 1,
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/messages",
  44. "lastUserMessageIncludes": ["E2E_IFD_U1"],
  45. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "text": {
  50. "id": "ifd-u1",
  51. "inputTokens": 80,
  52. "outputTokens": 8,
  53. "text": "IFD_A1"
  54. }
  55. }
  56. },
  57. {
  58. "id": "ifd-u2-edited",
  59. "description": "IFD01 运行中改为 V2 后的第二轮。",
  60. "metadata": {
  61. "kind": "main",
  62. "timingPolicy": "fast-text",
  63. "source": "synthetic",
  64. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  65. },
  66. "maxMatches": 1,
  67. "match": {
  68. "method": "POST",
  69. "pathIncludes": "/messages",
  70. "lastUserMessageIncludes": ["E2E_IFD_U2_EDITED"],
  71. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  72. },
  73. "response": {
  74. "statusCode": 200,
  75. "text": {
  76. "id": "ifd-u2-edited",
  77. "inputTokens": 80,
  78. "outputTokens": 8,
  79. "text": "IFD_A2"
  80. }
  81. }
  82. },
  83. {
  84. "id": "ifd-u3-cold",
  85. "description": "IFD02 冷恢复后的第一轮:末尾追加 session_start 增量。",
  86. "metadata": {
  87. "kind": "main",
  88. "timingPolicy": "fast-text",
  89. "source": "synthetic",
  90. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  91. },
  92. "maxMatches": 1,
  93. "match": {
  94. "method": "POST",
  95. "pathIncludes": "/messages",
  96. "lastUserMessageIncludes": ["E2E_IFD_U3_COLD"],
  97. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  98. },
  99. "response": {
  100. "statusCode": 200,
  101. "text": {
  102. "id": "ifd-u3-cold",
  103. "inputTokens": 80,
  104. "outputTokens": 8,
  105. "text": "IFD_A3"
  106. }
  107. }
  108. },
  109. {
  110. "id": "ifd-u4-again",
  111. "description": "IFD02 冷恢复后的第二轮:不重复增量。",
  112. "metadata": {
  113. "kind": "main",
  114. "timingPolicy": "fast-text",
  115. "source": "synthetic",
  116. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  117. },
  118. "maxMatches": 1,
  119. "match": {
  120. "method": "POST",
  121. "pathIncludes": "/messages",
  122. "lastUserMessageIncludes": ["E2E_IFD_U4_AGAIN"],
  123. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  124. },
  125. "response": {
  126. "statusCode": 200,
  127. "text": {
  128. "id": "ifd-u4-again",
  129. "inputTokens": 80,
  130. "outputTokens": 8,
  131. "text": "IFD_A4"
  132. }
  133. }
  134. },
  135. {
  136. "id": "ifd-u5-removed",
  137. "description": "IFD03 删除 AGENTS.md 并冷恢复后的第一轮:追加删除增量。",
  138. "metadata": {
  139. "kind": "main",
  140. "timingPolicy": "fast-text",
  141. "source": "synthetic",
  142. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  143. },
  144. "maxMatches": 1,
  145. "match": {
  146. "method": "POST",
  147. "pathIncludes": "/messages",
  148. "lastUserMessageIncludes": ["E2E_IFD_U5_REMOVED"],
  149. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  150. },
  151. "response": {
  152. "statusCode": 200,
  153. "text": {
  154. "id": "ifd-u5-removed",
  155. "inputTokens": 80,
  156. "outputTokens": 8,
  157. "text": "IFD_A5"
  158. }
  159. }
  160. },
  161. {
  162. "id": "ifd-c-title",
  163. "description": "任务 C 首发的确定性标题响应。",
  164. "metadata": {
  165. "kind": "common",
  166. "timingPolicy": "fast-text",
  167. "source": "synthetic",
  168. "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
  169. },
  170. "maxMatches": 1,
  171. "match": {
  172. "method": "POST",
  173. "pathIncludes": "/messages",
  174. "bodyIncludes": ["Generate a concise title", "E2E_IFD_C1"]
  175. },
  176. "response": {
  177. "statusCode": 200,
  178. "text": {
  179. "id": "ifd-c-title",
  180. "inputTokens": 64,
  181. "outputTokens": 8,
  182. "text": "{\"title\": \"Instruction File Compact\"}"
  183. }
  184. }
  185. },
  186. {
  187. "id": "ifd-c1",
  188. "description": "IFD04 首轮:AGENTS.md 为 V1 的完整公告。",
  189. "metadata": {
  190. "kind": "main",
  191. "timingPolicy": "fast-text",
  192. "source": "synthetic",
  193. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  194. },
  195. "maxMatches": 1,
  196. "match": {
  197. "method": "POST",
  198. "pathIncludes": "/messages",
  199. "lastUserMessageIncludes": ["E2E_IFD_C1"],
  200. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  201. },
  202. "response": {
  203. "statusCode": 200,
  204. "text": {
  205. "id": "ifd-c1",
  206. "inputTokens": 80,
  207. "outputTokens": 8,
  208. "text": "IFD_C_A1"
  209. }
  210. }
  211. },
  212. {
  213. "id": "ifd-c-compact-summary",
  214. "description": "IFD04 手动 /compact 的 summary 请求。",
  215. "metadata": {
  216. "kind": "main",
  217. "timingPolicy": "fast-text",
  218. "source": "synthetic",
  219. "syntheticReason": "手动 compact 需要固定 summary;summary 文案不参与断言。"
  220. },
  221. "maxMatches": 1,
  222. "match": {
  223. "method": "POST",
  224. "pathIncludes": "/messages",
  225. "bodyIncludes": ["E2E_IFD_C1", "CRITICAL: Respond with TEXT ONLY"],
  226. "bodyExcludes": ["Generate a concise title"]
  227. },
  228. "response": {
  229. "statusCode": 200,
  230. "text": {
  231. "id": "ifd-c-compact-summary",
  232. "inputTokens": 256,
  233. "outputTokens": 64,
  234. "text": "<analysis>The user greeted the assistant once.</analysis>\n\n<summary>1. Primary Request and Intent:\n The user said hello and asked for a fixed reply. The assistant replied with the fixed text.\n</summary>"
  235. }
  236. }
  237. },
  238. {
  239. "id": "ifd-c2-compacted",
  240. "description": "IFD04 compact 后的第一轮:按重读的 V3 公告。",
  241. "metadata": {
  242. "kind": "main",
  243. "timingPolicy": "fast-text",
  244. "source": "synthetic",
  245. "syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
  246. },
  247. "maxMatches": 1,
  248. "match": {
  249. "method": "POST",
  250. "pathIncludes": "/messages",
  251. "lastUserMessageIncludes": ["E2E_IFD_C2_COMPACTED"],
  252. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  253. },
  254. "response": {
  255. "statusCode": 200,
  256. "text": {
  257. "id": "ifd-c2-compacted",
  258. "inputTokens": 80,
  259. "outputTokens": 8,
  260. "text": "IFD_C_A2"
  261. }
  262. }
  263. }
  264. ]
  265. }