conversation-session-v4-turn-navigator.json 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-turn-navigator",
  4. "spec": "./test/e2e/conversation-session/presentation/conversation-session-v4-turn-navigator.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-turn-navigator-title",
  8. "description": "Turn navigator case 内的标题生成固定响应,避免标题请求误命中主流程 fixture。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题生成不是 TN case 的产品语义,只需要稳定返回,防止 title 请求阻塞主消息流。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_V4_TURN_NAV_1"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "v4-turn-navigator-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"Turn Navigator\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "v4-turn-navigator-tool-call",
  32. "description": "TN02 第一轮先返回 Read tool_use,形成真实 tool result 历史,用于断言 tooltip 不泄露工具正文。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "TN02 需要真实工具历史,但 navigator 摘要只允许 user + assistant text。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_V4_TURN_NAV_1"],
  44. "bodyIncludes": ["E2E_V4_TURN_NAV_1", "TN_TOOL_BACKED_PROMPT"],
  45. "bodyExcludes": [
  46. "Generate a concise title",
  47. "CRITICAL: Respond with TEXT ONLY",
  48. "TN_TOOL_SECRET_CONTENT"
  49. ]
  50. },
  51. "response": {
  52. "statusCode": 200,
  53. "toolUse": {
  54. "id": "toolu_v4_turn_nav_read",
  55. "messageId": "msg_v4_turn_nav_tool_call",
  56. "name": "Read",
  57. "input": {
  58. "file_path": "{{e2eRuntimeRoot}}/conversation-session-v4-turn-navigator/tool-secret.txt"
  59. }
  60. }
  61. }
  62. },
  63. {
  64. "id": "v4-turn-navigator-turn1-final",
  65. "description": "TN02 第一轮 Read tool_result 后固定收尾文本。",
  66. "metadata": {
  67. "kind": "main",
  68. "timingPolicy": "fast-text",
  69. "source": "synthetic",
  70. "syntheticReason": "navigator 摘要需要稳定 assistant text excerpt。"
  71. },
  72. "maxMatches": 1,
  73. "match": {
  74. "method": "POST",
  75. "pathIncludes": "/messages",
  76. "bodyIncludes": ["E2E_V4_TURN_NAV_1", "TN_TOOL_SECRET_CONTENT"],
  77. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  78. },
  79. "response": {
  80. "statusCode": 200,
  81. "text": {
  82. "id": "v4-turn-navigator-turn1-final",
  83. "inputTokens": 160,
  84. "outputTokens": 96,
  85. "text": "TN_ASSISTANT_1_EXCERPT Tool-backed answer is visible in the navigator preview.\n\nTN_FILLER_1_01 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_02 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_03 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_04 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_05 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_06 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_07 This paragraph gives the first turn enough height for scrolling.\nTN_FILLER_1_08 This paragraph gives the first turn enough height for scrolling."
  86. }
  87. }
  88. },
  89. {
  90. "id": "v4-turn-navigator-turn2-final",
  91. "description": "TN01 第二轮固定长文本,达到 2+ 可导航 turn 后显示 rail。",
  92. "metadata": {
  93. "kind": "main",
  94. "timingPolicy": "fast-text",
  95. "source": "synthetic",
  96. "syntheticReason": "TN01/TN03 需要稳定的多轮可滚动历史。"
  97. },
  98. "maxMatches": 1,
  99. "match": {
  100. "method": "POST",
  101. "pathIncludes": "/messages",
  102. "lastUserMessageIncludes": ["E2E_V4_TURN_NAV_2"],
  103. "bodyIncludes": ["E2E_V4_TURN_NAV_2"],
  104. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  105. },
  106. "response": {
  107. "statusCode": 200,
  108. "text": {
  109. "id": "v4-turn-navigator-turn2-final",
  110. "inputTokens": 128,
  111. "outputTokens": 96,
  112. "text": "TN_ASSISTANT_2_EXCERPT Second turn answer for navigator visibility.\n\nTN_FILLER_2_01 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_02 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_03 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_04 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_05 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_06 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_07 This paragraph keeps the timeline scrollable.\nTN_FILLER_2_08 This paragraph keeps the timeline scrollable."
  113. }
  114. }
  115. },
  116. {
  117. "id": "v4-turn-navigator-turn3-final",
  118. "description": "TN03 第三轮固定长文本。",
  119. "metadata": {
  120. "kind": "main",
  121. "timingPolicy": "fast-text",
  122. "source": "synthetic",
  123. "syntheticReason": "TN03 需要点击非当前 bar 并滚动到目标 turn。"
  124. },
  125. "maxMatches": 1,
  126. "match": {
  127. "method": "POST",
  128. "pathIncludes": "/messages",
  129. "lastUserMessageIncludes": ["E2E_V4_TURN_NAV_3"],
  130. "bodyIncludes": ["E2E_V4_TURN_NAV_3"],
  131. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  132. },
  133. "response": {
  134. "statusCode": 200,
  135. "text": {
  136. "id": "v4-turn-navigator-turn3-final",
  137. "inputTokens": 128,
  138. "outputTokens": 96,
  139. "text": "TN_ASSISTANT_3_EXCERPT Third turn answer for navigator click target.\n\nTN_FILLER_3_01 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_02 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_03 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_04 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_05 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_06 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_07 This paragraph keeps the timeline scrollable.\nTN_FILLER_3_08 This paragraph keeps the timeline scrollable."
  140. }
  141. }
  142. },
  143. {
  144. "id": "v4-turn-navigator-turn4-final",
  145. "description": "TN03 第四轮固定长文本,让当前视口停在底部后点击前序 bar。",
  146. "metadata": {
  147. "kind": "main",
  148. "timingPolicy": "fast-text",
  149. "source": "synthetic",
  150. "syntheticReason": "TN03 需要 4+ turn 构造非当前 bar 跳转。"
  151. },
  152. "maxMatches": 1,
  153. "match": {
  154. "method": "POST",
  155. "pathIncludes": "/messages",
  156. "lastUserMessageIncludes": ["E2E_V4_TURN_NAV_4"],
  157. "bodyIncludes": ["E2E_V4_TURN_NAV_4"],
  158. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  159. },
  160. "response": {
  161. "statusCode": 200,
  162. "text": {
  163. "id": "v4-turn-navigator-turn4-final",
  164. "inputTokens": 128,
  165. "outputTokens": 96,
  166. "text": "TN_ASSISTANT_4_EXCERPT Fourth turn answer at the bottom of the timeline.\n\nTN_FILLER_4_01 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_02 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_03 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_04 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_05 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_06 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_07 This paragraph keeps the timeline scrollable.\nTN_FILLER_4_08 This paragraph keeps the timeline scrollable."
  167. }
  168. }
  169. }
  170. ]
  171. }