| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- {
- "version": 1,
- "caseName": "conversation-session-guarded-batch-delete",
- "spec": "./test/e2e/conversation-session/task-management/conversation-session-guarded-batch-delete.test.ts",
- "fixtures": [
- {
- "id": "batch-delete-title",
- "description": "Case-local title",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "隔离标题 sidecar,不依赖真实模型。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_GUARDED_DELETE_"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"batch-delete-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Batch deletion 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": "E2E_GUARDED_DELETE_RECURSIVE-call",
- "description": "Batch deletion tool call",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_RECURSIVE"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_RECURSIVE"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_GUARDED_DELETE_RECURSIVE",
- "name": "Bash",
- "input": {
- "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_RECURSIVE && echo executed > executed && rm -r target"
- }
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_RECURSIVE-final",
- "description": "Batch deletion provider continuation",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_RECURSIVE", "toolu_E2E_GUARDED_DELETE_RECURSIVE"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "E2E_GUARDED_DELETE_RECURSIVE-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_GUARDED_DELETE_RECURSIVE_DONE"
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_BATCH-call",
- "description": "Batch deletion tool call",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_BATCH"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_BATCH"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_GUARDED_DELETE_BATCH",
- "name": "Bash",
- "input": {
- "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_BATCH && echo executed > executed && rm one.txt two.txt"
- }
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_BATCH-final",
- "description": "Batch deletion provider continuation",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_BATCH", "toolu_E2E_GUARDED_DELETE_BATCH"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "E2E_GUARDED_DELETE_BATCH-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_GUARDED_DELETE_BATCH_DONE"
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_GLOB-call",
- "description": "Batch deletion tool call",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_GLOB"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_GLOB"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_GUARDED_DELETE_GLOB",
- "name": "Bash",
- "input": {
- "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_GLOB && echo executed > executed && rm *.txt"
- }
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_GLOB-final",
- "description": "Batch deletion provider continuation",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_GLOB", "toolu_E2E_GUARDED_DELETE_GLOB"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "E2E_GUARDED_DELETE_GLOB-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_GUARDED_DELETE_GLOB_DONE"
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_FIND-call",
- "description": "Batch deletion tool call",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_FIND"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_FIND"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_GUARDED_DELETE_FIND",
- "name": "Bash",
- "input": {
- "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_FIND && echo executed > executed && find target -type f -delete"
- }
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_FIND-final",
- "description": "Batch deletion provider continuation",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_FIND", "toolu_E2E_GUARDED_DELETE_FIND"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "E2E_GUARDED_DELETE_FIND-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_GUARDED_DELETE_FIND_DONE"
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_CLEAN-call",
- "description": "Batch deletion tool call",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_CLEAN"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_GUARDED_DELETE_CLEAN"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_GUARDED_DELETE_CLEAN",
- "name": "Bash",
- "input": {
- "command": "cd .zcode-e2e/conversation-session-guarded-batch-delete/E2E_GUARDED_DELETE_CLEAN && echo executed > executed && git clean -f"
- }
- }
- }
- },
- {
- "id": "E2E_GUARDED_DELETE_CLEAN-final",
- "description": "Batch deletion provider continuation",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 case 自有目录内的删除命令;真实 broker 拒绝并向 provider 返回结果,不依赖模型随机行为。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_GUARDED_DELETE_CLEAN", "toolu_E2E_GUARDED_DELETE_CLEAN"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "E2E_GUARDED_DELETE_CLEAN-final",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "E2E_GUARDED_DELETE_CLEAN_DONE"
- }
- }
- }
- ]
- }
|