{
"version": 1,
"fixtures": [
{
"id": "upstream-tool-action-read-call",
"description": "Tool action guard case 的首段流式响应:返回一个只读 Read tool_use,用于生成真实 tool call block。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_TOOL_ACTION_GUARD"],
"bodyIncludes": ["E2E_TOOL_ACTION_GUARD"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-tool-action-read-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_e2e_read_action_guard\",\"name\":\"Read\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"file_path\\\":\\\"{{e2eRuntimeRoot}}/conversation-session-tool-actions/tool-action-guard.txt\\\"}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":16,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-tool-action-final-text",
"description": "Tool action guard case 的第二段流式响应:模型看到 Read tool_result 后返回最终文本。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_TOOL_FILE_CONTENT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-tool-action-final-text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":128,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":128,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-tool-call",
"description": "高/中优先级 conversation e2e 的通用首段响应:返回只读 Read tool_use,让历史中真实出现 tool_result。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["Read {{e2eRuntimeRoot}}/shared/readonly-tool.txt"],
"bodyIncludes": ["Read {{e2eRuntimeRoot}}/shared/readonly-tool.txt"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-tool-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_e2e_conversation_readonly_read\",\"name\":\"Read\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"file_path\\\":\\\"{{e2eRuntimeRoot}}/shared/readonly-tool.txt\\\"}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":16,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-turn-steer-tool-final",
"description": "Turn steer 转正用例的 Read tool_result 后慢速最终回复,给工具结果投影窗口里的后续输入留下稳定 running 时间。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_TURN_STEER_TOOL_TEXT",
"E2E_READONLY_TOOL_FILE_CONTENT"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 20000,
"headers": {
"cache-control": "no-cache",
"content-type": "text/event-stream; charset=utf-8"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-turn-steer-tool-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-first-send-final",
"description": "首发 case 的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_FIRST_SEND", "E2E_READONLY_TOOL_FILE_CONTENT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-first-send-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-fork-final",
"description": "fork case 的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_FORK_SOURCE", "E2E_READONLY_TOOL_FILE_CONTENT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-fork-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-edit-final",
"description": "edit rerun case 的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_EDIT_RERUN", "E2E_READONLY_TOOL_FILE_CONTENT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-edit-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-compact-initial-final",
"description": "manual compact 前置消息的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_COMPACT_INITIAL",
"E2E_READONLY_TOOL_FILE_CONTENT"
],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-compact-initial-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-compact-prep-final",
"description": "manual compact held queue 前置消息的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_COMPACT_PREP_TWO",
"E2E_READONLY_TOOL_FILE_CONTENT"
],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-compact-prep-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-compact-interrupted-final",
"description": "interrupted manual compact 前置消息的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_COMPACT_INTERRUPTED_PREP_TWO",
"E2E_READONLY_TOOL_FILE_CONTENT"
],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-compact-interrupted-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-auto-compact-seed-final",
"description": "auto compact seed 的 Read tool_result 后最终回复;高 usage 让下一轮发送前触发自动 compact。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_AUTO_COMPACT_CONTEXT_SEED",
"E2E_READONLY_TOOL_FILE_CONTENT"
],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-auto-compact-seed-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-conversation-readonly-goal-session-seed-final",
"description": "goal session seed 的 Read tool_result 后最终回复。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_SESSION_SEED",
"E2E_READONLY_TOOL_FILE_CONTENT"
],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-conversation-readonly-goal-session-seed-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-compact-actions-slow",
"description": "Compacting 期间交互 case 使用的慢速 streaming compact 响应,给输入、/goal、重复 /compact 和 stop 留出稳定窗口。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"CRITICAL: Respond with TEXT ONLY",
"Do NOT call any tools",
"E2E_COMPACTING_ACTIONS",
"\"stream\":true"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 20000,
"text": {
"id": "upstream-e2e-compact-actions-slow",
"inputTokens": 288,
"outputTokens": 64,
"text": "Manual compact e2e replay summarized a compacting actions fixture without tools.\n\nConversation so far included E2E_COMPACTING_ACTIONS setup messages and should remain available for queued follow-up behavior."
}
}
},
{
"id": "upstream-adjacent-autocompact-tool-call",
"description": "连续自动压缩回归 case 的首段响应:先调用 Read,让工具结果后进入 mid_turn compact 判定。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_ADJACENT_AUTOCOMPACT_TOOL"],
"bodyIncludes": ["E2E_ADJACENT_AUTOCOMPACT_TOOL"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-adjacent-autocompact-tool-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_e2e_adjacent_autocompact_read\",\"name\":\"Read\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"file_path\\\":\\\"{{e2eRuntimeRoot}}/conversation-session-compact-auto/adjacent-autocompact.txt\\\"}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":16,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-adjacent-autocompact-mid-summary",
"description": "连续自动压缩回归 case 的第 1 次 auto compact:工具结果后 mid_turn summary。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"CRITICAL: Respond with TEXT ONLY",
"E2E_ADJACENT_AUTOCOMPACT",
"\"stream\":true"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 300,
"text": {
"id": "upstream-e2e-adjacent-autocompact-mid-summary",
"inputTokens": 210,
"outputTokens": 64,
"text": "Auto compact summarized the tool-result turn for the adjacent compact regression.\n\nE2E_ADJACENT_AUTOCOMPACT_MID_SUMMARY preserved the Read result and pending final answer after a mid_turn automatic compaction."
}
}
},
{
"id": "upstream-adjacent-autocompact-mid-final",
"description": "连续自动压缩回归 case 的 mid_turn compact 后最终回复;高 usage 让下一轮 pre_request 再触发 compact。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_ADJACENT_AUTOCOMPACT_MID_SUMMARY"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-adjacent-autocompact-mid-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-adjacent-autocompact-pre-summary",
"description": "连续自动压缩回归 case 的第 2 次 auto compact:追问轮开始前 pre_request summary。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"CRITICAL: Respond with TEXT ONLY",
"E2E_ADJACENT_AUTOCOMPACT",
"\"stream\":true"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 300,
"text": {
"id": "upstream-e2e-adjacent-autocompact-pre-summary",
"inputTokens": 210,
"outputTokens": 64,
"text": "Auto compact summarized the follow-up turn for the adjacent compact regression.\n\nE2E_ADJACENT_AUTOCOMPACT_PRE_SUMMARY preserved the follow-up after a pre_request automatic compaction."
}
}
},
{
"id": "upstream-adjacent-autocompact-pre-final",
"description": "连续自动压缩回归 case 的 pre_request compact 后最终回复;低 usage 避免继续触发第三次 compact。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_ADJACENT_AUTOCOMPACT_PRE_SUMMARY"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-adjacent-autocompact-pre-final\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-compact-success",
"description": "Upstream e2e 手动 /compact 成功的 streaming Anthropic-compatible 响应。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"CRITICAL: Respond with TEXT ONLY",
"Do NOT call any tools",
"\"stream\":true"
],
"bodyExcludes": ["E2E_AUTO_COMPACT", "E2E_AUTO_ACTIONS"]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 650,
"text": {
"id": "upstream-e2e-compact-success",
"inputTokens": 256,
"outputTokens": 64,
"text": "Manual compact e2e replay summarized the existing main session without tools.\n\nConversation so far: the user asked the assistant to reply with exactly upstream-e2e-ok for the initial verification turn. The assistant replied with upstream-e2e-ok. No files or tools were required."
}
}
},
{
"id": "upstream-held-queue-send-now",
"description": "Stop held queue 手动继续后的快速流式响应。放在 slow fixture 前,避免历史里的 E2E_SLOW_STREAM 让回放误走慢流。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_STOP_HELD_QUEUE_FIRST"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-held-queue\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
"events": [
{
"sequence": 0,
"offsetMs": 0,
"byteLength": 329,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-held-queue\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
},
{
"sequence": 1,
"offsetMs": 25,
"byteLength": 120,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 50,
"byteLength": 132,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 75,
"byteLength": 49,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 4,
"offsetMs": 100,
"byteLength": 178,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 5,
"offsetMs": 125,
"byteLength": 42,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-model-config-auto-drain-running",
"description": "模型配置隔离 case 使用的中速流式响应,给 running 中切换 model/thought 后再消费 queue 留出稳定窗口。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_MODEL_CONFIG_AUTO_DRAIN_RUNNING"],
"bodyIncludes": ["E2E_MODEL_CONFIG_AUTO_DRAIN_RUNNING"],
"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"
},
"events": [
{
"sequence": 0,
"offsetMs": 0,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-model-config-drain\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":118,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
},
{
"sequence": 1,
"offsetMs": 250,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 12000,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 12500,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
},
{
"sequence": 4,
"offsetMs": 12600,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 5,
"offsetMs": 12700,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":118,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 6,
"offsetMs": 12800,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-auto-drain-running",
"description": "Running 完成后自动消费 queue 的较短流式响应,给 queued prompt 留出稳定输入窗口。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_DRAIN_RUNNING"],
"bodyIncludes": ["E2E_AUTO_DRAIN_RUNNING"],
"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"
},
"events": [
{
"sequence": 0,
"offsetMs": 0,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-drain\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":118,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
},
{
"sequence": 1,
"offsetMs": 250,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 4500,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 5000,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
},
{
"sequence": 4,
"offsetMs": 5100,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 5,
"offsetMs": 5200,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":118,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 6,
"offsetMs": 5300,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-auto-compact-drain-running",
"description": "Auto compact queue drain case 的当前运行轮:慢速完成并回报较高 usage,让后续队列自动消费前触发自动 compact。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_COMPACT_DRAIN_RUNNING"],
"bodyIncludes": ["E2E_AUTO_COMPACT_DRAIN_RUNNING"],
"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"
},
"events": [
{
"sequence": 0,
"offsetMs": 0,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-compact-drain\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
},
{
"sequence": 1,
"offsetMs": 250,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 4500,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 5000,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
},
{
"sequence": 4,
"offsetMs": 5100,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 5,
"offsetMs": 5200,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 6,
"offsetMs": 5300,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-prewarming-delay",
"description": "A02 prewarming 阶段使用的延迟首包响应,用来稳定验证首轮请求预热时继续输入会进入 queue。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_PREWARMING_DELAY"],
"bodyIncludes": ["E2E_PREWARMING_DELAY"],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 6000,
"headers": {
"cache-control": "no-cache",
"content-type": "text/event-stream; charset=utf-8"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-prewarming-delay\",\"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\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
"events": [
{
"sequence": 0,
"offsetMs": 0,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-prewarming-delay\",\"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"
},
{
"sequence": 1,
"offsetMs": 100,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 200,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 300,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 4,
"offsetMs": 400,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 5,
"offsetMs": 500,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-hold-stream",
"description": "会话区 send-now 矩阵使用的长保持流式响应,避免连续入队或切模型时基础轮过早完成。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_HOLD_STREAM"],
"bodyIncludes": ["E2E_HOLD_STREAM"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-hold-stream\",\"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\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
"events": [
{
"sequence": 0,
"offsetMs": 0,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-hold-stream\",\"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"
},
{
"sequence": 1,
"offsetMs": 250,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 60000,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 120000,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek\"}}\n\n"
},
{
"sequence": 4,
"offsetMs": 180000,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"-e2e-ok\"}}\n\n"
},
{
"sequence": 5,
"offsetMs": 240000,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 6,
"offsetMs": 240100,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 7,
"offsetMs": 240200,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-slow-stream",
"description": "会话区 queue/stop case 使用的慢速流式响应,给运行中操作留下稳定窗口。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_SLOW_STREAM"],
"bodyIncludes": ["E2E_SLOW_STREAM"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-slow-stream\",\"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\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
"events": [
{
"sequence": 0,
"offsetMs": 0,
"byteLength": 333,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-slow-stream\",\"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"
},
{
"sequence": 1,
"offsetMs": 250,
"byteLength": 120,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 8000,
"byteLength": 118,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
},
{
"sequence": 3,
"offsetMs": 16000,
"byteLength": 118,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek\"}}\n\n"
},
{
"sequence": 4,
"offsetMs": 24000,
"byteLength": 122,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"-e2e-ok\"}}\n\n"
},
{
"sequence": 5,
"offsetMs": 90000,
"byteLength": 49,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 6,
"offsetMs": 90100,
"byteLength": 179,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 7,
"offsetMs": 90200,
"byteLength": 42,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-auto-compact-context-seed",
"description": "Auto compact e2e 第一轮普通响应:返回较高 input usage,让下一轮发送前触发自动 compact。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_COMPACT_CONTEXT_SEED"],
"bodyIncludes": ["E2E_AUTO_COMPACT_CONTEXT_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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-compact-seed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-readonly-auto-compact-seed-mid-summary",
"description": "Readonly auto compact seed 的工具结果后 mid_turn summary。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"CRITICAL: Respond with TEXT ONLY",
"E2E_AUTO_COMPACT_CONTEXT_SEED",
"E2E_READONLY_TOOL_FILE_CONTENT",
"\"stream\":true"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"text": {
"id": "upstream-e2e-readonly-auto-compact-seed-mid-summary",
"inputTokens": 210,
"outputTokens": 64,
"text": "Auto compact summarized the readonly seed tool result without consuming the pending-turn retry fixtures.\n\nE2E_READONLY_AUTO_COMPACT_SEED_MID_SUMMARY preserved E2E_AUTO_COMPACT_CONTEXT_SEED after the Read tool_result."
}
}
},
{
"id": "upstream-auto-compact-summary-success",
"description": "Auto compact e2e compact summary 成功。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["CRITICAL: Respond with TEXT ONLY", "E2E_AUTO_COMPACT", "\"stream\":true"]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 1200,
"text": {
"id": "upstream-e2e-auto-compact-success",
"inputTokens": 210,
"outputTokens": 64,
"text": "Auto compact e2e replay summarized the previous session state without tools.\n\nAuto compact preserved E2E_AUTO_COMPACT_CONTEXT_SEED and E2E_AUTO_COMPACT_PENDING_TEXT so the pending user request can continue after compaction."
}
}
},
{
"id": "upstream-auto-compact-pending-text",
"description": "Auto compact e2e compact 成功后继续执行原普通文本 pending action。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_COMPACT_PENDING_TEXT"],
"bodyIncludes": ["E2E_AUTO_COMPACT_PENDING_TEXT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-compact-pending\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-auto-actions-context-seed",
"description": "Auto compact actions e2e 第一轮普通响应:返回较高 input usage,让下一轮发送前触发自动 compact。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_ACTIONS_CONTEXT_SEED"],
"bodyIncludes": ["E2E_AUTO_ACTIONS_CONTEXT_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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-actions-seed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-auto-actions-compact-slow",
"description": "Auto compact actions e2e 使用的慢速自动 compact 响应,给普通输入、/goal 和重复 /compact 留出稳定窗口。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["CRITICAL: Respond with TEXT ONLY", "E2E_AUTO_ACTIONS", "\"stream\":true"]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"delayMs": 30000,
"text": {
"id": "upstream-e2e-auto-actions-compact-slow",
"inputTokens": 210,
"outputTokens": 64,
"text": "Auto compact actions e2e replay summarized the previous session without tools.\n\nAuto compact preserved E2E_AUTO_ACTIONS context and pending text while the user added future queue entries."
}
}
},
{
"id": "upstream-auto-actions-pending-text",
"description": "Auto compact actions e2e compact 成功后继续执行原普通文本 pending action。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_ACTIONS_PENDING_TEXT"],
"bodyIncludes": ["E2E_AUTO_ACTIONS_PENDING_TEXT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-actions-pending\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-auto-actions-queued-text",
"description": "Auto compact actions e2e pending action 完成后继续消费 compacting 期间追加的普通文本 queue。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_AUTO_ACTIONS_QUEUED_TEXT"],
"bodyIncludes": ["E2E_AUTO_ACTIONS_QUEUED_TEXT"],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-actions-queued\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":96,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":96,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-auto-actions-queued-goal-continuation",
"description": "Auto compact actions e2e compacting 期间追加的 /goal queue 被消费后,goal continuation 正常返回。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_AUTO_ACTIONS_QUEUED_GOAL",
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-auto-actions-queued-goal-continuation\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":160,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"upstream-e2e-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":160,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-auto-actions-queued-goal-verifier-passed",
"description": "Auto compact actions e2e queued /goal 的 verifier 通过,让录制轨迹停在完成态。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_AUTO_ACTIONS_QUEUED_GOAL",
"Verify whether the active session goal",
"upstream-e2e-ok"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"content-type": "application/json; charset=utf-8"
},
"body": "{\"id\":\"upstream-e2e-auto-actions-queued-goal-verifier-passed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":true,\\\"reason\\\":\\\"queued /goal continuation returned the expected e2e token.\\\",\\\"nextAction\\\":\\\"\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":220,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
}
},
{
"id": "upstream-goal-timeline-first-reply",
"description": "Goal timeline 回归 case:第 1 轮 goal continuation 先返回未达标短句。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_TIMELINE_REPRO",
"Continue working toward the active session goal"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY",
"Verify whether the active session goal",
"The active session goal was not accepted"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"cache-control": "no-cache",
"content-type": "text/event-stream; charset=utf-8"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-first-reply\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":160,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"人类灭绝后,机器哭了。\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":160,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-goal-timeline-first-verifier-failed",
"description": "Goal timeline 回归 case:第 1 次 verifier 未通过并给出下一轮动作。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_TIMELINE_REPRO",
"Verify whether the active session goal",
"人类灭绝后,机器哭了。"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY",
"人类灭绝之后,机器哭了。"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"content-type": "application/json; charset=utf-8"
},
"body": "{\"id\":\"upstream-e2e-goal-timeline-first-verifier-failed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":false,\\\"reason\\\":\\\"第一轮只有九个汉字。\\\",\\\"nextAction\\\":\\\"写出恰好十个汉字的科幻小说。\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":220,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":32,\"service_tier\":\"standard\"}}"
}
},
{
"id": "upstream-goal-timeline-second-reply",
"description": "Goal timeline 回归 case:verifier 未通过后自动 continuation 返回达标短句。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_TIMELINE_REPRO",
"Completion verifier result:",
"Reason: 第一轮只有九个汉字。",
"写出恰好十个汉字的科幻小说"
],
"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"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-second-reply\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"人类灭绝之后,机器哭了。\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-goal-timeline-second-verifier-passed",
"description": "Goal timeline 回归 case:第 2 次 verifier 通过。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_TIMELINE_REPRO",
"Verify whether the active session goal",
"人类灭绝之后,机器哭了。"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"content-type": "application/json; charset=utf-8"
},
"body": "{\"id\":\"upstream-e2e-goal-timeline-second-verifier-passed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":true,\\\"reason\\\":\\\"第二轮输出恰好十个汉字。\\\",\\\"nextAction\\\":\\\"\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":240,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
}
},
{
"id": "upstream-goal-timeline-new-target-reply",
"description": "Goal timeline 回归 case:新 target 的第 1 轮回复,模拟十万字目标没有真正交付。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_TIMELINE_REPRO_B",
"Continue working toward the active session goal"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY",
"Verify whether the active session goal",
"The active session goal was not accepted"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"cache-control": "no-cache",
"content-type": "text/event-stream; charset=utf-8"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-goal-timeline-new-target-reply\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":190,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"这需要长篇连载,无法一次交付十万字。\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":190,\"output_tokens\":16,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
},
{
"id": "upstream-goal-timeline-new-target-verifier-invalid-json",
"description": "Goal timeline 回归 case:新 target verifier 返回语义上 false 但 JSON 因未转义引号无法解析。",
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": [
"E2E_GOAL_TIMELINE_REPRO_B",
"Verify whether the active session goal",
"这需要长篇连载,无法一次交付十万字。"
],
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY"
]
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"content-type": "application/json; charset=utf-8"
},
"body": "{\"id\":\"upstream-e2e-goal-timeline-new-target-verifier-invalid-json\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":false,\\\"reason\\\":\\\"没有交付 \\\"10w 字\\\" 小说。\\\",\\\"nextAction\\\":\\\"继续写 10w 字小说。\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":240,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
}
},
{
"id": "upstream-provider-basic",
"description": "Upstream provider 基础发送消息 case 的真实 Anthropic-compatible 响应。",
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyExcludes": [
"Generate a concise title",
"CRITICAL: Respond with TEXT ONLY"
],
"bodyIncludes": ["upstream-e2e-ok"]
},
"captured": {
"capturedAt": "2026-06-04T06:43:23.594Z",
"url": "https://api.deepseek.com/anthropic/v1/messages",
"model": "deepseek-v4-flash",
"statusCode": 200,
"requestBodyBytes": 64567,
"responseBodyBytes": 4862
},
"response": {
"statusCode": 200,
"statusMessage": "OK",
"headers": {
"cache-control": "no-cache",
"content-type": "text/event-stream; charset=utf-8"
},
"body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"b6f0b7ec-7b0c-48a0-a9e0-6e9683e6c7bf\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":85,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":15232,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"thinking\",\"thinking\":\"\",\"signature\":\"\"}}\n\nevent: ping\ndata: {\"type\":\"ping\"}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"The\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" user\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" wants\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" me\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" to\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" reply\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" with\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" exactly\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" \\\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"deep\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"seek\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"-e\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"2\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"e\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"-\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"ok\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"\\\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" and\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" no\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" other\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" text\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\".\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"signature_delta\",\"signature\":\"b6f0b7ec-7b0c-48a0-a9e0-6e9683e6c7bf\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":1,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"-e\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"2\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"e\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"-\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":1}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":85,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":15232,\"output_tokens\":30,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
"events": [
{
"sequence": 0,
"offsetMs": 0,
"byteLength": 362,
"text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"b6f0b7ec-7b0c-48a0-a9e0-6e9683e6c7bf\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":85,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":15232,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
},
{
"sequence": 1,
"offsetMs": 35,
"byteLength": 140,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"thinking\",\"thinking\":\"\",\"signature\":\"\"}}\n\n"
},
{
"sequence": 2,
"offsetMs": 70,
"byteLength": 35,
"text": "event: ping\ndata: {\"type\":\"ping\"}\n\n"
},
{
"sequence": 3,
"offsetMs": 105,
"byteLength": 126,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"The\"}}\n\n"
},
{
"sequence": 4,
"offsetMs": 140,
"byteLength": 128,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" user\"}}\n\n"
},
{
"sequence": 5,
"offsetMs": 175,
"byteLength": 129,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" wants\"}}\n\n"
},
{
"sequence": 6,
"offsetMs": 210,
"byteLength": 126,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" me\"}}\n\n"
},
{
"sequence": 7,
"offsetMs": 245,
"byteLength": 126,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" to\"}}\n\n"
},
{
"sequence": 8,
"offsetMs": 280,
"byteLength": 129,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" reply\"}}\n\n"
},
{
"sequence": 9,
"offsetMs": 315,
"byteLength": 128,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" with\"}}\n\n"
},
{
"sequence": 10,
"offsetMs": 350,
"byteLength": 131,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" exactly\"}}\n\n"
},
{
"sequence": 11,
"offsetMs": 385,
"byteLength": 126,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" \\\"\"}}\n\n"
},
{
"sequence": 12,
"offsetMs": 420,
"byteLength": 127,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"deep\"}}\n\n"
},
{
"sequence": 13,
"offsetMs": 455,
"byteLength": 127,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"seek\"}}\n\n"
},
{
"sequence": 14,
"offsetMs": 490,
"byteLength": 125,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"-e\"}}\n\n"
},
{
"sequence": 15,
"offsetMs": 525,
"byteLength": 124,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"2\"}}\n\n"
},
{
"sequence": 16,
"offsetMs": 560,
"byteLength": 124,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"e\"}}\n\n"
},
{
"sequence": 17,
"offsetMs": 595,
"byteLength": 124,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"-\"}}\n\n"
},
{
"sequence": 18,
"offsetMs": 630,
"byteLength": 125,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"ok\"}}\n\n"
},
{
"sequence": 19,
"offsetMs": 665,
"byteLength": 125,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\"\\\"\"}}\n\n"
},
{
"sequence": 20,
"offsetMs": 700,
"byteLength": 127,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" and\"}}\n\n"
},
{
"sequence": 21,
"offsetMs": 735,
"byteLength": 126,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" no\"}}\n\n"
},
{
"sequence": 22,
"offsetMs": 770,
"byteLength": 129,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" other\"}}\n\n"
},
{
"sequence": 23,
"offsetMs": 805,
"byteLength": 128,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\" text\"}}\n\n"
},
{
"sequence": 24,
"offsetMs": 840,
"byteLength": 124,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"thinking_delta\",\"thinking\":\".\"}}\n\n"
},
{
"sequence": 25,
"offsetMs": 875,
"byteLength": 161,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"signature_delta\",\"signature\":\"b6f0b7ec-7b0c-48a0-a9e0-6e9683e6c7bf\"}}\n\n"
},
{
"sequence": 26,
"offsetMs": 910,
"byteLength": 73,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
},
{
"sequence": 27,
"offsetMs": 945,
"byteLength": 117,
"text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":1,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
},
{
"sequence": 28,
"offsetMs": 980,
"byteLength": 119,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
},
{
"sequence": 29,
"offsetMs": 1015,
"byteLength": 119,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek\"}}\n\n"
},
{
"sequence": 30,
"offsetMs": 1050,
"byteLength": 117,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"-e\"}}\n\n"
},
{
"sequence": 31,
"offsetMs": 1085,
"byteLength": 116,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"2\"}}\n\n"
},
{
"sequence": 32,
"offsetMs": 1120,
"byteLength": 116,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"e\"}}\n\n"
},
{
"sequence": 33,
"offsetMs": 1155,
"byteLength": 116,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"-\"}}\n\n"
},
{
"sequence": 34,
"offsetMs": 1190,
"byteLength": 117,
"text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":1,\"delta\":{\"type\":\"text_delta\",\"text\":\"ok\"}}\n\n"
},
{
"sequence": 35,
"offsetMs": 1225,
"byteLength": 73,
"text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":1}\n\n"
},
{
"sequence": 36,
"offsetMs": 1260,
"byteLength": 246,
"text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":85,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":15232,\"output_tokens\":30,\"service_tier\":\"standard\"}}\n\n"
},
{
"sequence": 37,
"offsetMs": 1295,
"byteLength": 51,
"text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
}
]
}
},
{
"id": "upstream-title-generic",
"description": "Upstream e2e title generation 的固定辅助响应,避免标题生成请求误命中业务 case 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\"}}"
}
}
]
}