{
"version": 1,
"caseName": "conversation-session-instruction-file-delta",
"spec": "./test/e2e/conversation-session/context/conversation-session-instruction-file-delta.test.ts",
"fixtures": [
{
"id": "ifd-a-title",
"description": "任务 A 首发的确定性标题响应。",
"metadata": {
"kind": "common",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["Generate a concise title", "E2E_IFD_U1"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-a-title",
"inputTokens": 64,
"outputTokens": 8,
"text": "{\"title\": \"Instruction File Delta\"}"
}
}
},
{
"id": "ifd-u1",
"description": "IFD01 首轮:AGENTS.md 为 V1 的完整公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_U1"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-u1",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_A1"
}
}
},
{
"id": "ifd-u2-edited",
"description": "IFD01 运行中改为 V2 后的第二轮。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_U2_EDITED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-u2-edited",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_A2"
}
}
},
{
"id": "ifd-u3-cold",
"description": "IFD02 冷恢复后的第一轮:末尾追加 session_start 增量。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_U3_COLD"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-u3-cold",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_A3"
}
}
},
{
"id": "ifd-u4-again",
"description": "IFD02 冷恢复后的第二轮:不重复增量。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_U4_AGAIN"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-u4-again",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_A4"
}
}
},
{
"id": "ifd-u5-removed",
"description": "IFD03 删除 AGENTS.md 并冷恢复后的第一轮:追加删除增量。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_U5_REMOVED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-u5-removed",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_A5"
}
}
},
{
"id": "ifd-c-title",
"description": "任务 C 首发的确定性标题响应。",
"metadata": {
"kind": "common",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["Generate a concise title", "E2E_IFD_C1"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-c-title",
"inputTokens": 64,
"outputTokens": 8,
"text": "{\"title\": \"Instruction File Compact\"}"
}
}
},
{
"id": "ifd-c1",
"description": "IFD04 首轮:AGENTS.md 为 V1 的完整公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_C1"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-c1",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_C_A1"
}
}
},
{
"id": "ifd-c-compact-summary",
"description": "IFD04 手动 /compact 的 summary 请求。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "手动 compact 需要固定 summary;summary 文案不参与断言。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"bodyIncludes": ["E2E_IFD_C1", "CRITICAL: Respond with TEXT ONLY"],
"bodyExcludes": ["Generate a concise title"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-c-compact-summary",
"inputTokens": 256,
"outputTokens": 64,
"text": "The user greeted the assistant once.\n\n1. Primary Request and Intent:\n The user said hello and asked for a fixed reply. The assistant replied with the fixed text.\n"
}
}
},
{
"id": "ifd-c2-compacted",
"description": "IFD04 compact 后的第一轮:按重读的 V3 公告。",
"metadata": {
"kind": "main",
"timingPolicy": "fast-text",
"source": "synthetic",
"syntheticReason": "以本轮 marker 匹配最后一条 user 消息,固定回复;指令公告的形态由 spec 读取请求体断言,不在 matcher 里门禁。"
},
"maxMatches": 1,
"match": {
"method": "POST",
"pathIncludes": "/messages",
"lastUserMessageIncludes": ["E2E_IFD_C2_COMPACTED"],
"bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
},
"response": {
"statusCode": 200,
"text": {
"id": "ifd-c2-compacted",
"inputTokens": 80,
"outputTokens": 8,
"text": "IFD_C_A2"
}
}
}
]
}