conversation-session-v4-fork.json 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-fork",
  4. "spec": "./test/e2e/conversation-session/branching/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": ["Generate a concise title", "E2E_V4_FORK_PARENT"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "text/event-stream; charset=utf-8"
  25. },
  26. "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"
  27. }
  28. },
  29. {
  30. "id": "v4-fork-parent-turn",
  31. "description": "M4 forkAssistant 门禁:父会话首轮完成,产出可 fork 的 assistant 行。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "fork 目标必须是稳定落入 transcript 的 assistant message;用可控快流确保完流稳定。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "lastUserMessageIncludes": ["E2E_V4_FORK_PARENT"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "statusMessage": "OK",
  47. "headers": {
  48. "cache-control": "no-cache",
  49. "content-type": "text/event-stream; charset=utf-8"
  50. },
  51. "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"
  52. }
  53. },
  54. {
  55. "id": "v4-fork-child-followup",
  56. "description": "fork child 后续输入必须沿用 fork-time 思考等级的 provider 请求。",
  57. "metadata": {
  58. "kind": "main",
  59. "timingPolicy": "fast-text",
  60. "source": "synthetic",
  61. "syntheticReason": "child follow-up 用独立 marker 命中,验证 live child runtime 与 provider wire 使用同一 thought level。"
  62. },
  63. "match": {
  64. "method": "POST",
  65. "pathIncludes": "/chat/completions",
  66. "lastUserMessageIncludes": ["E2E_V4_FORK_CHILD"],
  67. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  68. },
  69. "response": {
  70. "statusCode": 200,
  71. "statusMessage": "OK",
  72. "headers": {
  73. "cache-control": "no-cache",
  74. "content-type": "text/event-stream; charset=utf-8"
  75. },
  76. "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"
  77. }
  78. }
  79. ]
  80. }