conversation-session-running-guide-steer.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-running-guide-steer",
  4. "spec": "./test/e2e/conversation-session/conversation-session-running-guide-steer.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-running-guide-timeline-restored",
  8. "description": "P06 cold restore and model capability switch preserve guide history.",
  9. "metadata": {
  10. "kind": "main",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "真实 Electron/CLI 冷恢复后切换 endpoint 能力,检查原始 guide 重新投影且无重复包装。"
  14. },
  15. "maxMatches": 2,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": [
  20. "E2E_GUIDE_TIMELINE_RESTORED"
  21. ],
  22. "bodyExcludes": [
  23. "Generate a concise title",
  24. "CRITICAL: Respond with TEXT ONLY"
  25. ]
  26. },
  27. "response": {
  28. "statusCode": 200,
  29. "text": {
  30. "text": "guide-timeline-restored-ok"
  31. }
  32. }
  33. },
  34. {
  35. "id": "upstream-running-guide-timeline-title",
  36. "description": "P06 title request returns immediately without competing with the three main timeline requests.",
  37. "metadata": {
  38. "kind": "common",
  39. "timingPolicy": "fast-text",
  40. "source": "synthetic",
  41. "syntheticReason": "标题不属于 P06 steer 时序,只需稳定返回,避免后台重试给 provider 记录和运行日志引入噪声。"
  42. },
  43. "maxMatches": 2,
  44. "match": {
  45. "method": "POST",
  46. "pathIncludes": "/messages",
  47. "bodyIncludes": [
  48. "Generate a concise title",
  49. "E2E_GUIDE_TIMELINE_BASE"
  50. ]
  51. },
  52. "response": {
  53. "statusCode": 200,
  54. "statusMessage": "OK",
  55. "headers": {
  56. "content-type": "application/json; charset=utf-8"
  57. },
  58. "body": "{\"id\":\"upstream-e2e-running-guide-timeline-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Guide Timeline E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
  59. }
  60. },
  61. {
  62. "id": "upstream-running-guide-timeline-initial-read",
  63. "description": "P06/GTB-01: delay the initial Read tool_use so guide-1 is admitted before the tool result batch.",
  64. "metadata": {
  65. "kind": "main",
  66. "timingPolicy": "controlled-stream",
  67. "source": "synthetic",
  68. "syntheticReason": "guide-1 必须稳定进入首轮 active request,并等待 Read tool result batch 完整提交后 drain。"
  69. },
  70. "maxMatches": 2,
  71. "match": {
  72. "method": "POST",
  73. "pathIncludes": "/messages",
  74. "bodyIncludes": [
  75. "E2E_GUIDE_TIMELINE_BASE"
  76. ],
  77. "bodyExcludes": [
  78. "E2E_GUIDE_TIMELINE_GUIDE_ONE",
  79. "Generate a concise title",
  80. "CRITICAL: Respond with TEXT ONLY",
  81. "Verify whether the active session goal"
  82. ],
  83. "lastUserMessageIncludes": [
  84. "E2E_GUIDE_TIMELINE_BASE"
  85. ]
  86. },
  87. "response": {
  88. "statusCode": 200,
  89. "delayMs": 5000,
  90. "toolUse": {
  91. "id": "toolu_e2e_running_guide_timeline_read",
  92. "messageId": "msg_e2e_running_guide_timeline_read",
  93. "name": "Read",
  94. "input": {
  95. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  96. }
  97. }
  98. }
  99. },
  100. {
  101. "id": "upstream-running-guide-timeline-middle-text",
  102. "description": "P06/GTB-01: after Read result + guide-1, delay a text-only assistant so guide-2 can be admitted.",
  103. "metadata": {
  104. "kind": "main",
  105. "timingPolicy": "controlled-stream",
  106. "source": "synthetic",
  107. "syntheticReason": "guide-2 需要稳定进入 guide-1 后的 text-only active request,并等待 assistant 正常收口后 drain。 验证来源提示及非用户授权边界。"
  108. },
  109. "maxMatches": 2,
  110. "match": {
  111. "method": "POST",
  112. "pathIncludes": "/messages",
  113. "bodyIncludes": [
  114. "E2E_GUIDE_TIMELINE_BASE",
  115. "E2E_GUIDE_TIMELINE_GUIDE_ONE",
  116. "E2E_READONLY_TOOL_FILE_CONTENT",
  117. "The user sent a new message while you were working:",
  118. "This is how ZCode surfaces messages the user sends mid-turn"
  119. ],
  120. "bodyExcludes": [
  121. "E2E_GUIDE_TIMELINE_GUIDE_TWO",
  122. "Generate a concise title",
  123. "CRITICAL: Respond with TEXT ONLY",
  124. "Verify whether the active session goal"
  125. ],
  126. "lastUserMessageIncludes": [
  127. "E2E_READONLY_TOOL_FILE_CONTENT"
  128. ]
  129. },
  130. "response": {
  131. "statusCode": 200,
  132. "delayMs": 5000,
  133. "text": {
  134. "id": "upstream-e2e-running-guide-timeline-middle",
  135. "inputTokens": 180,
  136. "outputTokens": 16,
  137. "text": "E2E_GUIDE_TIMELINE_MIDDLE_ASSISTANT"
  138. }
  139. }
  140. },
  141. {
  142. "id": "upstream-running-guide-timeline-final-text",
  143. "description": "P06/GTB-04: text-only completion drains guide-2 and the same product turn returns its final assistant.",
  144. "metadata": {
  145. "kind": "main",
  146. "timingPolicy": "fast-text",
  147. "source": "synthetic",
  148. "syntheticReason": "固定最终正文 marker,用于直接断言两条 guide、三个工作段与最终 assistant 的 live DOM 全序。 验证来源提示及非用户授权边界。"
  149. },
  150. "maxMatches": 2,
  151. "match": {
  152. "method": "POST",
  153. "pathIncludes": "/messages",
  154. "bodyIncludes": [
  155. "E2E_GUIDE_TIMELINE_GUIDE_TWO",
  156. "E2E_GUIDE_TIMELINE_MIDDLE_ASSISTANT",
  157. "This is how ZCode surfaces messages the user sends mid-turn"
  158. ],
  159. "bodyExcludes": [
  160. "Generate a concise title",
  161. "CRITICAL: Respond with TEXT ONLY",
  162. "Verify whether the active session goal"
  163. ],
  164. "lastUserMessageIncludes": [
  165. "E2E_GUIDE_TIMELINE_GUIDE_TWO"
  166. ]
  167. },
  168. "response": {
  169. "statusCode": 200,
  170. "text": {
  171. "id": "upstream-e2e-running-guide-timeline-final",
  172. "inputTokens": 200,
  173. "outputTokens": 16,
  174. "text": "guide-timeline-final-assistant-ok"
  175. }
  176. }
  177. },
  178. {
  179. "id": "upstream-running-guide-batch-title",
  180. "description": "M06f title request returns immediately without competing with the main batch requests.",
  181. "metadata": {
  182. "kind": "common",
  183. "timingPolicy": "fast-text",
  184. "source": "synthetic",
  185. "syntheticReason": "标题不属于 M06f guide 时序,只需稳定返回,避免后台重试给 provider 记录引入噪声。"
  186. },
  187. "maxMatches": 1,
  188. "match": {
  189. "method": "POST",
  190. "pathIncludes": "/messages",
  191. "bodyIncludes": [
  192. "Generate a concise title",
  193. "E2E_GUIDE_BATCH_BASE"
  194. ]
  195. },
  196. "response": {
  197. "statusCode": 200,
  198. "statusMessage": "OK",
  199. "headers": {
  200. "content-type": "application/json; charset=utf-8"
  201. },
  202. "body": "{\"id\":\"upstream-e2e-running-guide-batch-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Guide Batch E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
  203. }
  204. },
  205. {
  206. "id": "upstream-running-guide-batch-initial-read",
  207. "description": "M06f: delay the initial Read tool_use so both guides are admitted before the tool result batch.",
  208. "metadata": {
  209. "kind": "main",
  210. "timingPolicy": "controlled-stream",
  211. "source": "synthetic",
  212. "syntheticReason": "两条 guide 必须都在首轮 active request 内进入等待,再在同一个 Read tool result batch 后一起 drain。"
  213. },
  214. "maxMatches": 1,
  215. "match": {
  216. "method": "POST",
  217. "pathIncludes": "/messages",
  218. "bodyIncludes": [
  219. "E2E_GUIDE_BATCH_BASE"
  220. ],
  221. "bodyExcludes": [
  222. "E2E_GUIDE_BATCH_GUIDE_ONE",
  223. "Generate a concise title",
  224. "CRITICAL: Respond with TEXT ONLY",
  225. "Verify whether the active session goal"
  226. ],
  227. "lastUserMessageIncludes": [
  228. "E2E_GUIDE_BATCH_BASE"
  229. ]
  230. },
  231. "response": {
  232. "statusCode": 200,
  233. "delayMs": 8000,
  234. "toolUse": {
  235. "id": "toolu_e2e_running_guide_batch_read",
  236. "messageId": "msg_e2e_running_guide_batch_read",
  237. "name": "Read",
  238. "input": {
  239. "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
  240. }
  241. }
  242. }
  243. },
  244. {
  245. "id": "upstream-running-guide-batch-final-text",
  246. "description": "M06f: the request after the Read batch carries both guides and completes the turn.",
  247. "metadata": {
  248. "kind": "main",
  249. "timingPolicy": "fast-text",
  250. "source": "synthetic",
  251. "syntheticReason": "只在同一请求同时带两条 guide 与 Read 结果时返回最终回答;逐条 drain 不会命中。"
  252. },
  253. "maxMatches": 1,
  254. "match": {
  255. "method": "POST",
  256. "pathIncludes": "/messages",
  257. "bodyIncludes": [
  258. "E2E_GUIDE_BATCH_GUIDE_ONE",
  259. "E2E_GUIDE_BATCH_GUIDE_TWO",
  260. "E2E_READONLY_TOOL_FILE_CONTENT"
  261. ],
  262. "bodyExcludes": [
  263. "Generate a concise title",
  264. "CRITICAL: Respond with TEXT ONLY",
  265. "Verify whether the active session goal"
  266. ]
  267. },
  268. "response": {
  269. "statusCode": 200,
  270. "text": {
  271. "id": "upstream-e2e-running-guide-batch-final",
  272. "inputTokens": 200,
  273. "outputTokens": 16,
  274. "text": "guide-batch-final-assistant-ok"
  275. }
  276. }
  277. },
  278. {
  279. "id": "upstream-running-guide-steer-base-slow-stream",
  280. "description": "M06: guide 模式普通 running steer 的基础慢流。",
  281. "metadata": {
  282. "kind": "main",
  283. "timingPolicy": "controlled-stream",
  284. "source": "synthetic",
  285. "syntheticReason": "guide steer 需要稳定 running 窗口;真实 provider 可能过快完成。"
  286. },
  287. "maxMatches": 1,
  288. "match": {
  289. "method": "POST",
  290. "pathIncludes": "/messages",
  291. "bodyIncludes": [
  292. "E2E_SLOW_STREAM",
  293. "E2E_RUNNING_GUIDE_STEER_BASE"
  294. ],
  295. "bodyExcludes": [
  296. "Generate a concise title",
  297. "CRITICAL: Respond with TEXT ONLY",
  298. "Verify whether the active session goal"
  299. ],
  300. "lastUserMessageIncludes": [
  301. "E2E_RUNNING_GUIDE_STEER_BASE"
  302. ]
  303. },
  304. "response": {
  305. "statusCode": 200,
  306. "statusMessage": "OK",
  307. "headers": {
  308. "cache-control": "no-cache",
  309. "content-type": "text/event-stream; charset=utf-8"
  310. },
  311. "events": [
  312. {
  313. "sequence": 0,
  314. "offsetMs": 0,
  315. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"upstream-e2e-running-guide-steer-base\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":120,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  316. },
  317. {
  318. "sequence": 1,
  319. "offsetMs": 250,
  320. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  321. },
  322. {
  323. "sequence": 2,
  324. "offsetMs": 700,
  325. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"deep\"}}\n\n"
  326. },
  327. {
  328. "sequence": 3,
  329. "offsetMs": 5000,
  330. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"seek-e2e-ok\"}}\n\n"
  331. },
  332. {
  333. "sequence": 4,
  334. "offsetMs": 5100,
  335. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  336. },
  337. {
  338. "sequence": 5,
  339. "offsetMs": 5200,
  340. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":12,\"service_tier\":\"standard\"}}\n\n"
  341. },
  342. {
  343. "sequence": 6,
  344. "offsetMs": 5300,
  345. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  346. }
  347. ]
  348. }
  349. },
  350. {
  351. "id": "upstream-running-guide-goal-seed-active",
  352. "description": "M06d: 在 active goal guide case 前建立稳定 session。",
  353. "metadata": {
  354. "kind": "main",
  355. "timingPolicy": "fast-text",
  356. "source": "synthetic",
  357. "syntheticReason": "goal guide case 只验证已建立 session 上的目标链路,避免 draft prewarm admission 混入状态窗口。"
  358. },
  359. "maxMatches": 1,
  360. "match": {
  361. "method": "POST",
  362. "pathIncludes": "/messages",
  363. "bodyIncludes": [
  364. "E2E_RUNNING_GUIDE_GOAL_SEED_ACTIVE"
  365. ],
  366. "bodyExcludes": [
  367. "Generate a concise title",
  368. "CRITICAL: Respond with TEXT ONLY"
  369. ],
  370. "lastUserMessageIncludes": [
  371. "E2E_RUNNING_GUIDE_GOAL_SEED_ACTIVE"
  372. ]
  373. },
  374. "response": {
  375. "statusCode": 200,
  376. "text": {
  377. "id": "upstream-e2e-running-guide-goal-seed-active",
  378. "inputTokens": 80,
  379. "outputTokens": 8,
  380. "text": "running-guide-goal-seed-ok"
  381. }
  382. }
  383. },
  384. {
  385. "id": "upstream-running-guide-goal-seed-verify",
  386. "description": "H11: 在 goal verifier guide case 前建立稳定 session。",
  387. "metadata": {
  388. "kind": "main",
  389. "timingPolicy": "fast-text",
  390. "source": "synthetic",
  391. "syntheticReason": "goal verifier guide case 只验证已建立 session 上的目标链路,避免 draft prewarm admission 混入状态窗口。"
  392. },
  393. "maxMatches": 1,
  394. "match": {
  395. "method": "POST",
  396. "pathIncludes": "/messages",
  397. "bodyIncludes": [
  398. "E2E_RUNNING_GUIDE_GOAL_SEED_VERIFY"
  399. ],
  400. "bodyExcludes": [
  401. "Generate a concise title",
  402. "CRITICAL: Respond with TEXT ONLY"
  403. ],
  404. "lastUserMessageIncludes": [
  405. "E2E_RUNNING_GUIDE_GOAL_SEED_VERIFY"
  406. ]
  407. },
  408. "response": {
  409. "statusCode": 200,
  410. "text": {
  411. "id": "upstream-e2e-running-guide-goal-seed-verify",
  412. "inputTokens": 80,
  413. "outputTokens": 8,
  414. "text": "running-guide-goal-seed-ok"
  415. }
  416. }
  417. },
  418. {
  419. "id": "upstream-running-guide-goal-active-continuation-slow",
  420. "description": "M06d: guide 模式 active goal running 的 continuation 慢流。",
  421. "metadata": {
  422. "kind": "main",
  423. "timingPolicy": "controlled-stream",
  424. "source": "synthetic",
  425. "syntheticReason": "active goal guide steer 需要稳定 active target running 窗口。"
  426. },
  427. "maxMatches": 1,
  428. "match": {
  429. "method": "POST",
  430. "pathIncludes": "/messages",
  431. "bodyIncludes": [
  432. "E2E_RUNNING_GUIDE_GOAL_ACTIVE",
  433. "Continue working toward the active session goal"
  434. ],
  435. "bodyExcludes": [
  436. "Generate a concise title",
  437. "CRITICAL: Respond with TEXT ONLY",
  438. "Verify whether the active session goal"
  439. ]
  440. },
  441. "response": {
  442. "statusCode": 200,
  443. "delayMs": 5000,
  444. "text": {
  445. "id": "upstream-e2e-running-guide-goal-active",
  446. "inputTokens": 140,
  447. "outputTokens": 12,
  448. "text": "upstream-e2e-ok"
  449. }
  450. }
  451. },
  452. {
  453. "id": "upstream-running-guide-goal-verify-continuation",
  454. "description": "H11: goal verifier queue case 前的 goal continuation。",
  455. "metadata": {
  456. "kind": "main",
  457. "timingPolicy": "fast-text",
  458. "source": "synthetic",
  459. "syntheticReason": "稳定让 guide 文本在 goal verifier running 窗口进入 future queue。"
  460. },
  461. "maxMatches": 1,
  462. "match": {
  463. "method": "POST",
  464. "pathIncludes": "/messages",
  465. "bodyIncludes": [
  466. "E2E_RUNNING_GUIDE_GOAL_VERIFY",
  467. "Continue working toward the active session goal"
  468. ],
  469. "bodyExcludes": [
  470. "Generate a concise title",
  471. "CRITICAL: Respond with TEXT ONLY",
  472. "Verify whether the active session goal"
  473. ]
  474. },
  475. "response": {
  476. "statusCode": 200,
  477. "text": {
  478. "id": "upstream-e2e-running-guide-goal-verify-continuation",
  479. "inputTokens": 140,
  480. "outputTokens": 12,
  481. "text": "upstream-e2e-ok"
  482. }
  483. }
  484. },
  485. {
  486. "id": "upstream-running-guide-goal-verify-delayed",
  487. "description": "H11: delayed goal verifier lets the user queue guide text.",
  488. "metadata": {
  489. "kind": "goal-verifier",
  490. "timingPolicy": "controlled-stream",
  491. "source": "synthetic",
  492. "syntheticReason": "goal verifier queue 需要稳定 verifier running 窗口;真实 verifier 可能过快完成。"
  493. },
  494. "maxMatches": 1,
  495. "match": {
  496. "method": "POST",
  497. "pathIncludes": "/messages",
  498. "bodyIncludes": [
  499. "E2E_RUNNING_GUIDE_GOAL_VERIFY",
  500. "Verify whether the active session goal"
  501. ],
  502. "bodyExcludes": [
  503. "Generate a concise title",
  504. "CRITICAL: Respond with TEXT ONLY"
  505. ]
  506. },
  507. "response": {
  508. "statusCode": 200,
  509. "delayMs": 60000,
  510. "headers": {
  511. "content-type": "application/json; charset=utf-8"
  512. },
  513. "body": "{\"id\":\"upstream-e2e-running-guide-goal-verify-delayed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"passed\\\":true,\\\"reason\\\":\\\"Delayed verifier should be stopped by cleanup.\\\",\\\"nextAction\\\":\\\"\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":220,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  514. }
  515. },
  516. {
  517. "id": "upstream-running-guide-steer-followup-drain",
  518. "description": "M06: 基础 provider batch 完成后,guide follow-up 进入同一 active turn 的下一次请求。",
  519. "metadata": {
  520. "kind": "main",
  521. "timingPolicy": "controlled-stream",
  522. "source": "synthetic",
  523. "syntheticReason": "稳定观察 guide 从 steer queue drain 为真实 user row,并保留后续 running 窗口。"
  524. },
  525. "maxMatches": 1,
  526. "match": {
  527. "method": "POST",
  528. "pathIncludes": "/messages",
  529. "bodyIncludes": [
  530. "E2E_RUNNING_GUIDE_STEER_BASE",
  531. "E2E_RUNNING_GUIDE_STEER_FOLLOWUP"
  532. ],
  533. "bodyExcludes": [
  534. "Generate a concise title",
  535. "CRITICAL: Respond with TEXT ONLY"
  536. ],
  537. "lastUserMessageIncludes": [
  538. "E2E_RUNNING_GUIDE_STEER_FOLLOWUP"
  539. ]
  540. },
  541. "response": {
  542. "statusCode": 200,
  543. "delayMs": 60000,
  544. "text": {
  545. "id": "upstream-e2e-running-guide-steer-followup-drain",
  546. "inputTokens": 150,
  547. "outputTokens": 12,
  548. "text": "upstream-e2e-ok"
  549. }
  550. }
  551. },
  552. {
  553. "id": "upstream-running-guide-goal-steer-drain",
  554. "description": "M06d: active goal continuation batch 完成后,guide steer 在目标链路内继续运行。",
  555. "metadata": {
  556. "kind": "main",
  557. "timingPolicy": "controlled-stream",
  558. "source": "synthetic",
  559. "syntheticReason": "稳定观察 active goal guide drain 为真实 user row,同时保持 active target 与 running 链路。"
  560. },
  561. "maxMatches": 1,
  562. "match": {
  563. "method": "POST",
  564. "pathIncludes": "/messages",
  565. "bodyIncludes": [
  566. "E2E_RUNNING_GUIDE_GOAL_ACTIVE",
  567. "E2E_RUNNING_GUIDE_GOAL_STEER"
  568. ],
  569. "bodyExcludes": [
  570. "Generate a concise title",
  571. "CRITICAL: Respond with TEXT ONLY",
  572. "Verify whether the active session goal"
  573. ],
  574. "lastUserMessageIncludes": [
  575. "E2E_RUNNING_GUIDE_GOAL_STEER"
  576. ]
  577. },
  578. "response": {
  579. "statusCode": 200,
  580. "delayMs": 60000,
  581. "text": {
  582. "id": "upstream-e2e-running-guide-goal-steer-drain",
  583. "inputTokens": 160,
  584. "outputTokens": 12,
  585. "text": "upstream-e2e-ok"
  586. }
  587. }
  588. },
  589. {
  590. "id": "upstream-running-guide-goal-verify-queue-no-standalone-request",
  591. "description": "H11: guide verifier queued text should not create a standalone normal provider request in this observed window.",
  592. "metadata": {
  593. "kind": "main",
  594. "timingPolicy": "fast-text",
  595. "source": "synthetic",
  596. "syntheticReason": "goal verifier 不是普通 active turn;guide 文本应作为 future queue 保留,不应走 immediate provider request。"
  597. },
  598. "maxMatches": 0,
  599. "match": {
  600. "method": "POST",
  601. "pathIncludes": "/messages",
  602. "bodyIncludes": [
  603. "E2E_RUNNING_GUIDE_GOAL_VERIFY_QUEUE"
  604. ],
  605. "bodyExcludes": [
  606. "Generate a concise title",
  607. "CRITICAL: Respond with TEXT ONLY"
  608. ]
  609. },
  610. "response": {
  611. "statusCode": 200,
  612. "text": {
  613. "id": "upstream-e2e-running-guide-goal-verify-queue-should-not-send",
  614. "text": "upstream-e2e-ok"
  615. }
  616. }
  617. }
  618. ]
  619. }