conversation-session-tool-groups-history-restore.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-tool-groups-history-restore",
  4. "spec": "./test/e2e/conversation-session/conversation-session-tool-groups-history-restore.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "tge05-read",
  8. "description": "TGE05 creates persisted Explore history.",
  9. "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "tool-use", "syntheticReason": "固定三类 group 的最小历史,验证 cold restore。" },
  10. "maxMatches": 1,
  11. "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_TOOL_GROUPS_HISTORY_RESTORE"], "bodyExcludes": ["Generate a concise title", "toolu_tge05_read"] },
  12. "response": { "statusCode": 200, "toolUse": { "id": "toolu_tge05_read", "name": "Read", "input": { "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-groups-history-restore/read.txt" } } }
  13. },
  14. {
  15. "id": "tge05-execute",
  16. "description": "TGE05 creates persisted Terminal history.",
  17. "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "tool-use", "syntheticReason": "固定单命令 Terminal,比较 live 与 cold summary。" },
  18. "maxMatches": 1,
  19. "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_TOOL_GROUPS_HISTORY_RESTORE", "toolu_tge05_read"], "bodyExcludes": ["Generate a concise title", "toolu_tge05_execute"] },
  20. "response": { "statusCode": 200, "toolUse": { "id": "toolu_tge05_execute", "name": "Bash", "input": { "command": "node -e \"console.log('TGE05_EXEC')\"" } } }
  21. },
  22. {
  23. "id": "tge05-write",
  24. "description": "TGE05 creates persisted Changes history.",
  25. "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "tool-use", "syntheticReason": "固定单文件 Changes,比较 live 与 cold summary。" },
  26. "maxMatches": 1,
  27. "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_TOOL_GROUPS_HISTORY_RESTORE", "toolu_tge05_execute"], "bodyExcludes": ["Generate a concise title", "toolu_tge05_write"] },
  28. "response": { "statusCode": 200, "toolUse": { "id": "toolu_tge05_write", "name": "Write", "input": { "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-groups-history-restore/write.ts", "content": "export const restored = true;\n" } } }
  29. },
  30. {
  31. "id": "tge05-final",
  32. "description": "TGE05 completes the persisted history turn.",
  33. "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定 assistant 终态,确保 cold restore 比较同一完整轮。" },
  34. "maxMatches": 1,
  35. "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_TOOL_GROUPS_HISTORY_RESTORE", "toolu_tge05_write"], "bodyExcludes": ["Generate a concise title"] },
  36. "response": { "statusCode": 200, "text": "upstream-e2e-ok" }
  37. }
  38. ]
  39. }