conversation-session-v4-fork.json 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-fork",
  4. "spec": "./test/e2e/conversation-session/conversation-session-v4-fork.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-fork-title",
  8. "description": "E2E_V4_FORK_PARENT 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_FORK_PARENT 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/chat/completions",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_V4_FORK_PARENT"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "statusMessage": "OK",
  26. "headers": {
  27. "content-type": "text/event-stream; charset=utf-8"
  28. },
  29. "body": "data: {\"id\":\"v4-fork-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"V4 Fork E2E\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"v4-fork-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  30. }
  31. },
  32. {
  33. "id": "v4-fork-parent-turn",
  34. "description": "M4 forkAssistant 门禁:父会话首轮完成,产出可 fork 的 assistant 行。",
  35. "metadata": {
  36. "kind": "main",
  37. "timingPolicy": "fast-text",
  38. "source": "synthetic",
  39. "syntheticReason": "fork 目标必须是稳定落入 transcript 的 assistant message;用可控快流确保完流稳定。"
  40. },
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/chat/completions",
  44. "lastUserMessageIncludes": ["E2E_V4_FORK_PARENT"],
  45. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "statusMessage": "OK",
  50. "headers": {
  51. "cache-control": "no-cache",
  52. "content-type": "text/event-stream; charset=utf-8"
  53. },
  54. "body": "data: {\"id\":\"v4-fork-parent\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"V4_FORK_PARENT_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"v4-fork-parent\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  55. }
  56. },
  57. {
  58. "id": "v4-fork-child-followup",
  59. "description": "fork child 后续输入必须沿用 fork-time 思考等级的 provider 请求。",
  60. "metadata": {
  61. "kind": "main",
  62. "timingPolicy": "fast-text",
  63. "source": "synthetic",
  64. "syntheticReason": "child follow-up 用独立 marker 命中,验证 live child runtime 与 provider wire 使用同一 thought level。"
  65. },
  66. "match": {
  67. "method": "POST",
  68. "pathIncludes": "/chat/completions",
  69. "lastUserMessageIncludes": ["E2E_V4_FORK_CHILD"],
  70. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  71. },
  72. "response": {
  73. "statusCode": 200,
  74. "statusMessage": "OK",
  75. "headers": {
  76. "cache-control": "no-cache",
  77. "content-type": "text/event-stream; charset=utf-8"
  78. },
  79. "body": "data: {\"id\":\"v4-fork-child\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"V4_FORK_CHILD_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"v4-fork-child\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  80. }
  81. }
  82. ]
  83. }