| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- {
- "version": 1,
- "caseName": "app-control-explicit-navigation",
- "spec": "./test/e2e/conversation-session/session-control/app-control-explicit-navigation.test.ts",
- "fixtures": [
- {
- "id": "sct03-title",
- "description": "SCT03 title",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_SCT03"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "{\"title\":\"E2E_SCT03\"}"
- }
- }
- },
- {
- "id": "sct03-target-read",
- "description": "SCT03 target-read",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_TARGET"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_READONLY_TOOL_FILE_CONTENT",
- "E2E_SCT03_BACKGROUND",
- "E2E_SCT03_OPEN"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "Read",
- "id": "toolu_sct03_setup_TARGET",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- }
- }
- }
- },
- {
- "id": "sct03-target-ready",
- "description": "SCT03 target-ready",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_TARGET", "E2E_READONLY_TOOL_FILE_CONTENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT03_BACKGROUND",
- "E2E_SCT03_OPEN"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "sct03-caller-read",
- "description": "SCT03 caller-read",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_CALLER"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_READONLY_TOOL_FILE_CONTENT",
- "E2E_SCT03_BACKGROUND",
- "E2E_SCT03_OPEN"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "Read",
- "id": "toolu_sct03_setup_CALLER",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- }
- }
- }
- },
- {
- "id": "sct03-caller-ready",
- "description": "SCT03 caller-ready",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_CALLER", "E2E_READONLY_TOOL_FILE_CONTENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT03_BACKGROUND",
- "E2E_SCT03_OPEN"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "sct03-background-target",
- "description": "SCT03 background-target",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SCT03_BACKGROUND_TARGET: reply exactly background-done"],
- "lastUserMessageExcludes": ["E2E_SCT03_BACKGROUND:"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "background-done"
- }
- }
- },
- {
- "id": "sct03-list",
- "description": "SCT03 list",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "E2E_SCT03_TARGET_SESSION_ID"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT03_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "ListSessions",
- "id": "toolu_sct03_list",
- "input": {}
- }
- }
- },
- {
- "id": "sct03-read",
- "description": "SCT03 read",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "toolu_sct03_list"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT03_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "ReadSession",
- "id": "toolu_sct03_read",
- "input": {
- "view": "summary",
- "sessionId": "{{appControlTargetSessionId}}"
- }
- }
- }
- },
- {
- "id": "sct03-send",
- "description": "SCT03 send",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "toolu_sct03_read"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT03_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "SendToSession",
- "id": "toolu_sct03_send",
- "input": {
- "prompt": "E2E_SCT03_BACKGROUND_TARGET: reply exactly background-done",
- "sessionId": "{{appControlTargetSessionId}}"
- }
- }
- }
- },
- {
- "id": "sct03-background-ready",
- "description": "SCT03 background-ready",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_BACKGROUND:", "toolu_sct03_send", "accepted"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT03_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "SCT03_BACKGROUND_ACCEPTED"
- }
- }
- },
- {
- "id": "sct03-open",
- "description": "SCT03 open",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_OPEN:"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "OpenSession",
- "id": "toolu_sct03_open",
- "input": {
- "sessionId": "{{appControlTargetSessionId}}"
- }
- }
- }
- },
- {
- "id": "sct03-open-ready",
- "description": "SCT03 open-ready",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型选择,真实执行 App 工具和 Host/UI 链路;目标 ref 只取真实 list 工具结果。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT03_OPEN:", "toolu_sct03_open", "opened"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "SCT03_OPEN_CONFIRMED opened"
- }
- }
- }
- ]
- }
|