conversation-session-subagent-team-scope.json 1.8 KB

12345678910111213141516171819202122
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-subagent-team-scope",
  4. "spec": "./test/e2e/conversation-session/conversation-session-subagent-team-scope.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "subagent-team-scope-parent-agent",
  8. "description": "父请求触发 Team scope 缺失的 custom Agent。",
  9. "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "父 tool_use 由真实 runtime 处理 child provider 资格校验。" },
  10. "maxMatches": 1,
  11. "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_SUBAGENT_TEAM_SCOPE_PARENT", "e2e-team-scope-reviewer", "E2E_SUBAGENT_TEAM_SCOPE_CHILD"], "bodyExcludes": ["E2E_SUBAGENT_TEAM_SCOPE_PARENT_DONE", "Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] },
  12. "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_subagent_team_scope", "name": "Agent", "input": { "description": "Run Team scope child", "prompt": "E2E_SUBAGENT_TEAM_SCOPE_CHILD: inspect the workspace.", "subagent_type": "e2e-team-scope-reviewer" } } }
  13. },
  14. {
  15. "id": "subagent-team-scope-parent-final",
  16. "description": "父会话消费失败 tool_result 后继续完成。",
  17. "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "验证 child 失败不拖垮父会话。" },
  18. "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_SUBAGENT_TEAM_SCOPE_PARENT", "E2E_SUBAGENT_TEAM_SCOPE_PARENT_DONE"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] },
  19. "response": { "statusCode": 200, "text": { "id": "subagent-team-scope-parent-final", "inputTokens": 48, "outputTokens": 8, "text": "E2E_SUBAGENT_TEAM_SCOPE_PARENT_DONE" } }
  20. }
  21. ]
  22. }