| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779 |
- {
- "version": 1,
- "caseName": "conversation-session-dynamic-workflow-gray-always-on-snippet",
- "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-always-on-snippet.test.ts",
- "fixtures": [
- {
- "id": "dwy-title",
- "description": "E2E_DWY_ 各会话首发的 case-local 标题生成响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "E2E_DWY_ 各会话首发会触发默认 title sidecar;固定 case-local 标题响应,并用 marker 隔离跨 case 匹配。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_DWY_"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"dwy-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\": \\\"Workflow Snippet E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8,\"service_tier\":\"standard\"}}"
- }
- },
- {
- "id": "dwy-value-skill",
- "description": "DWY-01:先加载工作流 Skill。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_value_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWY_VALUE_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_value_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dwy-value-eval",
- "description": "DWY-01:只读片段:两行日志、返回一个对象。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_VALUE_START", "toolu_dwy_value_skill"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_value_eval"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_value_eval",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "log(\"E2E_DWY_LOG_FIRST\");\nlog(\"E2E_DWY_LOG_SECOND\");\nreturn { marker: \"E2E_DWY_VALUE\", sum: 1 + 2 };"
- }
- }
- }
- },
- {
- "id": "dwy-value-empty",
- "description": "DWY-01:只写日志、没有返回值的片段。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_VALUE_START", "toolu_dwy_value_eval"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_value_empty"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_value_empty",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "log(\"E2E_DWY_LOG_ONLY\");"
- }
- }
- }
- },
- {
- "id": "dwy-value-final",
- "description": "E2E_DWY_VALUE_START:工具结果回到模型后收尾。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_VALUE_START", "toolu_dwy_value_empty"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "dwy-value-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_DWY_VALUE_DONE 片段跑通了。"
- }
- }
- },
- {
- "id": "dwy-fail-skill",
- "description": "DWY-02:先加载工作流 Skill。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_fail_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWY_FAIL_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_fail_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dwy-fail-throw",
- "description": "DWY-02:先写一行日志再抛错的片段。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_FAIL_START", "toolu_dwy_fail_skill"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_fail_throw"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_fail_throw",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "log(\"E2E_DWY_BEFORE_THROW\");\nthrow new Error(\"E2E_DWY_BOOM\");"
- }
- }
- }
- },
- {
- "id": "dwy-fail-compile",
- "description": "DWY-02:用了片段 facade 没有的 agent(),编不过。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_FAIL_START", "toolu_dwy_fail_throw"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_fail_compile"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_fail_compile",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "log(\"E2E_DWY_NEVER_LOGGED\");\nconst answer = agent(\"E2E_DWY_ACTOR\");\nreturn answer;"
- }
- }
- }
- },
- {
- "id": "dwy-fail-large",
- "description": "DWY-02:返回值超过 256KB。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_FAIL_START", "toolu_dwy_fail_compile"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_fail_large"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_fail_large",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "return \"x\".repeat(300 * 1024);"
- }
- }
- }
- },
- {
- "id": "dwy-fail-outside",
- "description": "DWY-02:files.read 读工作区之外的文件。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_FAIL_START", "toolu_dwy_fail_large"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_fail_outside"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_fail_outside",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "return await files.read(\"{{e2eRuntimeRoot}}/dwy-ok-snippet.ts\");"
- }
- }
- }
- },
- {
- "id": "dwy-fail-timeout",
- "description": "DWY-02:死循环撞上 1000ms 墙钟(允许的最小值)。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_FAIL_START", "toolu_dwy_fail_outside"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_fail_timeout"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_fail_timeout",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "while (true) {}",
- "timeoutMs": 1000
- }
- }
- }
- },
- {
- "id": "dwy-fail-final",
- "description": "E2E_DWY_FAIL_START:工具结果回到模型后收尾。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_FAIL_START", "toolu_dwy_fail_timeout"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "dwy-fail-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_DWY_FAIL_DONE 片段的失败都看到了。"
- }
- }
- },
- {
- "id": "dwy-gate-eval-1",
- "description": "DWY-03:没加载 Skill 就调用片段(带 world.run,能跑就会弹窗写文件)。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_gate_eval_1"
- ],
- "lastUserMessageIncludes": ["E2E_DWY_GATE_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_gate_eval_1",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "const result = await world.run(\"node\", [\"-e\", \"require(\\\"node:fs\\\").writeFileSync(\\\"{{e2eRuntimeRoot}}/dwy-gate-output.txt\\\", \\\"ran\\\\n\\\")\"]);\nreturn { marker: \"E2E_DWY_GATE_VALUE\", exitCode: result.exitCode };"
- }
- }
- }
- },
- {
- "id": "dwy-gate-skill",
- "description": "DWY-03:读到技能门的拒绝后加载 Skill。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_GATE_START", "toolu_dwy_gate_eval_1"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_gate_skill"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_gate_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dwy-gate-eval-2",
- "description": "DWY-03:加载 Skill 后重发同一片段,确认门询问。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_GATE_START", "toolu_dwy_gate_skill"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_gate_eval_2"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_gate_eval_2",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "const result = await world.run(\"node\", [\"-e\", \"require(\\\"node:fs\\\").writeFileSync(\\\"{{e2eRuntimeRoot}}/dwy-gate-output.txt\\\", \\\"ran\\\\n\\\")\"]);\nreturn { marker: \"E2E_DWY_GATE_VALUE\", exitCode: result.exitCode };"
- }
- }
- }
- },
- {
- "id": "dwy-gate-final",
- "description": "E2E_DWY_GATE_START:工具结果回到模型后收尾。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_GATE_START", "toolu_dwy_gate_eval_2"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "dwy-gate-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_DWY_GATE_DONE 片段跑通了。"
- }
- }
- },
- {
- "id": "dwy-running-skill",
- "description": "DWY-04:先加载工作流 Skill。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_running_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWY_RUNNING_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_running_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dwy-running-eval",
- "description": "DWY-04:等闸文件的片段,停在运行中。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_RUNNING_START", "toolu_dwy_running_skill"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_running_eval"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_running_eval",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "const result = await world.run(\"node\", [\"-e\", \"const fs = require(\\\"node:fs\\\"); const timer = setInterval(() => { if (fs.existsSync(\\\"{{e2eRuntimeRoot}}/dwy-gate-running\\\")) { clearInterval(timer); fs.writeFileSync(\\\"dwy-running.txt\\\", \\\"E2E_DWY_WRITTEN\\\\n\\\"); console.log(\\\"E2E_DWY_RUNNING_STDOUT\\\"); } }, 100);\"], { timeoutMs: 120000 });\nconst found = await files.glob(\"*.txt\");\nconst written = await files.read(\"dwy-running.txt\");\nreturn { marker: \"E2E_DWY_RUNNING_VALUE\", out: result.stdout.trim(), found, written: written.trim() };"
- }
- }
- }
- },
- {
- "id": "dwy-running-final",
- "description": "E2E_DWY_RUNNING_START:工具结果回到模型后收尾。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_RUNNING_START", "toolu_dwy_running_eval"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "dwy-running-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_DWY_RUNNING_DONE 片段跑通了。"
- }
- }
- },
- {
- "id": "dwy-path-skill",
- "description": "DWY-05:先加载工作流 Skill。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_path_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWY_PATH_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_path_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dwy-path-ok",
- "description": "DWY-05:按 path 提交一个能跑的片段文件。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_PATH_START", "toolu_dwy_path_skill"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_path_ok"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_path_ok",
- "name": "EvalWorkflowSnippet",
- "input": {
- "path": "{{e2eRuntimeRoot}}/dwy-ok-snippet.ts"
- }
- }
- }
- },
- {
- "id": "dwy-path-bad",
- "description": "DWY-05:按 path 提交一个编不过的片段文件。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_PATH_START", "toolu_dwy_path_ok"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_path_bad"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_path_bad",
- "name": "EvalWorkflowSnippet",
- "input": {
- "path": "{{e2eRuntimeRoot}}/dwy-bad-snippet.ts"
- }
- }
- }
- },
- {
- "id": "dwy-path-missing",
- "description": "DWY-05:path 指向不存在的文件。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_PATH_START", "toolu_dwy_path_bad"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_path_missing"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_path_missing",
- "name": "EvalWorkflowSnippet",
- "input": {
- "path": "{{e2eRuntimeRoot}}/dwy-absent.ts"
- }
- }
- }
- },
- {
- "id": "dwy-path-both",
- "description": "DWY-05:code 与 path 都给。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_PATH_START", "toolu_dwy_path_missing"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_path_both"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_path_both",
- "name": "EvalWorkflowSnippet",
- "input": {
- "code": "return 1;",
- "path": "{{e2eRuntimeRoot}}/dwy-ok-snippet.ts"
- }
- }
- }
- },
- {
- "id": "dwy-path-neither",
- "description": "DWY-05:code 与 path 都不给。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_PATH_START", "toolu_dwy_path_both"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_dwy_path_neither"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwy_path_neither",
- "name": "EvalWorkflowSnippet",
- "input": {}
- }
- }
- },
- {
- "id": "dwy-path-final",
- "description": "E2E_DWY_PATH_START:工具结果回到模型后收尾。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "片段工具只由模型的 Skill / EvalWorkflowSnippet 选择触发;回放只固定这些选择与收尾文本,真实 Skill 加载、技能门、片段编译、沙箱执行、world 读写、确认门与工具结果都走产品链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_DWY_PATH_START", "toolu_dwy_path_neither"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "dwy-path-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_DWY_PATH_DONE 来源的拒绝都看到了。"
- }
- }
- }
- ]
- }
|