| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- {
- "version": 1,
- "caseName": "conversation-session-unregistered-tool-cold-snapshot",
- "spec": "./test/e2e/conversation-session/tools/conversation-session-unregistered-tool-cold-snapshot.test.ts",
- "fixtures": [
- {
- "id": "unregistered-tool-cold-snapshot-title",
- "description": "UTL 首发的 case-local 标题响应。",
- "metadata": {
- "id": "unregistered-tool-cold-snapshot-title",
- "description": "UTL 首发的 case-local 标题响应。",
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "标题生成不属于 O17/CHL09 语义;固定响应避免误命中主请求。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_UNREGISTERED_TOOL_COLD_SNAPSHOT"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "unregistered-tool-cold-snapshot-title",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\":\"Unregistered Tool Cold Snapshot\"}"
- }
- }
- },
- {
- "id": "unregistered-tool-cold-snapshot-grep-batch",
- "description": "单个 model step 返回 60 个 embedded-search Grep 和 1 个必定未注册的 Grep sentinel。",
- "metadata": {
- "id": "unregistered-tool-cold-snapshot-grep-batch",
- "description": "单个 model step 返回 60 个 embedded-search Grep 和 1 个必定未注册的 Grep sentinel。",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "稳定复现线上 registry miss,并让同一 turn 超过 60 行 snapshot 尾窗。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_UNREGISTERED_TOOL_COLD_SNAPSHOT"],
- "bodyExcludes": ["Generate a concise title", "No such tool available: Grep"]
- },
- "response": {
- "statusCode": 200,
- "toolUses": [
- {
- "id": "toolu_e2e_unregistered_grep_01",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_01",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_02",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_02",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_03",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_03",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_04",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_04",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_05",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_05",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_06",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_06",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_07",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_07",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_08",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_08",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_09",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_09",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_10",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_10",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_11",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_11",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_12",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_12",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_13",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_13",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_14",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_14",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_15",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_15",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_16",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_16",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_17",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_17",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_18",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_18",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_19",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_19",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_20",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_20",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_21",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_21",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_22",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_22",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_23",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_23",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_24",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_24",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_25",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_25",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_26",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_26",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_27",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_27",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_28",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_28",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_29",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_29",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_30",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_30",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_31",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_31",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_32",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_32",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_33",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_33",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_34",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_34",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_35",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_35",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_36",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_36",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_37",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_37",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_38",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_38",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_39",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_39",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_40",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_40",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_41",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_41",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_42",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_42",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_43",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_43",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_44",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_44",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_45",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_45",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_46",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_46",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_47",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_47",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_48",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_48",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_49",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_49",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_50",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_50",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_51",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_51",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_52",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_52",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_53",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_53",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_54",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_54",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_55",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_55",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_56",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_56",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_57",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_57",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_58",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_58",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_59",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_59",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_60",
- "name": "Grep",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_60",
- "output_mode": "content"
- }
- },
- {
- "id": "toolu_e2e_unregistered_grep_61",
- "name": "GrepMissingFromRegistry",
- "input": {
- "path": "{{e2eRuntimeRoot}}/conversation-session-unregistered-tool-cold-snapshot",
- "pattern": "E2E_UNREGISTERED_TOOL_61",
- "output_mode": "content"
- }
- }
- ]
- }
- },
- {
- "id": "unregistered-tool-cold-snapshot-final",
- "description": "全部搜索工具快速失败后的同 turn continuation 最终回复。",
- "metadata": {
- "id": "unregistered-tool-cold-snapshot-final",
- "description": "全部搜索工具快速失败后的同 turn continuation 最终回复。",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "证明 provider 收到 failed tool results 后 turn 正常 completed,隔离 terminal UI 语义。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": [
- "E2E_UNREGISTERED_TOOL_COLD_SNAPSHOT",
- "toolu_e2e_unregistered_grep_01",
- "toolu_e2e_unregistered_grep_61",
- "No such tool available: Grep"
- ],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "unregistered-tool-cold-snapshot-final",
- "inputTokens": 1024,
- "outputTokens": 16,
- "text": "E2E_UNREGISTERED_TOOL_COLD_SNAPSHOT_DONE"
- }
- }
- }
- ]
- }
|