conversation-session-browser-use-subagent-boundary.json 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-browser-use-subagent-boundary",
  4. "spec": "./test/e2e/conversation-session/browser-use/conversation-session-browser-use-subagent-boundary.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-browser-use-subagent-boundary.json"
  8. ],
  9. "fileFixtures": [],
  10. "requests": [
  11. {
  12. "id": "browser-subagent-boundary-title",
  13. "description": "固定 Browser subagent boundary case 的异步标题响应。",
  14. "kind": "common",
  15. "source": "synthetic",
  16. "timingPolicy": "fast-text",
  17. "syntheticReason": "标题不属于运行时 scope 边界,只需与父/child 请求隔离。"
  18. },
  19. {
  20. "id": "browser-subagent-parent-init",
  21. "description": "主 Agent 初始化 Browser runtime、打开自己的 Tab 并写入 parent-before。",
  22. "kind": "main",
  23. "source": "synthetic",
  24. "timingPolicy": "fast-text",
  25. "syntheticReason": "通过真实 Node REPL 与 IAB guest 建立主 Agent 的 Tab,返回稳定 ID 供后续独立 Worker 找回同一页面。"
  26. },
  27. {
  28. "id": "browser-subagent-parent-agent",
  29. "description": "主 Agent 收到初始化结果后启动 foreground general-purpose child。",
  30. "kind": "main",
  31. "source": "synthetic",
  32. "timingPolicy": "fast-text",
  33. "syntheticReason": "显式传递页面 URL 和主 Tab ID,子代理在独立 Worker 中验证当前对话的浏览器归属。"
  34. },
  35. {
  36. "id": "browser-subagent-child-browse",
  37. "description": "Child 看到对话已有的 Tab,再打开一个新 Tab 并完成一次填写。",
  38. "kind": "main",
  39. "source": "synthetic",
  40. "timingPolicy": "fast-text",
  41. "syntheticReason": "验证 runtime_scope=subagent 的真实 MCP call 以当前对话为 tab 归属:能列出主 Agent 的 Tab,新开的 Tab 也属于同一对话。"
  42. },
  43. {
  44. "id": "browser-subagent-child-final",
  45. "description": "Child 消费 Browser 检查结果并完成。",
  46. "kind": "main",
  47. "source": "synthetic",
  48. "timingPolicy": "fast-text",
  49. "syntheticReason": "child 结束不关 Tab,让父 Agent 收到 Agent tool_result 后复验两个 Tab 都在。"
  50. },
  51. {
  52. "id": "browser-subagent-parent-resume",
  53. "description": "主 Agent 收到 child 结果后复用原 Tab,并确认 child 开的 Tab 仍在对话里。",
  54. "kind": "main",
  55. "source": "synthetic",
  56. "timingPolicy": "fast-text",
  57. "syntheticReason": "证明 child 没有改动主 Agent 的 Tab,且 child 开的 Tab 随子代理结束保留在当前对话。"
  58. },
  59. {
  60. "id": "browser-subagent-parent-final",
  61. "description": "主 Agent 消费复用结果并正常完成。",
  62. "kind": "main",
  63. "source": "synthetic",
  64. "timingPolicy": "fast-text",
  65. "syntheticReason": "形成正常 turn complete,供 E2E 在最终边界复验同一 guest。"
  66. }
  67. ]
  68. }