conversation-session-subagent-cross-host.json 120 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-subagent-cross-host",
  4. "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-cross-host.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "shi-a-title",
  8. "description": "shi-a-title",
  9. "maxMatches": 1,
  10. "metadata": {
  11. "kind": "common",
  12. "source": "synthetic",
  13. "timingPolicy": "fast-text",
  14. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  15. },
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SHI_A_SEED"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Host A\"}],\"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\"}}"
  27. }
  28. },
  29. {
  30. "id": "shi-b-title",
  31. "description": "shi-b-title",
  32. "maxMatches": 1,
  33. "metadata": {
  34. "kind": "common",
  35. "source": "synthetic",
  36. "timingPolicy": "fast-text",
  37. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  38. },
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "bodyIncludes": ["Generate a concise title", "E2E_SHI_B_SEED"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "headers": {
  47. "content-type": "application/json; charset=utf-8"
  48. },
  49. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Host B\"}],\"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\"}}"
  50. }
  51. },
  52. {
  53. "id": "shi-a-seed",
  54. "description": "shi-a-seed",
  55. "maxMatches": 1,
  56. "metadata": {
  57. "kind": "main",
  58. "source": "synthetic",
  59. "timingPolicy": "fast-text",
  60. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  61. },
  62. "match": {
  63. "method": "POST",
  64. "pathIncludes": "/messages",
  65. "lastUserMessageIncludes": ["E2E_SHI_A_SEED:"],
  66. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  67. },
  68. "response": {
  69. "statusCode": 200,
  70. "text": {
  71. "text": "E2E_SHI_A_SEED_DONE",
  72. "inputTokens": 32
  73. }
  74. }
  75. },
  76. {
  77. "id": "shi-b-seed-tool",
  78. "description": "shi-b-seed-tool",
  79. "maxMatches": 1,
  80. "metadata": {
  81. "kind": "main",
  82. "source": "synthetic",
  83. "timingPolicy": "fast-text",
  84. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  85. },
  86. "match": {
  87. "method": "POST",
  88. "pathIncludes": "/messages",
  89. "lastUserMessageIncludes": ["E2E_SHI_B_SEED:"],
  90. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  91. },
  92. "response": {
  93. "statusCode": 200,
  94. "toolUse": {
  95. "id": "toolu_shi_b_seed",
  96. "name": "Agent",
  97. "inputTokens": 32,
  98. "input": {
  99. "subagent_type": "e2e-host-reviewer",
  100. "description": "SEED",
  101. "prompt": "E2E_SHI_B_SEED_CHILD",
  102. "run_in_background": false
  103. }
  104. }
  105. }
  106. },
  107. {
  108. "id": "shi-b-seed-child",
  109. "description": "shi-b-seed-child",
  110. "maxMatches": 1,
  111. "metadata": {
  112. "kind": "subagent",
  113. "source": "synthetic",
  114. "timingPolicy": "fast-text",
  115. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  116. },
  117. "match": {
  118. "method": "POST",
  119. "pathIncludes": "/messages",
  120. "lastUserMessageIncludes": ["E2E_SHI_B_SEED_CHILD"],
  121. "bodyIncludes": ["E2E_SHI_PROFILE_"],
  122. "bodyExcludes": [
  123. "Generate a concise title",
  124. "CRITICAL: Respond with TEXT ONLY",
  125. "E2E_SHI_B_SEED:"
  126. ]
  127. },
  128. "response": {
  129. "statusCode": 200,
  130. "text": {
  131. "text": "E2E_SHI_B_SEED_CHILD_DONE",
  132. "inputTokens": 32
  133. }
  134. }
  135. },
  136. {
  137. "id": "shi-b-seed-final",
  138. "description": "shi-b-seed-final",
  139. "maxMatches": 1,
  140. "metadata": {
  141. "kind": "main",
  142. "source": "synthetic",
  143. "timingPolicy": "fast-text",
  144. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  145. },
  146. "match": {
  147. "method": "POST",
  148. "pathIncludes": "/messages",
  149. "bodyIncludes": ["toolu_shi_b_seed", "agentId: agent_"],
  150. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  151. },
  152. "response": {
  153. "statusCode": 200,
  154. "text": {
  155. "text": "E2E_SHI_B_SEED_DONE",
  156. "inputTokens": 32
  157. }
  158. }
  159. },
  160. {
  161. "id": "shi-b-hold-tool",
  162. "description": "shi-b-hold-tool",
  163. "maxMatches": 1,
  164. "metadata": {
  165. "kind": "main",
  166. "source": "synthetic",
  167. "timingPolicy": "controlled-stream",
  168. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  169. },
  170. "match": {
  171. "method": "POST",
  172. "pathIncludes": "/messages",
  173. "lastUserMessageIncludes": ["E2E_SHI_B_HOLD:"],
  174. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  175. },
  176. "response": {
  177. "statusCode": 200,
  178. "toolUse": {
  179. "id": "toolu_shi_b_hold",
  180. "name": "SendMessage",
  181. "inputTokens": 32,
  182. "input": {
  183. "to": "{{latestAgentId}}",
  184. "summary": "HOLD",
  185. "message": "E2E_SHI_B_HOLD_CHILD"
  186. }
  187. },
  188. "delayMs": 40000
  189. }
  190. },
  191. {
  192. "id": "shi-b-hold-child",
  193. "description": "shi-b-hold-child",
  194. "maxMatches": 1,
  195. "metadata": {
  196. "kind": "subagent",
  197. "source": "synthetic",
  198. "timingPolicy": "fast-text",
  199. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  200. },
  201. "match": {
  202. "method": "POST",
  203. "pathIncludes": "/messages",
  204. "lastUserMessageIncludes": ["E2E_SHI_B_HOLD_CHILD"],
  205. "bodyIncludes": ["E2E_SHI_PROFILE_"],
  206. "bodyExcludes": [
  207. "Generate a concise title",
  208. "CRITICAL: Respond with TEXT ONLY",
  209. "E2E_SHI_B_HOLD:"
  210. ]
  211. },
  212. "response": {
  213. "statusCode": 200,
  214. "text": {
  215. "text": "E2E_SHI_B_HOLD_CHILD_DONE",
  216. "inputTokens": 32
  217. }
  218. }
  219. },
  220. {
  221. "id": "shi-b-hold-final",
  222. "description": "shi-b-hold-final",
  223. "maxMatches": 1,
  224. "metadata": {
  225. "kind": "main",
  226. "source": "synthetic",
  227. "timingPolicy": "fast-text",
  228. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  229. },
  230. "match": {
  231. "method": "POST",
  232. "pathIncludes": "/messages",
  233. "bodyIncludes": ["\"tool_use_id\":\"toolu_shi_b_hold\""],
  234. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  235. },
  236. "response": {
  237. "statusCode": 200,
  238. "text": {
  239. "text": "E2E_SHI_B_HOLD_DONE",
  240. "inputTokens": 32
  241. }
  242. }
  243. },
  244. {
  245. "id": "shi-b-resume-tool",
  246. "description": "shi-b-resume-tool",
  247. "maxMatches": 1,
  248. "metadata": {
  249. "kind": "main",
  250. "source": "synthetic",
  251. "timingPolicy": "fast-text",
  252. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  253. },
  254. "match": {
  255. "method": "POST",
  256. "pathIncludes": "/messages",
  257. "lastUserMessageIncludes": ["E2E_SHI_B_RESUME:"],
  258. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  259. },
  260. "response": {
  261. "statusCode": 200,
  262. "toolUse": {
  263. "id": "toolu_shi_b_resume",
  264. "name": "SendMessage",
  265. "inputTokens": 32,
  266. "input": {
  267. "to": "{{latestAgentId}}",
  268. "summary": "RESUME",
  269. "message": "E2E_SHI_B_RESUME_CHILD"
  270. }
  271. }
  272. }
  273. },
  274. {
  275. "id": "shi-b-resume-child",
  276. "description": "shi-b-resume-child",
  277. "maxMatches": 1,
  278. "metadata": {
  279. "kind": "subagent",
  280. "source": "synthetic",
  281. "timingPolicy": "fast-text",
  282. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  283. },
  284. "match": {
  285. "method": "POST",
  286. "pathIncludes": "/messages",
  287. "lastUserMessageIncludes": ["E2E_SHI_B_RESUME_CHILD"],
  288. "bodyIncludes": ["E2E_SHI_PROFILE_"],
  289. "bodyExcludes": [
  290. "Generate a concise title",
  291. "CRITICAL: Respond with TEXT ONLY",
  292. "E2E_SHI_B_RESUME:"
  293. ]
  294. },
  295. "response": {
  296. "statusCode": 200,
  297. "text": {
  298. "text": "E2E_SHI_B_RESUME_CHILD_DONE",
  299. "inputTokens": 32
  300. }
  301. }
  302. },
  303. {
  304. "id": "shi-b-resume-final",
  305. "description": "shi-b-resume-final",
  306. "maxMatches": 1,
  307. "metadata": {
  308. "kind": "main",
  309. "source": "synthetic",
  310. "timingPolicy": "fast-text",
  311. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  312. },
  313. "match": {
  314. "method": "POST",
  315. "pathIncludes": "/messages",
  316. "bodyIncludes": ["\"tool_use_id\":\"toolu_shi_b_resume\""],
  317. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  318. },
  319. "response": {
  320. "statusCode": 200,
  321. "text": {
  322. "text": "E2E_SHI_B_RESUME_DONE",
  323. "inputTokens": 32
  324. }
  325. }
  326. },
  327. {
  328. "id": "shi-b-spawn-tool",
  329. "description": "shi-b-spawn-tool",
  330. "maxMatches": 1,
  331. "metadata": {
  332. "kind": "main",
  333. "source": "synthetic",
  334. "timingPolicy": "fast-text",
  335. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  336. },
  337. "match": {
  338. "method": "POST",
  339. "pathIncludes": "/messages",
  340. "lastUserMessageIncludes": ["E2E_SHI_B_SPAWN:"],
  341. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  342. },
  343. "response": {
  344. "statusCode": 200,
  345. "toolUse": {
  346. "id": "toolu_shi_b_spawn",
  347. "name": "Agent",
  348. "inputTokens": 32,
  349. "input": {
  350. "subagent_type": "e2e-host-reviewer",
  351. "description": "SPAWN",
  352. "prompt": "E2E_SHI_B_SPAWN_CHILD",
  353. "run_in_background": false
  354. }
  355. }
  356. }
  357. },
  358. {
  359. "id": "shi-b-spawn-child",
  360. "description": "shi-b-spawn-child",
  361. "maxMatches": 1,
  362. "metadata": {
  363. "kind": "subagent",
  364. "source": "synthetic",
  365. "timingPolicy": "fast-text",
  366. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  367. },
  368. "match": {
  369. "method": "POST",
  370. "pathIncludes": "/messages",
  371. "lastUserMessageIncludes": ["E2E_SHI_B_SPAWN_CHILD"],
  372. "bodyIncludes": ["E2E_SHI_PROFILE_"],
  373. "bodyExcludes": [
  374. "Generate a concise title",
  375. "CRITICAL: Respond with TEXT ONLY",
  376. "E2E_SHI_B_SPAWN:"
  377. ]
  378. },
  379. "response": {
  380. "statusCode": 200,
  381. "text": {
  382. "text": "E2E_SHI_B_SPAWN_CHILD_DONE",
  383. "inputTokens": 32
  384. }
  385. }
  386. },
  387. {
  388. "id": "shi-b-spawn-final",
  389. "description": "shi-b-spawn-final",
  390. "maxMatches": 1,
  391. "metadata": {
  392. "kind": "main",
  393. "source": "synthetic",
  394. "timingPolicy": "fast-text",
  395. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  396. },
  397. "match": {
  398. "method": "POST",
  399. "pathIncludes": "/messages",
  400. "bodyIncludes": ["toolu_shi_b_spawn", "agentId: agent_"],
  401. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  402. },
  403. "response": {
  404. "statusCode": 200,
  405. "text": {
  406. "text": "E2E_SHI_B_SPAWN_DONE",
  407. "inputTokens": 32
  408. }
  409. }
  410. },
  411. {
  412. "id": "shi-b-hold-notification",
  413. "description": "shi-b-hold-notification",
  414. "maxMatches": 1,
  415. "metadata": {
  416. "kind": "main",
  417. "source": "synthetic",
  418. "timingPolicy": "fast-text",
  419. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  420. },
  421. "match": {
  422. "method": "POST",
  423. "pathIncludes": "/messages",
  424. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  425. "lastUserMessageIncludes": [
  426. "<task-notification>",
  427. "<tool-use-id>toolu_shi_b_hold</tool-use-id>",
  428. "E2E_SHI_B_HOLD_CHILD_DONE"
  429. ]
  430. },
  431. "response": {
  432. "statusCode": 200,
  433. "text": {
  434. "text": "E2E_SHI_B_HOLD_SETTLED",
  435. "inputTokens": 32
  436. }
  437. }
  438. },
  439. {
  440. "id": "shi-b-resume-notification",
  441. "description": "shi-b-resume-notification",
  442. "maxMatches": 1,
  443. "metadata": {
  444. "kind": "main",
  445. "source": "synthetic",
  446. "timingPolicy": "fast-text",
  447. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  448. },
  449. "match": {
  450. "method": "POST",
  451. "pathIncludes": "/messages",
  452. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  453. "lastUserMessageIncludes": [
  454. "<task-notification>",
  455. "<tool-use-id>toolu_shi_b_resume</tool-use-id>",
  456. "E2E_SHI_B_RESUME_CHILD_DONE"
  457. ]
  458. },
  459. "response": {
  460. "statusCode": 200,
  461. "text": {
  462. "text": "E2E_SHI_B_RESUME_SETTLED",
  463. "inputTokens": 32
  464. }
  465. }
  466. },
  467. {
  468. "id": "shi-a-next-tool",
  469. "description": "shi-a-next-tool",
  470. "maxMatches": 1,
  471. "metadata": {
  472. "kind": "main",
  473. "source": "synthetic",
  474. "timingPolicy": "fast-text",
  475. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  476. },
  477. "match": {
  478. "method": "POST",
  479. "pathIncludes": "/messages",
  480. "lastUserMessageIncludes": ["E2E_SHI_A_NEXT:"],
  481. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  482. },
  483. "response": {
  484. "statusCode": 200,
  485. "toolUse": {
  486. "id": "toolu_shi_a_next",
  487. "name": "Agent",
  488. "inputTokens": 32,
  489. "input": {
  490. "subagent_type": "e2e-host-reviewer",
  491. "description": "SPAWN",
  492. "prompt": "E2E_SHI_A_NEXT_CHILD",
  493. "run_in_background": false
  494. }
  495. }
  496. }
  497. },
  498. {
  499. "id": "shi-a-next-child",
  500. "description": "shi-a-next-child",
  501. "maxMatches": 1,
  502. "metadata": {
  503. "kind": "subagent",
  504. "source": "synthetic",
  505. "timingPolicy": "fast-text",
  506. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  507. },
  508. "match": {
  509. "method": "POST",
  510. "pathIncludes": "/messages",
  511. "lastUserMessageIncludes": ["E2E_SHI_A_NEXT_CHILD"],
  512. "bodyIncludes": ["E2E_SHI_PROFILE_"],
  513. "bodyExcludes": [
  514. "Generate a concise title",
  515. "CRITICAL: Respond with TEXT ONLY",
  516. "E2E_SHI_A_NEXT:"
  517. ]
  518. },
  519. "response": {
  520. "statusCode": 200,
  521. "text": {
  522. "text": "E2E_SHI_A_NEXT_CHILD_DONE",
  523. "inputTokens": 32
  524. }
  525. }
  526. },
  527. {
  528. "id": "shi-a-next-final",
  529. "description": "shi-a-next-final",
  530. "maxMatches": 1,
  531. "metadata": {
  532. "kind": "main",
  533. "source": "synthetic",
  534. "timingPolicy": "fast-text",
  535. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  536. },
  537. "match": {
  538. "method": "POST",
  539. "pathIncludes": "/messages",
  540. "bodyIncludes": ["toolu_shi_a_next", "agentId: agent_"],
  541. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  542. },
  543. "response": {
  544. "statusCode": 200,
  545. "text": {
  546. "text": "E2E_SHI_A_NEXT_DONE",
  547. "inputTokens": 32
  548. }
  549. }
  550. },
  551. {
  552. "id": "shb-reverse-tool",
  553. "maxMatches": 2,
  554. "metadata": {
  555. "kind": "main",
  556. "source": "synthetic",
  557. "timingPolicy": "fast-text",
  558. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  559. },
  560. "match": {
  561. "method": "POST",
  562. "pathIncludes": "/messages",
  563. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  564. "lastUserMessageIncludes": ["E2E_SHB_REVERSE:"]
  565. },
  566. "response": {
  567. "statusCode": 200,
  568. "toolUse": {
  569. "id": "toolu_shb_reverse_spawn",
  570. "name": "Agent",
  571. "inputTokens": 32,
  572. "input": {
  573. "subagent_type": "e2e-host-reviewer",
  574. "description": "reverse",
  575. "prompt": "E2E_SHB_REVERSE_CHILD",
  576. "run_in_background": false
  577. }
  578. }
  579. }
  580. },
  581. {
  582. "id": "shb-reverse-child",
  583. "maxMatches": 2,
  584. "metadata": {
  585. "kind": "subagent",
  586. "source": "synthetic",
  587. "timingPolicy": "fast-text",
  588. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  589. },
  590. "match": {
  591. "method": "POST",
  592. "pathIncludes": "/messages",
  593. "bodyExcludes": [
  594. "Generate a concise title",
  595. "CRITICAL: Respond with TEXT ONLY",
  596. "E2E_SHB_REVERSE:"
  597. ],
  598. "lastUserMessageIncludes": ["E2E_SHB_REVERSE_CHILD"]
  599. },
  600. "response": {
  601. "statusCode": 200,
  602. "text": {
  603. "text": "E2E_SHB_REVERSE_CHILD_DONE",
  604. "inputTokens": 32
  605. }
  606. }
  607. },
  608. {
  609. "id": "shb-reverse-final",
  610. "maxMatches": 2,
  611. "metadata": {
  612. "kind": "main",
  613. "source": "synthetic",
  614. "timingPolicy": "fast-text",
  615. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  616. },
  617. "match": {
  618. "method": "POST",
  619. "pathIncludes": "/messages",
  620. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  621. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_reverse_spawn\""]
  622. },
  623. "response": {
  624. "statusCode": 200,
  625. "text": {
  626. "text": "E2E_SHB_REVERSE_DONE",
  627. "inputTokens": 32
  628. }
  629. }
  630. },
  631. {
  632. "id": "shb-add-tool",
  633. "maxMatches": 2,
  634. "metadata": {
  635. "kind": "main",
  636. "source": "synthetic",
  637. "timingPolicy": "fast-text",
  638. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  639. },
  640. "match": {
  641. "method": "POST",
  642. "pathIncludes": "/messages",
  643. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  644. "lastUserMessageIncludes": ["E2E_SHB_ADD:"]
  645. },
  646. "response": {
  647. "statusCode": 200,
  648. "toolUse": {
  649. "id": "toolu_shb_add_spawn",
  650. "name": "Agent",
  651. "inputTokens": 32,
  652. "input": {
  653. "subagent_type": "e2e-host-added",
  654. "description": "add",
  655. "prompt": "E2E_SHB_ADD_CHILD",
  656. "run_in_background": false
  657. }
  658. }
  659. }
  660. },
  661. {
  662. "id": "shb-add-child",
  663. "maxMatches": 2,
  664. "metadata": {
  665. "kind": "subagent",
  666. "source": "synthetic",
  667. "timingPolicy": "fast-text",
  668. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  669. },
  670. "match": {
  671. "method": "POST",
  672. "pathIncludes": "/messages",
  673. "bodyExcludes": [
  674. "Generate a concise title",
  675. "CRITICAL: Respond with TEXT ONLY",
  676. "E2E_SHB_ADD:"
  677. ],
  678. "lastUserMessageIncludes": ["E2E_SHB_ADD_CHILD"]
  679. },
  680. "response": {
  681. "statusCode": 200,
  682. "text": {
  683. "text": "E2E_SHB_ADD_CHILD_DONE",
  684. "inputTokens": 32
  685. }
  686. }
  687. },
  688. {
  689. "id": "shb-add-final",
  690. "maxMatches": 2,
  691. "metadata": {
  692. "kind": "main",
  693. "source": "synthetic",
  694. "timingPolicy": "fast-text",
  695. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  696. },
  697. "match": {
  698. "method": "POST",
  699. "pathIncludes": "/messages",
  700. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  701. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_add_spawn\""]
  702. },
  703. "response": {
  704. "statusCode": 200,
  705. "text": {
  706. "text": "E2E_SHB_ADD_DONE",
  707. "inputTokens": 32
  708. }
  709. }
  710. },
  711. {
  712. "id": "shb-update-tool",
  713. "maxMatches": 2,
  714. "metadata": {
  715. "kind": "main",
  716. "source": "synthetic",
  717. "timingPolicy": "fast-text",
  718. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  719. },
  720. "match": {
  721. "method": "POST",
  722. "pathIncludes": "/messages",
  723. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  724. "lastUserMessageIncludes": ["E2E_SHB_UPDATE:"]
  725. },
  726. "response": {
  727. "statusCode": 200,
  728. "toolUse": {
  729. "id": "toolu_shb_update_spawn",
  730. "name": "Agent",
  731. "inputTokens": 32,
  732. "input": {
  733. "subagent_type": "e2e-host-added",
  734. "description": "update",
  735. "prompt": "E2E_SHB_UPDATE_CHILD",
  736. "run_in_background": false
  737. }
  738. }
  739. }
  740. },
  741. {
  742. "id": "shb-update-child",
  743. "maxMatches": 2,
  744. "metadata": {
  745. "kind": "subagent",
  746. "source": "synthetic",
  747. "timingPolicy": "fast-text",
  748. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  749. },
  750. "match": {
  751. "method": "POST",
  752. "pathIncludes": "/messages",
  753. "bodyExcludes": [
  754. "Generate a concise title",
  755. "CRITICAL: Respond with TEXT ONLY",
  756. "E2E_SHB_UPDATE:"
  757. ],
  758. "lastUserMessageIncludes": ["E2E_SHB_UPDATE_CHILD"]
  759. },
  760. "response": {
  761. "statusCode": 200,
  762. "text": {
  763. "text": "E2E_SHB_UPDATE_CHILD_DONE",
  764. "inputTokens": 32
  765. }
  766. }
  767. },
  768. {
  769. "id": "shb-update-final",
  770. "maxMatches": 2,
  771. "metadata": {
  772. "kind": "main",
  773. "source": "synthetic",
  774. "timingPolicy": "fast-text",
  775. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  776. },
  777. "match": {
  778. "method": "POST",
  779. "pathIncludes": "/messages",
  780. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  781. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_update_spawn\""]
  782. },
  783. "response": {
  784. "statusCode": 200,
  785. "text": {
  786. "text": "E2E_SHB_UPDATE_DONE",
  787. "inputTokens": 32
  788. }
  789. }
  790. },
  791. {
  792. "id": "shb-disabled-tool",
  793. "maxMatches": 2,
  794. "metadata": {
  795. "kind": "main",
  796. "source": "synthetic",
  797. "timingPolicy": "fast-text",
  798. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  799. },
  800. "match": {
  801. "method": "POST",
  802. "pathIncludes": "/messages",
  803. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  804. "lastUserMessageIncludes": ["E2E_SHB_DISABLED:"]
  805. },
  806. "response": {
  807. "statusCode": 200,
  808. "toolUses": [
  809. {
  810. "id": "toolu_shb_disabled_spawn",
  811. "name": "Agent",
  812. "inputTokens": 32,
  813. "input": {
  814. "subagent_type": "e2e-host-added",
  815. "description": "disabled",
  816. "prompt": "E2E_SHB_DISABLED_CHILD",
  817. "run_in_background": false
  818. }
  819. },
  820. {
  821. "id": "toolu_shb_disabled_resume",
  822. "name": "SendMessage",
  823. "inputTokens": 32,
  824. "input": {
  825. "to": "{{latestAgentId}}",
  826. "message": "E2E_SHB_DISABLED_RESUME",
  827. "summary": "disabled"
  828. }
  829. }
  830. ]
  831. }
  832. },
  833. {
  834. "id": "shb-disabled-final",
  835. "maxMatches": 2,
  836. "metadata": {
  837. "kind": "main",
  838. "source": "synthetic",
  839. "timingPolicy": "fast-text",
  840. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  841. },
  842. "match": {
  843. "method": "POST",
  844. "pathIncludes": "/messages",
  845. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  846. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_disabled_resume\""]
  847. },
  848. "response": {
  849. "statusCode": 200,
  850. "text": {
  851. "text": "E2E_SHB_DISABLED_DONE",
  852. "inputTokens": 32
  853. }
  854. }
  855. },
  856. {
  857. "id": "shb-renamed_disabled-tool",
  858. "maxMatches": 2,
  859. "metadata": {
  860. "kind": "main",
  861. "source": "synthetic",
  862. "timingPolicy": "fast-text",
  863. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  864. },
  865. "match": {
  866. "method": "POST",
  867. "pathIncludes": "/messages",
  868. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  869. "lastUserMessageIncludes": ["E2E_SHB_RENAMED_DISABLED:"]
  870. },
  871. "response": {
  872. "statusCode": 200,
  873. "toolUses": [
  874. {
  875. "id": "toolu_shb_renamed_disabled_spawn",
  876. "name": "Agent",
  877. "inputTokens": 32,
  878. "input": {
  879. "subagent_type": "e2e-host-renamed",
  880. "description": "renamed_disabled",
  881. "prompt": "E2E_SHB_RENAMED_DISABLED_CHILD",
  882. "run_in_background": false
  883. }
  884. },
  885. {
  886. "id": "toolu_shb_renamed_disabled_resume",
  887. "name": "SendMessage",
  888. "inputTokens": 32,
  889. "input": {
  890. "to": "{{latestAgentId}}",
  891. "message": "E2E_SHB_RENAMED_DISABLED_RESUME",
  892. "summary": "renamed_disabled"
  893. }
  894. }
  895. ]
  896. }
  897. },
  898. {
  899. "id": "shb-renamed_disabled-final",
  900. "maxMatches": 2,
  901. "metadata": {
  902. "kind": "main",
  903. "source": "synthetic",
  904. "timingPolicy": "fast-text",
  905. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  906. },
  907. "match": {
  908. "method": "POST",
  909. "pathIncludes": "/messages",
  910. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  911. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_renamed_disabled_resume\""]
  912. },
  913. "response": {
  914. "statusCode": 200,
  915. "text": {
  916. "text": "E2E_SHB_RENAMED_DISABLED_DONE",
  917. "inputTokens": 32
  918. }
  919. }
  920. },
  921. {
  922. "id": "shb-reenabled-tool",
  923. "maxMatches": 2,
  924. "metadata": {
  925. "kind": "main",
  926. "source": "synthetic",
  927. "timingPolicy": "fast-text",
  928. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  929. },
  930. "match": {
  931. "method": "POST",
  932. "pathIncludes": "/messages",
  933. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  934. "lastUserMessageIncludes": ["E2E_SHB_REENABLED:"]
  935. },
  936. "response": {
  937. "statusCode": 200,
  938. "toolUse": {
  939. "id": "toolu_shb_reenabled_spawn",
  940. "name": "Agent",
  941. "inputTokens": 32,
  942. "input": {
  943. "subagent_type": "e2e-host-renamed",
  944. "description": "reenabled",
  945. "prompt": "E2E_SHB_REENABLED_CHILD",
  946. "run_in_background": false
  947. }
  948. }
  949. }
  950. },
  951. {
  952. "id": "shb-reenabled-child",
  953. "maxMatches": 2,
  954. "metadata": {
  955. "kind": "subagent",
  956. "source": "synthetic",
  957. "timingPolicy": "fast-text",
  958. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  959. },
  960. "match": {
  961. "method": "POST",
  962. "pathIncludes": "/messages",
  963. "bodyExcludes": [
  964. "Generate a concise title",
  965. "CRITICAL: Respond with TEXT ONLY",
  966. "E2E_SHB_REENABLED:"
  967. ],
  968. "lastUserMessageIncludes": ["E2E_SHB_REENABLED_CHILD"]
  969. },
  970. "response": {
  971. "statusCode": 200,
  972. "text": {
  973. "text": "E2E_SHB_REENABLED_CHILD_DONE",
  974. "inputTokens": 32
  975. }
  976. }
  977. },
  978. {
  979. "id": "shb-reenabled-final",
  980. "maxMatches": 2,
  981. "metadata": {
  982. "kind": "main",
  983. "source": "synthetic",
  984. "timingPolicy": "fast-text",
  985. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  986. },
  987. "match": {
  988. "method": "POST",
  989. "pathIncludes": "/messages",
  990. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  991. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_reenabled_spawn\""]
  992. },
  993. "response": {
  994. "statusCode": 200,
  995. "text": {
  996. "text": "E2E_SHB_REENABLED_DONE",
  997. "inputTokens": 32
  998. }
  999. }
  1000. },
  1001. {
  1002. "id": "shb-renamed_old-tool",
  1003. "maxMatches": 2,
  1004. "metadata": {
  1005. "kind": "main",
  1006. "source": "synthetic",
  1007. "timingPolicy": "fast-text",
  1008. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1009. },
  1010. "match": {
  1011. "method": "POST",
  1012. "pathIncludes": "/messages",
  1013. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1014. "lastUserMessageIncludes": ["E2E_SHB_RENAMED_OLD:"]
  1015. },
  1016. "response": {
  1017. "statusCode": 200,
  1018. "toolUses": [
  1019. {
  1020. "id": "toolu_shb_renamed_old_spawn",
  1021. "name": "Agent",
  1022. "inputTokens": 32,
  1023. "input": {
  1024. "subagent_type": "e2e-host-renamed",
  1025. "description": "renamed_old",
  1026. "prompt": "E2E_SHB_RENAMED_OLD_CHILD",
  1027. "run_in_background": false
  1028. }
  1029. },
  1030. {
  1031. "id": "toolu_shb_renamed_old_resume",
  1032. "name": "SendMessage",
  1033. "inputTokens": 32,
  1034. "input": {
  1035. "to": "{{latestAgentId}}",
  1036. "message": "E2E_SHB_RENAMED_OLD_RESUME",
  1037. "summary": "renamed_old"
  1038. }
  1039. }
  1040. ]
  1041. }
  1042. },
  1043. {
  1044. "id": "shb-renamed_old-final",
  1045. "maxMatches": 2,
  1046. "metadata": {
  1047. "kind": "main",
  1048. "source": "synthetic",
  1049. "timingPolicy": "fast-text",
  1050. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1051. },
  1052. "match": {
  1053. "method": "POST",
  1054. "pathIncludes": "/messages",
  1055. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1056. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_renamed_old_resume\""]
  1057. },
  1058. "response": {
  1059. "statusCode": 200,
  1060. "text": {
  1061. "text": "E2E_SHB_RENAMED_OLD_DONE",
  1062. "inputTokens": 32
  1063. }
  1064. }
  1065. },
  1066. {
  1067. "id": "shb-renamed_new-tool",
  1068. "maxMatches": 2,
  1069. "metadata": {
  1070. "kind": "main",
  1071. "source": "synthetic",
  1072. "timingPolicy": "fast-text",
  1073. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1074. },
  1075. "match": {
  1076. "method": "POST",
  1077. "pathIncludes": "/messages",
  1078. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1079. "lastUserMessageIncludes": ["E2E_SHB_RENAMED_NEW:"]
  1080. },
  1081. "response": {
  1082. "statusCode": 200,
  1083. "toolUse": {
  1084. "id": "toolu_shb_renamed_new_spawn",
  1085. "name": "Agent",
  1086. "inputTokens": 32,
  1087. "input": {
  1088. "subagent_type": "e2e-host-final",
  1089. "description": "renamed_new",
  1090. "prompt": "E2E_SHB_RENAMED_NEW_CHILD",
  1091. "run_in_background": false
  1092. }
  1093. }
  1094. }
  1095. },
  1096. {
  1097. "id": "shb-renamed_new-child",
  1098. "maxMatches": 2,
  1099. "metadata": {
  1100. "kind": "subagent",
  1101. "source": "synthetic",
  1102. "timingPolicy": "fast-text",
  1103. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1104. },
  1105. "match": {
  1106. "method": "POST",
  1107. "pathIncludes": "/messages",
  1108. "bodyExcludes": [
  1109. "Generate a concise title",
  1110. "CRITICAL: Respond with TEXT ONLY",
  1111. "E2E_SHB_RENAMED_NEW:"
  1112. ],
  1113. "lastUserMessageIncludes": ["E2E_SHB_RENAMED_NEW_CHILD"]
  1114. },
  1115. "response": {
  1116. "statusCode": 200,
  1117. "text": {
  1118. "text": "E2E_SHB_RENAMED_NEW_CHILD_DONE",
  1119. "inputTokens": 32
  1120. }
  1121. }
  1122. },
  1123. {
  1124. "id": "shb-renamed_new-final",
  1125. "maxMatches": 2,
  1126. "metadata": {
  1127. "kind": "main",
  1128. "source": "synthetic",
  1129. "timingPolicy": "fast-text",
  1130. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1131. },
  1132. "match": {
  1133. "method": "POST",
  1134. "pathIncludes": "/messages",
  1135. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1136. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_renamed_new_spawn\""]
  1137. },
  1138. "response": {
  1139. "statusCode": 200,
  1140. "text": {
  1141. "text": "E2E_SHB_RENAMED_NEW_DONE",
  1142. "inputTokens": 32
  1143. }
  1144. }
  1145. },
  1146. {
  1147. "id": "shb-deleted-tool",
  1148. "maxMatches": 2,
  1149. "metadata": {
  1150. "kind": "main",
  1151. "source": "synthetic",
  1152. "timingPolicy": "fast-text",
  1153. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1154. },
  1155. "match": {
  1156. "method": "POST",
  1157. "pathIncludes": "/messages",
  1158. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1159. "lastUserMessageIncludes": ["E2E_SHB_DELETED:"]
  1160. },
  1161. "response": {
  1162. "statusCode": 200,
  1163. "toolUses": [
  1164. {
  1165. "id": "toolu_shb_deleted_spawn",
  1166. "name": "Agent",
  1167. "inputTokens": 32,
  1168. "input": {
  1169. "subagent_type": "e2e-host-final",
  1170. "description": "deleted",
  1171. "prompt": "E2E_SHB_DELETED_CHILD",
  1172. "run_in_background": false
  1173. }
  1174. },
  1175. {
  1176. "id": "toolu_shb_deleted_resume",
  1177. "name": "SendMessage",
  1178. "inputTokens": 32,
  1179. "input": {
  1180. "to": "{{latestAgentId}}",
  1181. "message": "E2E_SHB_DELETED_RESUME",
  1182. "summary": "deleted"
  1183. }
  1184. }
  1185. ]
  1186. }
  1187. },
  1188. {
  1189. "id": "shb-deleted-final",
  1190. "maxMatches": 2,
  1191. "metadata": {
  1192. "kind": "main",
  1193. "source": "synthetic",
  1194. "timingPolicy": "fast-text",
  1195. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1196. },
  1197. "match": {
  1198. "method": "POST",
  1199. "pathIncludes": "/messages",
  1200. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1201. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_deleted_resume\""]
  1202. },
  1203. "response": {
  1204. "statusCode": 200,
  1205. "text": {
  1206. "text": "E2E_SHB_DELETED_DONE",
  1207. "inputTokens": 32
  1208. }
  1209. }
  1210. },
  1211. {
  1212. "id": "shb-override_explore-tool",
  1213. "maxMatches": 2,
  1214. "metadata": {
  1215. "kind": "main",
  1216. "source": "synthetic",
  1217. "timingPolicy": "fast-text",
  1218. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1219. },
  1220. "match": {
  1221. "method": "POST",
  1222. "pathIncludes": "/messages",
  1223. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1224. "lastUserMessageIncludes": ["E2E_SHB_OVERRIDE_EXPLORE:"]
  1225. },
  1226. "response": {
  1227. "statusCode": 200,
  1228. "toolUse": {
  1229. "id": "toolu_shb_override_explore_spawn",
  1230. "name": "Agent",
  1231. "inputTokens": 32,
  1232. "input": {
  1233. "subagent_type": "Explore",
  1234. "description": "override_explore",
  1235. "prompt": "E2E_SHB_OVERRIDE_EXPLORE_CHILD",
  1236. "run_in_background": false
  1237. }
  1238. }
  1239. }
  1240. },
  1241. {
  1242. "id": "shb-override_explore-child",
  1243. "maxMatches": 2,
  1244. "metadata": {
  1245. "kind": "subagent",
  1246. "source": "synthetic",
  1247. "timingPolicy": "fast-text",
  1248. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1249. },
  1250. "match": {
  1251. "method": "POST",
  1252. "pathIncludes": "/messages",
  1253. "bodyExcludes": [
  1254. "Generate a concise title",
  1255. "CRITICAL: Respond with TEXT ONLY",
  1256. "E2E_SHB_OVERRIDE_EXPLORE:"
  1257. ],
  1258. "lastUserMessageIncludes": ["E2E_SHB_OVERRIDE_EXPLORE_CHILD"]
  1259. },
  1260. "response": {
  1261. "statusCode": 200,
  1262. "text": {
  1263. "text": "E2E_SHB_OVERRIDE_EXPLORE_CHILD_DONE",
  1264. "inputTokens": 32
  1265. }
  1266. }
  1267. },
  1268. {
  1269. "id": "shb-override_explore-final",
  1270. "maxMatches": 2,
  1271. "metadata": {
  1272. "kind": "main",
  1273. "source": "synthetic",
  1274. "timingPolicy": "fast-text",
  1275. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1276. },
  1277. "match": {
  1278. "method": "POST",
  1279. "pathIncludes": "/messages",
  1280. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1281. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_override_explore_spawn\""]
  1282. },
  1283. "response": {
  1284. "statusCode": 200,
  1285. "text": {
  1286. "text": "E2E_SHB_OVERRIDE_EXPLORE_DONE",
  1287. "inputTokens": 32
  1288. }
  1289. }
  1290. },
  1291. {
  1292. "id": "shb-clear_explore-tool",
  1293. "maxMatches": 2,
  1294. "metadata": {
  1295. "kind": "main",
  1296. "source": "synthetic",
  1297. "timingPolicy": "fast-text",
  1298. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1299. },
  1300. "match": {
  1301. "method": "POST",
  1302. "pathIncludes": "/messages",
  1303. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1304. "lastUserMessageIncludes": ["E2E_SHB_CLEAR_EXPLORE:"]
  1305. },
  1306. "response": {
  1307. "statusCode": 200,
  1308. "toolUse": {
  1309. "id": "toolu_shb_clear_explore_spawn",
  1310. "name": "Agent",
  1311. "inputTokens": 32,
  1312. "input": {
  1313. "subagent_type": "Explore",
  1314. "description": "clear_explore",
  1315. "prompt": "E2E_SHB_CLEAR_EXPLORE_CHILD",
  1316. "run_in_background": false
  1317. }
  1318. }
  1319. }
  1320. },
  1321. {
  1322. "id": "shb-clear_explore-child",
  1323. "maxMatches": 2,
  1324. "metadata": {
  1325. "kind": "subagent",
  1326. "source": "synthetic",
  1327. "timingPolicy": "fast-text",
  1328. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1329. },
  1330. "match": {
  1331. "method": "POST",
  1332. "pathIncludes": "/messages",
  1333. "bodyExcludes": [
  1334. "Generate a concise title",
  1335. "CRITICAL: Respond with TEXT ONLY",
  1336. "E2E_SHB_CLEAR_EXPLORE:"
  1337. ],
  1338. "lastUserMessageIncludes": ["E2E_SHB_CLEAR_EXPLORE_CHILD"]
  1339. },
  1340. "response": {
  1341. "statusCode": 200,
  1342. "text": {
  1343. "text": "E2E_SHB_CLEAR_EXPLORE_CHILD_DONE",
  1344. "inputTokens": 32
  1345. }
  1346. }
  1347. },
  1348. {
  1349. "id": "shb-clear_explore-final",
  1350. "maxMatches": 2,
  1351. "metadata": {
  1352. "kind": "main",
  1353. "source": "synthetic",
  1354. "timingPolicy": "fast-text",
  1355. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1356. },
  1357. "match": {
  1358. "method": "POST",
  1359. "pathIncludes": "/messages",
  1360. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1361. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_clear_explore_spawn\""]
  1362. },
  1363. "response": {
  1364. "statusCode": 200,
  1365. "text": {
  1366. "text": "E2E_SHB_CLEAR_EXPLORE_DONE",
  1367. "inputTokens": 32
  1368. }
  1369. }
  1370. },
  1371. {
  1372. "id": "shb-override_plugin-tool",
  1373. "maxMatches": 2,
  1374. "metadata": {
  1375. "kind": "main",
  1376. "source": "synthetic",
  1377. "timingPolicy": "fast-text",
  1378. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1379. },
  1380. "match": {
  1381. "method": "POST",
  1382. "pathIncludes": "/messages",
  1383. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1384. "lastUserMessageIncludes": ["E2E_SHB_OVERRIDE_PLUGIN:"]
  1385. },
  1386. "response": {
  1387. "statusCode": 200,
  1388. "toolUse": {
  1389. "id": "toolu_shb_override_plugin_spawn",
  1390. "name": "Agent",
  1391. "inputTokens": 32,
  1392. "input": {
  1393. "subagent_type": "e2e-subagent-refresh:reviewer",
  1394. "description": "override_plugin",
  1395. "prompt": "E2E_SHB_OVERRIDE_PLUGIN_CHILD",
  1396. "run_in_background": false
  1397. }
  1398. }
  1399. }
  1400. },
  1401. {
  1402. "id": "shb-override_plugin-child",
  1403. "maxMatches": 2,
  1404. "metadata": {
  1405. "kind": "subagent",
  1406. "source": "synthetic",
  1407. "timingPolicy": "fast-text",
  1408. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1409. },
  1410. "match": {
  1411. "method": "POST",
  1412. "pathIncludes": "/messages",
  1413. "bodyExcludes": [
  1414. "Generate a concise title",
  1415. "CRITICAL: Respond with TEXT ONLY",
  1416. "E2E_SHB_OVERRIDE_PLUGIN:"
  1417. ],
  1418. "lastUserMessageIncludes": ["E2E_SHB_OVERRIDE_PLUGIN_CHILD"]
  1419. },
  1420. "response": {
  1421. "statusCode": 200,
  1422. "text": {
  1423. "text": "E2E_SHB_OVERRIDE_PLUGIN_CHILD_DONE",
  1424. "inputTokens": 32
  1425. }
  1426. }
  1427. },
  1428. {
  1429. "id": "shb-override_plugin-final",
  1430. "maxMatches": 2,
  1431. "metadata": {
  1432. "kind": "main",
  1433. "source": "synthetic",
  1434. "timingPolicy": "fast-text",
  1435. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1436. },
  1437. "match": {
  1438. "method": "POST",
  1439. "pathIncludes": "/messages",
  1440. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1441. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_override_plugin_spawn\""]
  1442. },
  1443. "response": {
  1444. "statusCode": 200,
  1445. "text": {
  1446. "text": "E2E_SHB_OVERRIDE_PLUGIN_DONE",
  1447. "inputTokens": 32
  1448. }
  1449. }
  1450. },
  1451. {
  1452. "id": "shb-clear_plugin-tool",
  1453. "maxMatches": 2,
  1454. "metadata": {
  1455. "kind": "main",
  1456. "source": "synthetic",
  1457. "timingPolicy": "fast-text",
  1458. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1459. },
  1460. "match": {
  1461. "method": "POST",
  1462. "pathIncludes": "/messages",
  1463. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1464. "lastUserMessageIncludes": ["E2E_SHB_CLEAR_PLUGIN:"]
  1465. },
  1466. "response": {
  1467. "statusCode": 200,
  1468. "toolUse": {
  1469. "id": "toolu_shb_clear_plugin_spawn",
  1470. "name": "Agent",
  1471. "inputTokens": 32,
  1472. "input": {
  1473. "subagent_type": "e2e-subagent-refresh:reviewer",
  1474. "description": "clear_plugin",
  1475. "prompt": "E2E_SHB_CLEAR_PLUGIN_CHILD",
  1476. "run_in_background": false
  1477. }
  1478. }
  1479. }
  1480. },
  1481. {
  1482. "id": "shb-clear_plugin-child",
  1483. "maxMatches": 2,
  1484. "metadata": {
  1485. "kind": "subagent",
  1486. "source": "synthetic",
  1487. "timingPolicy": "fast-text",
  1488. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1489. },
  1490. "match": {
  1491. "method": "POST",
  1492. "pathIncludes": "/messages",
  1493. "bodyExcludes": [
  1494. "Generate a concise title",
  1495. "CRITICAL: Respond with TEXT ONLY",
  1496. "E2E_SHB_CLEAR_PLUGIN:"
  1497. ],
  1498. "lastUserMessageIncludes": ["E2E_SHB_CLEAR_PLUGIN_CHILD"]
  1499. },
  1500. "response": {
  1501. "statusCode": 200,
  1502. "text": {
  1503. "text": "E2E_SHB_CLEAR_PLUGIN_CHILD_DONE",
  1504. "inputTokens": 32
  1505. }
  1506. }
  1507. },
  1508. {
  1509. "id": "shb-clear_plugin-final",
  1510. "maxMatches": 2,
  1511. "metadata": {
  1512. "kind": "main",
  1513. "source": "synthetic",
  1514. "timingPolicy": "fast-text",
  1515. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1516. },
  1517. "match": {
  1518. "method": "POST",
  1519. "pathIncludes": "/messages",
  1520. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1521. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_clear_plugin_spawn\""]
  1522. },
  1523. "response": {
  1524. "statusCode": 200,
  1525. "text": {
  1526. "text": "E2E_SHB_CLEAR_PLUGIN_DONE",
  1527. "inputTokens": 32
  1528. }
  1529. }
  1530. },
  1531. {
  1532. "id": "shb-save_failed-tool",
  1533. "maxMatches": 2,
  1534. "metadata": {
  1535. "kind": "main",
  1536. "source": "synthetic",
  1537. "timingPolicy": "fast-text",
  1538. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1539. },
  1540. "match": {
  1541. "method": "POST",
  1542. "pathIncludes": "/messages",
  1543. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1544. "lastUserMessageIncludes": ["E2E_SHB_SAVE_FAILED:"]
  1545. },
  1546. "response": {
  1547. "statusCode": 200,
  1548. "toolUse": {
  1549. "id": "toolu_shb_save_failed_spawn",
  1550. "name": "Agent",
  1551. "inputTokens": 32,
  1552. "input": {
  1553. "subagent_type": "e2e-host-reviewer",
  1554. "description": "save_failed",
  1555. "prompt": "E2E_SHB_SAVE_FAILED_CHILD",
  1556. "run_in_background": false
  1557. }
  1558. }
  1559. }
  1560. },
  1561. {
  1562. "id": "shb-save_failed-child",
  1563. "maxMatches": 2,
  1564. "metadata": {
  1565. "kind": "subagent",
  1566. "source": "synthetic",
  1567. "timingPolicy": "fast-text",
  1568. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1569. },
  1570. "match": {
  1571. "method": "POST",
  1572. "pathIncludes": "/messages",
  1573. "bodyExcludes": [
  1574. "Generate a concise title",
  1575. "CRITICAL: Respond with TEXT ONLY",
  1576. "E2E_SHB_SAVE_FAILED:"
  1577. ],
  1578. "lastUserMessageIncludes": ["E2E_SHB_SAVE_FAILED_CHILD"]
  1579. },
  1580. "response": {
  1581. "statusCode": 200,
  1582. "text": {
  1583. "text": "E2E_SHB_SAVE_FAILED_CHILD_DONE",
  1584. "inputTokens": 32
  1585. }
  1586. }
  1587. },
  1588. {
  1589. "id": "shb-save_failed-final",
  1590. "maxMatches": 2,
  1591. "metadata": {
  1592. "kind": "main",
  1593. "source": "synthetic",
  1594. "timingPolicy": "fast-text",
  1595. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1596. },
  1597. "match": {
  1598. "method": "POST",
  1599. "pathIncludes": "/messages",
  1600. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1601. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_save_failed_spawn\""]
  1602. },
  1603. "response": {
  1604. "statusCode": 200,
  1605. "text": {
  1606. "text": "E2E_SHB_SAVE_FAILED_DONE",
  1607. "inputTokens": 32
  1608. }
  1609. }
  1610. },
  1611. {
  1612. "id": "shb-duplicated-tool",
  1613. "maxMatches": 2,
  1614. "metadata": {
  1615. "kind": "main",
  1616. "source": "synthetic",
  1617. "timingPolicy": "fast-text",
  1618. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1619. },
  1620. "match": {
  1621. "method": "POST",
  1622. "pathIncludes": "/messages",
  1623. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1624. "lastUserMessageIncludes": ["E2E_SHB_DUPLICATED:"]
  1625. },
  1626. "response": {
  1627. "statusCode": 200,
  1628. "toolUse": {
  1629. "id": "toolu_shb_duplicated_spawn",
  1630. "name": "Agent",
  1631. "inputTokens": 32,
  1632. "input": {
  1633. "subagent_type": "e2e-host-reviewer",
  1634. "description": "duplicated",
  1635. "prompt": "E2E_SHB_DUPLICATED_CHILD",
  1636. "run_in_background": false
  1637. }
  1638. }
  1639. }
  1640. },
  1641. {
  1642. "id": "shb-duplicated-child",
  1643. "maxMatches": 2,
  1644. "metadata": {
  1645. "kind": "subagent",
  1646. "source": "synthetic",
  1647. "timingPolicy": "fast-text",
  1648. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1649. },
  1650. "match": {
  1651. "method": "POST",
  1652. "pathIncludes": "/messages",
  1653. "bodyExcludes": [
  1654. "Generate a concise title",
  1655. "CRITICAL: Respond with TEXT ONLY",
  1656. "E2E_SHB_DUPLICATED:"
  1657. ],
  1658. "lastUserMessageIncludes": ["E2E_SHB_DUPLICATED_CHILD"]
  1659. },
  1660. "response": {
  1661. "statusCode": 200,
  1662. "text": {
  1663. "text": "E2E_SHB_DUPLICATED_CHILD_DONE",
  1664. "inputTokens": 32
  1665. }
  1666. }
  1667. },
  1668. {
  1669. "id": "shb-duplicated-final",
  1670. "maxMatches": 2,
  1671. "metadata": {
  1672. "kind": "main",
  1673. "source": "synthetic",
  1674. "timingPolicy": "fast-text",
  1675. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1676. },
  1677. "match": {
  1678. "method": "POST",
  1679. "pathIncludes": "/messages",
  1680. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1681. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_duplicated_spawn\""]
  1682. },
  1683. "response": {
  1684. "statusCode": 200,
  1685. "text": {
  1686. "text": "E2E_SHB_DUPLICATED_DONE",
  1687. "inputTokens": 32
  1688. }
  1689. }
  1690. },
  1691. {
  1692. "id": "shb-read_ok_a-tool",
  1693. "maxMatches": 1,
  1694. "metadata": {
  1695. "kind": "main",
  1696. "source": "synthetic",
  1697. "timingPolicy": "fast-text",
  1698. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1699. },
  1700. "match": {
  1701. "method": "POST",
  1702. "pathIncludes": "/messages",
  1703. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1704. "lastUserMessageIncludes": ["E2E_SHB_READ_OK_A:"]
  1705. },
  1706. "response": {
  1707. "statusCode": 200,
  1708. "toolUse": {
  1709. "id": "toolu_shb_read_ok_a_spawn",
  1710. "name": "Agent",
  1711. "inputTokens": 32,
  1712. "input": {
  1713. "subagent_type": "e2e-host-reviewer",
  1714. "description": "read_ok_a",
  1715. "prompt": "E2E_SHB_READ_OK_A_CHILD",
  1716. "run_in_background": false
  1717. }
  1718. }
  1719. }
  1720. },
  1721. {
  1722. "id": "shb-read_ok_a-child",
  1723. "maxMatches": 1,
  1724. "metadata": {
  1725. "kind": "subagent",
  1726. "source": "synthetic",
  1727. "timingPolicy": "fast-text",
  1728. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1729. },
  1730. "match": {
  1731. "method": "POST",
  1732. "pathIncludes": "/messages",
  1733. "bodyExcludes": [
  1734. "Generate a concise title",
  1735. "CRITICAL: Respond with TEXT ONLY",
  1736. "E2E_SHB_READ_OK_A:"
  1737. ],
  1738. "lastUserMessageIncludes": ["E2E_SHB_READ_OK_A_CHILD"]
  1739. },
  1740. "response": {
  1741. "statusCode": 200,
  1742. "text": {
  1743. "text": "E2E_SHB_READ_OK_A_CHILD_DONE",
  1744. "inputTokens": 32
  1745. }
  1746. }
  1747. },
  1748. {
  1749. "id": "shb-read_ok_a-final",
  1750. "maxMatches": 1,
  1751. "metadata": {
  1752. "kind": "main",
  1753. "source": "synthetic",
  1754. "timingPolicy": "fast-text",
  1755. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1756. },
  1757. "match": {
  1758. "method": "POST",
  1759. "pathIncludes": "/messages",
  1760. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1761. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_read_ok_a_spawn\""]
  1762. },
  1763. "response": {
  1764. "statusCode": 200,
  1765. "text": {
  1766. "text": "E2E_SHB_READ_OK_A_DONE",
  1767. "inputTokens": 32
  1768. }
  1769. }
  1770. },
  1771. {
  1772. "id": "shb-read_retried_b-tool",
  1773. "maxMatches": 1,
  1774. "metadata": {
  1775. "kind": "main",
  1776. "source": "synthetic",
  1777. "timingPolicy": "fast-text",
  1778. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1779. },
  1780. "match": {
  1781. "method": "POST",
  1782. "pathIncludes": "/messages",
  1783. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1784. "lastUserMessageIncludes": ["E2E_SHB_READ_RETRIED_B:"]
  1785. },
  1786. "response": {
  1787. "statusCode": 200,
  1788. "toolUse": {
  1789. "id": "toolu_shb_read_retried_b_spawn",
  1790. "name": "Agent",
  1791. "inputTokens": 32,
  1792. "input": {
  1793. "subagent_type": "e2e-host-reviewer",
  1794. "description": "read_retried_b",
  1795. "prompt": "E2E_SHB_READ_RETRIED_B_CHILD",
  1796. "run_in_background": false
  1797. }
  1798. }
  1799. }
  1800. },
  1801. {
  1802. "id": "shb-read_retried_b-child",
  1803. "maxMatches": 1,
  1804. "metadata": {
  1805. "kind": "subagent",
  1806. "source": "synthetic",
  1807. "timingPolicy": "fast-text",
  1808. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1809. },
  1810. "match": {
  1811. "method": "POST",
  1812. "pathIncludes": "/messages",
  1813. "bodyExcludes": [
  1814. "Generate a concise title",
  1815. "CRITICAL: Respond with TEXT ONLY",
  1816. "E2E_SHB_READ_RETRIED_B:"
  1817. ],
  1818. "lastUserMessageIncludes": ["E2E_SHB_READ_RETRIED_B_CHILD"]
  1819. },
  1820. "response": {
  1821. "statusCode": 200,
  1822. "text": {
  1823. "text": "E2E_SHB_READ_RETRIED_B_CHILD_DONE",
  1824. "inputTokens": 32
  1825. }
  1826. }
  1827. },
  1828. {
  1829. "id": "shb-read_retried_b-final",
  1830. "maxMatches": 1,
  1831. "metadata": {
  1832. "kind": "main",
  1833. "source": "synthetic",
  1834. "timingPolicy": "fast-text",
  1835. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1836. },
  1837. "match": {
  1838. "method": "POST",
  1839. "pathIncludes": "/messages",
  1840. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1841. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_read_retried_b_spawn\""]
  1842. },
  1843. "response": {
  1844. "statusCode": 200,
  1845. "text": {
  1846. "text": "E2E_SHB_READ_RETRIED_B_DONE",
  1847. "inputTokens": 32
  1848. }
  1849. }
  1850. },
  1851. {
  1852. "id": "shb-stale_resolve-tool",
  1853. "maxMatches": 1,
  1854. "metadata": {
  1855. "kind": "main",
  1856. "source": "synthetic",
  1857. "timingPolicy": "fast-text",
  1858. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1859. },
  1860. "match": {
  1861. "method": "POST",
  1862. "pathIncludes": "/messages",
  1863. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1864. "lastUserMessageIncludes": ["E2E_SHB_STALE_RESOLVE:"]
  1865. },
  1866. "response": {
  1867. "statusCode": 200,
  1868. "toolUse": {
  1869. "id": "toolu_shb_stale_resolve_spawn",
  1870. "name": "Agent",
  1871. "inputTokens": 32,
  1872. "input": {
  1873. "subagent_type": "e2e-host-reviewer",
  1874. "description": "stale_resolve",
  1875. "prompt": "E2E_SHB_STALE_RESOLVE_CHILD",
  1876. "run_in_background": false
  1877. }
  1878. }
  1879. }
  1880. },
  1881. {
  1882. "id": "shb-stale_resolve-child",
  1883. "maxMatches": 1,
  1884. "metadata": {
  1885. "kind": "subagent",
  1886. "source": "synthetic",
  1887. "timingPolicy": "fast-text",
  1888. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1889. },
  1890. "match": {
  1891. "method": "POST",
  1892. "pathIncludes": "/messages",
  1893. "bodyExcludes": [
  1894. "Generate a concise title",
  1895. "CRITICAL: Respond with TEXT ONLY",
  1896. "E2E_SHB_STALE_RESOLVE:"
  1897. ],
  1898. "lastUserMessageIncludes": ["E2E_SHB_STALE_RESOLVE_CHILD"]
  1899. },
  1900. "response": {
  1901. "statusCode": 200,
  1902. "text": {
  1903. "text": "E2E_SHB_STALE_RESOLVE_CHILD_DONE",
  1904. "inputTokens": 32
  1905. }
  1906. }
  1907. },
  1908. {
  1909. "id": "shb-stale_resolve-final",
  1910. "maxMatches": 1,
  1911. "metadata": {
  1912. "kind": "main",
  1913. "source": "synthetic",
  1914. "timingPolicy": "fast-text",
  1915. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1916. },
  1917. "match": {
  1918. "method": "POST",
  1919. "pathIncludes": "/messages",
  1920. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1921. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_stale_resolve_spawn\""]
  1922. },
  1923. "response": {
  1924. "statusCode": 200,
  1925. "text": {
  1926. "text": "E2E_SHB_STALE_RESOLVE_DONE",
  1927. "inputTokens": 32
  1928. }
  1929. }
  1930. },
  1931. {
  1932. "id": "shb-stale_reject-tool",
  1933. "maxMatches": 1,
  1934. "metadata": {
  1935. "kind": "main",
  1936. "source": "synthetic",
  1937. "timingPolicy": "fast-text",
  1938. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1939. },
  1940. "match": {
  1941. "method": "POST",
  1942. "pathIncludes": "/messages",
  1943. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1944. "lastUserMessageIncludes": ["E2E_SHB_STALE_REJECT:"]
  1945. },
  1946. "response": {
  1947. "statusCode": 200,
  1948. "toolUse": {
  1949. "id": "toolu_shb_stale_reject_spawn",
  1950. "name": "Agent",
  1951. "inputTokens": 32,
  1952. "input": {
  1953. "subagent_type": "e2e-host-reviewer",
  1954. "description": "stale_reject",
  1955. "prompt": "E2E_SHB_STALE_REJECT_CHILD",
  1956. "run_in_background": false
  1957. }
  1958. }
  1959. }
  1960. },
  1961. {
  1962. "id": "shb-stale_reject-child",
  1963. "maxMatches": 1,
  1964. "metadata": {
  1965. "kind": "subagent",
  1966. "source": "synthetic",
  1967. "timingPolicy": "fast-text",
  1968. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1969. },
  1970. "match": {
  1971. "method": "POST",
  1972. "pathIncludes": "/messages",
  1973. "bodyExcludes": [
  1974. "Generate a concise title",
  1975. "CRITICAL: Respond with TEXT ONLY",
  1976. "E2E_SHB_STALE_REJECT:"
  1977. ],
  1978. "lastUserMessageIncludes": ["E2E_SHB_STALE_REJECT_CHILD"]
  1979. },
  1980. "response": {
  1981. "statusCode": 200,
  1982. "text": {
  1983. "text": "E2E_SHB_STALE_REJECT_CHILD_DONE",
  1984. "inputTokens": 32
  1985. }
  1986. }
  1987. },
  1988. {
  1989. "id": "shb-stale_reject-final",
  1990. "maxMatches": 1,
  1991. "metadata": {
  1992. "kind": "main",
  1993. "source": "synthetic",
  1994. "timingPolicy": "fast-text",
  1995. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  1996. },
  1997. "match": {
  1998. "method": "POST",
  1999. "pathIncludes": "/messages",
  2000. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2001. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_stale_reject_spawn\""]
  2002. },
  2003. "response": {
  2004. "statusCode": 200,
  2005. "text": {
  2006. "text": "E2E_SHB_STALE_REJECT_DONE",
  2007. "inputTokens": 32
  2008. }
  2009. }
  2010. },
  2011. {
  2012. "id": "shb-directory_ok_a-tool",
  2013. "maxMatches": 1,
  2014. "metadata": {
  2015. "kind": "main",
  2016. "source": "synthetic",
  2017. "timingPolicy": "fast-text",
  2018. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2019. },
  2020. "match": {
  2021. "method": "POST",
  2022. "pathIncludes": "/messages",
  2023. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2024. "lastUserMessageIncludes": ["E2E_SHB_DIRECTORY_OK_A:"]
  2025. },
  2026. "response": {
  2027. "statusCode": 200,
  2028. "toolUse": {
  2029. "id": "toolu_shb_directory_ok_a_spawn",
  2030. "name": "Agent",
  2031. "inputTokens": 32,
  2032. "input": {
  2033. "subagent_type": "e2e-host-reviewer",
  2034. "description": "directory_ok_a",
  2035. "prompt": "E2E_SHB_DIRECTORY_OK_A_CHILD",
  2036. "run_in_background": false
  2037. }
  2038. }
  2039. }
  2040. },
  2041. {
  2042. "id": "shb-directory_ok_a-child",
  2043. "maxMatches": 1,
  2044. "metadata": {
  2045. "kind": "subagent",
  2046. "source": "synthetic",
  2047. "timingPolicy": "fast-text",
  2048. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2049. },
  2050. "match": {
  2051. "method": "POST",
  2052. "pathIncludes": "/messages",
  2053. "bodyExcludes": [
  2054. "Generate a concise title",
  2055. "CRITICAL: Respond with TEXT ONLY",
  2056. "E2E_SHB_DIRECTORY_OK_A:"
  2057. ],
  2058. "lastUserMessageIncludes": ["E2E_SHB_DIRECTORY_OK_A_CHILD"]
  2059. },
  2060. "response": {
  2061. "statusCode": 200,
  2062. "text": {
  2063. "text": "E2E_SHB_DIRECTORY_OK_A_CHILD_DONE",
  2064. "inputTokens": 32
  2065. }
  2066. }
  2067. },
  2068. {
  2069. "id": "shb-directory_ok_a-final",
  2070. "maxMatches": 1,
  2071. "metadata": {
  2072. "kind": "main",
  2073. "source": "synthetic",
  2074. "timingPolicy": "fast-text",
  2075. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2076. },
  2077. "match": {
  2078. "method": "POST",
  2079. "pathIncludes": "/messages",
  2080. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2081. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_directory_ok_a_spawn\""]
  2082. },
  2083. "response": {
  2084. "statusCode": 200,
  2085. "text": {
  2086. "text": "E2E_SHB_DIRECTORY_OK_A_DONE",
  2087. "inputTokens": 32
  2088. }
  2089. }
  2090. },
  2091. {
  2092. "id": "shb-directory_retried_b-tool",
  2093. "maxMatches": 1,
  2094. "metadata": {
  2095. "kind": "main",
  2096. "source": "synthetic",
  2097. "timingPolicy": "fast-text",
  2098. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2099. },
  2100. "match": {
  2101. "method": "POST",
  2102. "pathIncludes": "/messages",
  2103. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2104. "lastUserMessageIncludes": ["E2E_SHB_DIRECTORY_RETRIED_B:"]
  2105. },
  2106. "response": {
  2107. "statusCode": 200,
  2108. "toolUse": {
  2109. "id": "toolu_shb_directory_retried_b_spawn",
  2110. "name": "Agent",
  2111. "inputTokens": 32,
  2112. "input": {
  2113. "subagent_type": "e2e-host-reviewer",
  2114. "description": "directory_retried_b",
  2115. "prompt": "E2E_SHB_DIRECTORY_RETRIED_B_CHILD",
  2116. "run_in_background": false
  2117. }
  2118. }
  2119. }
  2120. },
  2121. {
  2122. "id": "shb-directory_retried_b-child",
  2123. "maxMatches": 1,
  2124. "metadata": {
  2125. "kind": "subagent",
  2126. "source": "synthetic",
  2127. "timingPolicy": "fast-text",
  2128. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2129. },
  2130. "match": {
  2131. "method": "POST",
  2132. "pathIncludes": "/messages",
  2133. "bodyExcludes": [
  2134. "Generate a concise title",
  2135. "CRITICAL: Respond with TEXT ONLY",
  2136. "E2E_SHB_DIRECTORY_RETRIED_B:"
  2137. ],
  2138. "lastUserMessageIncludes": ["E2E_SHB_DIRECTORY_RETRIED_B_CHILD"]
  2139. },
  2140. "response": {
  2141. "statusCode": 200,
  2142. "text": {
  2143. "text": "E2E_SHB_DIRECTORY_RETRIED_B_CHILD_DONE",
  2144. "inputTokens": 32
  2145. }
  2146. }
  2147. },
  2148. {
  2149. "id": "shb-directory_retried_b-final",
  2150. "maxMatches": 1,
  2151. "metadata": {
  2152. "kind": "main",
  2153. "source": "synthetic",
  2154. "timingPolicy": "fast-text",
  2155. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2156. },
  2157. "match": {
  2158. "method": "POST",
  2159. "pathIncludes": "/messages",
  2160. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2161. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_directory_retried_b_spawn\""]
  2162. },
  2163. "response": {
  2164. "statusCode": 200,
  2165. "text": {
  2166. "text": "E2E_SHB_DIRECTORY_RETRIED_B_DONE",
  2167. "inputTokens": 32
  2168. }
  2169. }
  2170. },
  2171. {
  2172. "id": "shb-state_ok_a-tool",
  2173. "maxMatches": 1,
  2174. "metadata": {
  2175. "kind": "main",
  2176. "source": "synthetic",
  2177. "timingPolicy": "fast-text",
  2178. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2179. },
  2180. "match": {
  2181. "method": "POST",
  2182. "pathIncludes": "/messages",
  2183. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2184. "lastUserMessageIncludes": ["E2E_SHB_STATE_OK_A:"]
  2185. },
  2186. "response": {
  2187. "statusCode": 200,
  2188. "toolUse": {
  2189. "id": "toolu_shb_state_ok_a_spawn",
  2190. "name": "Agent",
  2191. "inputTokens": 32,
  2192. "input": {
  2193. "subagent_type": "e2e-host-reviewer",
  2194. "description": "state_ok_a",
  2195. "prompt": "E2E_SHB_STATE_OK_A_CHILD",
  2196. "run_in_background": false
  2197. }
  2198. }
  2199. }
  2200. },
  2201. {
  2202. "id": "shb-state_ok_a-child",
  2203. "maxMatches": 1,
  2204. "metadata": {
  2205. "kind": "subagent",
  2206. "source": "synthetic",
  2207. "timingPolicy": "fast-text",
  2208. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2209. },
  2210. "match": {
  2211. "method": "POST",
  2212. "pathIncludes": "/messages",
  2213. "bodyExcludes": [
  2214. "Generate a concise title",
  2215. "CRITICAL: Respond with TEXT ONLY",
  2216. "E2E_SHB_STATE_OK_A:"
  2217. ],
  2218. "lastUserMessageIncludes": ["E2E_SHB_STATE_OK_A_CHILD"]
  2219. },
  2220. "response": {
  2221. "statusCode": 200,
  2222. "text": {
  2223. "text": "E2E_SHB_STATE_OK_A_CHILD_DONE",
  2224. "inputTokens": 32
  2225. }
  2226. }
  2227. },
  2228. {
  2229. "id": "shb-state_ok_a-final",
  2230. "maxMatches": 1,
  2231. "metadata": {
  2232. "kind": "main",
  2233. "source": "synthetic",
  2234. "timingPolicy": "fast-text",
  2235. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2236. },
  2237. "match": {
  2238. "method": "POST",
  2239. "pathIncludes": "/messages",
  2240. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2241. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_state_ok_a_spawn\""]
  2242. },
  2243. "response": {
  2244. "statusCode": 200,
  2245. "text": {
  2246. "text": "E2E_SHB_STATE_OK_A_DONE",
  2247. "inputTokens": 32
  2248. }
  2249. }
  2250. },
  2251. {
  2252. "id": "shb-state_retried_b-tool",
  2253. "maxMatches": 1,
  2254. "metadata": {
  2255. "kind": "main",
  2256. "source": "synthetic",
  2257. "timingPolicy": "fast-text",
  2258. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2259. },
  2260. "match": {
  2261. "method": "POST",
  2262. "pathIncludes": "/messages",
  2263. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2264. "lastUserMessageIncludes": ["E2E_SHB_STATE_RETRIED_B:"]
  2265. },
  2266. "response": {
  2267. "statusCode": 200,
  2268. "toolUse": {
  2269. "id": "toolu_shb_state_retried_b_spawn",
  2270. "name": "Agent",
  2271. "inputTokens": 32,
  2272. "input": {
  2273. "subagent_type": "e2e-host-reviewer",
  2274. "description": "state_retried_b",
  2275. "prompt": "E2E_SHB_STATE_RETRIED_B_CHILD",
  2276. "run_in_background": false
  2277. }
  2278. }
  2279. }
  2280. },
  2281. {
  2282. "id": "shb-state_retried_b-child",
  2283. "maxMatches": 1,
  2284. "metadata": {
  2285. "kind": "subagent",
  2286. "source": "synthetic",
  2287. "timingPolicy": "fast-text",
  2288. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2289. },
  2290. "match": {
  2291. "method": "POST",
  2292. "pathIncludes": "/messages",
  2293. "bodyExcludes": [
  2294. "Generate a concise title",
  2295. "CRITICAL: Respond with TEXT ONLY",
  2296. "E2E_SHB_STATE_RETRIED_B:"
  2297. ],
  2298. "lastUserMessageIncludes": ["E2E_SHB_STATE_RETRIED_B_CHILD"]
  2299. },
  2300. "response": {
  2301. "statusCode": 200,
  2302. "text": {
  2303. "text": "E2E_SHB_STATE_RETRIED_B_CHILD_DONE",
  2304. "inputTokens": 32
  2305. }
  2306. }
  2307. },
  2308. {
  2309. "id": "shb-state_retried_b-final",
  2310. "maxMatches": 1,
  2311. "metadata": {
  2312. "kind": "main",
  2313. "source": "synthetic",
  2314. "timingPolicy": "fast-text",
  2315. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2316. },
  2317. "match": {
  2318. "method": "POST",
  2319. "pathIncludes": "/messages",
  2320. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2321. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_state_retried_b_spawn\""]
  2322. },
  2323. "response": {
  2324. "statusCode": 200,
  2325. "text": {
  2326. "text": "E2E_SHB_STATE_RETRIED_B_DONE",
  2327. "inputTokens": 32
  2328. }
  2329. }
  2330. },
  2331. {
  2332. "id": "shb-cache_hit-tool",
  2333. "maxMatches": 2,
  2334. "metadata": {
  2335. "kind": "main",
  2336. "source": "synthetic",
  2337. "timingPolicy": "fast-text",
  2338. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2339. },
  2340. "match": {
  2341. "method": "POST",
  2342. "pathIncludes": "/messages",
  2343. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2344. "lastUserMessageIncludes": ["E2E_SHB_CACHE_HIT:"]
  2345. },
  2346. "response": {
  2347. "statusCode": 200,
  2348. "toolUse": {
  2349. "id": "toolu_shb_cache_hit_spawn",
  2350. "name": "Agent",
  2351. "inputTokens": 32,
  2352. "input": {
  2353. "subagent_type": "e2e-host-reviewer",
  2354. "description": "cache_hit",
  2355. "prompt": "E2E_SHB_CACHE_HIT_CHILD",
  2356. "run_in_background": false
  2357. }
  2358. }
  2359. }
  2360. },
  2361. {
  2362. "id": "shb-cache_hit-child",
  2363. "maxMatches": 2,
  2364. "metadata": {
  2365. "kind": "subagent",
  2366. "source": "synthetic",
  2367. "timingPolicy": "fast-text",
  2368. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2369. },
  2370. "match": {
  2371. "method": "POST",
  2372. "pathIncludes": "/messages",
  2373. "bodyExcludes": [
  2374. "Generate a concise title",
  2375. "CRITICAL: Respond with TEXT ONLY",
  2376. "E2E_SHB_CACHE_HIT:"
  2377. ],
  2378. "lastUserMessageIncludes": ["E2E_SHB_CACHE_HIT_CHILD"]
  2379. },
  2380. "response": {
  2381. "statusCode": 200,
  2382. "text": {
  2383. "text": "E2E_SHB_CACHE_HIT_CHILD_DONE",
  2384. "inputTokens": 32
  2385. }
  2386. }
  2387. },
  2388. {
  2389. "id": "shb-cache_hit-final",
  2390. "maxMatches": 2,
  2391. "metadata": {
  2392. "kind": "main",
  2393. "source": "synthetic",
  2394. "timingPolicy": "fast-text",
  2395. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2396. },
  2397. "match": {
  2398. "method": "POST",
  2399. "pathIncludes": "/messages",
  2400. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2401. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_cache_hit_spawn\""]
  2402. },
  2403. "response": {
  2404. "statusCode": 200,
  2405. "text": {
  2406. "text": "E2E_SHB_CACHE_HIT_DONE",
  2407. "inputTokens": 32
  2408. }
  2409. }
  2410. },
  2411. {
  2412. "id": "shb-unrelated_b-tool",
  2413. "maxMatches": 2,
  2414. "metadata": {
  2415. "kind": "main",
  2416. "source": "synthetic",
  2417. "timingPolicy": "fast-text",
  2418. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2419. },
  2420. "match": {
  2421. "method": "POST",
  2422. "pathIncludes": "/messages",
  2423. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2424. "lastUserMessageIncludes": ["E2E_SHB_UNRELATED_B:"]
  2425. },
  2426. "response": {
  2427. "statusCode": 200,
  2428. "toolUse": {
  2429. "id": "toolu_shb_unrelated_b_spawn",
  2430. "name": "Agent",
  2431. "inputTokens": 32,
  2432. "input": {
  2433. "subagent_type": "e2e-host-reviewer",
  2434. "description": "unrelated_b",
  2435. "prompt": "E2E_SHB_UNRELATED_B_CHILD",
  2436. "run_in_background": false
  2437. }
  2438. }
  2439. }
  2440. },
  2441. {
  2442. "id": "shb-unrelated_b-child",
  2443. "maxMatches": 2,
  2444. "metadata": {
  2445. "kind": "subagent",
  2446. "source": "synthetic",
  2447. "timingPolicy": "fast-text",
  2448. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2449. },
  2450. "match": {
  2451. "method": "POST",
  2452. "pathIncludes": "/messages",
  2453. "bodyExcludes": [
  2454. "Generate a concise title",
  2455. "CRITICAL: Respond with TEXT ONLY",
  2456. "E2E_SHB_UNRELATED_B:"
  2457. ],
  2458. "lastUserMessageIncludes": ["E2E_SHB_UNRELATED_B_CHILD"]
  2459. },
  2460. "response": {
  2461. "statusCode": 200,
  2462. "text": {
  2463. "text": "E2E_SHB_UNRELATED_B_CHILD_DONE",
  2464. "inputTokens": 32
  2465. }
  2466. }
  2467. },
  2468. {
  2469. "id": "shb-unrelated_b-final",
  2470. "maxMatches": 2,
  2471. "metadata": {
  2472. "kind": "main",
  2473. "source": "synthetic",
  2474. "timingPolicy": "fast-text",
  2475. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2476. },
  2477. "match": {
  2478. "method": "POST",
  2479. "pathIncludes": "/messages",
  2480. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2481. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_unrelated_b_spawn\""]
  2482. },
  2483. "response": {
  2484. "statusCode": 200,
  2485. "text": {
  2486. "text": "E2E_SHB_UNRELATED_B_DONE",
  2487. "inputTokens": 32
  2488. }
  2489. }
  2490. },
  2491. {
  2492. "id": "shb-cold_start-tool",
  2493. "maxMatches": 1,
  2494. "metadata": {
  2495. "kind": "main",
  2496. "source": "synthetic",
  2497. "timingPolicy": "fast-text",
  2498. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2499. },
  2500. "match": {
  2501. "method": "POST",
  2502. "pathIncludes": "/messages",
  2503. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2504. "lastUserMessageIncludes": ["E2E_SHB_COLD_START:"]
  2505. },
  2506. "response": {
  2507. "statusCode": 200,
  2508. "toolUse": {
  2509. "id": "toolu_shb_cold_start_spawn",
  2510. "name": "Agent",
  2511. "inputTokens": 32,
  2512. "input": {
  2513. "subagent_type": "e2e-host-reviewer",
  2514. "description": "cold_start",
  2515. "prompt": "E2E_SHB_COLD_START_CHILD",
  2516. "run_in_background": false
  2517. }
  2518. }
  2519. }
  2520. },
  2521. {
  2522. "id": "shb-cold_start-child",
  2523. "maxMatches": 1,
  2524. "metadata": {
  2525. "kind": "subagent",
  2526. "source": "synthetic",
  2527. "timingPolicy": "fast-text",
  2528. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2529. },
  2530. "match": {
  2531. "method": "POST",
  2532. "pathIncludes": "/messages",
  2533. "bodyExcludes": [
  2534. "Generate a concise title",
  2535. "CRITICAL: Respond with TEXT ONLY",
  2536. "E2E_SHB_COLD_START:"
  2537. ],
  2538. "lastUserMessageIncludes": ["E2E_SHB_COLD_START_CHILD"]
  2539. },
  2540. "response": {
  2541. "statusCode": 200,
  2542. "text": {
  2543. "text": "E2E_SHB_COLD_START_CHILD_DONE",
  2544. "inputTokens": 32
  2545. }
  2546. }
  2547. },
  2548. {
  2549. "id": "shb-cold_start-final",
  2550. "maxMatches": 1,
  2551. "metadata": {
  2552. "kind": "main",
  2553. "source": "synthetic",
  2554. "timingPolicy": "fast-text",
  2555. "syntheticReason": "真实双 Host 的配置保存/原生文件监听/内存快照;同一 fixture 供 A/B 执行,文件故障仅在测试侧注入。"
  2556. },
  2557. "match": {
  2558. "method": "POST",
  2559. "pathIncludes": "/messages",
  2560. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2561. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_cold_start_spawn\""]
  2562. },
  2563. "response": {
  2564. "statusCode": 200,
  2565. "text": {
  2566. "text": "E2E_SHB_COLD_START_DONE",
  2567. "inputTokens": 32
  2568. }
  2569. }
  2570. },
  2571. {
  2572. "id": "shb-cold-title",
  2573. "description": "shb-cold-title",
  2574. "maxMatches": 1,
  2575. "metadata": {
  2576. "kind": "common",
  2577. "source": "synthetic",
  2578. "timingPolicy": "fast-text",
  2579. "syntheticReason": "仅测试侧触发既有第二窗口创建路径;真实 Host 文件监听、Settings 保存及 CLI spawn/resume,provider 固定响应以验证跨 Host 快照和历史。"
  2580. },
  2581. "match": {
  2582. "method": "POST",
  2583. "pathIncludes": "/messages",
  2584. "bodyIncludes": ["Generate a concise title", "E2E_SHB_COLD_START"]
  2585. },
  2586. "response": {
  2587. "statusCode": 200,
  2588. "headers": {
  2589. "content-type": "application/json; charset=utf-8"
  2590. },
  2591. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Host A\"}],\"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\"}}"
  2592. }
  2593. },
  2594. {
  2595. "id": "shb-stale_resolve_published-tool",
  2596. "maxMatches": 1,
  2597. "metadata": {
  2598. "kind": "main",
  2599. "source": "synthetic",
  2600. "timingPolicy": "fast-text",
  2601. "syntheticReason": "后台加载期间完成旧快照父子调用;后续发布新快照,迟到旧读取不得覆盖;仅测试侧控制文件边界。"
  2602. },
  2603. "match": {
  2604. "method": "POST",
  2605. "pathIncludes": "/messages",
  2606. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2607. "lastUserMessageIncludes": ["E2E_SHB_STALE_RESOLVE_PUBLISHED:"]
  2608. },
  2609. "response": {
  2610. "statusCode": 200,
  2611. "toolUse": {
  2612. "id": "toolu_shb_stale_resolve_published_spawn",
  2613. "name": "Agent",
  2614. "inputTokens": 32,
  2615. "input": {
  2616. "subagent_type": "e2e-host-reviewer",
  2617. "description": "stale_resolve_published",
  2618. "prompt": "E2E_SHB_STALE_RESOLVE_PUBLISHED_CHILD",
  2619. "run_in_background": false
  2620. }
  2621. }
  2622. }
  2623. },
  2624. {
  2625. "id": "shb-stale_resolve_published-child",
  2626. "maxMatches": 1,
  2627. "metadata": {
  2628. "kind": "subagent",
  2629. "source": "synthetic",
  2630. "timingPolicy": "fast-text",
  2631. "syntheticReason": "后台加载期间完成旧快照父子调用;后续发布新快照,迟到旧读取不得覆盖;仅测试侧控制文件边界。"
  2632. },
  2633. "match": {
  2634. "method": "POST",
  2635. "pathIncludes": "/messages",
  2636. "bodyExcludes": [
  2637. "Generate a concise title",
  2638. "CRITICAL: Respond with TEXT ONLY",
  2639. "E2E_SHB_STALE_RESOLVE_PUBLISHED:"
  2640. ],
  2641. "lastUserMessageIncludes": ["E2E_SHB_STALE_RESOLVE_PUBLISHED_CHILD"]
  2642. },
  2643. "response": {
  2644. "statusCode": 200,
  2645. "text": {
  2646. "text": "E2E_SHB_STALE_RESOLVE_PUBLISHED_CHILD_DONE",
  2647. "inputTokens": 32
  2648. }
  2649. }
  2650. },
  2651. {
  2652. "id": "shb-stale_resolve_published-final",
  2653. "maxMatches": 1,
  2654. "metadata": {
  2655. "kind": "main",
  2656. "source": "synthetic",
  2657. "timingPolicy": "fast-text",
  2658. "syntheticReason": "后台加载期间完成旧快照父子调用;后续发布新快照,迟到旧读取不得覆盖;仅测试侧控制文件边界。"
  2659. },
  2660. "match": {
  2661. "method": "POST",
  2662. "pathIncludes": "/messages",
  2663. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2664. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_stale_resolve_published_spawn\""]
  2665. },
  2666. "response": {
  2667. "statusCode": 200,
  2668. "text": {
  2669. "text": "E2E_SHB_STALE_RESOLVE_PUBLISHED_DONE",
  2670. "inputTokens": 32
  2671. }
  2672. }
  2673. },
  2674. {
  2675. "id": "shb-stale_reject_published-tool",
  2676. "maxMatches": 1,
  2677. "metadata": {
  2678. "kind": "main",
  2679. "source": "synthetic",
  2680. "timingPolicy": "fast-text",
  2681. "syntheticReason": "后台加载期间完成旧快照父子调用;后续发布新快照,迟到旧读取不得覆盖;仅测试侧控制文件边界。"
  2682. },
  2683. "match": {
  2684. "method": "POST",
  2685. "pathIncludes": "/messages",
  2686. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2687. "lastUserMessageIncludes": ["E2E_SHB_STALE_REJECT_PUBLISHED:"]
  2688. },
  2689. "response": {
  2690. "statusCode": 200,
  2691. "toolUse": {
  2692. "id": "toolu_shb_stale_reject_published_spawn",
  2693. "name": "Agent",
  2694. "inputTokens": 32,
  2695. "input": {
  2696. "subagent_type": "e2e-host-reviewer",
  2697. "description": "stale_reject_published",
  2698. "prompt": "E2E_SHB_STALE_REJECT_PUBLISHED_CHILD",
  2699. "run_in_background": false
  2700. }
  2701. }
  2702. }
  2703. },
  2704. {
  2705. "id": "shb-stale_reject_published-child",
  2706. "maxMatches": 1,
  2707. "metadata": {
  2708. "kind": "subagent",
  2709. "source": "synthetic",
  2710. "timingPolicy": "fast-text",
  2711. "syntheticReason": "后台加载期间完成旧快照父子调用;后续发布新快照,迟到旧读取不得覆盖;仅测试侧控制文件边界。"
  2712. },
  2713. "match": {
  2714. "method": "POST",
  2715. "pathIncludes": "/messages",
  2716. "bodyExcludes": [
  2717. "Generate a concise title",
  2718. "CRITICAL: Respond with TEXT ONLY",
  2719. "E2E_SHB_STALE_REJECT_PUBLISHED:"
  2720. ],
  2721. "lastUserMessageIncludes": ["E2E_SHB_STALE_REJECT_PUBLISHED_CHILD"]
  2722. },
  2723. "response": {
  2724. "statusCode": 200,
  2725. "text": {
  2726. "text": "E2E_SHB_STALE_REJECT_PUBLISHED_CHILD_DONE",
  2727. "inputTokens": 32
  2728. }
  2729. }
  2730. },
  2731. {
  2732. "id": "shb-stale_reject_published-final",
  2733. "maxMatches": 1,
  2734. "metadata": {
  2735. "kind": "main",
  2736. "source": "synthetic",
  2737. "timingPolicy": "fast-text",
  2738. "syntheticReason": "后台加载期间完成旧快照父子调用;后续发布新快照,迟到旧读取不得覆盖;仅测试侧控制文件边界。"
  2739. },
  2740. "match": {
  2741. "method": "POST",
  2742. "pathIncludes": "/messages",
  2743. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2744. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_stale_reject_published_spawn\""]
  2745. },
  2746. "response": {
  2747. "statusCode": 200,
  2748. "text": {
  2749. "text": "E2E_SHB_STALE_REJECT_PUBLISHED_DONE",
  2750. "inputTokens": 32
  2751. }
  2752. }
  2753. },
  2754. {
  2755. "id": "shb-read_failed-tool",
  2756. "maxMatches": 1,
  2757. "metadata": {
  2758. "kind": "main",
  2759. "source": "synthetic",
  2760. "timingPolicy": "fast-text",
  2761. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2762. },
  2763. "match": {
  2764. "method": "POST",
  2765. "pathIncludes": "/messages",
  2766. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2767. "lastUserMessageIncludes": ["E2E_SHB_READ_FAILED:"]
  2768. },
  2769. "response": {
  2770. "statusCode": 200,
  2771. "toolUses": [
  2772. {
  2773. "id": "toolu_shb_read_failed_spawn",
  2774. "name": "Agent",
  2775. "inputTokens": 32,
  2776. "input": {
  2777. "subagent_type": "e2e-host-reviewer",
  2778. "description": "read_failed",
  2779. "prompt": "E2E_SHB_READ_FAILED_CHILD",
  2780. "run_in_background": false
  2781. }
  2782. },
  2783. {
  2784. "id": "toolu_shb_read_failed_resume",
  2785. "name": "SendMessage",
  2786. "inputTokens": 32,
  2787. "input": {
  2788. "to": "{{latestAgentId}}",
  2789. "message": "E2E_SHB_READ_FAILED_RESUME",
  2790. "summary": "read_failed"
  2791. }
  2792. },
  2793. {
  2794. "id": "toolu_shb_read_failed_builtin",
  2795. "name": "Agent",
  2796. "inputTokens": 32,
  2797. "input": {
  2798. "subagent_type": "Explore",
  2799. "description": "read_failed",
  2800. "prompt": "E2E_SHB_READ_FAILED_BUILTIN_CHILD",
  2801. "run_in_background": false
  2802. }
  2803. }
  2804. ]
  2805. }
  2806. },
  2807. {
  2808. "id": "shb-read_failed-child",
  2809. "maxMatches": 1,
  2810. "metadata": {
  2811. "kind": "subagent",
  2812. "source": "synthetic",
  2813. "timingPolicy": "fast-text",
  2814. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2815. },
  2816. "match": {
  2817. "method": "POST",
  2818. "pathIncludes": "/messages",
  2819. "bodyExcludes": [
  2820. "Generate a concise title",
  2821. "CRITICAL: Respond with TEXT ONLY",
  2822. "E2E_SHB_READ_FAILED:"
  2823. ],
  2824. "lastUserMessageIncludes": ["E2E_SHB_READ_FAILED_BUILTIN_CHILD"]
  2825. },
  2826. "response": {
  2827. "statusCode": 200,
  2828. "text": {
  2829. "text": "E2E_SHB_READ_FAILED_BUILTIN_DONE",
  2830. "inputTokens": 32
  2831. }
  2832. }
  2833. },
  2834. {
  2835. "id": "shb-read_failed-final",
  2836. "maxMatches": 1,
  2837. "metadata": {
  2838. "kind": "main",
  2839. "source": "synthetic",
  2840. "timingPolicy": "fast-text",
  2841. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2842. },
  2843. "match": {
  2844. "method": "POST",
  2845. "pathIncludes": "/messages",
  2846. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2847. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_read_failed_builtin\""]
  2848. },
  2849. "response": {
  2850. "statusCode": 200,
  2851. "text": {
  2852. "text": "E2E_SHB_READ_FAILED_DONE",
  2853. "inputTokens": 32
  2854. }
  2855. }
  2856. },
  2857. {
  2858. "id": "shb-directory_failed-tool",
  2859. "maxMatches": 1,
  2860. "metadata": {
  2861. "kind": "main",
  2862. "source": "synthetic",
  2863. "timingPolicy": "fast-text",
  2864. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2865. },
  2866. "match": {
  2867. "method": "POST",
  2868. "pathIncludes": "/messages",
  2869. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2870. "lastUserMessageIncludes": ["E2E_SHB_DIRECTORY_FAILED:"]
  2871. },
  2872. "response": {
  2873. "statusCode": 200,
  2874. "toolUses": [
  2875. {
  2876. "id": "toolu_shb_directory_failed_spawn",
  2877. "name": "Agent",
  2878. "inputTokens": 32,
  2879. "input": {
  2880. "subagent_type": "e2e-host-reviewer",
  2881. "description": "directory_failed",
  2882. "prompt": "E2E_SHB_DIRECTORY_FAILED_CHILD",
  2883. "run_in_background": false
  2884. }
  2885. },
  2886. {
  2887. "id": "toolu_shb_directory_failed_resume",
  2888. "name": "SendMessage",
  2889. "inputTokens": 32,
  2890. "input": {
  2891. "to": "{{latestAgentId}}",
  2892. "message": "E2E_SHB_DIRECTORY_FAILED_RESUME",
  2893. "summary": "directory_failed"
  2894. }
  2895. },
  2896. {
  2897. "id": "toolu_shb_directory_failed_builtin",
  2898. "name": "Agent",
  2899. "inputTokens": 32,
  2900. "input": {
  2901. "subagent_type": "Explore",
  2902. "description": "directory_failed",
  2903. "prompt": "E2E_SHB_DIRECTORY_FAILED_BUILTIN_CHILD",
  2904. "run_in_background": false
  2905. }
  2906. }
  2907. ]
  2908. }
  2909. },
  2910. {
  2911. "id": "shb-directory_failed-child",
  2912. "maxMatches": 1,
  2913. "metadata": {
  2914. "kind": "subagent",
  2915. "source": "synthetic",
  2916. "timingPolicy": "fast-text",
  2917. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2918. },
  2919. "match": {
  2920. "method": "POST",
  2921. "pathIncludes": "/messages",
  2922. "bodyExcludes": [
  2923. "Generate a concise title",
  2924. "CRITICAL: Respond with TEXT ONLY",
  2925. "E2E_SHB_DIRECTORY_FAILED:"
  2926. ],
  2927. "lastUserMessageIncludes": ["E2E_SHB_DIRECTORY_FAILED_BUILTIN_CHILD"]
  2928. },
  2929. "response": {
  2930. "statusCode": 200,
  2931. "text": {
  2932. "text": "E2E_SHB_DIRECTORY_FAILED_BUILTIN_DONE",
  2933. "inputTokens": 32
  2934. }
  2935. }
  2936. },
  2937. {
  2938. "id": "shb-directory_failed-final",
  2939. "maxMatches": 1,
  2940. "metadata": {
  2941. "kind": "main",
  2942. "source": "synthetic",
  2943. "timingPolicy": "fast-text",
  2944. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2945. },
  2946. "match": {
  2947. "method": "POST",
  2948. "pathIncludes": "/messages",
  2949. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2950. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_directory_failed_builtin\""]
  2951. },
  2952. "response": {
  2953. "statusCode": 200,
  2954. "text": {
  2955. "text": "E2E_SHB_DIRECTORY_FAILED_DONE",
  2956. "inputTokens": 32
  2957. }
  2958. }
  2959. },
  2960. {
  2961. "id": "shb-state_failed-tool",
  2962. "maxMatches": 1,
  2963. "metadata": {
  2964. "kind": "main",
  2965. "source": "synthetic",
  2966. "timingPolicy": "fast-text",
  2967. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  2968. },
  2969. "match": {
  2970. "method": "POST",
  2971. "pathIncludes": "/messages",
  2972. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  2973. "lastUserMessageIncludes": ["E2E_SHB_STATE_FAILED:"]
  2974. },
  2975. "response": {
  2976. "statusCode": 200,
  2977. "toolUses": [
  2978. {
  2979. "id": "toolu_shb_state_failed_spawn",
  2980. "name": "Agent",
  2981. "inputTokens": 32,
  2982. "input": {
  2983. "subagent_type": "e2e-host-reviewer",
  2984. "description": "state_failed",
  2985. "prompt": "E2E_SHB_STATE_FAILED_CHILD",
  2986. "run_in_background": false
  2987. }
  2988. },
  2989. {
  2990. "id": "toolu_shb_state_failed_resume",
  2991. "name": "SendMessage",
  2992. "inputTokens": 32,
  2993. "input": {
  2994. "to": "{{latestAgentId}}",
  2995. "message": "E2E_SHB_STATE_FAILED_RESUME",
  2996. "summary": "state_failed"
  2997. }
  2998. },
  2999. {
  3000. "id": "toolu_shb_state_failed_builtin",
  3001. "name": "Agent",
  3002. "inputTokens": 32,
  3003. "input": {
  3004. "subagent_type": "Explore",
  3005. "description": "state_failed",
  3006. "prompt": "E2E_SHB_STATE_FAILED_BUILTIN_CHILD",
  3007. "run_in_background": false
  3008. }
  3009. }
  3010. ]
  3011. }
  3012. },
  3013. {
  3014. "id": "shb-state_failed-child",
  3015. "maxMatches": 1,
  3016. "metadata": {
  3017. "kind": "subagent",
  3018. "source": "synthetic",
  3019. "timingPolicy": "fast-text",
  3020. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  3021. },
  3022. "match": {
  3023. "method": "POST",
  3024. "pathIncludes": "/messages",
  3025. "bodyExcludes": [
  3026. "Generate a concise title",
  3027. "CRITICAL: Respond with TEXT ONLY",
  3028. "E2E_SHB_STATE_FAILED:"
  3029. ],
  3030. "lastUserMessageIncludes": ["E2E_SHB_STATE_FAILED_BUILTIN_CHILD"]
  3031. },
  3032. "response": {
  3033. "statusCode": 200,
  3034. "text": {
  3035. "text": "E2E_SHB_STATE_FAILED_BUILTIN_DONE",
  3036. "inputTokens": 32
  3037. }
  3038. }
  3039. },
  3040. {
  3041. "id": "shb-state_failed-final",
  3042. "maxMatches": 1,
  3043. "metadata": {
  3044. "kind": "main",
  3045. "source": "synthetic",
  3046. "timingPolicy": "fast-text",
  3047. "syntheticReason": "文件读取失败后仅内置 Agent 可用;自定义 spawn/resume 明确失败,文件事件恢复后重新加载。故障注入仅在测试侧。"
  3048. },
  3049. "match": {
  3050. "method": "POST",
  3051. "pathIncludes": "/messages",
  3052. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  3053. "bodyIncludes": ["\"tool_use_id\":\"toolu_shb_state_failed_builtin\""]
  3054. },
  3055. "response": {
  3056. "statusCode": 200,
  3057. "text": {
  3058. "text": "E2E_SHB_STATE_FAILED_DONE",
  3059. "inputTokens": 32
  3060. }
  3061. }
  3062. },
  3063. {
  3064. "id": "shp-a-title",
  3065. "description": "SHR22 a title",
  3066. "maxMatches": 1,
  3067. "metadata": {
  3068. "kind": "common",
  3069. "source": "synthetic",
  3070. "timingPolicy": "fast-text",
  3071. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3072. },
  3073. "match": {
  3074. "method": "POST",
  3075. "pathIncludes": "/messages",
  3076. "bodyIncludes": ["Generate a concise title", "E2E_SHP_A_SEED"]
  3077. },
  3078. "response": {
  3079. "statusCode": 200,
  3080. "headers": {
  3081. "content-type": "application/json; charset=utf-8"
  3082. },
  3083. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Path Host a\"}],\"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\"}}"
  3084. }
  3085. },
  3086. {
  3087. "id": "shp-a-seed",
  3088. "description": "SHR22 a seed",
  3089. "maxMatches": 1,
  3090. "metadata": {
  3091. "kind": "main",
  3092. "source": "synthetic",
  3093. "timingPolicy": "fast-text",
  3094. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3095. },
  3096. "match": {
  3097. "method": "POST",
  3098. "pathIncludes": "/messages",
  3099. "lastUserMessageIncludes": ["E2E_SHP_A_SEED:"],
  3100. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3101. },
  3102. "response": {
  3103. "statusCode": 200,
  3104. "text": {
  3105. "text": "E2E_SHP_A_SEED_DONE",
  3106. "inputTokens": 32
  3107. }
  3108. }
  3109. },
  3110. {
  3111. "id": "shp-a-next-tool",
  3112. "description": "SHR22 a next-tool",
  3113. "maxMatches": 1,
  3114. "metadata": {
  3115. "kind": "main",
  3116. "source": "synthetic",
  3117. "timingPolicy": "fast-text",
  3118. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3119. },
  3120. "match": {
  3121. "method": "POST",
  3122. "pathIncludes": "/messages",
  3123. "lastUserMessageIncludes": ["E2E_SHP_A_NEXT:"],
  3124. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3125. },
  3126. "response": {
  3127. "statusCode": 200,
  3128. "toolUse": {
  3129. "id": "toolu_shp_a_next",
  3130. "name": "Agent",
  3131. "inputTokens": 32,
  3132. "input": {
  3133. "subagent_type": "e2e-path-reviewer",
  3134. "description": "Path refresh",
  3135. "prompt": "E2E_SHP_A_NEXT_CHILD",
  3136. "run_in_background": false
  3137. }
  3138. }
  3139. }
  3140. },
  3141. {
  3142. "id": "shp-a-next-child",
  3143. "description": "SHR22 a next-child",
  3144. "maxMatches": 1,
  3145. "metadata": {
  3146. "kind": "subagent",
  3147. "source": "synthetic",
  3148. "timingPolicy": "fast-text",
  3149. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3150. },
  3151. "match": {
  3152. "method": "POST",
  3153. "pathIncludes": "/messages",
  3154. "lastUserMessageIncludes": ["E2E_SHP_A_NEXT_CHILD"],
  3155. "bodyIncludes": ["E2E_SHP_PROFILE_"],
  3156. "bodyExcludes": [
  3157. "Generate a concise title",
  3158. "CRITICAL: Respond with TEXT ONLY",
  3159. "E2E_SHP_A_NEXT:"
  3160. ]
  3161. },
  3162. "response": {
  3163. "statusCode": 200,
  3164. "text": {
  3165. "text": "E2E_SHP_A_NEXT_CHILD_DONE",
  3166. "inputTokens": 32
  3167. }
  3168. }
  3169. },
  3170. {
  3171. "id": "shp-a-next-final",
  3172. "description": "SHR22 a next-final",
  3173. "maxMatches": 1,
  3174. "metadata": {
  3175. "kind": "main",
  3176. "source": "synthetic",
  3177. "timingPolicy": "fast-text",
  3178. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3179. },
  3180. "match": {
  3181. "method": "POST",
  3182. "pathIncludes": "/messages",
  3183. "bodyIncludes": ["toolu_shp_a_next", "agentId: agent_"],
  3184. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3185. },
  3186. "response": {
  3187. "statusCode": 200,
  3188. "text": {
  3189. "text": "E2E_SHP_A_NEXT_DONE",
  3190. "inputTokens": 32
  3191. }
  3192. }
  3193. },
  3194. {
  3195. "id": "shp-b-title",
  3196. "description": "SHR22 b title",
  3197. "maxMatches": 1,
  3198. "metadata": {
  3199. "kind": "common",
  3200. "source": "synthetic",
  3201. "timingPolicy": "fast-text",
  3202. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3203. },
  3204. "match": {
  3205. "method": "POST",
  3206. "pathIncludes": "/messages",
  3207. "bodyIncludes": ["Generate a concise title", "E2E_SHP_B_SEED"]
  3208. },
  3209. "response": {
  3210. "statusCode": 200,
  3211. "headers": {
  3212. "content-type": "application/json; charset=utf-8"
  3213. },
  3214. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Path Host b\"}],\"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\"}}"
  3215. }
  3216. },
  3217. {
  3218. "id": "shp-b-seed",
  3219. "description": "SHR22 b seed",
  3220. "maxMatches": 1,
  3221. "metadata": {
  3222. "kind": "main",
  3223. "source": "synthetic",
  3224. "timingPolicy": "fast-text",
  3225. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3226. },
  3227. "match": {
  3228. "method": "POST",
  3229. "pathIncludes": "/messages",
  3230. "lastUserMessageIncludes": ["E2E_SHP_B_SEED:"],
  3231. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3232. },
  3233. "response": {
  3234. "statusCode": 200,
  3235. "text": {
  3236. "text": "E2E_SHP_B_SEED_DONE",
  3237. "inputTokens": 32
  3238. }
  3239. }
  3240. },
  3241. {
  3242. "id": "shp-b-next-tool",
  3243. "description": "SHR22 b next-tool",
  3244. "maxMatches": 1,
  3245. "metadata": {
  3246. "kind": "main",
  3247. "source": "synthetic",
  3248. "timingPolicy": "fast-text",
  3249. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3250. },
  3251. "match": {
  3252. "method": "POST",
  3253. "pathIncludes": "/messages",
  3254. "lastUserMessageIncludes": ["E2E_SHP_B_NEXT:"],
  3255. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3256. },
  3257. "response": {
  3258. "statusCode": 200,
  3259. "toolUse": {
  3260. "id": "toolu_shp_b_next",
  3261. "name": "Agent",
  3262. "inputTokens": 32,
  3263. "input": {
  3264. "subagent_type": "e2e-path-reviewer",
  3265. "description": "Path refresh",
  3266. "prompt": "E2E_SHP_B_NEXT_CHILD",
  3267. "run_in_background": false
  3268. }
  3269. }
  3270. }
  3271. },
  3272. {
  3273. "id": "shp-b-next-child",
  3274. "description": "SHR22 b next-child",
  3275. "maxMatches": 1,
  3276. "metadata": {
  3277. "kind": "subagent",
  3278. "source": "synthetic",
  3279. "timingPolicy": "fast-text",
  3280. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3281. },
  3282. "match": {
  3283. "method": "POST",
  3284. "pathIncludes": "/messages",
  3285. "lastUserMessageIncludes": ["E2E_SHP_B_NEXT_CHILD"],
  3286. "bodyIncludes": ["E2E_SHP_PROFILE_"],
  3287. "bodyExcludes": [
  3288. "Generate a concise title",
  3289. "CRITICAL: Respond with TEXT ONLY",
  3290. "E2E_SHP_B_NEXT:"
  3291. ]
  3292. },
  3293. "response": {
  3294. "statusCode": 200,
  3295. "text": {
  3296. "text": "E2E_SHP_B_NEXT_CHILD_DONE",
  3297. "inputTokens": 32
  3298. }
  3299. }
  3300. },
  3301. {
  3302. "id": "shp-b-next-final",
  3303. "description": "SHR22 b next-final",
  3304. "maxMatches": 1,
  3305. "metadata": {
  3306. "kind": "main",
  3307. "source": "synthetic",
  3308. "timingPolicy": "fast-text",
  3309. "syntheticReason": "SHR22:真实大小写不敏感目录、两个独立 Host、Settings 保存及下一轮 spawn;固定模型响应只调度工具,不替换配置读取,验收实际请求中的新 profile。"
  3310. },
  3311. "match": {
  3312. "method": "POST",
  3313. "pathIncludes": "/messages",
  3314. "bodyIncludes": ["toolu_shp_b_next", "agentId: agent_"],
  3315. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3316. },
  3317. "response": {
  3318. "statusCode": 200,
  3319. "text": {
  3320. "text": "E2E_SHP_B_NEXT_DONE",
  3321. "inputTokens": 32
  3322. }
  3323. }
  3324. },
  3325. {
  3326. "id": "shp-a-created-tool",
  3327. "description": "SHR22 a project directory created tool",
  3328. "maxMatches": 1,
  3329. "metadata": {
  3330. "kind": "main",
  3331. "source": "synthetic",
  3332. "timingPolicy": "fast-text",
  3333. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3334. },
  3335. "match": {
  3336. "method": "POST",
  3337. "pathIncludes": "/messages",
  3338. "lastUserMessageIncludes": ["E2E_SHP_A_CREATED:"],
  3339. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3340. },
  3341. "response": {
  3342. "statusCode": 200,
  3343. "toolUse": {
  3344. "id": "toolu_shp_a_created",
  3345. "name": "Agent",
  3346. "inputTokens": 32,
  3347. "input": {
  3348. "subagent_type": "e2e-path-reviewer",
  3349. "description": "Path refresh",
  3350. "prompt": "E2E_SHP_A_CREATED_CHILD",
  3351. "run_in_background": false
  3352. }
  3353. }
  3354. }
  3355. },
  3356. {
  3357. "id": "shp-a-created-child",
  3358. "description": "SHR22 a project directory created child",
  3359. "maxMatches": 1,
  3360. "metadata": {
  3361. "kind": "subagent",
  3362. "source": "synthetic",
  3363. "timingPolicy": "fast-text",
  3364. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3365. },
  3366. "match": {
  3367. "method": "POST",
  3368. "pathIncludes": "/messages",
  3369. "lastUserMessageIncludes": ["E2E_SHP_A_CREATED_CHILD"],
  3370. "bodyIncludes": ["E2E_SHP_PROFILE_"],
  3371. "bodyExcludes": [
  3372. "Generate a concise title",
  3373. "CRITICAL: Respond with TEXT ONLY",
  3374. "E2E_SHP_A_CREATED:"
  3375. ]
  3376. },
  3377. "response": {
  3378. "statusCode": 200,
  3379. "text": {
  3380. "text": "E2E_SHP_A_CREATED_CHILD_DONE",
  3381. "inputTokens": 32
  3382. }
  3383. }
  3384. },
  3385. {
  3386. "id": "shp-a-created-final",
  3387. "description": "SHR22 a project directory created final",
  3388. "maxMatches": 1,
  3389. "metadata": {
  3390. "kind": "main",
  3391. "source": "synthetic",
  3392. "timingPolicy": "fast-text",
  3393. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3394. },
  3395. "match": {
  3396. "method": "POST",
  3397. "pathIncludes": "/messages",
  3398. "bodyIncludes": ["toolu_shp_a_created", "agentId: agent_"],
  3399. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3400. },
  3401. "response": {
  3402. "statusCode": 200,
  3403. "text": {
  3404. "text": "E2E_SHP_A_CREATED_DONE",
  3405. "inputTokens": 32
  3406. }
  3407. }
  3408. },
  3409. {
  3410. "id": "shp-b-created-tool",
  3411. "description": "SHR22 b project directory created tool",
  3412. "maxMatches": 1,
  3413. "metadata": {
  3414. "kind": "main",
  3415. "source": "synthetic",
  3416. "timingPolicy": "fast-text",
  3417. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3418. },
  3419. "match": {
  3420. "method": "POST",
  3421. "pathIncludes": "/messages",
  3422. "lastUserMessageIncludes": ["E2E_SHP_B_CREATED:"],
  3423. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3424. },
  3425. "response": {
  3426. "statusCode": 200,
  3427. "toolUse": {
  3428. "id": "toolu_shp_b_created",
  3429. "name": "Agent",
  3430. "inputTokens": 32,
  3431. "input": {
  3432. "subagent_type": "e2e-path-reviewer",
  3433. "description": "Path refresh",
  3434. "prompt": "E2E_SHP_B_CREATED_CHILD",
  3435. "run_in_background": false
  3436. }
  3437. }
  3438. }
  3439. },
  3440. {
  3441. "id": "shp-b-created-child",
  3442. "description": "SHR22 b project directory created child",
  3443. "maxMatches": 1,
  3444. "metadata": {
  3445. "kind": "subagent",
  3446. "source": "synthetic",
  3447. "timingPolicy": "fast-text",
  3448. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3449. },
  3450. "match": {
  3451. "method": "POST",
  3452. "pathIncludes": "/messages",
  3453. "lastUserMessageIncludes": ["E2E_SHP_B_CREATED_CHILD"],
  3454. "bodyIncludes": ["E2E_SHP_PROFILE_"],
  3455. "bodyExcludes": [
  3456. "Generate a concise title",
  3457. "CRITICAL: Respond with TEXT ONLY",
  3458. "E2E_SHP_B_CREATED:"
  3459. ]
  3460. },
  3461. "response": {
  3462. "statusCode": 200,
  3463. "text": {
  3464. "text": "E2E_SHP_B_CREATED_CHILD_DONE",
  3465. "inputTokens": 32
  3466. }
  3467. }
  3468. },
  3469. {
  3470. "id": "shp-b-created-final",
  3471. "description": "SHR22 b project directory created final",
  3472. "maxMatches": 1,
  3473. "metadata": {
  3474. "kind": "main",
  3475. "source": "synthetic",
  3476. "timingPolicy": "fast-text",
  3477. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3478. },
  3479. "match": {
  3480. "method": "POST",
  3481. "pathIncludes": "/messages",
  3482. "bodyIncludes": ["toolu_shp_b_created", "agentId: agent_"],
  3483. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3484. },
  3485. "response": {
  3486. "statusCode": 200,
  3487. "text": {
  3488. "text": "E2E_SHP_B_CREATED_DONE",
  3489. "inputTokens": 32
  3490. }
  3491. }
  3492. },
  3493. {
  3494. "id": "shp-a-rebuilt-tool",
  3495. "description": "SHR22 a project directory rebuilt tool",
  3496. "maxMatches": 1,
  3497. "metadata": {
  3498. "kind": "main",
  3499. "source": "synthetic",
  3500. "timingPolicy": "fast-text",
  3501. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3502. },
  3503. "match": {
  3504. "method": "POST",
  3505. "pathIncludes": "/messages",
  3506. "lastUserMessageIncludes": ["E2E_SHP_A_REBUILT:"],
  3507. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3508. },
  3509. "response": {
  3510. "statusCode": 200,
  3511. "toolUse": {
  3512. "id": "toolu_shp_a_rebuilt",
  3513. "name": "Agent",
  3514. "inputTokens": 32,
  3515. "input": {
  3516. "subagent_type": "e2e-path-reviewer",
  3517. "description": "Path refresh",
  3518. "prompt": "E2E_SHP_A_REBUILT_CHILD",
  3519. "run_in_background": false
  3520. }
  3521. }
  3522. }
  3523. },
  3524. {
  3525. "id": "shp-a-rebuilt-child",
  3526. "description": "SHR22 a project directory rebuilt child",
  3527. "maxMatches": 1,
  3528. "metadata": {
  3529. "kind": "subagent",
  3530. "source": "synthetic",
  3531. "timingPolicy": "fast-text",
  3532. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3533. },
  3534. "match": {
  3535. "method": "POST",
  3536. "pathIncludes": "/messages",
  3537. "lastUserMessageIncludes": ["E2E_SHP_A_REBUILT_CHILD"],
  3538. "bodyIncludes": ["E2E_SHP_PROFILE_"],
  3539. "bodyExcludes": [
  3540. "Generate a concise title",
  3541. "CRITICAL: Respond with TEXT ONLY",
  3542. "E2E_SHP_A_REBUILT:"
  3543. ]
  3544. },
  3545. "response": {
  3546. "statusCode": 200,
  3547. "text": {
  3548. "text": "E2E_SHP_A_REBUILT_CHILD_DONE",
  3549. "inputTokens": 32
  3550. }
  3551. }
  3552. },
  3553. {
  3554. "id": "shp-a-rebuilt-final",
  3555. "description": "SHR22 a project directory rebuilt final",
  3556. "maxMatches": 1,
  3557. "metadata": {
  3558. "kind": "main",
  3559. "source": "synthetic",
  3560. "timingPolicy": "fast-text",
  3561. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3562. },
  3563. "match": {
  3564. "method": "POST",
  3565. "pathIncludes": "/messages",
  3566. "bodyIncludes": ["toolu_shp_a_rebuilt", "agentId: agent_"],
  3567. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3568. },
  3569. "response": {
  3570. "statusCode": 200,
  3571. "text": {
  3572. "text": "E2E_SHP_A_REBUILT_DONE",
  3573. "inputTokens": 32
  3574. }
  3575. }
  3576. },
  3577. {
  3578. "id": "shp-b-rebuilt-tool",
  3579. "description": "SHR22 b project directory rebuilt tool",
  3580. "maxMatches": 1,
  3581. "metadata": {
  3582. "kind": "main",
  3583. "source": "synthetic",
  3584. "timingPolicy": "fast-text",
  3585. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3586. },
  3587. "match": {
  3588. "method": "POST",
  3589. "pathIncludes": "/messages",
  3590. "lastUserMessageIncludes": ["E2E_SHP_B_REBUILT:"],
  3591. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3592. },
  3593. "response": {
  3594. "statusCode": 200,
  3595. "toolUse": {
  3596. "id": "toolu_shp_b_rebuilt",
  3597. "name": "Agent",
  3598. "inputTokens": 32,
  3599. "input": {
  3600. "subagent_type": "e2e-path-reviewer",
  3601. "description": "Path refresh",
  3602. "prompt": "E2E_SHP_B_REBUILT_CHILD",
  3603. "run_in_background": false
  3604. }
  3605. }
  3606. }
  3607. },
  3608. {
  3609. "id": "shp-b-rebuilt-child",
  3610. "description": "SHR22 b project directory rebuilt child",
  3611. "maxMatches": 1,
  3612. "metadata": {
  3613. "kind": "subagent",
  3614. "source": "synthetic",
  3615. "timingPolicy": "fast-text",
  3616. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3617. },
  3618. "match": {
  3619. "method": "POST",
  3620. "pathIncludes": "/messages",
  3621. "lastUserMessageIncludes": ["E2E_SHP_B_REBUILT_CHILD"],
  3622. "bodyIncludes": ["E2E_SHP_PROFILE_"],
  3623. "bodyExcludes": [
  3624. "Generate a concise title",
  3625. "CRITICAL: Respond with TEXT ONLY",
  3626. "E2E_SHP_B_REBUILT:"
  3627. ]
  3628. },
  3629. "response": {
  3630. "statusCode": 200,
  3631. "text": {
  3632. "text": "E2E_SHP_B_REBUILT_CHILD_DONE",
  3633. "inputTokens": 32
  3634. }
  3635. }
  3636. },
  3637. {
  3638. "id": "shp-b-rebuilt-final",
  3639. "description": "SHR22 b project directory rebuilt final",
  3640. "maxMatches": 1,
  3641. "metadata": {
  3642. "kind": "main",
  3643. "source": "synthetic",
  3644. "timingPolicy": "fast-text",
  3645. "syntheticReason": "SHR22:复用两个真实 Host 的已有 session,Settings 首次创建及重建项目 agents 目录,固定工具调度并验证实际 provider 配置与连续历史。"
  3646. },
  3647. "match": {
  3648. "method": "POST",
  3649. "pathIncludes": "/messages",
  3650. "bodyIncludes": ["toolu_shp_b_rebuilt", "agentId: agent_"],
  3651. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  3652. },
  3653. "response": {
  3654. "statusCode": 200,
  3655. "text": {
  3656. "text": "E2E_SHP_B_REBUILT_DONE",
  3657. "inputTokens": 32
  3658. }
  3659. }
  3660. }
  3661. ]
  3662. }