conversation-session-task-groups.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-task-groups",
  4. "spec": "./test/e2e/conversation-session/task-management/conversation-session-task-groups.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-task-groups-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  27. }
  28. },
  29. {
  30. "id": "grp06-first-send",
  31. "description": "First send in a task group",
  32. "metadata": {
  33. "kind": "main",
  34. "source": "synthetic",
  35. "timingPolicy": "fast-text",
  36. "syntheticReason": "Fixed response exercises the real Host/CLI creation and group placement, without testing model content."
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "lastUserMessageIncludes": ["E2E_GROUP_TASK"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "text": {
  47. "id": "grp06",
  48. "inputTokens": 80,
  49. "outputTokens": 12,
  50. "text": "E2E_GROUP_READY"
  51. }
  52. }
  53. },
  54. {
  55. "id": "grp06-pending-placement",
  56. "description": "Accepted task remains navigable while group admission is held",
  57. "metadata": {
  58. "kind": "main",
  59. "source": "synthetic",
  60. "timingPolicy": "fast-text",
  61. "syntheticReason": "Fixed response isolates group admission failure from the real Host/CLI accepted task and directory lifecycle."
  62. },
  63. "maxMatches": 1,
  64. "match": {
  65. "method": "POST",
  66. "lastUserMessageIncludes": ["E2E_GROUP_PENDING"],
  67. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  68. },
  69. "response": {
  70. "statusCode": 200,
  71. "text": {
  72. "id": "grp06-pending",
  73. "inputTokens": 80,
  74. "outputTokens": 12,
  75. "text": "E2E_GROUP_PENDING_READY"
  76. }
  77. }
  78. }
  79. ]
  80. }