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

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