{ "version": 1, "caseName": "conversation-session-composer-recent-mode", "spec": "./test/e2e/conversation-session/conversation-session-composer-recent-mode.test.ts", "fixtures": [ { "id": "recent-mode-title", "description": "I74: 新任务继承最近提交权限的受控响应。", "metadata": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "隔离模型输出,验证真实 Composer 提交、新任务初始化及 Write 权限行为。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title", "E2E_COMPOSER_RECENT_MODE"] }, "response": { "statusCode": 200, "text": { "id": "recent-mode-title", "text": "{\"title\":\"Recent permission E2E\"}", "inputTokens": 64, "outputTokens": 8 } } }, { "id": "recent-mode-seed", "description": "I74: 新任务继承最近提交权限的受控响应。", "metadata": { "kind": "main", "timingPolicy": "controlled-stream", "source": "synthetic", "syntheticReason": "隔离模型输出,验证真实 Composer 提交、新任务初始化及 Write 权限行为。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_COMPOSER_RECENT_MODE_SEED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "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\":\"recent-mode-slow\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n" }, { "offsetMs": 250, "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n" }, { "offsetMs": 500, "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"RECENT_MODE_STREAMING \"}}\n\n" }, { "offsetMs": 45000, "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n" }, { "offsetMs": 45100, "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":4,\"service_tier\":\"standard\"}}\n\n" }, { "offsetMs": 45200, "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } ], "text": { "id": "recent-mode-slow", "inputTokens": 80, "outputTokens": 4, "text": "RECENT_MODE_STREAMING" } } }, { "id": "recent-mode-write", "description": "I74: 新任务继承最近提交权限的受控响应。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "隔离模型输出,验证真实 Composer 提交、新任务初始化及 Write 权限行为。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_COMPOSER_RECENT_MODE_WRITE"], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "toolu_recent_mode_write" ] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_recent_mode_write", "name": "Write", "input": { "file_path": "{{e2eRuntimeRoot}}/conversation-session-composer-recent-mode/result.txt", "content": "RECENT_MODE_WRITE_OK\n" } } } }, { "id": "recent-mode-final", "description": "I74: 新任务继承最近提交权限的受控响应。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "隔离模型输出,验证真实 Composer 提交、新任务初始化及 Write 权限行为。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_COMPOSER_RECENT_MODE_WRITE", "toolu_recent_mode_write"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": { "id": "recent-mode-final", "text": "RECENT_MODE_DONE", "inputTokens": 80, "outputTokens": 8 } } } ] }