{ "version": 1, "caseName": "conversation-session-v4-goal", "spec": "./test/e2e/conversation-session/goals/conversation-session-v4-goal.test.ts", "fixtures": [ { "id": "v4-goal-title", "description": "E2E_V4_GOAL_SEED 首发的 case-local 标题生成响应。", "metadata": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "E2E_V4_GOAL_SEED 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title", "E2E_V4_GOAL_SEED"] }, "response": { "statusCode": 200, "text": { "id": "v4-goal-title", "inputTokens": 64, "outputTokens": 8, "text": "{\"title\":\"V4 Goal E2E\"}" } } }, { "id": "v4-goal-seed", "description": "M4 /goal 门禁:首轮固定回复,建立可设目标的 session。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "goal slash 需要一个已存在 session;首轮文案固定。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_V4_GOAL_SEED"], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "Continue working toward the active session goal" ] }, "response": { "statusCode": 200, "text": { "id": "v4-goal-seed", "inputTokens": 80, "outputTokens": 8, "text": "V4_GOAL_SEED_OK" } } }, { "id": "v4-goal-continuation-slow", "description": "M4 /goal continuation 首个输出投影后挂起,由真实暂停操作中止请求。", "metadata": { "kind": "main", "timingPolicy": "controlled-stream", "source": "synthetic", "syntheticReason": "首个输出新增行会递增 revision;先等待输出投影,再在显式关卡内验证暂停 ACK 与 paused,避免固定慢流的竞争窗口。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_V4_GOAL_OBJECTIVE", "Continue working toward the active session goal" ], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "Verify whether the active session goal" ] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "cache-control": "no-cache", "content-type": "text/event-stream; charset=utf-8" }, "chunks": [ { "offsetMs": 0, "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"v4-goal-continuation-slow\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":120,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n" }, { "offsetMs": 0, "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n" }, { "offsetMs": 0, "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"V4_GOAL_STREAMING \"}}\n\n" }, { "offsetMs": 0, "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n" }, { "offsetMs": 0, "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":4,\"service_tier\":\"standard\"}}\n\n" }, { "offsetMs": 0, "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } ], "text": { "id": "v4-goal-continuation-slow", "inputTokens": 120, "outputTokens": 4, "text": "V4_GOAL_STREAMING" }, "releaseAfterChunks": 3 } } ] }