| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- {
- "version": 1,
- "caseName": "conversation-session-subagent-team-scope",
- "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-team-scope.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-subagent-team-scope-title-sidecar",
- "description": "本例标题旁路响应。",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
- }
- },
- {
- "id": "subagent-team-scope-parent-agent",
- "description": "父请求触发 Team scope 缺失的 custom Agent。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "父 tool_use 由真实 runtime 处理 child provider 资格校验。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": [
- "E2E_SUBAGENT_TEAM_SCOPE_PARENT",
- "e2e-team-scope-reviewer",
- "E2E_SUBAGENT_TEAM_SCOPE_CHILD"
- ],
- "bodyExcludes": [
- "toolu_e2e_subagent_team_scope",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "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"
- }
- }
- }
- },
- {
- "id": "subagent-team-scope-parent-final",
- "description": "父会话消费失败 tool_result 后继续完成。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "验证 child 失败不拖垮父会话。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": [
- "E2E_SUBAGENT_TEAM_SCOPE_PARENT",
- "toolu_e2e_subagent_team_scope",
- "tool_result"
- ],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "subagent-team-scope-parent-final",
- "inputTokens": 48,
- "outputTokens": 8,
- "text": "E2E_SUBAGENT_TEAM_SCOPE_PARENT_DONE"
- }
- }
- }
- ]
- }
|