| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743 |
- {
- "version": 1,
- "caseName": "conversation-session-dynamic-workflow-gray-always-on-cross-session",
- "spec": "./test/e2e/conversation-session/workflows/conversation-session-dynamic-workflow-gray-always-on-cross-session.test.ts",
- "fixtures": [
- {
- "id": "dww-title",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、run 引擎、会话切换与通知投递由产品链路执行。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": [],
- "bodyIncludes": ["Generate a concise title", "E2E_DWW_"]
- },
- "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": "dww-b-amend-notified",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_DWW_B_AMEND"],
- "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_B_AMEND_DONE 修订已完成。"
- }
- },
- {
- "id": "dww-b-amended",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_b_amend"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_B_AMEND_STARTED 新 run 已启动。"
- }
- },
- {
- "id": "dww-b-amend",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_b_amend"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_B_AMEND"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_b_amend",
- "name": "AmendWorkflow",
- "input": {
- "run_id": "{{latestWorkflowRunId}}",
- "script": "phase(\"收尾\");\nreturn { passed: true };"
- }
- }
- }
- },
- {
- "id": "dww-agent-a",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "controlled-stream",
- "syntheticReason": "子代理回答以门闩挂起,由测试在切换会话后显式释放,不依赖固定响应延时。"
- },
- "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_DWW_TASK_A"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_dww_agent_a\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"usage\":{\"input_tokens\":256,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_DWW_ANSWER_A 材料结论成立。\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\"},\"usage\":{\"output_tokens\":32}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
- "chunks": [
- {
- "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_dww_agent_a\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"usage\":{\"input_tokens\":256,\"output_tokens\":0}}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_DWW_ANSWER_A 材料结论成立。\"}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\"},\"usage\":{\"output_tokens\":32}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
- "delayMs": 0
- }
- ],
- "releaseAfterChunks": 2
- },
- "maxMatches": 1
- },
- {
- "id": "dww-agent-c",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "controlled-stream",
- "syntheticReason": "子代理回答以门闩挂起,由测试在切换会话后显式释放,不依赖固定响应延时。"
- },
- "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_DWW_TASK_C"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_dww_agent_c\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"usage\":{\"input_tokens\":256,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_DWW_ANSWER_C 汇总完成。\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\"},\"usage\":{\"output_tokens\":32}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
- "chunks": [
- {
- "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_dww_agent_c\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"usage\":{\"input_tokens\":256,\"output_tokens\":0}}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_DWW_ANSWER_C 汇总完成。\"}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\"},\"usage\":{\"output_tokens\":32}}\n\n",
- "delayMs": 0
- },
- {
- "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n",
- "delayMs": 0
- }
- ],
- "releaseAfterChunks": 2
- },
- "maxMatches": 1
- },
- {
- "id": "dww-agent-h",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定补全写下的子代理的回答;子代理会话与结果回传走真实 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_DWW_TASK_H"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_ANSWER_H 条目一。"
- }
- },
- {
- "id": "dww-skill",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_dww_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_A_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dww-create",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_dww_create"
- ],
- "bodyIncludes": ["E2E_DWW_A_START", "toolu_dww_skill"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_create",
- "name": "CreateWorkflow",
- "input": {
- "name": "E2E 跨会话调研",
- "script": "phase(\"调研\");\nconst finding = await agent(\"调研员\").ask(\"E2E_DWW_TASK_A 调研材料,给出一句结论。\");\nphase(\"汇总\");\nconst summary = await agent(\"汇总员\").ask(`E2E_DWW_TASK_C 汇总结论:${finding}`);\nreturn { summary };"
- }
- }
- }
- },
- {
- "id": "dww-notified",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_DWW_A_START"],
- "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_A_DONE 工作流已完成。"
- }
- },
- {
- "id": "dww-created",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_DWW_A_START", "toolu_dww_create"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_A_STARTED 工作流已启动。"
- }
- },
- {
- "id": "dww-b-hello",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_B_HELLO"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_B_REPLY 这里是另一个会话。"
- }
- },
- {
- "id": "dww-b-after",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_B_AFTER"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_B_AFTER_REPLY 这里仍没有工作流。"
- }
- },
- {
- "id": "dww-cross-amend",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_cross_amend"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_CROSS_AMEND"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_cross_amend",
- "name": "AmendWorkflow",
- "input": {
- "run_id": "{{latestWorkflowRunId}}",
- "script": "phase(\"收尾\");\nreturn { passed: true };"
- }
- }
- }
- },
- {
- "id": "dww-cross-amended",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_cross_amend"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_CROSS_AMEND_REFUSED 这个 run 还在别的会话里跑。"
- }
- },
- {
- "id": "dww-cross-skill",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_cross_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_CROSS_FILL"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_cross_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dww-cross-fill",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_cross_fill"
- ],
- "bodyIncludes": ["E2E_DWW_CROSS_FILL", "toolu_dww_cross_skill"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_cross_fill",
- "name": "FillWorkflowHole",
- "input": {
- "run_id": "{{latestWorkflowRunId}}",
- "hole_id": "hole#21b40fca",
- "script": "phase(\"收集\");\nconst item = await agent(\"收集员\").ask(\"E2E_DWW_TASK_H 列出一个条目。\");\nreturn { groups: [[item]] };"
- }
- }
- }
- },
- {
- "id": "dww-cross-filled",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定 B 会话模型对 A 会话 run 的调用;run id 由测试把真实 id 写进用户消息,所属会话判定与确认窗由产品执行。"
- },
- "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_dww_cross_fill"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_CROSS_FILL_REFUSED 这个留白要回到发起的会话补全。"
- }
- },
- {
- "id": "dww-h-skill",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_dww_h_skill"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_H_START"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_h_skill",
- "name": "Skill",
- "input": {
- "skill": "dynamic-workflows"
- }
- }
- }
- },
- {
- "id": "dww-h-create",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_dww_h_create"
- ],
- "bodyIncludes": ["E2E_DWW_H_START", "toolu_dww_h_skill"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_h_create",
- "name": "CreateWorkflow",
- "input": {
- "name": "E2E 跨会话留白",
- "script": "interface Plan { groups: string[][] }\nphase(\"准备\");\nconst plan = await hole<Plan>(\"决定分组\", \"补全须返回 Plan\");\nphase(\"汇总\");\nreturn plan;"
- }
- }
- }
- },
- {
- "id": "dww-h-own-fill",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_dww_h_own_fill"
- ],
- "lastUserMessageIncludes": ["E2E_DWW_H_OWN_FILL"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_dww_h_own_fill",
- "name": "FillWorkflowHole",
- "input": {
- "run_id": "{{latestWorkflowRunId}}",
- "hole_id": "hole#21b40fca",
- "script": "phase(\"收集\");\nconst item = await agent(\"收集员\").ask(\"E2E_DWW_TASK_H 列出一个条目。\");\nreturn { groups: [[item]] };"
- }
- }
- }
- },
- {
- "id": "dww-h-notified",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_DWW_H_START"],
- "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_H_DONE 工作流已完成。"
- }
- },
- {
- "id": "dww-h-own-filled",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_dww_h_own_fill"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_H_OWN_FILLED 留白已补全。"
- }
- },
- {
- "id": "dww-h-waiting",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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_DWW_H_START"],
- "lastUserMessageIncludes": ["<workflow-hole>"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_H_WAITING 等待补全。"
- }
- },
- {
- "id": "dww-h-created",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定主代理的模型选择;真实 Skill、工作流编译、确认窗、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",
- "<workflow-hole>"
- ],
- "bodyIncludes": ["E2E_DWW_H_START", "toolu_dww_h_create"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_DWW_H_STARTED 工作流已启动。"
- }
- }
- ]
- }
|