| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527 |
- {
- "version": 1,
- "caseName": "app-control-cross-project-search",
- "spec": "./test/e2e/conversation-session/session-control/app-control-cross-project-search.test.ts",
- "fixtures": [
- {
- "id": "sct07-title",
- "description": "SCT07 setup title",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_SCT07"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "{\"title\":\"E2E_SCT07\"}"
- }
- }
- },
- {
- "id": "sct07-target-read",
- "description": "SCT07 TARGET real readonly tool",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_TARGET"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_READONLY_TOOL_FILE_CONTENT",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "Read",
- "id": "toolu_sct07_setup_TARGET",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- }
- }
- }
- },
- {
- "id": "sct07-target-ready",
- "description": "SCT07 TARGET completed history",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_TARGET", "E2E_READONLY_TOOL_FILE_CONTENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "sct07-archived-read",
- "description": "SCT07 ARCHIVED real readonly tool",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_ARCHIVED"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_READONLY_TOOL_FILE_CONTENT",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "Read",
- "id": "toolu_sct07_setup_ARCHIVED",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- }
- }
- }
- },
- {
- "id": "sct07-archived-ready",
- "description": "SCT07 ARCHIVED completed history",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_ARCHIVED", "E2E_READONLY_TOOL_FILE_CONTENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "sct07-mobile-read",
- "description": "SCT07 MOBILE real readonly tool",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_MOBILE"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_READONLY_TOOL_FILE_CONTENT",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "Read",
- "id": "toolu_sct07_setup_MOBILE",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- }
- }
- }
- },
- {
- "id": "sct07-mobile-ready",
- "description": "SCT07 MOBILE completed history",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_MOBILE", "E2E_READONLY_TOOL_FILE_CONTENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "sct07-caller-read",
- "description": "SCT07 CALLER real readonly tool",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_CALLER"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_READONLY_TOOL_FILE_CONTENT",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "Read",
- "id": "toolu_sct07_setup_CALLER",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- }
- }
- }
- },
- {
- "id": "sct07-caller-ready",
- "description": "SCT07 CALLER completed history",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_CALLER", "E2E_READONLY_TOOL_FILE_CONTENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_DISCOVER:",
- "E2E_SCT07_FILTER:",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "sct07-discover",
- "description": "SCT07 global title search and accessible projects",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_DISCOVER:", "E2E_SCT07_TARGET_SESSION_ID"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_FILTER:",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUses": [
- {
- "name": "ListSessions",
- "id": "toolu_sct07_search",
- "input": {
- "query": "小说"
- }
- },
- {
- "name": "ListProjects",
- "id": "toolu_sct07_projects",
- "input": {}
- }
- ]
- }
- },
- {
- "id": "sct07-discovery-returned",
- "description": "SCT07 actual discovery results reached model",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_DISCOVER:", "toolu_sct07_search", "toolu_sct07_projects"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_FILTER:",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "SCT07_DISCOVERY_RETURNED"
- }
- }
- },
- {
- "id": "sct07-filter",
- "description": "SCT07 project filter uses full ref from true list result",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_FILTER:"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "ListSessions",
- "id": "toolu_sct07_filter",
- "input": {
- "query": "小说",
- "project": "{{appControlTargetProjectRef}}"
- }
- }
- }
- },
- {
- "id": "sct07-filter-returned",
- "description": "SCT07 actual filtered result reached model",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行无项目 caller 的 App 工具与 Host 查询;完整 session/project ref 只取真实工具结果,UI 和未读事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_FILTER:", "toolu_sct07_filter"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_READ:",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "SCT07_FILTER_RETURNED"
- }
- }
- },
- {
- "id": "sct07-read",
- "description": "SCT07 real cross-project read with complete list ref",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_READ:"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "ReadSession",
- "id": "toolu_sct07_read",
- "input": {
- "view": "messages",
- "sessionId": "{{appControlTargetSessionId}}"
- }
- }
- }
- },
- {
- "id": "sct07-read-returned",
- "description": "SCT07 actual read receipt reaches model",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_READ:", "toolu_sct07_read"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_SCT07_OPEN:"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "SCT07_READ_RETURNED"
- }
- }
- },
- {
- "id": "sct07-open",
- "description": "SCT07 real cross-project open with complete list ref",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_OPEN:"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "name": "OpenSession",
- "id": "toolu_sct07_open",
- "input": {
- "sessionId": "{{appControlTargetSessionId}}"
- }
- }
- }
- },
- {
- "id": "sct07-open-returned",
- "description": "SCT07 actual open receipt reaches model",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定模型工具选择,真实执行同 Host 跨项目搜索、正文读取及桌面导航;完整 ref 只取真实工具结果,权限与双端查看事实不注入。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SCT07_OPEN:", "toolu_sct07_open", "opened"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "text": "SCT07_OPEN_RETURNED opened"
- }
- }
- }
- ]
- }
|