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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. {
  2. "version": 1,
  3. "spec": "./test/e2e/conversation-session/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. "text": {
  23. "text": "Context boundaries",
  24. "inputTokens": 32
  25. }
  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-continuation",
  240. "description": "scb-running-continuation",
  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": ["E2E_SCB_PROFILE_", "E2E_SCB_RUNNING_CHILD", "toolu_scb_running_read"],
  252. "bodyExcludes": [
  253. "Generate a concise title",
  254. "CRITICAL: Respond with TEXT ONLY",
  255. "E2E_SCB_SEED:",
  256. "E2E_SCB_RUNNING:",
  257. "E2E_SCB_DELIVER_NEXT"
  258. ]
  259. },
  260. "response": {
  261. "statusCode": 200,
  262. "text": {
  263. "text": "E2E_SCB_RUNNING_CHILD_DONE",
  264. "inputTokens": 32
  265. }
  266. }
  267. },
  268. {
  269. "id": "scb-running-message-next",
  270. "description": "running child consumes the next queued coordinator message",
  271. "metadata": {
  272. "kind": "subagent",
  273. "source": "synthetic",
  274. "timingPolicy": "fast-text",
  275. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  276. },
  277. "maxMatches": 1,
  278. "match": {
  279. "method": "POST",
  280. "pathIncludes": "/messages",
  281. "bodyIncludes": [
  282. "E2E_SCB_PROFILE_",
  283. "E2E_SCB_RUNNING_CHILD",
  284. "toolu_scb_running_read",
  285. "E2E_SCB_DELIVER_RECOVERED",
  286. "E2E_SCB_DELIVER_NEXT"
  287. ],
  288. "bodyExcludes": [
  289. "Generate a concise title",
  290. "CRITICAL: Respond with TEXT ONLY",
  291. "E2E_SCB_SEED:",
  292. "E2E_SCB_RUNNING:"
  293. ]
  294. },
  295. "response": {
  296. "statusCode": 200,
  297. "text": {
  298. "text": "E2E_SCB_RUNNING_CHILD_DONE",
  299. "inputTokens": 32
  300. }
  301. }
  302. },
  303. {
  304. "id": "scb-deliver-running-tool",
  305. "description": "scb-deliver_running-tool",
  306. "metadata": {
  307. "kind": "main",
  308. "source": "synthetic",
  309. "timingPolicy": "fast-text",
  310. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  311. },
  312. "maxMatches": 1,
  313. "match": {
  314. "method": "POST",
  315. "pathIncludes": "/messages",
  316. "lastUserMessageIncludes": ["E2E_SCB_DELIVER_RUNNING:"],
  317. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  318. },
  319. "response": {
  320. "statusCode": 200,
  321. "toolUses": [
  322. {
  323. "id": "toolu_scb_recovered_message",
  324. "name": "SendMessage",
  325. "inputTokens": 32,
  326. "input": {
  327. "to": "{{latestAgentId}}",
  328. "summary": "recovered_message",
  329. "message": "E2E_SCB_DELIVER_RECOVERED"
  330. }
  331. }
  332. ]
  333. }
  334. },
  335. {
  336. "id": "scb-deliver-running-final",
  337. "description": "scb-deliver_running-final",
  338. "metadata": {
  339. "kind": "main",
  340. "source": "synthetic",
  341. "timingPolicy": "fast-text",
  342. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  343. },
  344. "maxMatches": 1,
  345. "match": {
  346. "method": "POST",
  347. "pathIncludes": "/messages",
  348. "bodyIncludes": ["toolu_scb_recovered_message", "E2E_SCB_DELIVER_RUNNING:"],
  349. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  350. },
  351. "response": {
  352. "statusCode": 200,
  353. "text": {
  354. "text": "E2E_SCB_DELIVER_RUNNING_DONE",
  355. "inputTokens": 32
  356. }
  357. }
  358. },
  359. {
  360. "id": "scb-cross-tool",
  361. "description": "scb-cross-tool",
  362. "metadata": {
  363. "kind": "main",
  364. "source": "synthetic",
  365. "timingPolicy": "fast-text",
  366. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  367. },
  368. "maxMatches": 1,
  369. "match": {
  370. "method": "POST",
  371. "pathIncludes": "/messages",
  372. "lastUserMessageIncludes": ["E2E_SCB_CROSS:"],
  373. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  374. },
  375. "response": {
  376. "statusCode": 200,
  377. "toolUses": [
  378. {
  379. "id": "toolu_scb_cross_message",
  380. "name": "SendMessage",
  381. "inputTokens": 32,
  382. "input": {
  383. "to": "{{latestAgentId}}",
  384. "summary": "cross_message",
  385. "message": "E2E_SCB_DELIVER_NEXT"
  386. }
  387. },
  388. {
  389. "id": "toolu_scb_cross_spawn",
  390. "name": "Agent",
  391. "inputTokens": 32,
  392. "input": {
  393. "subagent_type": "e2e-context-reviewer",
  394. "description": "cross_spawn",
  395. "prompt": "E2E_SCB_CROSS_CHILD",
  396. "run_in_background": false
  397. }
  398. }
  399. ]
  400. }
  401. },
  402. {
  403. "id": "scb-cross-final",
  404. "description": "scb-cross-final",
  405. "metadata": {
  406. "kind": "main",
  407. "source": "synthetic",
  408. "timingPolicy": "fast-text",
  409. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  410. },
  411. "maxMatches": 1,
  412. "match": {
  413. "method": "POST",
  414. "pathIncludes": "/messages",
  415. "bodyIncludes": ["toolu_scb_cross_message", "toolu_scb_cross_spawn", "E2E_SCB_CROSS:"],
  416. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  417. },
  418. "response": {
  419. "statusCode": 200,
  420. "text": {
  421. "text": "E2E_SCB_CROSS_DONE",
  422. "inputTokens": 32
  423. }
  424. }
  425. },
  426. {
  427. "id": "scb-cross-child",
  428. "description": "scb-cross-child",
  429. "metadata": {
  430. "kind": "subagent",
  431. "source": "synthetic",
  432. "timingPolicy": "fast-text",
  433. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  434. },
  435. "maxMatches": 1,
  436. "match": {
  437. "method": "POST",
  438. "pathIncludes": "/messages",
  439. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_CROSS_CHILD"],
  440. "bodyExcludes": [
  441. "Generate a concise title",
  442. "CRITICAL: Respond with TEXT ONLY",
  443. "E2E_SCB_SEED:",
  444. "E2E_SCB_RUNNING:"
  445. ]
  446. },
  447. "response": {
  448. "statusCode": 200,
  449. "text": {
  450. "text": "E2E_SCB_CROSS_CHILD_DONE",
  451. "inputTokens": 32
  452. }
  453. }
  454. },
  455. {
  456. "id": "scb-background-notification",
  457. "description": "scb-background-notification",
  458. "metadata": {
  459. "kind": "main",
  460. "source": "synthetic",
  461. "timingPolicy": "fast-text",
  462. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  463. },
  464. "maxMatches": 3,
  465. "match": {
  466. "method": "POST",
  467. "pathIncludes": "/messages",
  468. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  469. "bodyIncludes": ["E2E_SCB_RUNNING_CHILD"],
  470. "bodyExcludes": [
  471. "Generate a concise title",
  472. "CRITICAL: Respond with TEXT ONLY",
  473. "E2E_SCB_STABLE:",
  474. "E2E_SCB_RUNNING_RESUME:"
  475. ]
  476. },
  477. "response": {
  478. "statusCode": 200,
  479. "text": {
  480. "text": "E2E_SCB_BACKGROUND_NOTED",
  481. "inputTokens": 32
  482. }
  483. }
  484. },
  485. {
  486. "id": "scb-running-resume-tool",
  487. "description": "scb-running-resume-tool",
  488. "maxMatches": 1,
  489. "metadata": {
  490. "kind": "main",
  491. "source": "synthetic",
  492. "timingPolicy": "fast-text",
  493. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  494. },
  495. "match": {
  496. "method": "POST",
  497. "pathIncludes": "/messages",
  498. "lastUserMessageIncludes": ["E2E_SCB_RUNNING_RESUME:"],
  499. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  500. },
  501. "response": {
  502. "statusCode": 200,
  503. "toolUse": {
  504. "id": "toolu_scb_running_resume",
  505. "name": "SendMessage",
  506. "inputTokens": 32,
  507. "input": {
  508. "to": "{{latestAgentId}}",
  509. "summary": "Resume completed running child",
  510. "message": "E2E_SCB_RUNNING_RESUME_CHILD"
  511. }
  512. }
  513. }
  514. },
  515. {
  516. "id": "scb-running-resume-child",
  517. "description": "scb-running-resume-child",
  518. "maxMatches": 1,
  519. "metadata": {
  520. "kind": "subagent",
  521. "source": "synthetic",
  522. "timingPolicy": "controlled-stream",
  523. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  524. },
  525. "match": {
  526. "method": "POST",
  527. "pathIncludes": "/messages",
  528. "bodyIncludes": ["E2E_SCB_RUNNING_RESUME_CHILD", "E2E_SCB_PROFILE_"],
  529. "bodyExcludes": [
  530. "Generate a concise title",
  531. "CRITICAL: Respond with TEXT ONLY",
  532. "E2E_SCB_SEED:"
  533. ]
  534. },
  535. "response": {
  536. "statusCode": 200,
  537. "text": {
  538. "text": "E2E_SCB_RUNNING_RESUME_CHILD_DONE",
  539. "inputTokens": 32
  540. },
  541. "delayMs": 1500
  542. }
  543. },
  544. {
  545. "id": "scb-running-resume-final",
  546. "description": "scb-running-resume-final",
  547. "maxMatches": 1,
  548. "metadata": {
  549. "kind": "main",
  550. "source": "synthetic",
  551. "timingPolicy": "fast-text",
  552. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  553. },
  554. "match": {
  555. "method": "POST",
  556. "pathIncludes": "/messages",
  557. "bodyIncludes": ["toolu_scb_running_resume", "resumed it in the background"],
  558. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  559. },
  560. "response": {
  561. "statusCode": 200,
  562. "text": {
  563. "text": "E2E_SCB_RUNNING_RESUME_DONE",
  564. "inputTokens": 32
  565. }
  566. }
  567. },
  568. {
  569. "id": "scb-running-resume-notification",
  570. "description": "scb-running-resume-notification",
  571. "maxMatches": 1,
  572. "metadata": {
  573. "kind": "main",
  574. "source": "synthetic",
  575. "timingPolicy": "fast-text",
  576. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  577. },
  578. "match": {
  579. "method": "POST",
  580. "pathIncludes": "/messages",
  581. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  582. "bodyIncludes": ["E2E_SCB_RUNNING_RESUME_CHILD"],
  583. "bodyExcludes": [
  584. "Generate a concise title",
  585. "CRITICAL: Respond with TEXT ONLY",
  586. "E2E_SCB_STABLE:"
  587. ]
  588. },
  589. "response": {
  590. "statusCode": 200,
  591. "text": {
  592. "text": "E2E_SCB_RUNNING_RESUME_NOTED",
  593. "inputTokens": 32
  594. }
  595. }
  596. },
  597. {
  598. "id": "scb-stable-retry",
  599. "description": "scb-stable-retry",
  600. "metadata": {
  601. "kind": "main",
  602. "source": "synthetic",
  603. "timingPolicy": "controlled-stream",
  604. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  605. },
  606. "maxMatches": 1,
  607. "match": {
  608. "method": "POST",
  609. "pathIncludes": "/messages",
  610. "lastUserMessageIncludes": ["E2E_SCB_STABLE:"],
  611. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  612. },
  613. "response": {
  614. "statusCode": 503,
  615. "body": "{\"error\":{\"type\":\"overloaded_error\",\"message\":\"E2E retry boundary\"}}",
  616. "headers": {
  617. "content-type": "application/json"
  618. },
  619. "delayMs": 25000
  620. }
  621. },
  622. {
  623. "id": "scb-stable-tool",
  624. "description": "scb-stable-tool",
  625. "metadata": {
  626. "kind": "main",
  627. "source": "synthetic",
  628. "timingPolicy": "fast-text",
  629. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  630. },
  631. "maxMatches": 1,
  632. "match": {
  633. "method": "POST",
  634. "pathIncludes": "/messages",
  635. "lastUserMessageIncludes": ["E2E_SCB_STABLE:"],
  636. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  637. },
  638. "response": {
  639. "statusCode": 200,
  640. "toolUses": [
  641. {
  642. "id": "toolu_scb_stable",
  643. "name": "SendMessage",
  644. "inputTokens": 32,
  645. "input": {
  646. "to": "{{latestAgentId}}",
  647. "summary": "stable",
  648. "message": "E2E_SCB_STABLE_CHILD"
  649. }
  650. }
  651. ]
  652. }
  653. },
  654. {
  655. "id": "scb-stable-final",
  656. "description": "scb-stable-final",
  657. "metadata": {
  658. "kind": "main",
  659. "source": "synthetic",
  660. "timingPolicy": "fast-text",
  661. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  662. },
  663. "maxMatches": 1,
  664. "match": {
  665. "method": "POST",
  666. "pathIncludes": "/messages",
  667. "bodyIncludes": ["toolu_scb_stable", "E2E_SCB_STABLE:"],
  668. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  669. },
  670. "response": {
  671. "statusCode": 200,
  672. "text": {
  673. "text": "E2E_SCB_STABLE_DONE",
  674. "inputTokens": 32
  675. }
  676. }
  677. },
  678. {
  679. "id": "scb-stable-child",
  680. "description": "scb-stable-child",
  681. "metadata": {
  682. "kind": "subagent",
  683. "source": "synthetic",
  684. "timingPolicy": "controlled-stream",
  685. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  686. },
  687. "maxMatches": 1,
  688. "match": {
  689. "method": "POST",
  690. "pathIncludes": "/messages",
  691. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_STABLE_CHILD"],
  692. "bodyExcludes": [
  693. "Generate a concise title",
  694. "CRITICAL: Respond with TEXT ONLY",
  695. "E2E_SCB_SEED:",
  696. "E2E_SCB_RUNNING:"
  697. ]
  698. },
  699. "response": {
  700. "statusCode": 200,
  701. "text": {
  702. "text": "E2E_SCB_STABLE_CHILD_DONE",
  703. "inputTokens": 32
  704. },
  705. "delayMs": 1500
  706. }
  707. },
  708. {
  709. "id": "scb-stable-notification",
  710. "description": "scb-stable-notification",
  711. "metadata": {
  712. "kind": "main",
  713. "source": "synthetic",
  714. "timingPolicy": "fast-text",
  715. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  716. },
  717. "maxMatches": 3,
  718. "match": {
  719. "method": "POST",
  720. "pathIncludes": "/messages",
  721. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  722. "bodyIncludes": ["E2E_SCB_STABLE_CHILD"],
  723. "bodyExcludes": [
  724. "Generate a concise title",
  725. "CRITICAL: Respond with TEXT ONLY",
  726. "E2E_SCB_NEXT:"
  727. ]
  728. },
  729. "response": {
  730. "statusCode": 200,
  731. "text": {
  732. "text": "E2E_SCB_STABLE_NOTED",
  733. "inputTokens": 32
  734. }
  735. }
  736. },
  737. {
  738. "id": "scb-next-tool",
  739. "description": "scb-next-tool",
  740. "metadata": {
  741. "kind": "main",
  742. "source": "synthetic",
  743. "timingPolicy": "fast-text",
  744. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  745. },
  746. "maxMatches": 1,
  747. "match": {
  748. "method": "POST",
  749. "pathIncludes": "/messages",
  750. "lastUserMessageIncludes": ["E2E_SCB_NEXT:"],
  751. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  752. },
  753. "response": {
  754. "statusCode": 200,
  755. "toolUses": [
  756. {
  757. "id": "toolu_scb_next",
  758. "name": "SendMessage",
  759. "inputTokens": 32,
  760. "input": {
  761. "to": "{{latestAgentId}}",
  762. "summary": "next",
  763. "message": "E2E_SCB_NEXT_CHILD"
  764. }
  765. }
  766. ]
  767. }
  768. },
  769. {
  770. "id": "scb-next-final",
  771. "description": "scb-next-final",
  772. "metadata": {
  773. "kind": "main",
  774. "source": "synthetic",
  775. "timingPolicy": "fast-text",
  776. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  777. },
  778. "maxMatches": 1,
  779. "match": {
  780. "method": "POST",
  781. "pathIncludes": "/messages",
  782. "bodyIncludes": ["toolu_scb_next", "E2E_SCB_NEXT:"],
  783. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  784. },
  785. "response": {
  786. "statusCode": 200,
  787. "text": {
  788. "text": "E2E_SCB_NEXT_DONE",
  789. "inputTokens": 32
  790. }
  791. }
  792. },
  793. {
  794. "id": "scb-next-child",
  795. "description": "scb-next-child",
  796. "metadata": {
  797. "kind": "subagent",
  798. "source": "synthetic",
  799. "timingPolicy": "controlled-stream",
  800. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  801. },
  802. "maxMatches": 1,
  803. "match": {
  804. "method": "POST",
  805. "pathIncludes": "/messages",
  806. "bodyIncludes": ["E2E_SCB_PROFILE_", "E2E_SCB_NEXT_CHILD"],
  807. "bodyExcludes": [
  808. "Generate a concise title",
  809. "CRITICAL: Respond with TEXT ONLY",
  810. "E2E_SCB_SEED:",
  811. "E2E_SCB_RUNNING:"
  812. ]
  813. },
  814. "response": {
  815. "statusCode": 200,
  816. "text": {
  817. "text": "E2E_SCB_NEXT_CHILD_DONE",
  818. "inputTokens": 32
  819. },
  820. "delayMs": 1500
  821. }
  822. },
  823. {
  824. "id": "scb-next-notification",
  825. "description": "scb-next-notification",
  826. "metadata": {
  827. "kind": "main",
  828. "source": "synthetic",
  829. "timingPolicy": "fast-text",
  830. "syntheticReason": "仅用 provider 回放及测试 stdio 代理控制时序/读取故障;真实 Settings、Host、CLI 和 child runtime 执行,生产代码和依赖不变。"
  831. },
  832. "maxMatches": 3,
  833. "match": {
  834. "method": "POST",
  835. "pathIncludes": "/messages",
  836. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  837. "bodyIncludes": ["E2E_SCB_NEXT_CHILD"],
  838. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  839. },
  840. "response": {
  841. "statusCode": 200,
  842. "text": {
  843. "text": "E2E_SCB_NEXT_NOTED",
  844. "inputTokens": 32
  845. }
  846. }
  847. }
  848. ],
  849. "caseName": "conversation-session-subagent-context-boundaries"
  850. }