conversation-session-compact-timeline-projection.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-compact-timeline-projection",
  4. "spec": "./test/e2e/conversation-session/conversation-session-compact-timeline-projection.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-compact-timeline-projection-seed",
  8. "description": "TP auto compact 投影样本:第一轮固定回复并返回接近 1M context 的高 usage,稳定触发下一轮 auto compact。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "TP 的核心断言是 auto compact marker 的 UI 投影位置,真实模型 token usage 不稳定;DeepSeek v4 可能是 1M context,需要合成足够高的 provider usage。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": [
  20. "E2E_COMPACT_TIMELINE_PROJECTION_SEED"
  21. ],
  22. "bodyIncludes": [
  23. "E2E_COMPACT_TIMELINE_PROJECTION_SEED"
  24. ],
  25. "bodyExcludes": [
  26. "Generate a concise title",
  27. "CRITICAL: Respond with TEXT ONLY"
  28. ]
  29. },
  30. "response": {
  31. "statusCode": 200,
  32. "text": {
  33. "id": "upstream-e2e-compact-timeline-projection-seed",
  34. "inputTokens": 950000,
  35. "outputTokens": 12,
  36. "text": "upstream-e2e-seed-ok"
  37. }
  38. }
  39. },
  40. {
  41. "id": "upstream-compact-timeline-projection-pending",
  42. "description": "TP auto compact 完成后继续 pending 主请求的固定回复。",
  43. "metadata": {
  44. "kind": "main",
  45. "timingPolicy": "fast-text",
  46. "source": "synthetic",
  47. "syntheticReason": "该响应只需要稳定产出 pending assistant,核心断言在 compact marker 是否折进同一工作块。"
  48. },
  49. "maxMatches": 1,
  50. "match": {
  51. "method": "POST",
  52. "pathIncludes": "/messages",
  53. "lastUserMessageIncludes": [
  54. "E2E_COMPACT_TIMELINE_PROJECTION_PENDING"
  55. ],
  56. "bodyIncludes": [
  57. "E2E_COMPACT_TIMELINE_PROJECTION_PENDING"
  58. ],
  59. "bodyExcludes": [
  60. "Generate a concise title",
  61. "CRITICAL: Respond with TEXT ONLY"
  62. ]
  63. },
  64. "response": {
  65. "statusCode": 200,
  66. "text": {
  67. "id": "upstream-e2e-compact-timeline-projection-pending",
  68. "inputTokens": 96,
  69. "outputTokens": 12,
  70. "text": "upstream-e2e-pending-ok"
  71. }
  72. }
  73. },
  74. {
  75. "id": "upstream-compact-timeline-projection-manual-split-seed",
  76. "description": "TP manual failed 投影样本前置真实 task 的固定回复。",
  77. "metadata": {
  78. "kind": "main",
  79. "timingPolicy": "fast-text",
  80. "source": "synthetic",
  81. "syntheticReason": "manual failed compact 的核心样本由 renderer store 注入,真实模型只需先创建稳定 task。"
  82. },
  83. "maxMatches": 1,
  84. "match": {
  85. "method": "POST",
  86. "pathIncludes": "/messages",
  87. "lastUserMessageIncludes": [
  88. "E2E_COMPACT_TIMELINE_PROJECTION_MANUAL_SPLIT_SEED"
  89. ],
  90. "bodyIncludes": [
  91. "E2E_COMPACT_TIMELINE_PROJECTION_MANUAL_SPLIT_SEED"
  92. ],
  93. "bodyExcludes": [
  94. "Generate a concise title",
  95. "CRITICAL: Respond with TEXT ONLY"
  96. ]
  97. },
  98. "response": {
  99. "statusCode": 200,
  100. "text": {
  101. "id": "upstream-e2e-compact-timeline-projection-manual-split-seed",
  102. "inputTokens": 96,
  103. "outputTokens": 12,
  104. "text": "upstream-e2e-seed-ok"
  105. }
  106. }
  107. }
  108. ]
  109. }