conversation-session-v4-load-older.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-load-older",
  4. "spec": "./test/e2e/conversation-session/conversation-session-v4-load-older.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-load-older-title",
  8. "description": "E2E_V4_OLDER_HISTORY_001 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_OLDER_HISTORY_001 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_V4_OLDER_HISTORY_001"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "text": {
  26. "id": "v4-load-older-title",
  27. "inputTokens": 64,
  28. "outputTokens": 8,
  29. "text": "{\"title\":\"V4 Load Older E2E\"}"
  30. }
  31. }
  32. },
  33. {
  34. "id": "v4-load-older-turn1-long-history",
  35. "description": "M5④ R-06 loadOlder 门禁:25 个 completed turn → 75 条 raw projection rows(> 快照尾窗 60),重开会话后顶部历史需经 rows/range 补页可达。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "游标分页断言需要确定的 completed turn 数、raw row 数和可滚动高度;真实 provider 无法稳定复现该窗口边界。"
  41. },
  42. "maxMatches": 25,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": [
  47. "E2E_V4_OLDER_HISTORY_"
  48. ],
  49. "bodyExcludes": [
  50. "Generate a concise title",
  51. "CRITICAL: Respond with TEXT ONLY"
  52. ]
  53. },
  54. "response": {
  55. "statusCode": 200,
  56. "statusMessage": "OK",
  57. "headers": {
  58. "cache-control": "no-cache",
  59. "content-type": "text/event-stream; charset=utf-8"
  60. },
  61. "chunks": [
  62. {
  63. "offsetMs": 0,
  64. "text": "event: message_start\ndata: {\"type\": \"message_start\", \"message\": {\"id\": \"v4-load-older-turn1\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"deepseek-v4-flash\", \"content\": [], \"stop_reason\": null, \"stop_sequence\": null, \"usage\": {\"input_tokens\": 64, \"cache_creation_input_tokens\": 0, \"cache_read_input_tokens\": 0, \"output_tokens\": 0, \"service_tier\": \"standard\"}}}\n\n"
  65. },
  66. {
  67. "offsetMs": 5,
  68. "text": "event: content_block_start\ndata: {\"type\": \"content_block_start\", \"index\": 0, \"content_block\": {\"type\": \"text\", \"text\": \"\"}}\n\n"
  69. },
  70. {
  71. "offsetMs": 10,
  72. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"V4 loadOlder completed turn response:此段保持足够长度以形成稳定的 turn 高度,验证 snapshot 尾窗、rows/range prepend 与顶部历史可达;输入 marker 用于区分每一轮持久历史。\"}}\n\n"
  73. },
  74. {
  75. "offsetMs": 15,
  76. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  77. },
  78. {
  79. "offsetMs": 20,
  80. "text": "event: message_delta\ndata: {\"type\": \"message_delta\", \"delta\": {\"stop_reason\": \"end_turn\", \"stop_sequence\": null}, \"usage\": {\"output_tokens\": 900}}\n\n"
  81. },
  82. {
  83. "offsetMs": 25,
  84. "text": "event: message_stop\ndata: {\"type\": \"message_stop\"}\n\n"
  85. }
  86. ]
  87. }
  88. }
  89. ]
  90. }