conversation-session-guarded-batch-delete.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-guarded-batch-delete",
  4. "spec": "./test/e2e/conversation-session/conversation-session-guarded-batch-delete.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "batch-delete-title",
  8. "description": "Case-local title",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "隔离标题 sidecar,不依赖真实模型。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_GUARDED_DELETE_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "batch-delete-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"Batch deletion E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "E2E_GUARDED_DELETE_RECURSIVE-call",
  32. "description": "Batch deletion tool call",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  38. },
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "bodyIncludes": ["E2E_GUARDED_DELETE_RECURSIVE"],
  43. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  44. "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_RECURSIVE"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "toolUse": {
  49. "id": "toolu_E2E_GUARDED_DELETE_RECURSIVE",
  50. "name": "Bash",
  51. "input": {
  52. "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_RECURSIVE && echo executed > executed && rm -r target"
  53. }
  54. }
  55. }
  56. },
  57. {
  58. "id": "E2E_GUARDED_DELETE_RECURSIVE-final",
  59. "description": "Batch deletion provider continuation",
  60. "metadata": {
  61. "kind": "main",
  62. "timingPolicy": "fast-text",
  63. "source": "synthetic",
  64. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  65. },
  66. "match": {
  67. "method": "POST",
  68. "pathIncludes": "/messages",
  69. "bodyIncludes": ["E2E_GUARDED_DELETE_RECURSIVE", "toolu_E2E_GUARDED_DELETE_RECURSIVE"],
  70. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  71. },
  72. "response": {
  73. "statusCode": 200,
  74. "text": {
  75. "id": "E2E_GUARDED_DELETE_RECURSIVE-final",
  76. "inputTokens": 80,
  77. "outputTokens": 8,
  78. "text": "E2E_GUARDED_DELETE_RECURSIVE_DONE"
  79. }
  80. }
  81. },
  82. {
  83. "id": "E2E_GUARDED_DELETE_BATCH-call",
  84. "description": "Batch deletion tool call",
  85. "metadata": {
  86. "kind": "main",
  87. "timingPolicy": "fast-text",
  88. "source": "synthetic",
  89. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  90. },
  91. "match": {
  92. "method": "POST",
  93. "pathIncludes": "/messages",
  94. "bodyIncludes": ["E2E_GUARDED_DELETE_BATCH"],
  95. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  96. "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_BATCH"]
  97. },
  98. "response": {
  99. "statusCode": 200,
  100. "toolUse": {
  101. "id": "toolu_E2E_GUARDED_DELETE_BATCH",
  102. "name": "Bash",
  103. "input": {
  104. "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_BATCH && echo executed > executed && rm one.txt two.txt"
  105. }
  106. }
  107. }
  108. },
  109. {
  110. "id": "E2E_GUARDED_DELETE_BATCH-final",
  111. "description": "Batch deletion provider continuation",
  112. "metadata": {
  113. "kind": "main",
  114. "timingPolicy": "fast-text",
  115. "source": "synthetic",
  116. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  117. },
  118. "match": {
  119. "method": "POST",
  120. "pathIncludes": "/messages",
  121. "bodyIncludes": ["E2E_GUARDED_DELETE_BATCH", "toolu_E2E_GUARDED_DELETE_BATCH"],
  122. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  123. },
  124. "response": {
  125. "statusCode": 200,
  126. "text": {
  127. "id": "E2E_GUARDED_DELETE_BATCH-final",
  128. "inputTokens": 80,
  129. "outputTokens": 8,
  130. "text": "E2E_GUARDED_DELETE_BATCH_DONE"
  131. }
  132. }
  133. },
  134. {
  135. "id": "E2E_GUARDED_DELETE_GLOB-call",
  136. "description": "Batch deletion tool call",
  137. "metadata": {
  138. "kind": "main",
  139. "timingPolicy": "fast-text",
  140. "source": "synthetic",
  141. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  142. },
  143. "match": {
  144. "method": "POST",
  145. "pathIncludes": "/messages",
  146. "bodyIncludes": ["E2E_GUARDED_DELETE_GLOB"],
  147. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  148. "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_GLOB"]
  149. },
  150. "response": {
  151. "statusCode": 200,
  152. "toolUse": {
  153. "id": "toolu_E2E_GUARDED_DELETE_GLOB",
  154. "name": "Bash",
  155. "input": {
  156. "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_GLOB && echo executed > executed && rm *.txt"
  157. }
  158. }
  159. }
  160. },
  161. {
  162. "id": "E2E_GUARDED_DELETE_GLOB-final",
  163. "description": "Batch deletion provider continuation",
  164. "metadata": {
  165. "kind": "main",
  166. "timingPolicy": "fast-text",
  167. "source": "synthetic",
  168. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  169. },
  170. "match": {
  171. "method": "POST",
  172. "pathIncludes": "/messages",
  173. "bodyIncludes": ["E2E_GUARDED_DELETE_GLOB", "toolu_E2E_GUARDED_DELETE_GLOB"],
  174. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  175. },
  176. "response": {
  177. "statusCode": 200,
  178. "text": {
  179. "id": "E2E_GUARDED_DELETE_GLOB-final",
  180. "inputTokens": 80,
  181. "outputTokens": 8,
  182. "text": "E2E_GUARDED_DELETE_GLOB_DONE"
  183. }
  184. }
  185. },
  186. {
  187. "id": "E2E_GUARDED_DELETE_FIND-call",
  188. "description": "Batch deletion tool call",
  189. "metadata": {
  190. "kind": "main",
  191. "timingPolicy": "fast-text",
  192. "source": "synthetic",
  193. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  194. },
  195. "match": {
  196. "method": "POST",
  197. "pathIncludes": "/messages",
  198. "bodyIncludes": ["E2E_GUARDED_DELETE_FIND"],
  199. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  200. "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_FIND"]
  201. },
  202. "response": {
  203. "statusCode": 200,
  204. "toolUse": {
  205. "id": "toolu_E2E_GUARDED_DELETE_FIND",
  206. "name": "Bash",
  207. "input": {
  208. "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_FIND && echo executed > executed && find target -type f -delete"
  209. }
  210. }
  211. }
  212. },
  213. {
  214. "id": "E2E_GUARDED_DELETE_FIND-final",
  215. "description": "Batch deletion provider continuation",
  216. "metadata": {
  217. "kind": "main",
  218. "timingPolicy": "fast-text",
  219. "source": "synthetic",
  220. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  221. },
  222. "match": {
  223. "method": "POST",
  224. "pathIncludes": "/messages",
  225. "bodyIncludes": ["E2E_GUARDED_DELETE_FIND", "toolu_E2E_GUARDED_DELETE_FIND"],
  226. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  227. },
  228. "response": {
  229. "statusCode": 200,
  230. "text": {
  231. "id": "E2E_GUARDED_DELETE_FIND-final",
  232. "inputTokens": 80,
  233. "outputTokens": 8,
  234. "text": "E2E_GUARDED_DELETE_FIND_DONE"
  235. }
  236. }
  237. },
  238. {
  239. "id": "E2E_GUARDED_DELETE_CLEAN-call",
  240. "description": "Batch deletion tool call",
  241. "metadata": {
  242. "kind": "main",
  243. "timingPolicy": "fast-text",
  244. "source": "synthetic",
  245. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  246. },
  247. "match": {
  248. "method": "POST",
  249. "pathIncludes": "/messages",
  250. "bodyIncludes": ["E2E_GUARDED_DELETE_CLEAN"],
  251. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  252. "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_CLEAN"]
  253. },
  254. "response": {
  255. "statusCode": 200,
  256. "toolUse": {
  257. "id": "toolu_E2E_GUARDED_DELETE_CLEAN",
  258. "name": "Bash",
  259. "input": {
  260. "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_CLEAN && echo executed > executed && git clean -f"
  261. }
  262. }
  263. }
  264. },
  265. {
  266. "id": "E2E_GUARDED_DELETE_CLEAN-final",
  267. "description": "Batch deletion provider continuation",
  268. "metadata": {
  269. "kind": "main",
  270. "timingPolicy": "fast-text",
  271. "source": "synthetic",
  272. "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
  273. },
  274. "match": {
  275. "method": "POST",
  276. "pathIncludes": "/messages",
  277. "bodyIncludes": ["E2E_GUARDED_DELETE_CLEAN", "toolu_E2E_GUARDED_DELETE_CLEAN"],
  278. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  279. },
  280. "response": {
  281. "statusCode": 200,
  282. "text": {
  283. "id": "E2E_GUARDED_DELETE_CLEAN-final",
  284. "inputTokens": 80,
  285. "outputTokens": 8,
  286. "text": "E2E_GUARDED_DELETE_CLEAN_DONE"
  287. }
  288. }
  289. }
  290. ]
  291. }