{
"version": 1,
"caseName": "conversation-session-reply-language",
"spec": "./test/e2e/conversation-session/context/conversation-session-reply-language.test.ts",
"fixtures": [
{
"id": "rl-title-default",
"description": "RL01 首轮结束后的标题请求:默认规则。",
"metadata": {
"kind": "common",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "首轮结束后异步触发 title sidecar;用任务首轮 marker 隔离并固定标题响应;语言规则由 spec 断言。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["Generate a concise title", "E2E_RL_DEFAULT"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-title-default",
"inputTokens": 64,
"outputTokens": 8,
"text": "{\"title\": \"Reply Language\"}"
}
}
},
{
"id": "rl-title-new-task",
"description": "RL07 新任务首轮结束后的标题请求:按公告语言。",
"metadata": {
"kind": "common",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "首轮结束后异步触发 title sidecar;用任务首轮 marker 隔离并固定标题响应;语言规则由 spec 断言。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["Generate a concise title", "E2E_RL_NEWTASK"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-title-new-task",
"inputTokens": 64,
"outputTokens": 8,
"text": "{\"title\": \"Reply Language\"}"
}
}
},
{
"id": "rl-default",
"description": "RL01 默认留空的首轮:不公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_DEFAULT"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-default",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_DEFAULT"
}
}
},
{
"id": "rl-set",
"description": "RL02 输入 简体中文 后的一轮:首次公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_SET"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-set",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_SET"
}
}
},
{
"id": "rl-same",
"description": "RL03 值不变的一轮:不再公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_SAME"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-same",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_SAME"
}
}
},
{
"id": "rl-changed",
"description": "RL04 改成 日本語 后的一轮:追加一条公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_CHANGED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-changed",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_CHANGED"
}
}
},
{
"id": "rl-compact-summary",
"description": "RL05 手动 /compact 的 summary 请求。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "手动 compact 需要固定 summary;summary 文案不参与断言。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_RL_CHANGED", "CRITICAL: Respond with TEXT ONLY"],
"bodyExcludes": ["Generate a concise title"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-compact-summary",
"inputTokens": 256,
"outputTokens": 64,
"text": "The user sent three short messages and asked for fixed replies.\n\n1. Primary Request and Intent:\n The user asked for fixed replies. The assistant replied with the fixed text each time.\n"
}
}
},
{
"id": "rl-compacted",
"description": "RL05 compact 后的第一轮:重述 日本語 公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_COMPACTED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-compacted",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_COMPACTED"
}
}
},
{
"id": "rl-resumed",
"description": "RL06 重启 App 冷恢复后的一轮:不再公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_RESUMED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-resumed",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_RESUMED"
}
}
},
{
"id": "rl-new-task",
"description": "RL07 新任务首轮:公告当前设置。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_NEWTASK"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-new-task",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_NEWTASK"
}
}
},
{
"id": "rl-cleared",
"description": "RL08 清空设置后的一轮:发一次清除公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_CLEARED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-cleared",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_CLEARED"
}
}
},
{
"id": "rl-after-clear",
"description": "RL08 清除后的第二轮:不再公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_AFTERCLEAR"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-after-clear",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_AFTERCLEAR"
}
}
},
{
"id": "rl-other-window",
"description": "RL09 在第二个窗口改设置后,第一个窗口的一轮:追加 Deutsch 公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;语言公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 2,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_RL_OTHERWINDOW"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "rl-other-window",
"inputTokens": 80,
"outputTokens": 8,
"text": "RL_A_OTHERWINDOW"
}
}
}
]
}