| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- {
- "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": "<analysis>The user greeted the assistant once.</analysis>\n\n<summary>1. Primary Request and Intent:\n The user said hello and asked for a fixed reply. The assistant replied with the fixed text.\n</summary>"
- }
- }
- },
- {
- "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"
- }
- }
- }
- ]
- }
|