conversation-session-subagent-profile-fields.json 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. {
  2. "version": 1,
  3. "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-profile-fields.test.ts",
  4. "fixtures": [
  5. {
  6. "id": "spf-title",
  7. "description": "spf-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  13. },
  14. "maxMatches": 1,
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_SPF_SEED"]
  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\":\"Single field profile refresh\"}],\"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": "spf-seed-tool",
  30. "description": "spf-seed-tool",
  31. "metadata": {
  32. "kind": "main",
  33. "source": "synthetic",
  34. "timingPolicy": "fast-text",
  35. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  36. },
  37. "maxMatches": 1,
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "lastUserMessageIncludes": ["E2E_SPF_SEED:"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "toolUse": {
  47. "id": "toolu_spf_seed",
  48. "name": "Agent",
  49. "inputTokens": 32,
  50. "input": {
  51. "description": "SEED",
  52. "prompt": "E2E_SPF_SEED_CHILD",
  53. "subagent_type": "e2e-profile-fields",
  54. "run_in_background": false
  55. }
  56. }
  57. }
  58. },
  59. {
  60. "id": "spf-seed-child",
  61. "description": "spf-seed-child",
  62. "metadata": {
  63. "kind": "subagent",
  64. "source": "synthetic",
  65. "timingPolicy": "fast-text",
  66. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  67. },
  68. "maxMatches": 1,
  69. "match": {
  70. "method": "POST",
  71. "pathIncludes": "/messages",
  72. "lastUserMessageIncludes": ["E2E_SPF_SEED_CHILD"],
  73. "bodyExcludes": [
  74. "Generate a concise title",
  75. "CRITICAL: Respond with TEXT ONLY",
  76. "E2E_SPF_SEED:"
  77. ]
  78. },
  79. "response": {
  80. "statusCode": 200,
  81. "text": {
  82. "text": "E2E_SPF_SEED_CHILD_DONE",
  83. "inputTokens": 32
  84. }
  85. }
  86. },
  87. {
  88. "id": "spf-seed-final",
  89. "description": "spf-seed-final",
  90. "metadata": {
  91. "kind": "main",
  92. "source": "synthetic",
  93. "timingPolicy": "fast-text",
  94. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  95. },
  96. "maxMatches": 1,
  97. "match": {
  98. "method": "POST",
  99. "pathIncludes": "/messages",
  100. "bodyIncludes": ["toolu_spf_seed", "agentId: agent_", "E2E_SPF_SEED_CHILD_DONE"],
  101. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  102. },
  103. "response": {
  104. "statusCode": 200,
  105. "text": {
  106. "text": "E2E_SPF_SEED_DONE",
  107. "inputTokens": 32
  108. }
  109. }
  110. },
  111. {
  112. "id": "spf-effort-resume-tool",
  113. "description": "spf-effort-resume-tool",
  114. "metadata": {
  115. "kind": "main",
  116. "source": "synthetic",
  117. "timingPolicy": "fast-text",
  118. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  119. },
  120. "maxMatches": 1,
  121. "match": {
  122. "method": "POST",
  123. "pathIncludes": "/messages",
  124. "lastUserMessageIncludes": ["E2E_SPF_EFFORT_RESUME:"],
  125. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  126. },
  127. "response": {
  128. "statusCode": 200,
  129. "toolUse": {
  130. "id": "toolu_spf_effort_resume",
  131. "name": "SendMessage",
  132. "inputTokens": 32,
  133. "input": {
  134. "to": "{{latestAgentId}}",
  135. "summary": "effort only refresh",
  136. "message": "E2E_SPF_EFFORT_RESUME_CHILD"
  137. }
  138. }
  139. }
  140. },
  141. {
  142. "id": "spf-effort-resume-child",
  143. "description": "spf-effort-resume-child",
  144. "metadata": {
  145. "kind": "subagent",
  146. "source": "synthetic",
  147. "timingPolicy": "controlled-stream",
  148. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  149. },
  150. "maxMatches": 1,
  151. "match": {
  152. "method": "POST",
  153. "pathIncludes": "/messages",
  154. "lastUserMessageIncludes": ["E2E_SPF_EFFORT_RESUME_CHILD"],
  155. "bodyExcludes": [
  156. "Generate a concise title",
  157. "CRITICAL: Respond with TEXT ONLY",
  158. "E2E_SPF_SEED:"
  159. ]
  160. },
  161. "response": {
  162. "statusCode": 200,
  163. "text": {
  164. "text": "E2E_SPF_EFFORT_RESUME_CHILD_DONE",
  165. "inputTokens": 32
  166. },
  167. "delayMs": 2000
  168. }
  169. },
  170. {
  171. "id": "spf-effort-resume-final",
  172. "description": "spf-effort-resume-final",
  173. "metadata": {
  174. "kind": "main",
  175. "source": "synthetic",
  176. "timingPolicy": "fast-text",
  177. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  178. },
  179. "maxMatches": 1,
  180. "match": {
  181. "method": "POST",
  182. "pathIncludes": "/messages",
  183. "bodyIncludes": [
  184. "toolu_spf_effort_resume",
  185. "resumed it in the background",
  186. "E2E_SPF_EFFORT_RESUME"
  187. ],
  188. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  189. },
  190. "response": {
  191. "statusCode": 200,
  192. "text": {
  193. "text": "E2E_SPF_EFFORT_RESUME_DONE",
  194. "inputTokens": 32
  195. }
  196. }
  197. },
  198. {
  199. "id": "spf-effort-notification",
  200. "description": "spf-effort-notification",
  201. "metadata": {
  202. "kind": "main",
  203. "source": "synthetic",
  204. "timingPolicy": "fast-text",
  205. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  206. },
  207. "maxMatches": 1,
  208. "match": {
  209. "method": "POST",
  210. "pathIncludes": "/messages",
  211. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  212. "bodyIncludes": ["E2E_SPF_EFFORT_RESUME_CHILD_DONE"],
  213. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  214. },
  215. "response": {
  216. "statusCode": 200,
  217. "text": {
  218. "text": "E2E_SPF_EFFORT_NOTED",
  219. "inputTokens": 32
  220. }
  221. }
  222. },
  223. {
  224. "id": "spf-effort-spawn-tool",
  225. "description": "spf-effort-spawn-tool",
  226. "metadata": {
  227. "kind": "main",
  228. "source": "synthetic",
  229. "timingPolicy": "fast-text",
  230. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  231. },
  232. "maxMatches": 1,
  233. "match": {
  234. "method": "POST",
  235. "pathIncludes": "/messages",
  236. "lastUserMessageIncludes": ["E2E_SPF_EFFORT_SPAWN:"],
  237. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  238. },
  239. "response": {
  240. "statusCode": 200,
  241. "toolUse": {
  242. "id": "toolu_spf_effort_spawn",
  243. "name": "Agent",
  244. "inputTokens": 32,
  245. "input": {
  246. "description": "EFFORT_SPAWN",
  247. "prompt": "E2E_SPF_EFFORT_SPAWN_CHILD",
  248. "subagent_type": "e2e-profile-fields",
  249. "run_in_background": false
  250. }
  251. }
  252. }
  253. },
  254. {
  255. "id": "spf-effort-spawn-child",
  256. "description": "spf-effort-spawn-child",
  257. "metadata": {
  258. "kind": "subagent",
  259. "source": "synthetic",
  260. "timingPolicy": "fast-text",
  261. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  262. },
  263. "maxMatches": 1,
  264. "match": {
  265. "method": "POST",
  266. "pathIncludes": "/messages",
  267. "lastUserMessageIncludes": ["E2E_SPF_EFFORT_SPAWN_CHILD"],
  268. "bodyExcludes": [
  269. "Generate a concise title",
  270. "CRITICAL: Respond with TEXT ONLY",
  271. "E2E_SPF_SEED:"
  272. ]
  273. },
  274. "response": {
  275. "statusCode": 200,
  276. "text": {
  277. "text": "E2E_SPF_EFFORT_SPAWN_CHILD_DONE",
  278. "inputTokens": 32
  279. }
  280. }
  281. },
  282. {
  283. "id": "spf-effort-spawn-final",
  284. "description": "spf-effort-spawn-final",
  285. "metadata": {
  286. "kind": "main",
  287. "source": "synthetic",
  288. "timingPolicy": "fast-text",
  289. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  290. },
  291. "maxMatches": 1,
  292. "match": {
  293. "method": "POST",
  294. "pathIncludes": "/messages",
  295. "bodyIncludes": [
  296. "toolu_spf_effort_spawn",
  297. "agentId: agent_",
  298. "E2E_SPF_EFFORT_SPAWN_CHILD_DONE"
  299. ],
  300. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  301. },
  302. "response": {
  303. "statusCode": 200,
  304. "text": {
  305. "text": "E2E_SPF_EFFORT_SPAWN_DONE",
  306. "inputTokens": 32
  307. }
  308. }
  309. },
  310. {
  311. "id": "spf-prompt-resume-tool",
  312. "description": "spf-prompt-resume-tool",
  313. "metadata": {
  314. "kind": "main",
  315. "source": "synthetic",
  316. "timingPolicy": "fast-text",
  317. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  318. },
  319. "maxMatches": 1,
  320. "match": {
  321. "method": "POST",
  322. "pathIncludes": "/messages",
  323. "lastUserMessageIncludes": ["E2E_SPF_PROMPT_RESUME:"],
  324. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  325. },
  326. "response": {
  327. "statusCode": 200,
  328. "toolUse": {
  329. "id": "toolu_spf_prompt_resume",
  330. "name": "SendMessage",
  331. "inputTokens": 32,
  332. "input": {
  333. "to": "{{latestAgentId}}",
  334. "summary": "prompt only refresh",
  335. "message": "E2E_SPF_PROMPT_RESUME_CHILD"
  336. }
  337. }
  338. }
  339. },
  340. {
  341. "id": "spf-prompt-resume-child",
  342. "description": "spf-prompt-resume-child",
  343. "metadata": {
  344. "kind": "subagent",
  345. "source": "synthetic",
  346. "timingPolicy": "controlled-stream",
  347. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  348. },
  349. "maxMatches": 1,
  350. "match": {
  351. "method": "POST",
  352. "pathIncludes": "/messages",
  353. "lastUserMessageIncludes": ["E2E_SPF_PROMPT_RESUME_CHILD"],
  354. "bodyExcludes": [
  355. "Generate a concise title",
  356. "CRITICAL: Respond with TEXT ONLY",
  357. "E2E_SPF_SEED:"
  358. ]
  359. },
  360. "response": {
  361. "statusCode": 200,
  362. "text": {
  363. "text": "E2E_SPF_PROMPT_RESUME_CHILD_DONE",
  364. "inputTokens": 32
  365. },
  366. "delayMs": 2000
  367. }
  368. },
  369. {
  370. "id": "spf-prompt-resume-final",
  371. "description": "spf-prompt-resume-final",
  372. "metadata": {
  373. "kind": "main",
  374. "source": "synthetic",
  375. "timingPolicy": "fast-text",
  376. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  377. },
  378. "maxMatches": 1,
  379. "match": {
  380. "method": "POST",
  381. "pathIncludes": "/messages",
  382. "bodyIncludes": [
  383. "toolu_spf_prompt_resume",
  384. "resumed it in the background",
  385. "E2E_SPF_PROMPT_RESUME"
  386. ],
  387. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  388. },
  389. "response": {
  390. "statusCode": 200,
  391. "text": {
  392. "text": "E2E_SPF_PROMPT_RESUME_DONE",
  393. "inputTokens": 32
  394. }
  395. }
  396. },
  397. {
  398. "id": "spf-prompt-notification",
  399. "description": "spf-prompt-notification",
  400. "metadata": {
  401. "kind": "main",
  402. "source": "synthetic",
  403. "timingPolicy": "fast-text",
  404. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  405. },
  406. "maxMatches": 1,
  407. "match": {
  408. "method": "POST",
  409. "pathIncludes": "/messages",
  410. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  411. "bodyIncludes": ["E2E_SPF_PROMPT_RESUME_CHILD_DONE"],
  412. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  413. },
  414. "response": {
  415. "statusCode": 200,
  416. "text": {
  417. "text": "E2E_SPF_PROMPT_NOTED",
  418. "inputTokens": 32
  419. }
  420. }
  421. },
  422. {
  423. "id": "spf-prompt-spawn-tool",
  424. "description": "spf-prompt-spawn-tool",
  425. "metadata": {
  426. "kind": "main",
  427. "source": "synthetic",
  428. "timingPolicy": "fast-text",
  429. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  430. },
  431. "maxMatches": 1,
  432. "match": {
  433. "method": "POST",
  434. "pathIncludes": "/messages",
  435. "lastUserMessageIncludes": ["E2E_SPF_PROMPT_SPAWN:"],
  436. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  437. },
  438. "response": {
  439. "statusCode": 200,
  440. "toolUse": {
  441. "id": "toolu_spf_prompt_spawn",
  442. "name": "Agent",
  443. "inputTokens": 32,
  444. "input": {
  445. "description": "PROMPT_SPAWN",
  446. "prompt": "E2E_SPF_PROMPT_SPAWN_CHILD",
  447. "subagent_type": "e2e-profile-fields",
  448. "run_in_background": false
  449. }
  450. }
  451. }
  452. },
  453. {
  454. "id": "spf-prompt-spawn-child",
  455. "description": "spf-prompt-spawn-child",
  456. "metadata": {
  457. "kind": "subagent",
  458. "source": "synthetic",
  459. "timingPolicy": "fast-text",
  460. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  461. },
  462. "maxMatches": 1,
  463. "match": {
  464. "method": "POST",
  465. "pathIncludes": "/messages",
  466. "lastUserMessageIncludes": ["E2E_SPF_PROMPT_SPAWN_CHILD"],
  467. "bodyExcludes": [
  468. "Generate a concise title",
  469. "CRITICAL: Respond with TEXT ONLY",
  470. "E2E_SPF_SEED:"
  471. ]
  472. },
  473. "response": {
  474. "statusCode": 200,
  475. "text": {
  476. "text": "E2E_SPF_PROMPT_SPAWN_CHILD_DONE",
  477. "inputTokens": 32
  478. }
  479. }
  480. },
  481. {
  482. "id": "spf-prompt-spawn-final",
  483. "description": "spf-prompt-spawn-final",
  484. "metadata": {
  485. "kind": "main",
  486. "source": "synthetic",
  487. "timingPolicy": "fast-text",
  488. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  489. },
  490. "maxMatches": 1,
  491. "match": {
  492. "method": "POST",
  493. "pathIncludes": "/messages",
  494. "bodyIncludes": [
  495. "toolu_spf_prompt_spawn",
  496. "agentId: agent_",
  497. "E2E_SPF_PROMPT_SPAWN_CHILD_DONE"
  498. ],
  499. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  500. },
  501. "response": {
  502. "statusCode": 200,
  503. "text": {
  504. "text": "E2E_SPF_PROMPT_SPAWN_DONE",
  505. "inputTokens": 32
  506. }
  507. }
  508. },
  509. {
  510. "id": "spf-tools-resume-tool",
  511. "description": "spf-tools-resume-tool",
  512. "metadata": {
  513. "kind": "main",
  514. "source": "synthetic",
  515. "timingPolicy": "fast-text",
  516. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  517. },
  518. "maxMatches": 1,
  519. "match": {
  520. "method": "POST",
  521. "pathIncludes": "/messages",
  522. "lastUserMessageIncludes": ["E2E_SPF_TOOLS_RESUME:"],
  523. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  524. },
  525. "response": {
  526. "statusCode": 200,
  527. "toolUse": {
  528. "id": "toolu_spf_tools_resume",
  529. "name": "SendMessage",
  530. "inputTokens": 32,
  531. "input": {
  532. "to": "{{latestAgentId}}",
  533. "summary": "tools only refresh",
  534. "message": "E2E_SPF_TOOLS_RESUME_CHILD"
  535. }
  536. }
  537. }
  538. },
  539. {
  540. "id": "spf-tools-resume-child",
  541. "description": "spf-tools-resume-child",
  542. "metadata": {
  543. "kind": "subagent",
  544. "source": "synthetic",
  545. "timingPolicy": "controlled-stream",
  546. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  547. },
  548. "maxMatches": 1,
  549. "match": {
  550. "method": "POST",
  551. "pathIncludes": "/messages",
  552. "lastUserMessageIncludes": ["E2E_SPF_TOOLS_RESUME_CHILD"],
  553. "bodyExcludes": [
  554. "Generate a concise title",
  555. "CRITICAL: Respond with TEXT ONLY",
  556. "E2E_SPF_SEED:"
  557. ]
  558. },
  559. "response": {
  560. "statusCode": 200,
  561. "text": {
  562. "text": "E2E_SPF_TOOLS_RESUME_CHILD_DONE",
  563. "inputTokens": 32
  564. },
  565. "delayMs": 2000
  566. }
  567. },
  568. {
  569. "id": "spf-tools-resume-final",
  570. "description": "spf-tools-resume-final",
  571. "metadata": {
  572. "kind": "main",
  573. "source": "synthetic",
  574. "timingPolicy": "fast-text",
  575. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  576. },
  577. "maxMatches": 1,
  578. "match": {
  579. "method": "POST",
  580. "pathIncludes": "/messages",
  581. "bodyIncludes": [
  582. "toolu_spf_tools_resume",
  583. "resumed it in the background",
  584. "E2E_SPF_TOOLS_RESUME"
  585. ],
  586. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  587. },
  588. "response": {
  589. "statusCode": 200,
  590. "text": {
  591. "text": "E2E_SPF_TOOLS_RESUME_DONE",
  592. "inputTokens": 32
  593. }
  594. }
  595. },
  596. {
  597. "id": "spf-tools-notification",
  598. "description": "spf-tools-notification",
  599. "metadata": {
  600. "kind": "main",
  601. "source": "synthetic",
  602. "timingPolicy": "fast-text",
  603. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  604. },
  605. "maxMatches": 1,
  606. "match": {
  607. "method": "POST",
  608. "pathIncludes": "/messages",
  609. "lastUserMessageIncludes": ["<task-notification>", "<status>completed</status>"],
  610. "bodyIncludes": ["E2E_SPF_TOOLS_RESUME_CHILD_DONE"],
  611. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  612. },
  613. "response": {
  614. "statusCode": 200,
  615. "text": {
  616. "text": "E2E_SPF_TOOLS_NOTED",
  617. "inputTokens": 32
  618. }
  619. }
  620. },
  621. {
  622. "id": "spf-tools-spawn-tool",
  623. "description": "spf-tools-spawn-tool",
  624. "metadata": {
  625. "kind": "main",
  626. "source": "synthetic",
  627. "timingPolicy": "fast-text",
  628. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  629. },
  630. "maxMatches": 1,
  631. "match": {
  632. "method": "POST",
  633. "pathIncludes": "/messages",
  634. "lastUserMessageIncludes": ["E2E_SPF_TOOLS_SPAWN:"],
  635. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  636. },
  637. "response": {
  638. "statusCode": 200,
  639. "toolUse": {
  640. "id": "toolu_spf_tools_spawn",
  641. "name": "Agent",
  642. "inputTokens": 32,
  643. "input": {
  644. "description": "TOOLS_SPAWN",
  645. "prompt": "E2E_SPF_TOOLS_SPAWN_CHILD",
  646. "subagent_type": "e2e-profile-fields",
  647. "run_in_background": false
  648. }
  649. }
  650. }
  651. },
  652. {
  653. "id": "spf-tools-spawn-child",
  654. "description": "spf-tools-spawn-child",
  655. "metadata": {
  656. "kind": "subagent",
  657. "source": "synthetic",
  658. "timingPolicy": "fast-text",
  659. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  660. },
  661. "maxMatches": 1,
  662. "match": {
  663. "method": "POST",
  664. "pathIncludes": "/messages",
  665. "lastUserMessageIncludes": ["E2E_SPF_TOOLS_SPAWN_CHILD"],
  666. "bodyExcludes": [
  667. "Generate a concise title",
  668. "CRITICAL: Respond with TEXT ONLY",
  669. "E2E_SPF_SEED:"
  670. ]
  671. },
  672. "response": {
  673. "statusCode": 200,
  674. "text": {
  675. "text": "E2E_SPF_TOOLS_SPAWN_CHILD_DONE",
  676. "inputTokens": 32
  677. }
  678. }
  679. },
  680. {
  681. "id": "spf-tools-spawn-final",
  682. "description": "spf-tools-spawn-final",
  683. "metadata": {
  684. "kind": "main",
  685. "source": "synthetic",
  686. "timingPolicy": "fast-text",
  687. "syntheticReason": "仅在 provider fixture 固定模型响应,真实 Settings 只修改一个字段;验证 completed resume 与 spawn 的请求、原历史和模型变更记录,不向生产逻辑注入测试状态。"
  688. },
  689. "maxMatches": 1,
  690. "match": {
  691. "method": "POST",
  692. "pathIncludes": "/messages",
  693. "bodyIncludes": [
  694. "toolu_spf_tools_spawn",
  695. "agentId: agent_",
  696. "E2E_SPF_TOOLS_SPAWN_CHILD_DONE"
  697. ],
  698. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  699. },
  700. "response": {
  701. "statusCode": 200,
  702. "text": {
  703. "text": "E2E_SPF_TOOLS_SPAWN_DONE",
  704. "inputTokens": 32
  705. }
  706. }
  707. }
  708. ],
  709. "caseName": "conversation-session-subagent-profile-fields"
  710. }