{ "version": 1, "caseName": "conversation-session-id-compatibility", "spec": "./test/e2e/conversation-session/runtime/conversation-session-id-compatibility.test.ts", "fixtures": [ { "id": "sid-title", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "{\"title\":\"Session ID compatibility\"}" } }, { "id": "sid-tool-0", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_REFERENCE_0"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_sid_0", "name": "ReadSession", "input": { "sessionId": "session_0123456789abcdef0123456789abcdef", "view": "messages", "limit": 20 } } }, "maxMatches": 1 }, { "id": "sid-reference-0", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_SID_REFERENCE_0", "E2E_SID_HISTORY_0"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_REFERENCE_OK_0" } }, { "id": "sid-follow-0", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_FOLLOW_0"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_FOLLOW_OK_0" } }, { "id": "sid-tool-1", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_REFERENCE_1"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_sid_1", "name": "ReadSession", "input": { "sessionId": "session_12345678-1234-4234-8234-123456789abc", "view": "messages", "limit": 20 } } }, "maxMatches": 1 }, { "id": "sid-reference-1", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_SID_REFERENCE_1", "E2E_SID_HISTORY_1"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_REFERENCE_OK_1" } }, { "id": "sid-follow-1", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_FOLLOW_1"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_FOLLOW_OK_1" } }, { "id": "sid-new", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_NEW"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_NEW_OK" } }, { "id": "sid-mobile-0", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_MOBILE_0"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_MOBILE_OK_0" } }, { "id": "sid-mobile-1", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_MOBILE_1"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_MOBILE_OK_1" } }, { "id": "sid-retry", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "旧客户端重复、并发、重启重放及 admission 后退出、横幅确认重发使用真实 Host/CLI/SQLite,仅模型响应固定。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_SID_RETRY"], "bodyExcludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "text": "E2E_SID_RETRY_OK" } } ] }