| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701 |
- {
- "version": 1,
- "caseName": "conversation-session-dynamic-workflow-gray-always-on-lookup",
- "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-always-on-lookup.test.ts",
- "fixtures": [
- {
- "id": "dwl-title",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [],
- "bodyIncludes": ["Generate a concise title", "E2E_DWL_"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\": \"msg_upstream_e2e_text\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"deepseek-v4-flash\", \"content\": [{\"type\": \"text\", \"text\": \"{\\\"title\\\": \\\"工作流查询 E2E\\\"}\"}], \"stop_reason\": \"end_turn\", \"stop_sequence\": null, \"usage\": {\"input_tokens\": 128, \"cache_creation_input_tokens\": 0, \"cache_read_input_tokens\": 0, \"output_tokens\": 12, \"service_tier\": \"standard\"}}"
- }
- },
- {
- "id": "dwl-subagent-prep",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_PREP"]
- },
- "response": {
- "statusCode": 200,
- "text": "条目整理完毕:一、二。"
- }
- },
- {
- "id": "dwl-subagent-check",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["You are a subagent inside a dynamic workflow run"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "toolu_dwl_escalate"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_CHECK"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_escalate",
- "name": "escalate",
- "input": {
- "question": "E2E_DWL_QUESTION 条目二该不该保留?",
- "context": "E2E_DWL_CONTEXT 清单前后矛盾。"
- }
- }
- }
- },
- {
- "id": "dwl-done",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["E2E_DWL_START", "toolu_dwl_amend"],
- "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_DONE 调整后的工作流已完成。"
- }
- },
- {
- "id": "dwl-seen",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["E2E_DWL_START"],
- "lastUserMessageIncludes": ["<workflow-escalation>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_SEEN 子代理在问条目二,请你确认。"
- }
- },
- {
- "id": "dwl-after-done",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["toolu_dwl_after_list"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_AFTER_DONE 重启后查询完毕。"
- }
- },
- {
- "id": "dwl-after-list",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_after_list"
- ],
- "bodyIncludes": ["toolu_dwl_after_get"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_after_list",
- "name": "ListWorkflowRuns",
- "input": {}
- }
- }
- },
- {
- "id": "dwl-after-get",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_after_get"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_AFTER"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_after_get",
- "name": "GetWorkflowRun",
- "input": {
- "run_id": "{{latestWorkflowRunId}}"
- }
- }
- }
- },
- {
- "id": "dwl-get-b-done",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["toolu_dwl_get_b"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_GET_B_DONE 新实例已完成。"
- }
- },
- {
- "id": "dwl-get-b",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_get_b"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_GET_B"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_get_b",
- "name": "GetWorkflowRun",
- "input": {
- "run_id": "{{latestWorkflowRunId}}"
- }
- }
- }
- },
- {
- "id": "dwl-list-done",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["toolu_dwl_get_a_stopped"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_LIST_DONE 实例都列出来了。"
- }
- },
- {
- "id": "dwl-get-a-stopped",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_get_a_stopped"
- ],
- "bodyIncludes": ["toolu_dwl_list_limited"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_get_a_stopped",
- "name": "GetWorkflowRun",
- "input": {
- "run_id": "{{latestWorkflowRunId}}"
- }
- }
- }
- },
- {
- "id": "dwl-list-limited",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_list_limited"
- ],
- "bodyIncludes": ["toolu_dwl_list_final"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_list_limited",
- "name": "ListWorkflowRuns",
- "input": {
- "limit": 1
- }
- }
- }
- },
- {
- "id": "dwl-list-final",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_list_final"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_LIST"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_list_final",
- "name": "ListWorkflowRuns",
- "input": {}
- }
- }
- },
- {
- "id": "dwl-amended",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["toolu_dwl_amend"],
- "lastUserMessageExcludes": ["<task-notification>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_AMENDED 已按新脚本调整工作流。"
- }
- },
- {
- "id": "dwl-amend",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_amend"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_AMEND"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_amend",
- "name": "AmendWorkflow",
- "input": {
- "run_id": "{{latestWorkflowRunId}}",
- "script": "phase(\"准备\");\nconst prep = await agent(\"整理员\").ask(\"E2E_DWL_PREP 列出要处理的条目\");\nphase(\"收尾\");\nreturn { prep, amended: true };"
- }
- }
- }
- },
- {
- "id": "dwl-peek-done",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["toolu_dwl_peek_get"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_PEEK_DONE 另一个会话看完了。"
- }
- },
- {
- "id": "dwl-peek-get",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_peek_get"
- ],
- "bodyIncludes": ["toolu_dwl_peek_list"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_peek_get",
- "name": "GetWorkflowRun",
- "input": {
- "run_id": "{{latestWorkflowRunId}}"
- }
- }
- }
- },
- {
- "id": "dwl-peek-list",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_peek_list"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_PEEK"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_peek_list",
- "name": "ListWorkflowRuns",
- "input": {}
- }
- }
- },
- {
- "id": "dwl-look-done",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["toolu_dwl_look_list"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_LOOK_DONE 工作流还在跑,有一个问题在等。"
- }
- },
- {
- "id": "dwl-look-list",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_look_list"
- ],
- "bodyIncludes": ["toolu_dwl_look_get"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_look_list",
- "name": "ListWorkflowRuns",
- "input": {}
- }
- }
- },
- {
- "id": "dwl-look-get",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_look_get"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_LOOK"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_look_get",
- "name": "GetWorkflowRun",
- "input": {
- "run_id": "{{latestWorkflowRunId}}"
- }
- }
- }
- },
- {
- "id": "dwl-skill",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWL_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dwl-create",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run",
- "toolu_dwl_create"
- ],
- "bodyIncludes": ["E2E_DWL_START", "toolu_dwl_skill"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dwl_create",
- "name": "CreateWorkflow",
- "input": {
- "name": "E2E 查询工作流",
- "script": "phase(\"准备\");\nconst prep = await agent(\"整理员\").ask(\"E2E_DWL_PREP 列出要处理的条目\");\nlog(\"E2E_DWL_LOG 条目已列出\");\nphase(\"核对\");\n// 闸文件:用例在启动轮收尾之后才写它,升级通知因此唤起自己的一轮,不并进启动轮。\nawait world.run(\"node\", [\"-e\", \"const fs = require(\\\"node:fs\\\"); const timer = setInterval(() => { if (fs.existsSync(\\\"{{e2eRuntimeRoot}}/dwl-gate\\\")) clearInterval(timer); }, 100);\"], { output: \"discard\", timeoutMs: 600000 });\nconst check = await agent(\"核对员\").ask(\"E2E_DWL_CHECK 核对条目;拿不准时用 escalate 问主代理。\");\nphase(\"收尾\");\nreturn { prep, check };"
- }
- }
- }
- },
- {
- "id": "dwl-created",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 Skill/CreateWorkflow/AmendWorkflow/ListWorkflowRuns/GetWorkflowRun 的模型选择与子代理回复;真实工作流编译、审批、运行、升级停驻、修订替代、journal 读面与工具卡由产品链路执行,run ID 由用例从真实 run 卡读取后写进提示。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "You are now acting as the memory extraction subagent",
- "You are a subagent inside a dynamic workflow run"
- ],
- "bodyIncludes": ["E2E_DWL_START", "toolu_dwl_create"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWL_STARTED 工作流已启动。"
- }
- }
- ]
- }
|