conversation-session-subagent-context-boundaries.json 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  1. {
  2. "version": 1,
  3. "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-context-boundaries.test.ts",
  4. "fixtures": [
  5. {
  6. "id": "scb-title",
  7. "description": "scb-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  13. },
  14. "maxMatches": 5,
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_SCB_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Context boundaries\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
  26. }
  27. },
  28. {
  29. "id": "scb-seed-tool",
  30. "description": "scb-seed-tool",
  31. "metadata": {
  32. "kind": "main",
  33. "source": "synthetic",
  34. "timingPolicy": "fast-text",
  35. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  36. },
  37. "maxMatches": 1,
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "lastUserMessageIncludes": ["E2E_SCB_SEED:"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "toolUses": [
  47. {
  48. "id": "toolu_scb_seed",
  49. "name": "Agent",
  50. "inputTokens": 32,
  51. "input": {
  52. "subagent_type": "e2e-context-reviewer",
  53. "description": "seed",
  54. "prompt": "E2E_SCB_SEED_CHILD",
  55. "run_in_background": false
  56. }
  57. }
  58. ]
  59. }
  60. },
  61. {
  62. "id": "scb-seed-final",
  63. "description": "scb-seed-final",
  64. "metadata": {
  65. "kind": "main",
  66. "source": "synthetic",
  67. "timingPolicy": "fast-text",
  68. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  69. },
  70. "maxMatches": 1,
  71. "match": {
  72. "method": "POST",
  73. "pathIncludes": "/messages",
  74. "bodyIncludes": ["toolu_scb_seed", "E2E_SCB_SEED:"],
  75. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  76. },
  77. "response": {
  78. "statusCode": 200,
  79. "text": {
  80. "text": "E2E_SCB_SEED_DONE",
  81. "inputTokens": 32
  82. }
  83. }
  84. },
  85. {
  86. "id": "scb-seed-child",
  87. "description": "scb-seed-child",
  88. "metadata": {
  89. "kind": "subagent",
  90. "source": "synthetic",
  91. "timingPolicy": "fast-text",
  92. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  93. },
  94. "maxMatches": 1,
  95. "match": {
  96. "method": "POST",
  97. "pathIncludes": "/messages",
  98. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_SEED_CHILD"],
  99. "bodyExcludes": [
  100. "Generate a concise title",
  101. "CRITICAL: Respond with TEXT ONLY",
  102. "E2E_SCB_SEED:",
  103. "E2E_SCB_RUNNING:"
  104. ]
  105. },
  106. "response": {
  107. "statusCode": 200,
  108. "toolUse": {
  109. "id": "toolu_scb_seed_read",
  110. "name": "Read",
  111. "inputTokens": 32,
  112. "input": {
  113. "file_path": "./missing-boundary-fixture.txt"
  114. }
  115. }
  116. }
  117. },
  118. {
  119. "id": "scb-seed-child-final",
  120. "description": "scb-seed-child-final",
  121. "metadata": {
  122. "kind": "subagent",
  123. "source": "synthetic",
  124. "timingPolicy": "fast-text",
  125. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  126. },
  127. "maxMatches": 1,
  128. "match": {
  129. "method": "POST",
  130. "pathIncludes": "/messages",
  131. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_SEED_CHILD", "toolu_scb_seed_read"],
  132. "bodyExcludes": [
  133. "Generate a concise title",
  134. "CRITICAL: Respond with TEXT ONLY",
  135. "E2E_SCB_SEED:",
  136. "E2E_SCB_RUNNING:"
  137. ]
  138. },
  139. "response": {
  140. "statusCode": 200,
  141. "text": {
  142. "text": "E2E_SCB_SEED_CHILD_DONE",
  143. "inputTokens": 32
  144. }
  145. }
  146. },
  147. {
  148. "id": "scb-running-tool",
  149. "description": "scb-running-tool",
  150. "metadata": {
  151. "kind": "main",
  152. "source": "synthetic",
  153. "timingPolicy": "fast-text",
  154. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  155. },
  156. "maxMatches": 1,
  157. "match": {
  158. "method": "POST",
  159. "pathIncludes": "/messages",
  160. "lastUserMessageIncludes": ["E2E_SCB_RUNNING:"],
  161. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  162. },
  163. "response": {
  164. "statusCode": 200,
  165. "toolUses": [
  166. {
  167. "id": "toolu_scb_running",
  168. "name": "Agent",
  169. "inputTokens": 32,
  170. "input": {
  171. "subagent_type": "e2e-context-reviewer",
  172. "description": "running",
  173. "prompt": "E2E_SCB_RUNNING_CHILD",
  174. "run_in_background": true
  175. }
  176. }
  177. ]
  178. }
  179. },
  180. {
  181. "id": "scb-running-final",
  182. "description": "scb-running-final",
  183. "metadata": {
  184. "kind": "main",
  185. "source": "synthetic",
  186. "timingPolicy": "fast-text",
  187. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  188. },
  189. "maxMatches": 1,
  190. "match": {
  191. "method": "POST",
  192. "pathIncludes": "/messages",
  193. "bodyIncludes": ["toolu_scb_running", "E2E_SCB_RUNNING:"],
  194. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  195. },
  196. "response": {
  197. "statusCode": 200,
  198. "text": {
  199. "text": "E2E_SCB_RUNNING_DONE",
  200. "inputTokens": 32
  201. }
  202. }
  203. },
  204. {
  205. "id": "scb-running-child",
  206. "description": "scb-running-child",
  207. "metadata": {
  208. "kind": "subagent",
  209. "source": "synthetic",
  210. "timingPolicy": "controlled-stream",
  211. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  212. },
  213. "maxMatches": 1,
  214. "match": {
  215. "method": "POST",
  216. "pathIncludes": "/messages",
  217. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_RUNNING_CHILD"],
  218. "bodyExcludes": [
  219. "Generate a concise title",
  220. "CRITICAL: Respond with TEXT ONLY",
  221. "E2E_SCB_SEED:",
  222. "E2E_SCB_RUNNING:"
  223. ]
  224. },
  225. "response": {
  226. "statusCode": 200,
  227. "toolUse": {
  228. "id": "toolu_scb_running_read",
  229. "name": "Read",
  230. "inputTokens": 32,
  231. "input": {
  232. "file_path": "./missing-boundary-fixture.txt"
  233. }
  234. },
  235. "delayMs": 60000
  236. }
  237. },
  238. {
  239. "id": "scb-running-message-next",
  240. "description": "running child takes all queued coordinator messages at one boundary",
  241. "metadata": {
  242. "kind": "subagent",
  243. "source": "synthetic",
  244. "timingPolicy": "fast-text",
  245. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  246. },
  247. "maxMatches": 1,
  248. "match": {
  249. "method": "POST",
  250. "pathIncludes": "/messages",
  251. "bodyIncludes": [
  252. "E2E_SCB_PROFILE_",
  253. "E2E_SCB_RUNNING_CHILD",
  254. "toolu_scb_running_read",
  255. "E2E_SCB_DELIVER_RECOVERED",
  256. "E2E_SCB_DELIVER_NEXT"
  257. ],
  258. "bodyExcludes": [
  259. "Generate a concise title",
  260. "CRITICAL: Respond with TEXT ONLY",
  261. "E2E_SCB_SEED:",
  262. "E2E_SCB_RUNNING:"
  263. ]
  264. },
  265. "response": {
  266. "statusCode": 200,
  267. "text": {
  268. "text": "E2E_SCB_RUNNING_CHILD_DONE",
  269. "inputTokens": 32
  270. }
  271. }
  272. },
  273. {
  274. "id": "scb-deliver-running-tool",
  275. "description": "scb-deliver_running-tool",
  276. "metadata": {
  277. "kind": "main",
  278. "source": "synthetic",
  279. "timingPolicy": "fast-text",
  280. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  281. },
  282. "maxMatches": 1,
  283. "match": {
  284. "method": "POST",
  285. "pathIncludes": "/messages",
  286. "lastUserMessageIncludes": ["E2E_SCB_DELIVER_RUNNING:"],
  287. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  288. },
  289. "response": {
  290. "statusCode": 200,
  291. "toolUses": [
  292. {
  293. "id": "toolu_scb_recovered_message",
  294. "name": "SendMessage",
  295. "inputTokens": 32,
  296. "input": {
  297. "to": "{{latestAgentId}}",
  298. "summary": "recovered_message",
  299. "message": "E2E_SCB_DELIVER_RECOVERED"
  300. }
  301. }
  302. ]
  303. }
  304. },
  305. {
  306. "id": "scb-deliver-running-final",
  307. "description": "scb-deliver_running-final",
  308. "metadata": {
  309. "kind": "main",
  310. "source": "synthetic",
  311. "timingPolicy": "fast-text",
  312. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  313. },
  314. "maxMatches": 1,
  315. "match": {
  316. "method": "POST",
  317. "pathIncludes": "/messages",
  318. "bodyIncludes": ["toolu_scb_recovered_message", "E2E_SCB_DELIVER_RUNNING:"],
  319. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  320. },
  321. "response": {
  322. "statusCode": 200,
  323. "text": {
  324. "text": "E2E_SCB_DELIVER_RUNNING_DONE",
  325. "inputTokens": 32
  326. }
  327. }
  328. },
  329. {
  330. "id": "scb-cross-tool",
  331. "description": "scb-cross-tool",
  332. "metadata": {
  333. "kind": "main",
  334. "source": "synthetic",
  335. "timingPolicy": "fast-text",
  336. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  337. },
  338. "maxMatches": 1,
  339. "match": {
  340. "method": "POST",
  341. "pathIncludes": "/messages",
  342. "lastUserMessageIncludes": ["E2E_SCB_CROSS:"],
  343. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  344. },
  345. "response": {
  346. "statusCode": 200,
  347. "toolUses": [
  348. {
  349. "id": "toolu_scb_cross_message",
  350. "name": "SendMessage",
  351. "inputTokens": 32,
  352. "input": {
  353. "to": "{{latestAgentId}}",
  354. "summary": "cross_message",
  355. "message": "E2E_SCB_DELIVER_NEXT"
  356. }
  357. },
  358. {
  359. "id": "toolu_scb_cross_spawn",
  360. "name": "Agent",
  361. "inputTokens": 32,
  362. "input": {
  363. "subagent_type": "e2e-context-reviewer",
  364. "description": "cross_spawn",
  365. "prompt": "E2E_SCB_CROSS_CHILD",
  366. "run_in_background": false
  367. }
  368. }
  369. ]
  370. }
  371. },
  372. {
  373. "id": "scb-cross-final",
  374. "description": "scb-cross-final",
  375. "metadata": {
  376. "kind": "main",
  377. "source": "synthetic",
  378. "timingPolicy": "fast-text",
  379. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  380. },
  381. "maxMatches": 1,
  382. "match": {
  383. "method": "POST",
  384. "pathIncludes": "/messages",
  385. "bodyIncludes": ["toolu_scb_cross_message", "toolu_scb_cross_spawn", "E2E_SCB_CROSS:"],
  386. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  387. },
  388. "response": {
  389. "statusCode": 200,
  390. "text": {
  391. "text": "E2E_SCB_CROSS_DONE",
  392. "inputTokens": 32
  393. }
  394. }
  395. },
  396. {
  397. "id": "scb-cross-child",
  398. "description": "scb-cross-child",
  399. "metadata": {
  400. "kind": "subagent",
  401. "source": "synthetic",
  402. "timingPolicy": "fast-text",
  403. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  404. },
  405. "maxMatches": 1,
  406. "match": {
  407. "method": "POST",
  408. "pathIncludes": "/messages",
  409. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_CROSS_CHILD"],
  410. "bodyExcludes": [
  411. "Generate a concise title",
  412. "CRITICAL: Respond with TEXT ONLY",
  413. "E2E_SCB_SEED:",
  414. "E2E_SCB_RUNNING:"
  415. ]
  416. },
  417. "response": {
  418. "statusCode": 200,
  419. "text": {
  420. "text": "E2E_SCB_CROSS_CHILD_DONE",
  421. "inputTokens": 32
  422. }
  423. }
  424. },
  425. {
  426. "id": "scb-background-notification",
  427. "description": "scb-background-notification",
  428. "metadata": {
  429. "kind": "main",
  430. "source": "synthetic",
  431. "timingPolicy": "fast-text",
  432. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  433. },
  434. "maxMatches": 3,
  435. "match": {
  436. "method": "POST",
  437. "pathIncludes": "/messages",
  438. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  439. "bodyIncludes": ["E2E_SCB_RUNNING_CHILD"],
  440. "bodyExcludes": [
  441. "Generate a concise title",
  442. "CRITICAL: Respond with TEXT ONLY",
  443. "E2E_SCB_STABLE:",
  444. "E2E_SCB_RUNNING_RESUME:"
  445. ]
  446. },
  447. "response": {
  448. "statusCode": 200,
  449. "text": {
  450. "text": "E2E_SCB_BACKGROUND_NOTED",
  451. "inputTokens": 32
  452. }
  453. }
  454. },
  455. {
  456. "id": "scb-running-resume-tool",
  457. "description": "scb-running-resume-tool",
  458. "maxMatches": 1,
  459. "metadata": {
  460. "kind": "main",
  461. "source": "synthetic",
  462. "timingPolicy": "fast-text",
  463. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  464. },
  465. "match": {
  466. "method": "POST",
  467. "pathIncludes": "/messages",
  468. "lastUserMessageIncludes": ["E2E_SCB_RUNNING_RESUME:"],
  469. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  470. },
  471. "response": {
  472. "statusCode": 200,
  473. "toolUse": {
  474. "id": "toolu_scb_running_resume",
  475. "name": "SendMessage",
  476. "inputTokens": 32,
  477. "input": {
  478. "to": "{{latestAgentId}}",
  479. "summary": "Resume completed running child",
  480. "message": "E2E_SCB_RUNNING_RESUME_CHILD"
  481. }
  482. }
  483. }
  484. },
  485. {
  486. "id": "scb-running-resume-child",
  487. "description": "scb-running-resume-child",
  488. "maxMatches": 1,
  489. "metadata": {
  490. "kind": "subagent",
  491. "source": "synthetic",
  492. "timingPolicy": "controlled-stream",
  493. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  494. },
  495. "match": {
  496. "method": "POST",
  497. "pathIncludes": "/messages",
  498. "bodyIncludes": ["E2E_SCB_RUNNING_RESUME_CHILD", "E2E_SCB_PROFILE_"],
  499. "bodyExcludes": [
  500. "Generate a concise title",
  501. "CRITICAL: Respond with TEXT ONLY",
  502. "E2E_SCB_SEED:"
  503. ]
  504. },
  505. "response": {
  506. "statusCode": 200,
  507. "text": {
  508. "text": "E2E_SCB_RUNNING_RESUME_CHILD_DONE",
  509. "inputTokens": 32
  510. },
  511. "delayMs": 1500
  512. }
  513. },
  514. {
  515. "id": "scb-running-resume-final",
  516. "description": "scb-running-resume-final",
  517. "maxMatches": 1,
  518. "metadata": {
  519. "kind": "main",
  520. "source": "synthetic",
  521. "timingPolicy": "fast-text",
  522. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  523. },
  524. "match": {
  525. "method": "POST",
  526. "pathIncludes": "/messages",
  527. "bodyIncludes": ["toolu_scb_running_resume", "resumed it in the background"],
  528. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  529. },
  530. "response": {
  531. "statusCode": 200,
  532. "text": {
  533. "text": "E2E_SCB_RUNNING_RESUME_DONE",
  534. "inputTokens": 32
  535. }
  536. }
  537. },
  538. {
  539. "id": "scb-running-resume-notification",
  540. "description": "scb-running-resume-notification",
  541. "maxMatches": 1,
  542. "metadata": {
  543. "kind": "main",
  544. "source": "synthetic",
  545. "timingPolicy": "fast-text",
  546. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  547. },
  548. "match": {
  549. "method": "POST",
  550. "pathIncludes": "/messages",
  551. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  552. "bodyIncludes": ["E2E_SCB_RUNNING_RESUME_CHILD"],
  553. "bodyExcludes": [
  554. "Generate a concise title",
  555. "CRITICAL: Respond with TEXT ONLY",
  556. "E2E_SCB_STABLE:"
  557. ]
  558. },
  559. "response": {
  560. "statusCode": 200,
  561. "text": {
  562. "text": "E2E_SCB_RUNNING_RESUME_NOTED",
  563. "inputTokens": 32
  564. }
  565. }
  566. },
  567. {
  568. "id": "scb-stable-retry",
  569. "description": "scb-stable-retry",
  570. "metadata": {
  571. "kind": "main",
  572. "source": "synthetic",
  573. "timingPolicy": "controlled-stream",
  574. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  575. },
  576. "maxMatches": 1,
  577. "match": {
  578. "method": "POST",
  579. "pathIncludes": "/messages",
  580. "lastUserMessageIncludes": ["E2E_SCB_STABLE:"],
  581. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  582. },
  583. "response": {
  584. "statusCode": 503,
  585. "body": "{\"error\":{\"type\":\"overloaded_error\",\"message\":\"E2E retry boundary\"}}",
  586. "headers": {
  587. "content-type": "application/json"
  588. },
  589. "delayMs": 25000
  590. }
  591. },
  592. {
  593. "id": "scb-stable-tool",
  594. "description": "scb-stable-tool",
  595. "metadata": {
  596. "kind": "main",
  597. "source": "synthetic",
  598. "timingPolicy": "fast-text",
  599. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  600. },
  601. "maxMatches": 1,
  602. "match": {
  603. "method": "POST",
  604. "pathIncludes": "/messages",
  605. "lastUserMessageIncludes": ["E2E_SCB_STABLE:"],
  606. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  607. },
  608. "response": {
  609. "statusCode": 200,
  610. "toolUses": [
  611. {
  612. "id": "toolu_scb_stable",
  613. "name": "SendMessage",
  614. "inputTokens": 32,
  615. "input": {
  616. "to": "{{latestAgentId}}",
  617. "summary": "stable",
  618. "message": "E2E_SCB_STABLE_CHILD"
  619. }
  620. }
  621. ]
  622. }
  623. },
  624. {
  625. "id": "scb-stable-final",
  626. "description": "scb-stable-final",
  627. "metadata": {
  628. "kind": "main",
  629. "source": "synthetic",
  630. "timingPolicy": "fast-text",
  631. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  632. },
  633. "maxMatches": 1,
  634. "match": {
  635. "method": "POST",
  636. "pathIncludes": "/messages",
  637. "bodyIncludes": ["toolu_scb_stable", "E2E_SCB_STABLE:"],
  638. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  639. },
  640. "response": {
  641. "statusCode": 200,
  642. "text": {
  643. "text": "E2E_SCB_STABLE_DONE",
  644. "inputTokens": 32
  645. }
  646. }
  647. },
  648. {
  649. "id": "scb-stable-child",
  650. "description": "scb-stable-child",
  651. "metadata": {
  652. "kind": "subagent",
  653. "source": "synthetic",
  654. "timingPolicy": "controlled-stream",
  655. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  656. },
  657. "maxMatches": 1,
  658. "match": {
  659. "method": "POST",
  660. "pathIncludes": "/messages",
  661. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_STABLE_CHILD"],
  662. "bodyExcludes": [
  663. "Generate a concise title",
  664. "CRITICAL: Respond with TEXT ONLY",
  665. "E2E_SCB_SEED:",
  666. "E2E_SCB_RUNNING:"
  667. ]
  668. },
  669. "response": {
  670. "statusCode": 200,
  671. "text": {
  672. "text": "E2E_SCB_STABLE_CHILD_DONE",
  673. "inputTokens": 32
  674. },
  675. "delayMs": 1500
  676. }
  677. },
  678. {
  679. "id": "scb-stable-notification",
  680. "description": "scb-stable-notification",
  681. "metadata": {
  682. "kind": "main",
  683. "source": "synthetic",
  684. "timingPolicy": "fast-text",
  685. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  686. },
  687. "maxMatches": 3,
  688. "match": {
  689. "method": "POST",
  690. "pathIncludes": "/messages",
  691. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  692. "bodyIncludes": ["E2E_SCB_STABLE_CHILD"],
  693. "bodyExcludes": [
  694. "Generate a concise title",
  695. "CRITICAL: Respond with TEXT ONLY",
  696. "E2E_SCB_NEXT:"
  697. ]
  698. },
  699. "response": {
  700. "statusCode": 200,
  701. "text": {
  702. "text": "E2E_SCB_STABLE_NOTED",
  703. "inputTokens": 32
  704. }
  705. }
  706. },
  707. {
  708. "id": "scb-next-tool",
  709. "description": "scb-next-tool",
  710. "metadata": {
  711. "kind": "main",
  712. "source": "synthetic",
  713. "timingPolicy": "fast-text",
  714. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  715. },
  716. "maxMatches": 1,
  717. "match": {
  718. "method": "POST",
  719. "pathIncludes": "/messages",
  720. "lastUserMessageIncludes": ["E2E_SCB_NEXT:"],
  721. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  722. },
  723. "response": {
  724. "statusCode": 200,
  725. "toolUses": [
  726. {
  727. "id": "toolu_scb_next",
  728. "name": "SendMessage",
  729. "inputTokens": 32,
  730. "input": {
  731. "to": "{{latestAgentId}}",
  732. "summary": "next",
  733. "message": "E2E_SCB_NEXT_CHILD"
  734. }
  735. }
  736. ]
  737. }
  738. },
  739. {
  740. "id": "scb-next-final",
  741. "description": "scb-next-final",
  742. "metadata": {
  743. "kind": "main",
  744. "source": "synthetic",
  745. "timingPolicy": "fast-text",
  746. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  747. },
  748. "maxMatches": 1,
  749. "match": {
  750. "method": "POST",
  751. "pathIncludes": "/messages",
  752. "bodyIncludes": ["toolu_scb_next", "E2E_SCB_NEXT:"],
  753. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  754. },
  755. "response": {
  756. "statusCode": 200,
  757. "text": {
  758. "text": "E2E_SCB_NEXT_DONE",
  759. "inputTokens": 32
  760. }
  761. }
  762. },
  763. {
  764. "id": "scb-next-child",
  765. "description": "scb-next-child",
  766. "metadata": {
  767. "kind": "subagent",
  768. "source": "synthetic",
  769. "timingPolicy": "controlled-stream",
  770. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  771. },
  772. "maxMatches": 1,
  773. "match": {
  774. "method": "POST",
  775. "pathIncludes": "/messages",
  776. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_NEXT_CHILD"],
  777. "bodyExcludes": [
  778. "Generate a concise title",
  779. "CRITICAL: Respond with TEXT ONLY",
  780. "E2E_SCB_SEED:",
  781. "E2E_SCB_RUNNING:"
  782. ]
  783. },
  784. "response": {
  785. "statusCode": 200,
  786. "text": {
  787. "text": "E2E_SCB_NEXT_CHILD_DONE",
  788. "inputTokens": 32
  789. },
  790. "delayMs": 1500
  791. }
  792. },
  793. {
  794. "id": "scb-next-notification",
  795. "description": "scb-next-notification",
  796. "metadata": {
  797. "kind": "main",
  798. "source": "synthetic",
  799. "timingPolicy": "fast-text",
  800. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  801. },
  802. "maxMatches": 3,
  803. "match": {
  804. "method": "POST",
  805. "pathIncludes": "/messages",
  806. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  807. "bodyIncludes": ["E2E_SCB_NEXT_CHILD"],
  808. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  809. },
  810. "response": {
  811. "statusCode": 200,
  812. "text": {
  813. "text": "E2E_SCB_NEXT_NOTED",
  814. "inputTokens": 32
  815. }
  816. }
  817. }
  818. ],
  819. "caseName": "conversation-session-subagent-context-boundaries"
  820. }