conversation-session-modified-submit-delivery.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-modified-submit-delivery",
  4. "spec": "./test/e2e/conversation-session/conversation-session-modified-submit-delivery.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "modified-submit-key-base",
  8. "description": "M06k 快捷键前的 pre-output running turn。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "controlled-stream",
  12. "source": "synthetic",
  13. "syntheticReason": "稳定制造 provider 已接收但 assistant 尚未输出的运行窗口。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["E2E_HOLD_STREAM", "E2E_MODIFIED_KEY_BASE_"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  21. "lastUserMessageIncludes": ["E2E_MODIFIED_KEY_BASE_"]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "delayMs": 60000,
  26. "text": {
  27. "id": "modified-submit-key-base",
  28. "inputTokens": 80,
  29. "outputTokens": 8,
  30. "text": "should-be-interrupted"
  31. }
  32. }
  33. },
  34. {
  35. "id": "modified-submit-key-selected",
  36. "description": "M06k 快捷键直接发送的新 turn。",
  37. "metadata": {
  38. "kind": "main",
  39. "timingPolicy": "fast-text",
  40. "source": "synthetic",
  41. "syntheticReason": "验证 Cmd/Ctrl+Enter 抢占后只启动一次新请求。"
  42. },
  43. "maxMatches": 1,
  44. "match": {
  45. "method": "POST",
  46. "pathIncludes": "/messages",
  47. "bodyIncludes": ["E2E_MODIFIED_KEY_"],
  48. "bodyExcludes": [
  49. "E2E_MODIFIED_KEY_BASE_",
  50. "Generate a concise title",
  51. "CRITICAL: Respond with TEXT ONLY"
  52. ],
  53. "lastUserMessageIncludes": ["E2E_MODIFIED_KEY_"]
  54. },
  55. "response": {
  56. "statusCode": 200,
  57. "text": {
  58. "id": "modified-submit-key-selected",
  59. "inputTokens": 90,
  60. "outputTokens": 8,
  61. "text": "modified-key-ok"
  62. }
  63. }
  64. },
  65. {
  66. "id": "modified-submit-guide-base",
  67. "description": "M06n guide 反向入队前的 pre-output running turn。",
  68. "metadata": {
  69. "kind": "main",
  70. "timingPolicy": "controlled-stream",
  71. "source": "synthetic",
  72. "syntheticReason": "稳定验证 guide 模式下修饰键反向入队且不抢占。"
  73. },
  74. "maxMatches": 1,
  75. "match": {
  76. "method": "POST",
  77. "pathIncludes": "/messages",
  78. "bodyIncludes": ["E2E_HOLD_STREAM", "E2E_MODIFIED_GUIDE_BASE_"],
  79. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  80. "lastUserMessageIncludes": ["E2E_MODIFIED_GUIDE_BASE_"]
  81. },
  82. "response": {
  83. "statusCode": 200,
  84. "delayMs": 60000,
  85. "text": {
  86. "id": "modified-submit-guide-base",
  87. "inputTokens": 80,
  88. "outputTokens": 8,
  89. "text": "guide-base-ok"
  90. }
  91. }
  92. },
  93. {
  94. "id": "modified-submit-guide-queued-not-sent",
  95. "description": "M06n future queue 项不得提前请求 provider。",
  96. "metadata": {
  97. "kind": "main",
  98. "timingPolicy": "fast-text",
  99. "source": "synthetic",
  100. "syntheticReason": "maxMatches=0 将 guide 反向投递不得新增 provider 请求纳入 ledger。"
  101. },
  102. "maxMatches": 0,
  103. "match": {
  104. "method": "POST",
  105. "pathIncludes": "/messages",
  106. "bodyIncludes": ["E2E_MODIFIED_GUIDE_QUEUE_"],
  107. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  108. },
  109. "response": {
  110. "statusCode": 200,
  111. "text": {
  112. "id": "modified-submit-guide-should-not-send",
  113. "inputTokens": 80,
  114. "outputTokens": 8,
  115. "text": "should-not-send"
  116. }
  117. }
  118. },
  119. {
  120. "id": "modified-submit-tool-read",
  121. "description": "M06k 双能力工具结果后抢占:read。",
  122. "metadata": {
  123. "kind": "main",
  124. "timingPolicy": "fast-text",
  125. "source": "synthetic",
  126. "syntheticReason": "固定完整工具结果后的抢占窗口,按 MCS 开关验证新轮 human reminder 的角色、全文和原始 UI。"
  127. },
  128. "maxMatches": 2,
  129. "match": {
  130. "method": "POST",
  131. "pathIncludes": "/messages",
  132. "bodyIncludes": [
  133. "E2E_MODIFIED_TOOL_BASE_"
  134. ],
  135. "bodyExcludes": [
  136. "Generate a concise title",
  137. "CRITICAL: Respond with TEXT ONLY",
  138. "E2E_READONLY_TOOL_FILE_CONTENT",
  139. "E2E_MODIFIED_TOOL_SELECTED_"
  140. ]
  141. },
  142. "response": {
  143. "statusCode": 200,
  144. "toolUse": {
  145. "id": "toolu_modified_read",
  146. "messageId": "msg_modified_read",
  147. "name": "Read",
  148. "input": {
  149. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  150. }
  151. }
  152. }
  153. },
  154. {
  155. "id": "modified-submit-tool-hold",
  156. "description": "M06k 双能力工具结果后抢占:hold。",
  157. "metadata": {
  158. "kind": "main",
  159. "timingPolicy": "controlled-stream",
  160. "source": "synthetic",
  161. "syntheticReason": "固定完整工具结果后的抢占窗口,按 MCS 开关验证新轮 human reminder 的角色、全文和原始 UI。"
  162. },
  163. "maxMatches": 2,
  164. "match": {
  165. "method": "POST",
  166. "pathIncludes": "/messages",
  167. "bodyIncludes": [
  168. "E2E_MODIFIED_TOOL_BASE_",
  169. "E2E_READONLY_TOOL_FILE_CONTENT"
  170. ],
  171. "bodyExcludes": [
  172. "Generate a concise title",
  173. "CRITICAL: Respond with TEXT ONLY",
  174. "E2E_MODIFIED_TOOL_SELECTED_"
  175. ]
  176. },
  177. "response": {
  178. "statusCode": 200,
  179. "delayMs": 60000,
  180. "text": {
  181. "id": "modified-tool-hold",
  182. "inputTokens": 120,
  183. "outputTokens": 8,
  184. "text": "should-be-interrupted"
  185. }
  186. }
  187. },
  188. {
  189. "id": "modified-submit-tool-selected",
  190. "description": "M06k 双能力工具结果后抢占:selected。",
  191. "metadata": {
  192. "kind": "main",
  193. "timingPolicy": "fast-text",
  194. "source": "synthetic",
  195. "syntheticReason": "固定完整工具结果后的抢占窗口,按 MCS 开关验证新轮 human reminder 的角色、全文和原始 UI。"
  196. },
  197. "maxMatches": 2,
  198. "match": {
  199. "method": "POST",
  200. "pathIncludes": "/messages",
  201. "bodyIncludes": [
  202. "E2E_MODIFIED_TOOL_BASE_",
  203. "E2E_READONLY_TOOL_FILE_CONTENT",
  204. "E2E_MODIFIED_TOOL_SELECTED_",
  205. "The user sent a new message while you were working:",
  206. "Address the message above as you continue this turn."
  207. ],
  208. "bodyExcludes": [
  209. "Generate a concise title",
  210. "CRITICAL: Respond with TEXT ONLY"
  211. ]
  212. },
  213. "response": {
  214. "statusCode": 200,
  215. "text": {
  216. "id": "modified-tool-selected",
  217. "inputTokens": 160,
  218. "outputTokens": 8,
  219. "text": "modified-tool-ok"
  220. }
  221. }
  222. }
  223. ]
  224. }