{ "version": 1, "caseName": "conversation-session-worker-effective-selection", "spec": "./test/e2e/conversation-session/models/conversation-session-worker-effective-selection.test.ts", "fixtures": [ { "id": "conversation-session-worker-effective-selection-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": "w99-explicit-parent-tool", "description": "父会话通过真正 Agent 工具触发显式个人套餐意图。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "确定性触发子执行;验证真实 Worker 解析和请求,不测试模型自主决策。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_W99_EXPLICIT_PARENT"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_w99_explicit", "name": "Agent", "input": { "description": "Run account reviewer", "subagent_type": "e2e-worker-account-reviewer", "prompt": "E2E_W99_EXPLICIT_CHILD: Reply with the requested marker." } } } }, { "id": "w99-explicit-parent-final", "description": "消费真实子代理结果后结束父会话。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "Account 子请求由既有隔离 Coding Plan 数据面返回固定文本;父结果仅证明工具完成。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_W99_EXPLICIT_PARENT", "coding-plan-e2e-ok"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": { "id": "w99-parent-final", "text": "E2E_W99_PARENT_DONE", "inputTokens": 160, "outputTokens": 12 } } } ] }