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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-tool-cross-product.json"
  8. ],
  9. "fileFixtures": [
  10. {
  11. "path": ".zcode-e2e/conversation-session-tool-cross-product",
  12. "source": "created-by-helper",
  13. "description": "prepareToolCrossProductFixtures 在每个工具轮前创建的读写工具沙箱目录,case 结束后删除。"
  14. }
  15. ],
  16. "requests": [
  17. {
  18. "id": "upstream-tool-cross-product-read-call",
  19. "kind": "main",
  20. "source": "synthetic",
  21. "timingPolicy": "tool-use",
  22. "syntheticReason": "固定触发 Read 工具,验证 completed 工具历史与 compact/fork/goal 的交互。"
  23. },
  24. {
  25. "id": "upstream-tool-cross-product-write-call",
  26. "kind": "main",
  27. "source": "synthetic",
  28. "timingPolicy": "tool-use",
  29. "syntheticReason": "固定触发 Write 工具,验证写文件工具历史不会污染默认工作区。"
  30. },
  31. {
  32. "id": "upstream-tool-cross-product-edit-call",
  33. "kind": "main",
  34. "source": "synthetic",
  35. "timingPolicy": "tool-use",
  36. "syntheticReason": "固定触发 Edit 工具,覆盖可写工具的 completed 历史入口。"
  37. },
  38. {
  39. "id": "upstream-tool-cross-product-bash-call",
  40. "kind": "main",
  41. "source": "synthetic",
  42. "timingPolicy": "tool-use",
  43. "syntheticReason": "固定触发 Bash 工具,避免真实模型命令选择影响工具叉乘稳定性。"
  44. },
  45. {
  46. "id": "upstream-tool-cross-product-glob-call",
  47. "kind": "main",
  48. "source": "synthetic",
  49. "timingPolicy": "tool-use",
  50. "syntheticReason": "固定触发 Glob 工具,覆盖文件搜索工具的 completed 历史入口。"
  51. },
  52. {
  53. "id": "upstream-tool-cross-product-grep-call",
  54. "kind": "main",
  55. "source": "synthetic",
  56. "timingPolicy": "tool-use",
  57. "syntheticReason": "固定触发 Grep 工具,覆盖内容搜索工具的 completed 历史入口。"
  58. },
  59. {
  60. "id": "upstream-tool-cross-product-webfetch-call",
  61. "kind": "main",
  62. "source": "synthetic",
  63. "timingPolicy": "tool-use",
  64. "syntheticReason": "固定触发 WebFetch 的可预期失败路径,覆盖外部请求工具历史。"
  65. },
  66. {
  67. "id": "upstream-tool-cross-product-todo-read-call",
  68. "kind": "main",
  69. "source": "synthetic",
  70. "timingPolicy": "tool-use",
  71. "syntheticReason": "固定触发 TodoRead 工具;空结果没有稳定可见卡片时,以 provider-visible 结构化工具历史证明保留。"
  72. },
  73. {
  74. "id": "upstream-tool-cross-product-todo-write-call",
  75. "kind": "main",
  76. "source": "synthetic",
  77. "timingPolicy": "tool-use",
  78. "syntheticReason": "固定触发 TodoWrite 工具,覆盖 todo 状态写入后的工具历史。"
  79. },
  80. {
  81. "id": "upstream-tool-cross-product-goal-read-call",
  82. "kind": "main",
  83. "source": "synthetic",
  84. "timingPolicy": "tool-use",
  85. "syntheticReason": "固定触发 GoalRead 工具,覆盖目标读取工具历史。"
  86. },
  87. {
  88. "id": "upstream-tool-cross-product-enter-plan-mode-call",
  89. "kind": "main",
  90. "source": "synthetic",
  91. "timingPolicy": "tool-use",
  92. "syntheticReason": "固定触发 EnterPlanMode 工具;V4 隐藏内部模式切换行时,以 provider-visible 结构化工具历史证明保留,并在 goal 前切回 Full access。"
  93. },
  94. {
  95. "id": "upstream-tool-cross-product-exit-plan-mode-call",
  96. "kind": "main",
  97. "source": "synthetic",
  98. "timingPolicy": "tool-use",
  99. "syntheticReason": "固定触发 ExitPlanMode 工具,覆盖计划模式退出后的工具历史。"
  100. },
  101. {
  102. "id": "upstream-tool-cross-product-ask-user-question-call",
  103. "kind": "main",
  104. "source": "synthetic",
  105. "timingPolicy": "tool-use",
  106. "syntheticReason": "固定触发 AskUserQuestion 工具,覆盖用户问询阻塞与自动选择路径。"
  107. },
  108. {
  109. "id": "upstream-tool-cross-product-send-message-call",
  110. "kind": "main",
  111. "source": "synthetic",
  112. "timingPolicy": "tool-use",
  113. "syntheticReason": "固定触发 SendMessage 的可预期失败路径,覆盖跨 agent 消息工具历史。"
  114. },
  115. {
  116. "id": "upstream-tool-cross-product-agent-call",
  117. "kind": "main",
  118. "source": "synthetic",
  119. "timingPolicy": "tool-use",
  120. "syntheticReason": "固定触发 Agent 的可预期失败路径,覆盖子 agent 工具历史。"
  121. },
  122. {
  123. "id": "upstream-tool-cross-product-skill-call",
  124. "kind": "main",
  125. "source": "synthetic",
  126. "timingPolicy": "tool-use",
  127. "syntheticReason": "固定触发 Skill 的可预期失败路径,覆盖技能工具历史。"
  128. },
  129. {
  130. "id": "upstream-tool-cross-product-workflow-call",
  131. "kind": "main",
  132. "source": "synthetic",
  133. "timingPolicy": "tool-use",
  134. "syntheticReason": "固定触发 Workflow 的可预期失败路径,覆盖 workflow 工具历史。"
  135. },
  136. {
  137. "id": "upstream-tool-cross-product-fork-probe-final",
  138. "kind": "main",
  139. "source": "synthetic",
  140. "timingPolicy": "fast-text",
  141. "syntheticReason": "隐藏工具行和空结果工具在 fork child 中通过 provider-visible continuation 的配对 tool_use/tool_result 证明历史已复制;child toolCallId 按 stable fork 合同重映射。"
  142. },
  143. {
  144. "id": "upstream-tool-cross-product-compact-success",
  145. "kind": "compact",
  146. "source": "synthetic",
  147. "timingPolicy": "fast-text",
  148. "syntheticReason": "固定响应 TX 显式触发的 manual compact,避免缺失 replay fixture 进入 provider retry。"
  149. },
  150. {
  151. "id": "upstream-tool-cross-product-tool-final",
  152. "kind": "main",
  153. "source": "synthetic",
  154. "timingPolicy": "fast-text",
  155. "syntheticReason": "工具结果回填后稳定结束当前轮,真实 provider 文案不影响工具历史断言。"
  156. },
  157. {
  158. "id": "upstream-tool-cross-product-goal-final",
  159. "kind": "main",
  160. "source": "synthetic",
  161. "timingPolicy": "fast-text",
  162. "syntheticReason": "goal continuation 只需稳定完成,真实 provider 文案不影响目标状态断言。"
  163. }
  164. ]
  165. }