conversation-session-v4-fork-edit-branch.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-fork-edit-branch",
  4. "spec": "./test/e2e/conversation-session/branching/conversation-session-v4-fork-edit-branch.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-fork-edit-branch-title",
  8. "description": "E2E_V4_BRANCH_T1 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_BRANCH_T1 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_V4_BRANCH_T1"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "v4-fork-edit-branch-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"V4 Fork Edit Branch E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "v4-branch-edited",
  32. "description": "E09:edit 重跑后的新分支回复。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "edit 重跑需要与原回复可区分的新分支哨兵。"
  38. },
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_V4_BRANCH_EDITED"],
  43. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "text": {
  48. "id": "v4-branch-edited",
  49. "inputTokens": 80,
  50. "outputTokens": 6,
  51. "text": "V4_BRANCH_EDITED_REPLY"
  52. }
  53. }
  54. },
  55. {
  56. "id": "v4-branch-t1",
  57. "description": "E09:原始首轮回复(edit 前的旧分支)。",
  58. "metadata": {
  59. "kind": "main",
  60. "timingPolicy": "fast-text",
  61. "source": "synthetic",
  62. "syntheticReason": "fork-after-edit 需要旧分支哨兵证明 child 未继承被 rewind 的历史。"
  63. },
  64. "match": {
  65. "method": "POST",
  66. "pathIncludes": "/messages",
  67. "lastUserMessageIncludes": ["E2E_V4_BRANCH_T1"],
  68. "lastUserMessageExcludes": ["E2E_V4_BRANCH_EDITED"],
  69. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  70. },
  71. "response": {
  72. "statusCode": 200,
  73. "text": {
  74. "id": "v4-branch-t1",
  75. "inputTokens": 80,
  76. "outputTokens": 6,
  77. "text": "V4_BRANCH_T1_REPLY"
  78. }
  79. }
  80. }
  81. ]
  82. }