| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- {
- "version": 1,
- "caseName": "conversation-session-silent-reminder-timed",
- "spec": "./test/e2e/conversation-session/context/conversation-session-silent-reminder-timed.test.ts",
- "fixtures": [
- {
- "id": "silent-reminder-slow-title",
- "description": "为本 case 的 session title generation 提供固定辅助响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "标题生成与静默提醒无关,但必须独立收口,避免抢占或阻塞主链路 fixture。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SILENT_REMINDER_SLOW"],
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"e2e-silent-reminder-slow-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"e2e-model\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\": \\\"Silent Reminder E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"output_tokens\":8}}"
- }
- },
- {
- "id": "silent-reminder-slow-1",
- "description": "首个响应 31 秒后返回静默的 Bash 调用。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "delayed-tool-use",
- "source": "synthetic",
- "syntheticReason": "每次响应延迟 31 秒,第二次工具批次后距本轮 prompt 满 60 秒;真实模型的响应时间不可控。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SILENT_REMINDER_SLOW"],
- "bodyExcludes": [
- "toolu_e2e_silent_slow_1",
- "E2E_SILENT_REMINDER_COLD_REPLAY",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "delayMs": 31000,
- "toolUse": {
- "id": "toolu_e2e_silent_slow_1",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 1"
- }
- }
- }
- },
- {
- "id": "silent-reminder-slow-2",
- "description": "第二个响应再过 31 秒返回静默的 Bash 调用;这个请求还没有提醒。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "delayed-tool-use",
- "source": "synthetic",
- "syntheticReason": "每次响应延迟 31 秒,第二次工具批次后距本轮 prompt 满 60 秒;真实模型的响应时间不可控。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_SLOW", "toolu_e2e_silent_slow_1"],
- "bodyExcludes": [
- "toolu_e2e_silent_slow_2",
- "E2E_SILENT_REMINDER_COLD_REPLAY",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "delayMs": 31000,
- "toolUse": {
- "id": "toolu_e2e_silent_slow_2",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 2"
- }
- }
- }
- },
- {
- "id": "silent-reminder-slow-3",
- "description": "满 60 秒后的请求带静默提醒,固定文字收口。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "响应正文只用于稳定结束本轮;核心证据是请求里的静默提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_SLOW", "toolu_e2e_silent_slow_2"],
- "bodyExcludes": [
- "E2E_SILENT_REMINDER_COLD_REPLAY",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "e2e-silent-reminder-slow-done",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "E2E_SILENT_REMINDER_SLOW_DONE"
- }
- }
- },
- {
- "id": "silent-reminder-cold-followup",
- "description": "完整 CLI cold restart 后发送下一轮,捕获 hydration 后的 provider history。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "响应正文只用于稳定结束 cold follow-up;核心证据是提醒按原位置原字节回放。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SILENT_REMINDER_COLD_REPLAY"],
- "bodyIncludes": ["toolu_e2e_silent_slow_2"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "e2e-silent-reminder-cold",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "E2E_SILENT_REMINDER_COLD_OK"
- }
- }
- },
- {
- "id": "silent-reminder-fast-title",
- "description": "为本 case 的 session title generation 提供固定辅助响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "标题生成与静默提醒无关,但必须独立收口,避免抢占或阻塞主链路 fixture。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SILENT_REMINDER_FAST"],
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"e2e-silent-reminder-fast-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"e2e-model\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\": \\\"Silent Reminder E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"output_tokens\":8}}"
- }
- },
- {
- "id": "silent-reminder-fast-1",
- "description": "第 1 次快速静默响应。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-tool-use",
- "source": "synthetic",
- "syntheticReason": "六次快速静默响应:按次数计时会在第 5 次后提醒,按时间计时不提醒;真实模型不一定连续调用工具。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SILENT_REMINDER_FAST"],
- "bodyExcludes": [
- "toolu_e2e_silent_fast_1",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_silent_fast_1",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 1"
- }
- }
- }
- },
- {
- "id": "silent-reminder-fast-2",
- "description": "第 2 次快速静默响应。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-tool-use",
- "source": "synthetic",
- "syntheticReason": "六次快速静默响应:按次数计时会在第 5 次后提醒,按时间计时不提醒;真实模型不一定连续调用工具。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_FAST", "toolu_e2e_silent_fast_1"],
- "bodyExcludes": [
- "toolu_e2e_silent_fast_2",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_silent_fast_2",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 2"
- }
- }
- }
- },
- {
- "id": "silent-reminder-fast-3",
- "description": "第 3 次快速静默响应。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-tool-use",
- "source": "synthetic",
- "syntheticReason": "六次快速静默响应:按次数计时会在第 5 次后提醒,按时间计时不提醒;真实模型不一定连续调用工具。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_FAST", "toolu_e2e_silent_fast_2"],
- "bodyExcludes": [
- "toolu_e2e_silent_fast_3",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_silent_fast_3",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 3"
- }
- }
- }
- },
- {
- "id": "silent-reminder-fast-4",
- "description": "第 4 次快速静默响应。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-tool-use",
- "source": "synthetic",
- "syntheticReason": "六次快速静默响应:按次数计时会在第 5 次后提醒,按时间计时不提醒;真实模型不一定连续调用工具。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_FAST", "toolu_e2e_silent_fast_3"],
- "bodyExcludes": [
- "toolu_e2e_silent_fast_4",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_silent_fast_4",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 4"
- }
- }
- }
- },
- {
- "id": "silent-reminder-fast-5",
- "description": "第 5 次快速静默响应。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-tool-use",
- "source": "synthetic",
- "syntheticReason": "六次快速静默响应:按次数计时会在第 5 次后提醒,按时间计时不提醒;真实模型不一定连续调用工具。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_FAST", "toolu_e2e_silent_fast_4"],
- "bodyExcludes": [
- "toolu_e2e_silent_fast_5",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_silent_fast_5",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 5"
- }
- }
- }
- },
- {
- "id": "silent-reminder-fast-6",
- "description": "第 6 次快速静默响应。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-tool-use",
- "source": "synthetic",
- "syntheticReason": "六次快速静默响应:按次数计时会在第 5 次后提醒,按时间计时不提醒;真实模型不一定连续调用工具。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_FAST", "toolu_e2e_silent_fast_5"],
- "bodyExcludes": [
- "toolu_e2e_silent_fast_6",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_silent_fast_6",
- "name": "Bash",
- "input": {
- "command": "true",
- "description": "E2E silent step 6"
- }
- }
- }
- },
- {
- "id": "silent-reminder-fast-7",
- "description": "六次快速静默响应之后固定文字收口。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "响应正文只用于稳定结束本轮;核心证据是七个请求都没有静默提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SILENT_REMINDER_FAST", "toolu_e2e_silent_fast_6"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "e2e-silent-reminder-fast-done",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "E2E_SILENT_REMINDER_FAST_DONE"
- }
- }
- }
- ]
- }
|