conversation-session-v4-compact.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-compact",
  4. "spec": "./test/e2e/conversation-session/context/conversation-session-v4-compact.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-compact-title",
  8. "description": "E2E_V4_COMPACT_SEED 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_COMPACT_SEED 首发会触发默认 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_COMPACT_SEED"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "v4-compact-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"V4 Compact E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "v4-compact-seed",
  32. "description": "M4 /compact 门禁:首轮固定文本回复,形成待压缩的历史。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "compact 需要一段已完成历史;首轮只需稳定产出可被压缩的 assistant 文本。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_V4_COMPACT_SEED"],
  44. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "text": {
  49. "id": "v4-compact-seed",
  50. "inputTokens": 80,
  51. "outputTokens": 8,
  52. "text": "V4_COMPACT_SEED_OK"
  53. }
  54. }
  55. },
  56. {
  57. "id": "v4-compact-success",
  58. "description": "M4 /compact 门禁:手动 compact 的 streaming summary 成功响应。",
  59. "metadata": {
  60. "kind": "main",
  61. "timingPolicy": "fast-text",
  62. "source": "synthetic",
  63. "syntheticReason": "手动 compact 的核心断言是 v4 投影产出 [compact] · completed marker;summary 文案固定即可。"
  64. },
  65. "maxMatches": 1,
  66. "match": {
  67. "method": "POST",
  68. "pathIncludes": "/messages",
  69. "bodyIncludes": [
  70. "E2E_V4_COMPACT_SEED",
  71. "CRITICAL: Respond with TEXT ONLY",
  72. "V4_COMPACT_SEED_OK",
  73. "\"stream\":true"
  74. ],
  75. "bodyExcludes": ["Generate a concise title"]
  76. },
  77. "response": {
  78. "statusCode": 200,
  79. "statusMessage": "OK",
  80. "delayMs": 300,
  81. "text": {
  82. "id": "v4-compact-success",
  83. "inputTokens": 256,
  84. "outputTokens": 64,
  85. "text": "<analysis>V4 manual compact e2e summarized the existing session without tools.</analysis>\n\n<summary>Conversation so far: the user asked the assistant to reply with V4_COMPACT_SEED_OK for the initial verification turn, and the assistant did. No files or tools were required.</summary>"
  86. }
  87. }
  88. }
  89. ]
  90. }