conversation-session-custom-command-shell-handoff.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-custom-command-shell-handoff",
  4. "spec": "./test/e2e/conversation-session/tools/conversation-session-custom-command-shell-handoff.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-custom-command-shell-handoff.json"
  8. ],
  9. "fileFixtures": [],
  10. "requests": [
  11. {
  12. "id": "cch-title-sidecar",
  13. "kind": "common",
  14. "source": "synthetic",
  15. "timingPolicy": "fast-text",
  16. "syntheticReason": "固定标题旁路响应,避免依赖 legacy fixture 或触发后台网络重试。"
  17. },
  18. {
  19. "id": "cch-deny-bash-call",
  20. "description": "收到转交说明后,模型对命令块里的步骤发起非只读 Bash 调用。",
  21. "kind": "main",
  22. "source": "synthetic",
  23. "timingPolicy": "fast-text",
  24. "syntheticReason": "固定 Bash tool_use,验证 `!` 块只能经模型的 Bash 调用执行,执行前先审批。"
  25. },
  26. {
  27. "id": "cch-deny-final",
  28. "description": "收到拒绝结果后的最终回复。",
  29. "kind": "main",
  30. "source": "synthetic",
  31. "timingPolicy": "fast-text",
  32. "syntheticReason": "证明拒绝结果进入下一次请求,会话正常收口。"
  33. },
  34. {
  35. "id": "cch-approve-bash-call",
  36. "description": "收到转交说明后,模型对命令块里的步骤发起非只读 Bash 调用。",
  37. "kind": "main",
  38. "source": "synthetic",
  39. "timingPolicy": "fast-text",
  40. "syntheticReason": "固定 Bash tool_use(命令与 `!` 块逐字一致),验证用户允许一次后命令经 Bash 执行,并从 Bash 环境读到会话 ID 与工作区目录。"
  41. },
  42. {
  43. "id": "cch-approve-final",
  44. "description": "收到执行结果后的最终回复。",
  45. "kind": "main",
  46. "source": "synthetic",
  47. "timingPolicy": "fast-text",
  48. "syntheticReason": "证明 Bash 执行结果进入下一次请求,会话正常收口。"
  49. }
  50. ]
  51. }