conversation-session-tool-cross-product.json 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-tool-cross-product",
  4. "spec": "./test/e2e/conversation-session/tools/conversation-session-tool-cross-product.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-tool-cross-product-read-call",
  8. "metadata": {
  9. "kind": "main",
  10. "source": "synthetic",
  11. "timingPolicy": "tool-use",
  12. "syntheticReason": "固定触发 Read 工具,验证 completed 工具历史与 compact/fork/goal 的交互。"
  13. },
  14. "description": "Conversation tool cross product: Read tool_use.",
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_READ"],
  19. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_READ"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "toolUse": {
  25. "id": "toolu_e2e_tool_cross_product_read",
  26. "name": "Read",
  27. "input": {
  28. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product/read-fixture.txt"
  29. }
  30. }
  31. }
  32. },
  33. {
  34. "id": "upstream-tool-cross-product-write-call",
  35. "metadata": {
  36. "kind": "main",
  37. "source": "synthetic",
  38. "timingPolicy": "tool-use",
  39. "syntheticReason": "固定触发 Write 工具,验证写文件工具历史不会污染默认工作区。"
  40. },
  41. "description": "Conversation tool cross product: Write tool_use.",
  42. "match": {
  43. "method": "POST",
  44. "pathIncludes": "/messages",
  45. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_WRITE"],
  46. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_WRITE"],
  47. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  48. },
  49. "response": {
  50. "statusCode": 200,
  51. "toolUse": {
  52. "id": "toolu_e2e_tool_cross_product_write",
  53. "name": "Write",
  54. "input": {
  55. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product/write-output.txt",
  56. "content": "E2E_TOOL_RESULT_WRITE\n"
  57. }
  58. }
  59. }
  60. },
  61. {
  62. "id": "upstream-tool-cross-product-edit-call",
  63. "metadata": {
  64. "kind": "main",
  65. "source": "synthetic",
  66. "timingPolicy": "tool-use",
  67. "syntheticReason": "固定触发 Edit 工具,覆盖可写工具的 completed 历史入口。"
  68. },
  69. "description": "Conversation tool cross product: Edit tool_use.",
  70. "match": {
  71. "method": "POST",
  72. "pathIncludes": "/messages",
  73. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_EDIT"],
  74. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_EDIT"],
  75. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  76. },
  77. "response": {
  78. "statusCode": 200,
  79. "toolUse": {
  80. "id": "toolu_e2e_tool_cross_product_edit",
  81. "name": "Edit",
  82. "input": {
  83. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product/edit-output.txt",
  84. "old_string": "",
  85. "new_string": "E2E_TOOL_RESULT_EDIT\n"
  86. }
  87. }
  88. }
  89. },
  90. {
  91. "id": "upstream-tool-cross-product-bash-call",
  92. "metadata": {
  93. "kind": "main",
  94. "source": "synthetic",
  95. "timingPolicy": "tool-use",
  96. "syntheticReason": "固定触发 Bash 工具,避免真实模型命令选择影响工具叉乘稳定性。"
  97. },
  98. "description": "Conversation tool cross product: Bash tool_use.",
  99. "match": {
  100. "method": "POST",
  101. "pathIncludes": "/messages",
  102. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_BASH"],
  103. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_BASH"],
  104. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  105. },
  106. "response": {
  107. "statusCode": 200,
  108. "toolUse": {
  109. "id": "toolu_e2e_tool_cross_product_bash",
  110. "name": "Bash",
  111. "input": {
  112. "command": "printf 'E2E_TOOL_RESULT_BASH\\n'"
  113. }
  114. }
  115. }
  116. },
  117. {
  118. "id": "upstream-tool-cross-product-glob-call",
  119. "metadata": {
  120. "kind": "main",
  121. "source": "synthetic",
  122. "timingPolicy": "tool-use",
  123. "syntheticReason": "固定触发 Glob 工具,覆盖文件搜索工具的 completed 历史入口。"
  124. },
  125. "description": "Conversation tool cross product: Glob tool_use.",
  126. "match": {
  127. "method": "POST",
  128. "pathIncludes": "/messages",
  129. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GLOB"],
  130. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GLOB"],
  131. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  132. },
  133. "response": {
  134. "statusCode": 200,
  135. "toolUse": {
  136. "id": "toolu_e2e_tool_cross_product_glob",
  137. "name": "Glob",
  138. "input": {
  139. "path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product",
  140. "pattern": "*.e2e"
  141. }
  142. }
  143. }
  144. },
  145. {
  146. "id": "upstream-tool-cross-product-grep-call",
  147. "metadata": {
  148. "kind": "main",
  149. "source": "synthetic",
  150. "timingPolicy": "tool-use",
  151. "syntheticReason": "固定触发 Grep 工具,覆盖内容搜索工具的 completed 历史入口。"
  152. },
  153. "description": "Conversation tool cross product: Grep tool_use.",
  154. "match": {
  155. "method": "POST",
  156. "pathIncludes": "/messages",
  157. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GREP"],
  158. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GREP"],
  159. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  160. },
  161. "response": {
  162. "statusCode": 200,
  163. "toolUse": {
  164. "id": "toolu_e2e_tool_cross_product_grep",
  165. "name": "Grep",
  166. "input": {
  167. "path": "{{e2eRuntimeRoot}}/conversation-session-tool-cross-product",
  168. "pattern": "E2E_TOOL_RESULT_GREP",
  169. "output_mode": "content"
  170. }
  171. }
  172. }
  173. },
  174. {
  175. "id": "upstream-tool-cross-product-webfetch-call",
  176. "metadata": {
  177. "kind": "main",
  178. "source": "synthetic",
  179. "timingPolicy": "tool-use",
  180. "syntheticReason": "固定触发 WebFetch 的可预期失败路径,覆盖外部请求工具历史。"
  181. },
  182. "description": "Conversation tool cross product: WebFetch controlled fast-fail tool_use.",
  183. "match": {
  184. "method": "POST",
  185. "pathIncludes": "/messages",
  186. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_WEBFETCH"],
  187. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_WEBFETCH"],
  188. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  189. },
  190. "response": {
  191. "statusCode": 200,
  192. "toolUse": {
  193. "id": "toolu_e2e_tool_cross_product_webfetch",
  194. "name": "WebFetch",
  195. "input": {
  196. "url": "http://127.0.0.1:9/zcode-e2e-tool-cross-product",
  197. "prompt": "Return E2E_TOOL_RESULT_WEBFETCH"
  198. }
  199. }
  200. }
  201. },
  202. {
  203. "id": "upstream-tool-cross-product-todo-read-call",
  204. "metadata": {
  205. "kind": "main",
  206. "source": "synthetic",
  207. "timingPolicy": "tool-use",
  208. "syntheticReason": "固定触发 TodoRead 工具;空结果没有稳定可见卡片时,以 provider-visible 结构化工具历史证明保留。"
  209. },
  210. "description": "Conversation tool cross product: TodoRead tool_use.",
  211. "match": {
  212. "method": "POST",
  213. "pathIncludes": "/messages",
  214. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_READ"],
  215. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_READ"],
  216. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  217. },
  218. "response": {
  219. "statusCode": 200,
  220. "toolUse": {
  221. "id": "toolu_e2e_tool_cross_product_todo_read",
  222. "name": "TodoRead",
  223. "input": {}
  224. }
  225. }
  226. },
  227. {
  228. "id": "upstream-tool-cross-product-todo-write-call",
  229. "metadata": {
  230. "kind": "main",
  231. "source": "synthetic",
  232. "timingPolicy": "tool-use",
  233. "syntheticReason": "固定触发 TodoWrite 工具,覆盖 todo 状态写入后的工具历史。"
  234. },
  235. "description": "Conversation tool cross product: TodoWrite tool_use.",
  236. "match": {
  237. "method": "POST",
  238. "pathIncludes": "/messages",
  239. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_WRITE"],
  240. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_TODO_WRITE"],
  241. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  242. },
  243. "response": {
  244. "statusCode": 200,
  245. "toolUse": {
  246. "id": "toolu_e2e_tool_cross_product_todo_write",
  247. "name": "TodoWrite",
  248. "input": {
  249. "todos": [
  250. {
  251. "content": "E2E_TOOL_RESULT_TODO_WRITE",
  252. "status": "completed",
  253. "priority": "low"
  254. }
  255. ]
  256. }
  257. }
  258. }
  259. },
  260. {
  261. "id": "upstream-tool-cross-product-goal-read-call",
  262. "metadata": {
  263. "kind": "main",
  264. "source": "synthetic",
  265. "timingPolicy": "tool-use",
  266. "syntheticReason": "固定触发 GoalRead 工具,覆盖目标读取工具历史。"
  267. },
  268. "description": "Conversation tool cross product: GoalRead tool_use.",
  269. "match": {
  270. "method": "POST",
  271. "pathIncludes": "/messages",
  272. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_READ"],
  273. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_READ"],
  274. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  275. },
  276. "response": {
  277. "statusCode": 200,
  278. "toolUse": {
  279. "id": "toolu_e2e_tool_cross_product_goal_read",
  280. "name": "GoalRead",
  281. "input": {}
  282. }
  283. }
  284. },
  285. {
  286. "id": "upstream-tool-cross-product-enter-plan-mode-call",
  287. "metadata": {
  288. "kind": "main",
  289. "source": "synthetic",
  290. "timingPolicy": "tool-use",
  291. "syntheticReason": "固定触发 EnterPlanMode 工具;V4 隐藏内部模式切换行时,以 provider-visible 结构化工具历史证明保留,并在 goal 前切回 Full access。"
  292. },
  293. "description": "Conversation tool cross product: EnterPlanMode tool_use.",
  294. "match": {
  295. "method": "POST",
  296. "pathIncludes": "/messages",
  297. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_ENTER_PLAN_MODE"],
  298. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_ENTER_PLAN_MODE"],
  299. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  300. },
  301. "response": {
  302. "statusCode": 200,
  303. "toolUse": {
  304. "id": "toolu_e2e_tool_cross_product_enter_plan_mode",
  305. "name": "EnterPlanMode",
  306. "input": {}
  307. }
  308. }
  309. },
  310. {
  311. "id": "upstream-tool-cross-product-exit-plan-mode-call",
  312. "metadata": {
  313. "kind": "main",
  314. "source": "synthetic",
  315. "timingPolicy": "tool-use",
  316. "syntheticReason": "固定触发 ExitPlanMode 工具,覆盖计划模式退出后的工具历史。"
  317. },
  318. "description": "Conversation tool cross product: ExitPlanMode fast-fail tool_use.",
  319. "match": {
  320. "method": "POST",
  321. "pathIncludes": "/messages",
  322. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_EXIT_PLAN_MODE"],
  323. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_EXIT_PLAN_MODE"],
  324. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  325. },
  326. "response": {
  327. "statusCode": 200,
  328. "toolUse": {
  329. "id": "toolu_e2e_tool_cross_product_exit_plan_mode",
  330. "name": "ExitPlanMode",
  331. "input": {
  332. "plan": "E2E_TOOL_RESULT_EXIT_PLAN_MODE"
  333. }
  334. }
  335. }
  336. },
  337. {
  338. "id": "upstream-tool-cross-product-ask-user-question-call",
  339. "metadata": {
  340. "kind": "main",
  341. "source": "synthetic",
  342. "timingPolicy": "tool-use",
  343. "syntheticReason": "固定触发 AskUserQuestion 工具,覆盖用户问询阻塞与自动选择路径。"
  344. },
  345. "description": "Conversation tool cross product: AskUserQuestion tool_use.",
  346. "match": {
  347. "method": "POST",
  348. "pathIncludes": "/messages",
  349. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION"],
  350. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION"],
  351. "bodyExcludes": [
  352. "Generate a concise title",
  353. "CRITICAL: Respond with TEXT ONLY",
  354. "toolu_e2e_tool_cross_product_ask_user_question"
  355. ]
  356. },
  357. "response": {
  358. "statusCode": 200,
  359. "toolUse": {
  360. "id": "toolu_e2e_tool_cross_product_ask_user_question",
  361. "name": "AskUserQuestion",
  362. "input": {
  363. "questions": [
  364. {
  365. "question": "E2E_TOOL_CROSS_PRODUCT_ASK_USER_QUESTION: choose an answer?",
  366. "header": "E2E",
  367. "options": [
  368. {
  369. "label": "Use default",
  370. "description": "Continue the e2e run with the default answer."
  371. },
  372. {
  373. "label": "Use fallback",
  374. "description": "Continue the e2e run with the fallback answer."
  375. }
  376. ]
  377. }
  378. ]
  379. }
  380. }
  381. }
  382. },
  383. {
  384. "id": "upstream-tool-cross-product-send-message-call",
  385. "metadata": {
  386. "kind": "main",
  387. "source": "synthetic",
  388. "timingPolicy": "tool-use",
  389. "syntheticReason": "固定触发 SendMessage 的可预期失败路径,覆盖跨 agent 消息工具历史。"
  390. },
  391. "description": "Conversation tool cross product: SendMessage conditional tool_use.",
  392. "match": {
  393. "method": "POST",
  394. "pathIncludes": "/messages",
  395. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_SEND_MESSAGE"],
  396. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_SEND_MESSAGE"],
  397. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  398. },
  399. "response": {
  400. "statusCode": 200,
  401. "toolUse": {
  402. "id": "toolu_e2e_tool_cross_product_sendmessage",
  403. "name": "SendMessage",
  404. "input": {
  405. "to": "agent_e2e_missing_tool_cross_product",
  406. "summary": "E2E_TOOL_RESULT_SEND_MESSAGE",
  407. "message": "E2E_TOOL_RESULT_SEND_MESSAGE"
  408. }
  409. }
  410. }
  411. },
  412. {
  413. "id": "upstream-tool-cross-product-agent-call",
  414. "metadata": {
  415. "kind": "main",
  416. "source": "synthetic",
  417. "timingPolicy": "tool-use",
  418. "syntheticReason": "固定触发 Agent 的可预期失败路径,覆盖子 agent 工具历史。"
  419. },
  420. "description": "Conversation tool cross product: Agent fast-fail tool_use.",
  421. "match": {
  422. "method": "POST",
  423. "pathIncludes": "/messages",
  424. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_AGENT"],
  425. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_AGENT"],
  426. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  427. },
  428. "response": {
  429. "statusCode": 200,
  430. "toolUse": {
  431. "id": "toolu_e2e_tool_cross_product_agent",
  432. "name": "Agent",
  433. "input": {
  434. "description": "E2E fast fail",
  435. "prompt": "E2E_TOOL_RESULT_AGENT",
  436. "subagent_type": "Missing"
  437. }
  438. }
  439. }
  440. },
  441. {
  442. "id": "upstream-tool-cross-product-skill-call",
  443. "metadata": {
  444. "kind": "main",
  445. "source": "synthetic",
  446. "timingPolicy": "tool-use",
  447. "syntheticReason": "固定触发 Skill 的可预期失败路径,覆盖技能工具历史。"
  448. },
  449. "description": "Conversation tool cross product: Skill fast-fail tool_use.",
  450. "match": {
  451. "method": "POST",
  452. "pathIncludes": "/messages",
  453. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_SKILL"],
  454. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_SKILL"],
  455. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  456. },
  457. "response": {
  458. "statusCode": 200,
  459. "toolUse": {
  460. "id": "toolu_e2e_tool_cross_product_skill",
  461. "name": "Skill",
  462. "input": {
  463. "skill": "zcode-e2e-missing-skill"
  464. }
  465. }
  466. }
  467. },
  468. {
  469. "id": "upstream-tool-cross-product-workflow-call",
  470. "metadata": {
  471. "kind": "main",
  472. "source": "synthetic",
  473. "timingPolicy": "tool-use",
  474. "syntheticReason": "固定触发 Workflow 的可预期失败路径,覆盖 workflow 工具历史。"
  475. },
  476. "description": "Conversation tool cross product: Workflow fast-fail tool_use.",
  477. "match": {
  478. "method": "POST",
  479. "pathIncludes": "/messages",
  480. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_WORKFLOW"],
  481. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_WORKFLOW"],
  482. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  483. },
  484. "response": {
  485. "statusCode": 200,
  486. "toolUse": {
  487. "id": "toolu_e2e_tool_cross_product_workflow",
  488. "name": "Workflow",
  489. "input": {}
  490. }
  491. }
  492. },
  493. {
  494. "id": "upstream-tool-cross-product-fork-probe-final",
  495. "metadata": {
  496. "kind": "main",
  497. "source": "synthetic",
  498. "timingPolicy": "fast-text",
  499. "syntheticReason": "隐藏工具行和空结果工具在 fork child 中通过 provider-visible continuation 的配对 tool_use/tool_result 证明历史已复制;child toolCallId 按 stable fork 合同重映射。"
  500. },
  501. "description": "Conversation tool cross product: fork child history probe.",
  502. "match": {
  503. "method": "POST",
  504. "pathIncludes": "/messages",
  505. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_FORK_PROBE"],
  506. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_FORK_PROBE"],
  507. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  508. },
  509. "response": {
  510. "statusCode": 200,
  511. "text": "upstream-e2e-ok"
  512. }
  513. },
  514. {
  515. "id": "upstream-tool-cross-product-compact-success",
  516. "metadata": {
  517. "kind": "compact",
  518. "source": "synthetic",
  519. "timingPolicy": "fast-text",
  520. "syntheticReason": "固定响应 TX 显式触发的 manual compact,避免缺失 replay fixture 进入 provider retry。"
  521. },
  522. "description": "Conversation tool cross product: summarize an explicitly requested manual compact after a completed tool turn.",
  523. "match": {
  524. "method": "POST",
  525. "pathIncludes": "/messages",
  526. "bodyIncludes": [
  527. "CRITICAL: Respond with TEXT ONLY",
  528. "E2E_TOOL_CROSS_PRODUCT",
  529. "toolu_e2e_tool_cross_product",
  530. "\"stream\":true"
  531. ],
  532. "bodyExcludes": ["Generate a concise title"]
  533. },
  534. "response": {
  535. "statusCode": 200,
  536. "statusMessage": "OK",
  537. "text": {
  538. "id": "upstream-e2e-tool-cross-product-compact-success",
  539. "inputTokens": 256,
  540. "outputTokens": 48,
  541. "text": "<analysis>Summarized the completed tool turn.</analysis>\n\n<summary>E2E_TOOL_CROSS_PRODUCT completed a tool call and returned upstream-e2e-ok before the user requested manual compact.</summary>"
  542. }
  543. }
  544. },
  545. {
  546. "id": "upstream-tool-cross-product-tool-final",
  547. "metadata": {
  548. "kind": "main",
  549. "source": "synthetic",
  550. "timingPolicy": "fast-text",
  551. "syntheticReason": "工具结果回填后稳定结束当前轮,真实 provider 文案不影响工具历史断言。"
  552. },
  553. "description": "Conversation tool cross product: final text after any tool_result.",
  554. "match": {
  555. "method": "POST",
  556. "pathIncludes": "/messages",
  557. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT", "toolu_e2e_tool_cross_product"],
  558. "bodyExcludes": [
  559. "Generate a concise title",
  560. "CRITICAL: Respond with TEXT ONLY",
  561. "E2E_TOOL_CROSS_PRODUCT_GOAL_OBJECTIVE"
  562. ]
  563. },
  564. "response": {
  565. "statusCode": 200,
  566. "text": "upstream-e2e-ok"
  567. }
  568. },
  569. {
  570. "id": "upstream-tool-cross-product-goal-final",
  571. "metadata": {
  572. "kind": "main",
  573. "source": "synthetic",
  574. "timingPolicy": "fast-text",
  575. "syntheticReason": "goal continuation 只需稳定完成,真实 provider 文案不影响目标状态断言。"
  576. },
  577. "description": "Conversation tool cross product: final text for goal continuation.",
  578. "match": {
  579. "method": "POST",
  580. "pathIncludes": "/messages",
  581. "lastUserMessageIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_OBJECTIVE"],
  582. "bodyIncludes": ["E2E_TOOL_CROSS_PRODUCT_GOAL_OBJECTIVE"],
  583. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  584. },
  585. "response": {
  586. "statusCode": 200,
  587. "text": "upstream-e2e-ok"
  588. }
  589. }
  590. ]
  591. }