result.json 166 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227
  1. {
  2. "session_id": "{{parent}}",
  3. "final_response": "ADVANCED_EXECUTABLE_OK",
  4. "events": [
  5. {
  6. "type": "agent/inbox/spliced",
  7. "seq": 3,
  8. "time": 0,
  9. "data": {
  10. "target": "next-turn",
  11. "start": 0,
  12. "inserted": [
  13. {
  14. "content": [
  15. {
  16. "type": "text",
  17. "text": "Run the advanced packaged-runtime snapshot scenario."
  18. }
  19. ],
  20. "source": {
  21. "kind": "user"
  22. },
  23. "role": "user",
  24. "id": "{{messageId}}"
  25. }
  26. ]
  27. }
  28. },
  29. {
  30. "type": "turn/start",
  31. "seq": 4,
  32. "time": 0,
  33. "data": {
  34. "turn": 1
  35. }
  36. },
  37. {
  38. "type": "agent/inbox/spliced",
  39. "seq": 5,
  40. "time": 0,
  41. "data": {
  42. "target": "next-turn",
  43. "start": 0,
  44. "removedCount": 1,
  45. "inserted": []
  46. }
  47. },
  48. {
  49. "type": "step/start",
  50. "seq": 6,
  51. "time": 0,
  52. "data": {
  53. "turn": 1,
  54. "step": 1
  55. }
  56. },
  57. {
  58. "type": "system/message",
  59. "seq": 7,
  60. "time": 0,
  61. "data": {
  62. "turn": 1,
  63. "step": 1,
  64. "message": {
  65. "role": "system",
  66. "content": [
  67. {
  68. "type": "text",
  69. "text": "{{system}}"
  70. }
  71. ],
  72. "source": {
  73. "kind": "plugin",
  74. "plugin": "@deepseek-ai/dsh-system-prompt"
  75. },
  76. "id": "{{messageId}}"
  77. }
  78. },
  79. "surfaceOp": "append"
  80. },
  81. {
  82. "type": "user/message",
  83. "seq": 8,
  84. "time": 0,
  85. "data": {
  86. "content": [
  87. {
  88. "type": "text",
  89. "text": "Run the advanced packaged-runtime snapshot scenario."
  90. }
  91. ],
  92. "source": {
  93. "kind": "user"
  94. },
  95. "role": "user",
  96. "id": "{{messageId}}"
  97. },
  98. "surfaceOp": "append"
  99. },
  100. {
  101. "type": "user/message",
  102. "seq": 9,
  103. "time": 0,
  104. "data": {
  105. "content": [
  106. {
  107. "type": "text",
  108. "text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
  109. }
  110. ],
  111. "source": {
  112. "kind": "plugin",
  113. "plugin": "@deepseek-ai/dsh-system-prompt",
  114. "form": "snapshot",
  115. "sections": [
  116. {
  117. "name": "sandbox:policy",
  118. "text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
  119. },
  120. {
  121. "name": "approval:policy",
  122. "text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
  123. }
  124. ]
  125. },
  126. "role": "user",
  127. "id": "{{messageId}}"
  128. },
  129. "surfaceOp": "append"
  130. },
  131. {
  132. "type": "user/message",
  133. "seq": 10,
  134. "time": 0,
  135. "data": {
  136. "id": "{{messageId}}",
  137. "role": "user",
  138. "content": [
  139. {
  140. "type": "image",
  141. "attachment": {
  142. "attachmentId": "sha256:b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640",
  143. "mediaType": "image/png",
  144. "width": 1,
  145. "height": 1,
  146. "bytes": 69
  147. }
  148. }
  149. ],
  150. "source": {
  151. "kind": "plugin",
  152. "plugin": "python-snapshot-image-offload"
  153. }
  154. },
  155. "surfaceOp": "append"
  156. },
  157. {
  158. "type": "request/header",
  159. "seq": 11,
  160. "time": 0,
  161. "data": {
  162. "header": {
  163. "config": {
  164. "provider": "deepseek-official",
  165. "model": "smoke-model",
  166. "maxTokens": 256000,
  167. "reasoningEffort": "high"
  168. },
  169. "adapterDefaults": {
  170. "reasoningEffort": true,
  171. "maxTokens": true
  172. },
  173. "tools": [
  174. "cordis_define",
  175. "cordis_inspect_list",
  176. "cordis_inspect_query",
  177. "cordis_inspect_self",
  178. "cordis_run",
  179. "cordis_stop",
  180. "cordis_undefine",
  181. "job_kill",
  182. "job_list",
  183. "job_output",
  184. "run_code",
  185. "subagent",
  186. "workflow"
  187. ]
  188. },
  189. "reason": "initial"
  190. }
  191. },
  192. {
  193. "type": "request/context",
  194. "seq": 12,
  195. "time": 0,
  196. "data": {
  197. "provider": "deepseek-official",
  198. "model": "smoke-model",
  199. "contextWindow": 1000000
  200. }
  201. },
  202. {
  203. "type": "session/title",
  204. "seq": 13,
  205. "time": 0,
  206. "data": {
  207. "title": "Run the advanced packaged-runtime snapsh",
  208. "messageSeqs": [
  209. 8
  210. ],
  211. "source": {
  212. "kind": "fallback"
  213. }
  214. }
  215. },
  216. {
  217. "type": "assistant/attempt",
  218. "seq": 14,
  219. "time": 0,
  220. "data": {
  221. "turn": 1,
  222. "step": 1,
  223. "stream": [
  224. {
  225. "type": "chunk",
  226. "time": 0,
  227. "chunk": {
  228. "type": "finish",
  229. "reason": {
  230. "kind": "error",
  231. "failure": {
  232. "code": "IMAGE_OFFLOAD_REQUIRED",
  233. "message": "authored image budget failure",
  234. "offloadImages": 1
  235. }
  236. }
  237. }
  238. }
  239. ]
  240. }
  241. },
  242. {
  243. "type": "image/offload",
  244. "seq": 15,
  245. "time": 0,
  246. "data": {
  247. "targets": [
  248. {
  249. "seq": 10,
  250. "imageIndexes": [
  251. 0
  252. ]
  253. }
  254. ]
  255. }
  256. },
  257. {
  258. "type": "request/header",
  259. "seq": 16,
  260. "time": 0,
  261. "data": {
  262. "header": {
  263. "config": {
  264. "provider": "deepseek-official",
  265. "model": "smoke-model",
  266. "maxTokens": 256000,
  267. "reasoningEffort": "high"
  268. },
  269. "adapterDefaults": {
  270. "reasoningEffort": true,
  271. "maxTokens": true
  272. },
  273. "tools": [
  274. "cordis_define",
  275. "cordis_inspect_list",
  276. "cordis_inspect_query",
  277. "cordis_inspect_self",
  278. "cordis_run",
  279. "cordis_stop",
  280. "cordis_undefine",
  281. "job_kill",
  282. "job_list",
  283. "job_output",
  284. "run_code",
  285. "subagent",
  286. "workflow"
  287. ]
  288. },
  289. "reason": "series"
  290. }
  291. },
  292. {
  293. "type": "session-log-deepseek/delivery-accepted",
  294. "seq": 17,
  295. "time": 0,
  296. "data": {
  297. "sessionId": "{{parent}}",
  298. "sessionFormatVersion": 3,
  299. "throughSeq": 16
  300. }
  301. },
  302. {
  303. "type": "assistant/message",
  304. "seq": 18,
  305. "time": 0,
  306. "data": {
  307. "turn": 1,
  308. "step": 1,
  309. "message": {
  310. "role": "assistant",
  311. "content": [
  312. {
  313. "type": "tool-call",
  314. "id": "advanced-define",
  315. "name": "cordis_define",
  316. "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  317. }
  318. ],
  319. "source": {
  320. "kind": "model",
  321. "provider": "deepseek-official",
  322. "model": "smoke-model",
  323. "replayState": {
  324. "response": {
  325. "kind": "deepseek-messages",
  326. "version": 1,
  327. "model": "smoke-model"
  328. },
  329. "blocks": [
  330. {
  331. "type": "tool-call"
  332. }
  333. ]
  334. }
  335. },
  336. "id": "{{messageId}}"
  337. },
  338. "usage": {
  339. "inputTokens": 3,
  340. "outputTokens": 3,
  341. "totalTokens": 6
  342. },
  343. "stream": [
  344. {
  345. "type": "chunk",
  346. "time": 0,
  347. "chunk": {
  348. "type": "block-start",
  349. "index": 0,
  350. "blockType": "tool-call"
  351. }
  352. },
  353. {
  354. "type": "tool-call-chunks",
  355. "time0": 0,
  356. "index": 0,
  357. "dt": [],
  358. "id": "advanced-define",
  359. "name": "cordis_define",
  360. "args": [
  361. ""
  362. ]
  363. },
  364. {
  365. "type": "tool-call-chunks",
  366. "time0": 0,
  367. "index": 0,
  368. "dt": [],
  369. "id": "advanced-define",
  370. "args": [
  371. "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  372. ]
  373. },
  374. {
  375. "type": "chunk",
  376. "time": 0,
  377. "chunk": {
  378. "type": "block-end",
  379. "index": 0,
  380. "block": {
  381. "type": "tool-call",
  382. "id": "advanced-define",
  383. "name": "cordis_define",
  384. "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  385. }
  386. }
  387. },
  388. {
  389. "type": "chunk",
  390. "time": 0,
  391. "chunk": {
  392. "type": "usage",
  393. "usage": {
  394. "inputTokens": 3,
  395. "outputTokens": 3,
  396. "totalTokens": 6
  397. }
  398. }
  399. },
  400. {
  401. "type": "chunk",
  402. "time": 0,
  403. "chunk": {
  404. "type": "finish",
  405. "reason": {
  406. "kind": "tool-calls"
  407. },
  408. "replayState": {
  409. "response": {
  410. "kind": "deepseek-messages",
  411. "version": 1,
  412. "model": "smoke-model"
  413. },
  414. "blocks": [
  415. {
  416. "type": "tool-call"
  417. }
  418. ]
  419. }
  420. }
  421. }
  422. ]
  423. },
  424. "surfaceOp": "append"
  425. },
  426. {
  427. "type": "tool/call",
  428. "seq": 19,
  429. "time": 0,
  430. "data": {
  431. "turn": 1,
  432. "step": 1,
  433. "callId": "advanced-define",
  434. "name": "cordis_define",
  435. "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  436. }
  437. },
  438. {
  439. "type": "tool/result",
  440. "seq": 20,
  441. "time": 0,
  442. "data": {
  443. "turn": 1,
  444. "step": 1,
  445. "message": {
  446. "source": {
  447. "kind": "tool",
  448. "callId": "advanced-define"
  449. },
  450. "content": [
  451. {
  452. "type": "tool-result",
  453. "toolCallId": "advanced-define",
  454. "content": [
  455. {
  456. "type": "text",
  457. "text": "Defined snap-1/pkg-1 (Snapshot Double); it is not running yet. Use cordis_run to activate this Package."
  458. }
  459. ],
  460. "isError": false
  461. }
  462. ],
  463. "role": "user",
  464. "id": "{{messageId}}"
  465. },
  466. "meta": {
  467. "pluginId": "snap-1",
  468. "packageId": "pkg-1"
  469. }
  470. },
  471. "sourceEventSeqs": [
  472. 19
  473. ],
  474. "surfaceOp": "append"
  475. },
  476. {
  477. "type": "step/end",
  478. "seq": 21,
  479. "time": 0,
  480. "data": {
  481. "turn": 1,
  482. "step": 1
  483. }
  484. },
  485. {
  486. "type": "step/start",
  487. "seq": 22,
  488. "time": 0,
  489. "data": {
  490. "turn": 1,
  491. "step": 2
  492. }
  493. },
  494. {
  495. "type": "session-log-deepseek/delivery-accepted",
  496. "seq": 23,
  497. "time": 0,
  498. "data": {
  499. "sessionId": "{{parent}}",
  500. "sessionFormatVersion": 3,
  501. "throughSeq": 22
  502. }
  503. },
  504. {
  505. "type": "assistant/message",
  506. "seq": 24,
  507. "time": 0,
  508. "data": {
  509. "turn": 1,
  510. "step": 2,
  511. "message": {
  512. "role": "assistant",
  513. "content": [
  514. {
  515. "type": "tool-call",
  516. "id": "advanced-run",
  517. "name": "cordis_run",
  518. "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  519. }
  520. ],
  521. "source": {
  522. "kind": "model",
  523. "provider": "deepseek-official",
  524. "model": "smoke-model",
  525. "replayState": {
  526. "response": {
  527. "kind": "deepseek-messages",
  528. "version": 1,
  529. "model": "smoke-model"
  530. },
  531. "blocks": [
  532. {
  533. "type": "tool-call"
  534. }
  535. ]
  536. }
  537. },
  538. "id": "{{messageId}}"
  539. },
  540. "usage": {
  541. "inputTokens": 3,
  542. "outputTokens": 3,
  543. "totalTokens": 6
  544. },
  545. "stream": [
  546. {
  547. "type": "chunk",
  548. "time": 0,
  549. "chunk": {
  550. "type": "block-start",
  551. "index": 0,
  552. "blockType": "tool-call"
  553. }
  554. },
  555. {
  556. "type": "tool-call-chunks",
  557. "time0": 0,
  558. "index": 0,
  559. "dt": [],
  560. "id": "advanced-run",
  561. "name": "cordis_run",
  562. "args": [
  563. ""
  564. ]
  565. },
  566. {
  567. "type": "tool-call-chunks",
  568. "time0": 0,
  569. "index": 0,
  570. "dt": [],
  571. "id": "advanced-run",
  572. "args": [
  573. "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  574. ]
  575. },
  576. {
  577. "type": "chunk",
  578. "time": 0,
  579. "chunk": {
  580. "type": "block-end",
  581. "index": 0,
  582. "block": {
  583. "type": "tool-call",
  584. "id": "advanced-run",
  585. "name": "cordis_run",
  586. "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  587. }
  588. }
  589. },
  590. {
  591. "type": "chunk",
  592. "time": 0,
  593. "chunk": {
  594. "type": "usage",
  595. "usage": {
  596. "inputTokens": 3,
  597. "outputTokens": 3,
  598. "totalTokens": 6
  599. }
  600. }
  601. },
  602. {
  603. "type": "chunk",
  604. "time": 0,
  605. "chunk": {
  606. "type": "finish",
  607. "reason": {
  608. "kind": "tool-calls"
  609. },
  610. "replayState": {
  611. "response": {
  612. "kind": "deepseek-messages",
  613. "version": 1,
  614. "model": "smoke-model"
  615. },
  616. "blocks": [
  617. {
  618. "type": "tool-call"
  619. }
  620. ]
  621. }
  622. }
  623. }
  624. ]
  625. },
  626. "surfaceOp": "append"
  627. },
  628. {
  629. "type": "tool/call",
  630. "seq": 25,
  631. "time": 0,
  632. "data": {
  633. "turn": 1,
  634. "step": 2,
  635. "callId": "advanced-run",
  636. "name": "cordis_run",
  637. "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  638. }
  639. },
  640. {
  641. "type": "tool/result",
  642. "seq": 26,
  643. "time": 0,
  644. "data": {
  645. "turn": 1,
  646. "step": 2,
  647. "message": {
  648. "source": {
  649. "kind": "tool",
  650. "callId": "advanced-run"
  651. },
  652. "content": [
  653. {
  654. "type": "tool-result",
  655. "toolCallId": "advanced-run",
  656. "content": [
  657. {
  658. "type": "text",
  659. "text": "snap-1/pkg-1 is running (run-1)."
  660. }
  661. ],
  662. "isError": false
  663. }
  664. ],
  665. "role": "user",
  666. "id": "{{messageId}}"
  667. },
  668. "meta": {
  669. "pluginId": "snap-1",
  670. "packageId": "pkg-1",
  671. "pluginRunId": "run-1"
  672. }
  673. },
  674. "sourceEventSeqs": [
  675. 25
  676. ],
  677. "surfaceOp": "append"
  678. },
  679. {
  680. "type": "step/end",
  681. "seq": 27,
  682. "time": 0,
  683. "data": {
  684. "turn": 1,
  685. "step": 2
  686. }
  687. },
  688. {
  689. "type": "step/start",
  690. "seq": 28,
  691. "time": 0,
  692. "data": {
  693. "turn": 1,
  694. "step": 3
  695. }
  696. },
  697. {
  698. "type": "system/message",
  699. "seq": 29,
  700. "time": 0,
  701. "data": {
  702. "turn": 1,
  703. "step": 3,
  704. "message": {
  705. "role": "system",
  706. "content": [
  707. {
  708. "type": "text",
  709. "text": "{{system}}"
  710. }
  711. ],
  712. "source": {
  713. "kind": "plugin",
  714. "plugin": "@deepseek-ai/dsh-system-prompt"
  715. },
  716. "id": "{{messageId}}"
  717. }
  718. },
  719. "sourceEventSeqs": [
  720. 7
  721. ],
  722. "surfaceOp": {
  723. "op": "replace",
  724. "startSeq": 7,
  725. "endSeq": 7
  726. }
  727. },
  728. {
  729. "type": "request/header",
  730. "seq": 30,
  731. "time": 0,
  732. "data": {
  733. "header": {
  734. "config": {
  735. "provider": "deepseek-official",
  736. "model": "smoke-model",
  737. "maxTokens": 256000,
  738. "reasoningEffort": "high"
  739. },
  740. "adapterDefaults": {
  741. "reasoningEffort": true,
  742. "maxTokens": true
  743. },
  744. "tools": [
  745. "cordis_define",
  746. "cordis_inspect_list",
  747. "cordis_inspect_query",
  748. "cordis_inspect_self",
  749. "cordis_run",
  750. "cordis_stop",
  751. "cordis_undefine",
  752. "job_kill",
  753. "job_list",
  754. "job_output",
  755. "run_code",
  756. "snapshot_double",
  757. "subagent",
  758. "workflow"
  759. ]
  760. },
  761. "reason": "change",
  762. "startsSeries": true
  763. }
  764. },
  765. {
  766. "type": "session-log-deepseek/delivery-accepted",
  767. "seq": 31,
  768. "time": 0,
  769. "data": {
  770. "sessionId": "{{parent}}",
  771. "sessionFormatVersion": 3,
  772. "throughSeq": 30
  773. }
  774. },
  775. {
  776. "type": "assistant/message",
  777. "seq": 32,
  778. "time": 0,
  779. "data": {
  780. "turn": 1,
  781. "step": 3,
  782. "message": {
  783. "role": "assistant",
  784. "content": [
  785. {
  786. "type": "tool-call",
  787. "id": "advanced-code",
  788. "name": "run_code",
  789. "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  790. }
  791. ],
  792. "source": {
  793. "kind": "model",
  794. "provider": "deepseek-official",
  795. "model": "smoke-model",
  796. "replayState": {
  797. "response": {
  798. "kind": "deepseek-messages",
  799. "version": 1,
  800. "model": "smoke-model"
  801. },
  802. "blocks": [
  803. {
  804. "type": "tool-call"
  805. }
  806. ]
  807. }
  808. },
  809. "id": "{{messageId}}"
  810. },
  811. "usage": {
  812. "inputTokens": 3,
  813. "outputTokens": 3,
  814. "totalTokens": 6
  815. },
  816. "stream": [
  817. {
  818. "type": "chunk",
  819. "time": 0,
  820. "chunk": {
  821. "type": "block-start",
  822. "index": 0,
  823. "blockType": "tool-call"
  824. }
  825. },
  826. {
  827. "type": "tool-call-chunks",
  828. "time0": 0,
  829. "index": 0,
  830. "dt": [],
  831. "id": "advanced-code",
  832. "name": "run_code",
  833. "args": [
  834. ""
  835. ]
  836. },
  837. {
  838. "type": "tool-call-chunks",
  839. "time0": 0,
  840. "index": 0,
  841. "dt": [],
  842. "id": "advanced-code",
  843. "args": [
  844. "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  845. ]
  846. },
  847. {
  848. "type": "chunk",
  849. "time": 0,
  850. "chunk": {
  851. "type": "block-end",
  852. "index": 0,
  853. "block": {
  854. "type": "tool-call",
  855. "id": "advanced-code",
  856. "name": "run_code",
  857. "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  858. }
  859. }
  860. },
  861. {
  862. "type": "chunk",
  863. "time": 0,
  864. "chunk": {
  865. "type": "usage",
  866. "usage": {
  867. "inputTokens": 3,
  868. "outputTokens": 3,
  869. "totalTokens": 6
  870. }
  871. }
  872. },
  873. {
  874. "type": "chunk",
  875. "time": 0,
  876. "chunk": {
  877. "type": "finish",
  878. "reason": {
  879. "kind": "tool-calls"
  880. },
  881. "replayState": {
  882. "response": {
  883. "kind": "deepseek-messages",
  884. "version": 1,
  885. "model": "smoke-model"
  886. },
  887. "blocks": [
  888. {
  889. "type": "tool-call"
  890. }
  891. ]
  892. }
  893. }
  894. }
  895. ]
  896. },
  897. "surfaceOp": "append"
  898. },
  899. {
  900. "type": "tool/call",
  901. "seq": 33,
  902. "time": 0,
  903. "data": {
  904. "turn": 1,
  905. "step": 3,
  906. "callId": "advanced-code",
  907. "name": "run_code",
  908. "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  909. }
  910. },
  911. {
  912. "type": "tool/ptc-dispatch-start",
  913. "seq": 34,
  914. "time": 0,
  915. "data": {
  916. "rootCallId": "advanced-code",
  917. "parentCallId": "advanced-code",
  918. "subCallId": "advanced-code:ptc:1",
  919. "name": "snapshot_double",
  920. "arguments": {
  921. "value": 21
  922. }
  923. }
  924. },
  925. {
  926. "type": "tool/ptc-dispatch",
  927. "seq": 35,
  928. "time": 0,
  929. "data": {
  930. "rootCallId": "advanced-code",
  931. "parentCallId": "advanced-code",
  932. "subCallId": "advanced-code:ptc:1",
  933. "name": "snapshot_double",
  934. "arguments": {
  935. "value": 21
  936. },
  937. "isError": false,
  938. "content": [
  939. {
  940. "type": "text",
  941. "text": "42"
  942. }
  943. ]
  944. }
  945. },
  946. {
  947. "type": "tool/result",
  948. "seq": 36,
  949. "time": 0,
  950. "data": {
  951. "turn": 1,
  952. "step": 3,
  953. "message": {
  954. "source": {
  955. "kind": "tool",
  956. "callId": "advanced-code"
  957. },
  958. "content": [
  959. {
  960. "type": "tool-result",
  961. "toolCallId": "advanced-code",
  962. "content": [
  963. {
  964. "type": "text",
  965. "text": "42"
  966. }
  967. ],
  968. "isError": false
  969. }
  970. ],
  971. "role": "user",
  972. "id": "{{messageId}}"
  973. }
  974. },
  975. "sourceEventSeqs": [
  976. 33
  977. ],
  978. "surfaceOp": "append"
  979. },
  980. {
  981. "type": "step/end",
  982. "seq": 37,
  983. "time": 0,
  984. "data": {
  985. "turn": 1,
  986. "step": 3
  987. }
  988. },
  989. {
  990. "type": "step/start",
  991. "seq": 38,
  992. "time": 0,
  993. "data": {
  994. "turn": 1,
  995. "step": 4
  996. }
  997. },
  998. {
  999. "type": "session-log-deepseek/delivery-accepted",
  1000. "seq": 39,
  1001. "time": 0,
  1002. "data": {
  1003. "sessionId": "{{parent}}",
  1004. "sessionFormatVersion": 3,
  1005. "throughSeq": 38
  1006. }
  1007. },
  1008. {
  1009. "type": "assistant/message",
  1010. "seq": 40,
  1011. "time": 0,
  1012. "data": {
  1013. "turn": 1,
  1014. "step": 4,
  1015. "message": {
  1016. "role": "assistant",
  1017. "content": [
  1018. {
  1019. "type": "tool-call",
  1020. "id": "advanced-denied-native",
  1021. "name": "snapshot_double",
  1022. "arguments": "{\"value\": -1}"
  1023. }
  1024. ],
  1025. "source": {
  1026. "kind": "model",
  1027. "provider": "deepseek-official",
  1028. "model": "smoke-model",
  1029. "replayState": {
  1030. "response": {
  1031. "kind": "deepseek-messages",
  1032. "version": 1,
  1033. "model": "smoke-model"
  1034. },
  1035. "blocks": [
  1036. {
  1037. "type": "tool-call"
  1038. }
  1039. ]
  1040. }
  1041. },
  1042. "id": "{{messageId}}"
  1043. },
  1044. "usage": {
  1045. "inputTokens": 3,
  1046. "outputTokens": 3,
  1047. "totalTokens": 6
  1048. },
  1049. "stream": [
  1050. {
  1051. "type": "chunk",
  1052. "time": 0,
  1053. "chunk": {
  1054. "type": "block-start",
  1055. "index": 0,
  1056. "blockType": "tool-call"
  1057. }
  1058. },
  1059. {
  1060. "type": "tool-call-chunks",
  1061. "time0": 0,
  1062. "index": 0,
  1063. "dt": [],
  1064. "id": "advanced-denied-native",
  1065. "name": "snapshot_double",
  1066. "args": [
  1067. ""
  1068. ]
  1069. },
  1070. {
  1071. "type": "tool-call-chunks",
  1072. "time0": 0,
  1073. "index": 0,
  1074. "dt": [],
  1075. "id": "advanced-denied-native",
  1076. "args": [
  1077. "{\"value\": -1}"
  1078. ]
  1079. },
  1080. {
  1081. "type": "chunk",
  1082. "time": 0,
  1083. "chunk": {
  1084. "type": "block-end",
  1085. "index": 0,
  1086. "block": {
  1087. "type": "tool-call",
  1088. "id": "advanced-denied-native",
  1089. "name": "snapshot_double",
  1090. "arguments": "{\"value\": -1}"
  1091. }
  1092. }
  1093. },
  1094. {
  1095. "type": "chunk",
  1096. "time": 0,
  1097. "chunk": {
  1098. "type": "usage",
  1099. "usage": {
  1100. "inputTokens": 3,
  1101. "outputTokens": 3,
  1102. "totalTokens": 6
  1103. }
  1104. }
  1105. },
  1106. {
  1107. "type": "chunk",
  1108. "time": 0,
  1109. "chunk": {
  1110. "type": "finish",
  1111. "reason": {
  1112. "kind": "tool-calls"
  1113. },
  1114. "replayState": {
  1115. "response": {
  1116. "kind": "deepseek-messages",
  1117. "version": 1,
  1118. "model": "smoke-model"
  1119. },
  1120. "blocks": [
  1121. {
  1122. "type": "tool-call"
  1123. }
  1124. ]
  1125. }
  1126. }
  1127. }
  1128. ]
  1129. },
  1130. "surfaceOp": "append"
  1131. },
  1132. {
  1133. "type": "tool/call",
  1134. "seq": 41,
  1135. "time": 0,
  1136. "data": {
  1137. "turn": 1,
  1138. "step": 4,
  1139. "callId": "advanced-denied-native",
  1140. "name": "snapshot_double",
  1141. "arguments": "{\"value\": -1}"
  1142. }
  1143. },
  1144. {
  1145. "type": "tool/result",
  1146. "seq": 42,
  1147. "time": 0,
  1148. "data": {
  1149. "turn": 1,
  1150. "step": 4,
  1151. "message": {
  1152. "source": {
  1153. "kind": "tool",
  1154. "callId": "advanced-denied-native"
  1155. },
  1156. "content": [
  1157. {
  1158. "type": "tool-result",
  1159. "toolCallId": "advanced-denied-native",
  1160. "content": [
  1161. {
  1162. "type": "text",
  1163. "text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
  1164. }
  1165. ],
  1166. "isError": true
  1167. }
  1168. ],
  1169. "role": "user",
  1170. "id": "{{messageId}}"
  1171. },
  1172. "error": {
  1173. "name": "AutoReviewDeniedError",
  1174. "code": "AUTO_REVIEW_DENIED",
  1175. "reason": " transport raw\r\nreason "
  1176. }
  1177. },
  1178. "sourceEventSeqs": [
  1179. 41
  1180. ],
  1181. "surfaceOp": "append"
  1182. },
  1183. {
  1184. "type": "step/end",
  1185. "seq": 43,
  1186. "time": 0,
  1187. "data": {
  1188. "turn": 1,
  1189. "step": 4
  1190. }
  1191. },
  1192. {
  1193. "type": "step/start",
  1194. "seq": 44,
  1195. "time": 0,
  1196. "data": {
  1197. "turn": 1,
  1198. "step": 5
  1199. }
  1200. },
  1201. {
  1202. "type": "session-log-deepseek/delivery-accepted",
  1203. "seq": 45,
  1204. "time": 0,
  1205. "data": {
  1206. "sessionId": "{{parent}}",
  1207. "sessionFormatVersion": 3,
  1208. "throughSeq": 44
  1209. }
  1210. },
  1211. {
  1212. "type": "assistant/message",
  1213. "seq": 46,
  1214. "time": 0,
  1215. "data": {
  1216. "turn": 1,
  1217. "step": 5,
  1218. "message": {
  1219. "role": "assistant",
  1220. "content": [
  1221. {
  1222. "type": "tool-call",
  1223. "id": "advanced-denied-ptc",
  1224. "name": "run_code",
  1225. "arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  1226. }
  1227. ],
  1228. "source": {
  1229. "kind": "model",
  1230. "provider": "deepseek-official",
  1231. "model": "smoke-model",
  1232. "replayState": {
  1233. "response": {
  1234. "kind": "deepseek-messages",
  1235. "version": 1,
  1236. "model": "smoke-model"
  1237. },
  1238. "blocks": [
  1239. {
  1240. "type": "tool-call"
  1241. }
  1242. ]
  1243. }
  1244. },
  1245. "id": "{{messageId}}"
  1246. },
  1247. "usage": {
  1248. "inputTokens": 3,
  1249. "outputTokens": 3,
  1250. "totalTokens": 6
  1251. },
  1252. "stream": [
  1253. {
  1254. "type": "chunk",
  1255. "time": 0,
  1256. "chunk": {
  1257. "type": "block-start",
  1258. "index": 0,
  1259. "blockType": "tool-call"
  1260. }
  1261. },
  1262. {
  1263. "type": "tool-call-chunks",
  1264. "time0": 0,
  1265. "index": 0,
  1266. "dt": [],
  1267. "id": "advanced-denied-ptc",
  1268. "name": "run_code",
  1269. "args": [
  1270. ""
  1271. ]
  1272. },
  1273. {
  1274. "type": "tool-call-chunks",
  1275. "time0": 0,
  1276. "index": 0,
  1277. "dt": [],
  1278. "id": "advanced-denied-ptc",
  1279. "args": [
  1280. "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  1281. ]
  1282. },
  1283. {
  1284. "type": "chunk",
  1285. "time": 0,
  1286. "chunk": {
  1287. "type": "block-end",
  1288. "index": 0,
  1289. "block": {
  1290. "type": "tool-call",
  1291. "id": "advanced-denied-ptc",
  1292. "name": "run_code",
  1293. "arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  1294. }
  1295. }
  1296. },
  1297. {
  1298. "type": "chunk",
  1299. "time": 0,
  1300. "chunk": {
  1301. "type": "usage",
  1302. "usage": {
  1303. "inputTokens": 3,
  1304. "outputTokens": 3,
  1305. "totalTokens": 6
  1306. }
  1307. }
  1308. },
  1309. {
  1310. "type": "chunk",
  1311. "time": 0,
  1312. "chunk": {
  1313. "type": "finish",
  1314. "reason": {
  1315. "kind": "tool-calls"
  1316. },
  1317. "replayState": {
  1318. "response": {
  1319. "kind": "deepseek-messages",
  1320. "version": 1,
  1321. "model": "smoke-model"
  1322. },
  1323. "blocks": [
  1324. {
  1325. "type": "tool-call"
  1326. }
  1327. ]
  1328. }
  1329. }
  1330. }
  1331. ]
  1332. },
  1333. "surfaceOp": "append"
  1334. },
  1335. {
  1336. "type": "tool/call",
  1337. "seq": 47,
  1338. "time": 0,
  1339. "data": {
  1340. "turn": 1,
  1341. "step": 5,
  1342. "callId": "advanced-denied-ptc",
  1343. "name": "run_code",
  1344. "arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  1345. }
  1346. },
  1347. {
  1348. "type": "tool/ptc-dispatch-start",
  1349. "seq": 48,
  1350. "time": 0,
  1351. "data": {
  1352. "rootCallId": "advanced-denied-ptc",
  1353. "parentCallId": "advanced-denied-ptc",
  1354. "subCallId": "advanced-denied-ptc:ptc:1",
  1355. "name": "snapshot_double",
  1356. "arguments": {
  1357. "value": -1
  1358. }
  1359. }
  1360. },
  1361. {
  1362. "type": "tool/ptc-dispatch",
  1363. "seq": 49,
  1364. "time": 0,
  1365. "data": {
  1366. "rootCallId": "advanced-denied-ptc",
  1367. "parentCallId": "advanced-denied-ptc",
  1368. "subCallId": "advanced-denied-ptc:ptc:1",
  1369. "name": "snapshot_double",
  1370. "arguments": {
  1371. "value": -1
  1372. },
  1373. "isError": true,
  1374. "error": {
  1375. "name": "AutoReviewDeniedError",
  1376. "code": "AUTO_REVIEW_DENIED",
  1377. "reason": " transport raw\r\nreason "
  1378. },
  1379. "content": [
  1380. {
  1381. "type": "text",
  1382. "text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
  1383. }
  1384. ]
  1385. }
  1386. },
  1387. {
  1388. "type": "tool/result",
  1389. "seq": 50,
  1390. "time": 0,
  1391. "data": {
  1392. "turn": 1,
  1393. "step": 5,
  1394. "message": {
  1395. "source": {
  1396. "kind": "tool",
  1397. "callId": "advanced-denied-ptc"
  1398. },
  1399. "content": [
  1400. {
  1401. "type": "tool-result",
  1402. "toolCallId": "advanced-denied-ptc",
  1403. "content": [
  1404. {
  1405. "type": "text",
  1406. "text": "Auto review rejected tool \"snapshot_double\"; its body was not executed"
  1407. }
  1408. ],
  1409. "isError": false
  1410. }
  1411. ],
  1412. "role": "user",
  1413. "id": "{{messageId}}"
  1414. }
  1415. },
  1416. "sourceEventSeqs": [
  1417. 47
  1418. ],
  1419. "surfaceOp": "append"
  1420. },
  1421. {
  1422. "type": "step/end",
  1423. "seq": 51,
  1424. "time": 0,
  1425. "data": {
  1426. "turn": 1,
  1427. "step": 5
  1428. }
  1429. },
  1430. {
  1431. "type": "step/start",
  1432. "seq": 52,
  1433. "time": 0,
  1434. "data": {
  1435. "turn": 1,
  1436. "step": 6
  1437. }
  1438. },
  1439. {
  1440. "type": "session-log-deepseek/delivery-accepted",
  1441. "seq": 53,
  1442. "time": 0,
  1443. "data": {
  1444. "sessionId": "{{parent}}",
  1445. "sessionFormatVersion": 3,
  1446. "throughSeq": 52
  1447. }
  1448. },
  1449. {
  1450. "type": "assistant/message",
  1451. "seq": 54,
  1452. "time": 0,
  1453. "data": {
  1454. "turn": 1,
  1455. "step": 6,
  1456. "message": {
  1457. "role": "assistant",
  1458. "content": [
  1459. {
  1460. "type": "tool-call",
  1461. "id": "advanced-direct-child",
  1462. "name": "subagent",
  1463. "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  1464. }
  1465. ],
  1466. "source": {
  1467. "kind": "model",
  1468. "provider": "deepseek-official",
  1469. "model": "smoke-model",
  1470. "replayState": {
  1471. "response": {
  1472. "kind": "deepseek-messages",
  1473. "version": 1,
  1474. "model": "smoke-model"
  1475. },
  1476. "blocks": [
  1477. {
  1478. "type": "tool-call"
  1479. }
  1480. ]
  1481. }
  1482. },
  1483. "id": "{{messageId}}"
  1484. },
  1485. "usage": {
  1486. "inputTokens": 3,
  1487. "outputTokens": 3,
  1488. "totalTokens": 6
  1489. },
  1490. "stream": [
  1491. {
  1492. "type": "chunk",
  1493. "time": 0,
  1494. "chunk": {
  1495. "type": "block-start",
  1496. "index": 0,
  1497. "blockType": "tool-call"
  1498. }
  1499. },
  1500. {
  1501. "type": "tool-call-chunks",
  1502. "time0": 0,
  1503. "index": 0,
  1504. "dt": [],
  1505. "id": "advanced-direct-child",
  1506. "name": "subagent",
  1507. "args": [
  1508. ""
  1509. ]
  1510. },
  1511. {
  1512. "type": "tool-call-chunks",
  1513. "time0": 0,
  1514. "index": 0,
  1515. "dt": [],
  1516. "id": "advanced-direct-child",
  1517. "args": [
  1518. "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  1519. ]
  1520. },
  1521. {
  1522. "type": "chunk",
  1523. "time": 0,
  1524. "chunk": {
  1525. "type": "block-end",
  1526. "index": 0,
  1527. "block": {
  1528. "type": "tool-call",
  1529. "id": "advanced-direct-child",
  1530. "name": "subagent",
  1531. "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  1532. }
  1533. }
  1534. },
  1535. {
  1536. "type": "chunk",
  1537. "time": 0,
  1538. "chunk": {
  1539. "type": "usage",
  1540. "usage": {
  1541. "inputTokens": 3,
  1542. "outputTokens": 3,
  1543. "totalTokens": 6
  1544. }
  1545. }
  1546. },
  1547. {
  1548. "type": "chunk",
  1549. "time": 0,
  1550. "chunk": {
  1551. "type": "finish",
  1552. "reason": {
  1553. "kind": "tool-calls"
  1554. },
  1555. "replayState": {
  1556. "response": {
  1557. "kind": "deepseek-messages",
  1558. "version": 1,
  1559. "model": "smoke-model"
  1560. },
  1561. "blocks": [
  1562. {
  1563. "type": "tool-call"
  1564. }
  1565. ]
  1566. }
  1567. }
  1568. }
  1569. ]
  1570. },
  1571. "surfaceOp": "append"
  1572. },
  1573. {
  1574. "type": "tool/call",
  1575. "seq": 55,
  1576. "time": 0,
  1577. "data": {
  1578. "turn": 1,
  1579. "step": 6,
  1580. "callId": "advanced-direct-child",
  1581. "name": "subagent",
  1582. "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  1583. }
  1584. },
  1585. {
  1586. "type": "subagent/catalog",
  1587. "seq": 56,
  1588. "time": 0,
  1589. "data": {
  1590. "version": 0,
  1591. "childId": "{{child-1}}",
  1592. "childCreatedAt": 0,
  1593. "mode": "one-shot",
  1594. "label": "Check direct child"
  1595. }
  1596. },
  1597. {
  1598. "type": "tool/result",
  1599. "seq": 57,
  1600. "time": 0,
  1601. "data": {
  1602. "turn": 1,
  1603. "step": 6,
  1604. "message": {
  1605. "source": {
  1606. "kind": "tool",
  1607. "callId": "advanced-direct-child"
  1608. },
  1609. "content": [
  1610. {
  1611. "type": "tool-result",
  1612. "toolCallId": "advanced-direct-child",
  1613. "content": [
  1614. {
  1615. "type": "text",
  1616. "text": "DIRECT_CHILD_OK"
  1617. }
  1618. ],
  1619. "isError": false
  1620. }
  1621. ],
  1622. "role": "user",
  1623. "id": "{{messageId}}"
  1624. }
  1625. },
  1626. "sourceEventSeqs": [
  1627. 55
  1628. ],
  1629. "surfaceOp": "append"
  1630. },
  1631. {
  1632. "type": "step/end",
  1633. "seq": 58,
  1634. "time": 0,
  1635. "data": {
  1636. "turn": 1,
  1637. "step": 6
  1638. }
  1639. },
  1640. {
  1641. "type": "step/start",
  1642. "seq": 59,
  1643. "time": 0,
  1644. "data": {
  1645. "turn": 1,
  1646. "step": 7
  1647. }
  1648. },
  1649. {
  1650. "type": "session-log-deepseek/delivery-accepted",
  1651. "seq": 60,
  1652. "time": 0,
  1653. "data": {
  1654. "sessionId": "{{parent}}",
  1655. "sessionFormatVersion": 3,
  1656. "throughSeq": 59
  1657. }
  1658. },
  1659. {
  1660. "type": "assistant/message",
  1661. "seq": 61,
  1662. "time": 0,
  1663. "data": {
  1664. "turn": 1,
  1665. "step": 7,
  1666. "message": {
  1667. "role": "assistant",
  1668. "content": [
  1669. {
  1670. "type": "tool-call",
  1671. "id": "advanced-workflow",
  1672. "name": "workflow",
  1673. "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  1674. }
  1675. ],
  1676. "source": {
  1677. "kind": "model",
  1678. "provider": "deepseek-official",
  1679. "model": "smoke-model",
  1680. "replayState": {
  1681. "response": {
  1682. "kind": "deepseek-messages",
  1683. "version": 1,
  1684. "model": "smoke-model"
  1685. },
  1686. "blocks": [
  1687. {
  1688. "type": "tool-call"
  1689. }
  1690. ]
  1691. }
  1692. },
  1693. "id": "{{messageId}}"
  1694. },
  1695. "usage": {
  1696. "inputTokens": 3,
  1697. "outputTokens": 3,
  1698. "totalTokens": 6
  1699. },
  1700. "stream": [
  1701. {
  1702. "type": "chunk",
  1703. "time": 0,
  1704. "chunk": {
  1705. "type": "block-start",
  1706. "index": 0,
  1707. "blockType": "tool-call"
  1708. }
  1709. },
  1710. {
  1711. "type": "tool-call-chunks",
  1712. "time0": 0,
  1713. "index": 0,
  1714. "dt": [],
  1715. "id": "advanced-workflow",
  1716. "name": "workflow",
  1717. "args": [
  1718. ""
  1719. ]
  1720. },
  1721. {
  1722. "type": "tool-call-chunks",
  1723. "time0": 0,
  1724. "index": 0,
  1725. "dt": [],
  1726. "id": "advanced-workflow",
  1727. "args": [
  1728. "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  1729. ]
  1730. },
  1731. {
  1732. "type": "chunk",
  1733. "time": 0,
  1734. "chunk": {
  1735. "type": "block-end",
  1736. "index": 0,
  1737. "block": {
  1738. "type": "tool-call",
  1739. "id": "advanced-workflow",
  1740. "name": "workflow",
  1741. "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  1742. }
  1743. }
  1744. },
  1745. {
  1746. "type": "chunk",
  1747. "time": 0,
  1748. "chunk": {
  1749. "type": "usage",
  1750. "usage": {
  1751. "inputTokens": 3,
  1752. "outputTokens": 3,
  1753. "totalTokens": 6
  1754. }
  1755. }
  1756. },
  1757. {
  1758. "type": "chunk",
  1759. "time": 0,
  1760. "chunk": {
  1761. "type": "finish",
  1762. "reason": {
  1763. "kind": "tool-calls"
  1764. },
  1765. "replayState": {
  1766. "response": {
  1767. "kind": "deepseek-messages",
  1768. "version": 1,
  1769. "model": "smoke-model"
  1770. },
  1771. "blocks": [
  1772. {
  1773. "type": "tool-call"
  1774. }
  1775. ]
  1776. }
  1777. }
  1778. }
  1779. ]
  1780. },
  1781. "surfaceOp": "append"
  1782. },
  1783. {
  1784. "type": "tool/call",
  1785. "seq": 62,
  1786. "time": 0,
  1787. "data": {
  1788. "turn": 1,
  1789. "step": 7,
  1790. "callId": "advanced-workflow",
  1791. "name": "workflow",
  1792. "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  1793. }
  1794. },
  1795. {
  1796. "type": "tool-workflow/run-start",
  1797. "seq": 63,
  1798. "time": 0,
  1799. "data": {
  1800. "runId": "{{workflow-run}}",
  1801. "name": "advanced-exe-snapshot"
  1802. }
  1803. },
  1804. {
  1805. "type": "subagent/catalog",
  1806. "seq": 64,
  1807. "time": 0,
  1808. "data": {
  1809. "version": 0,
  1810. "childId": "{{child-2}}",
  1811. "childCreatedAt": 0,
  1812. "mode": "one-shot"
  1813. }
  1814. },
  1815. {
  1816. "type": "tool-workflow/agent-start",
  1817. "seq": 65,
  1818. "time": 0,
  1819. "data": {
  1820. "runId": "{{workflow-run}}",
  1821. "seq": 1,
  1822. "label": "workflow-child",
  1823. "phase": "Delegate",
  1824. "childId": "{{child-2}}"
  1825. }
  1826. },
  1827. {
  1828. "type": "tool-workflow/agent-end",
  1829. "seq": 66,
  1830. "time": 0,
  1831. "data": {
  1832. "runId": "{{workflow-run}}",
  1833. "seq": 1,
  1834. "outcome": "completed"
  1835. }
  1836. },
  1837. {
  1838. "type": "tool-workflow/run-end",
  1839. "seq": 67,
  1840. "time": 0,
  1841. "data": {
  1842. "runId": "{{workflow-run}}",
  1843. "stopReason": "completed"
  1844. }
  1845. },
  1846. {
  1847. "type": "tool/result",
  1848. "seq": 68,
  1849. "time": 0,
  1850. "data": {
  1851. "turn": 1,
  1852. "step": 7,
  1853. "message": {
  1854. "source": {
  1855. "kind": "tool",
  1856. "callId": "advanced-workflow"
  1857. },
  1858. "content": [
  1859. {
  1860. "type": "tool-result",
  1861. "toolCallId": "advanced-workflow",
  1862. "content": [
  1863. {
  1864. "type": "text",
  1865. "text": "workflow \"advanced-exe-snapshot\" completed (1 agent).\nReturn value:\n{\n \"reply\": \"WORKFLOW_CHILD_OK\"\n}"
  1866. }
  1867. ],
  1868. "isError": false
  1869. }
  1870. ],
  1871. "role": "user",
  1872. "id": "{{messageId}}"
  1873. }
  1874. },
  1875. "sourceEventSeqs": [
  1876. 62
  1877. ],
  1878. "surfaceOp": "append"
  1879. },
  1880. {
  1881. "type": "step/end",
  1882. "seq": 69,
  1883. "time": 0,
  1884. "data": {
  1885. "turn": 1,
  1886. "step": 7
  1887. }
  1888. },
  1889. {
  1890. "type": "step/start",
  1891. "seq": 70,
  1892. "time": 0,
  1893. "data": {
  1894. "turn": 1,
  1895. "step": 8
  1896. }
  1897. },
  1898. {
  1899. "type": "session-log-deepseek/delivery-accepted",
  1900. "seq": 71,
  1901. "time": 0,
  1902. "data": {
  1903. "sessionId": "{{parent}}",
  1904. "sessionFormatVersion": 3,
  1905. "throughSeq": 70
  1906. }
  1907. },
  1908. {
  1909. "type": "assistant/message",
  1910. "seq": 72,
  1911. "time": 0,
  1912. "data": {
  1913. "turn": 1,
  1914. "step": 8,
  1915. "message": {
  1916. "role": "assistant",
  1917. "content": [
  1918. {
  1919. "type": "tool-call",
  1920. "id": "advanced-undefine",
  1921. "name": "cordis_undefine",
  1922. "arguments": "{\"pluginId\": \"snap-1\"}"
  1923. }
  1924. ],
  1925. "source": {
  1926. "kind": "model",
  1927. "provider": "deepseek-official",
  1928. "model": "smoke-model",
  1929. "replayState": {
  1930. "response": {
  1931. "kind": "deepseek-messages",
  1932. "version": 1,
  1933. "model": "smoke-model"
  1934. },
  1935. "blocks": [
  1936. {
  1937. "type": "tool-call"
  1938. }
  1939. ]
  1940. }
  1941. },
  1942. "id": "{{messageId}}"
  1943. },
  1944. "usage": {
  1945. "inputTokens": 3,
  1946. "outputTokens": 3,
  1947. "totalTokens": 6
  1948. },
  1949. "stream": [
  1950. {
  1951. "type": "chunk",
  1952. "time": 0,
  1953. "chunk": {
  1954. "type": "block-start",
  1955. "index": 0,
  1956. "blockType": "tool-call"
  1957. }
  1958. },
  1959. {
  1960. "type": "tool-call-chunks",
  1961. "time0": 0,
  1962. "index": 0,
  1963. "dt": [],
  1964. "id": "advanced-undefine",
  1965. "name": "cordis_undefine",
  1966. "args": [
  1967. ""
  1968. ]
  1969. },
  1970. {
  1971. "type": "tool-call-chunks",
  1972. "time0": 0,
  1973. "index": 0,
  1974. "dt": [],
  1975. "id": "advanced-undefine",
  1976. "args": [
  1977. "{\"pluginId\": \"snap-1\"}"
  1978. ]
  1979. },
  1980. {
  1981. "type": "chunk",
  1982. "time": 0,
  1983. "chunk": {
  1984. "type": "block-end",
  1985. "index": 0,
  1986. "block": {
  1987. "type": "tool-call",
  1988. "id": "advanced-undefine",
  1989. "name": "cordis_undefine",
  1990. "arguments": "{\"pluginId\": \"snap-1\"}"
  1991. }
  1992. }
  1993. },
  1994. {
  1995. "type": "chunk",
  1996. "time": 0,
  1997. "chunk": {
  1998. "type": "usage",
  1999. "usage": {
  2000. "inputTokens": 3,
  2001. "outputTokens": 3,
  2002. "totalTokens": 6
  2003. }
  2004. }
  2005. },
  2006. {
  2007. "type": "chunk",
  2008. "time": 0,
  2009. "chunk": {
  2010. "type": "finish",
  2011. "reason": {
  2012. "kind": "tool-calls"
  2013. },
  2014. "replayState": {
  2015. "response": {
  2016. "kind": "deepseek-messages",
  2017. "version": 1,
  2018. "model": "smoke-model"
  2019. },
  2020. "blocks": [
  2021. {
  2022. "type": "tool-call"
  2023. }
  2024. ]
  2025. }
  2026. }
  2027. }
  2028. ]
  2029. },
  2030. "surfaceOp": "append"
  2031. },
  2032. {
  2033. "type": "tool/call",
  2034. "seq": 73,
  2035. "time": 0,
  2036. "data": {
  2037. "turn": 1,
  2038. "step": 8,
  2039. "callId": "advanced-undefine",
  2040. "name": "cordis_undefine",
  2041. "arguments": "{\"pluginId\": \"snap-1\"}"
  2042. }
  2043. },
  2044. {
  2045. "type": "tool/result",
  2046. "seq": 74,
  2047. "time": 0,
  2048. "data": {
  2049. "turn": 1,
  2050. "step": 8,
  2051. "message": {
  2052. "source": {
  2053. "kind": "tool",
  2054. "callId": "advanced-undefine"
  2055. },
  2056. "content": [
  2057. {
  2058. "type": "tool-result",
  2059. "toolCallId": "advanced-undefine",
  2060. "content": [
  2061. {
  2062. "type": "text",
  2063. "text": "Removed dynamic Plugin snap-1 and all of its Packages."
  2064. }
  2065. ],
  2066. "isError": false
  2067. }
  2068. ],
  2069. "role": "user",
  2070. "id": "{{messageId}}"
  2071. }
  2072. },
  2073. "sourceEventSeqs": [
  2074. 73
  2075. ],
  2076. "surfaceOp": "append"
  2077. },
  2078. {
  2079. "type": "step/end",
  2080. "seq": 75,
  2081. "time": 0,
  2082. "data": {
  2083. "turn": 1,
  2084. "step": 8
  2085. }
  2086. },
  2087. {
  2088. "type": "step/start",
  2089. "seq": 76,
  2090. "time": 0,
  2091. "data": {
  2092. "turn": 1,
  2093. "step": 9
  2094. }
  2095. },
  2096. {
  2097. "type": "system/message",
  2098. "seq": 77,
  2099. "time": 0,
  2100. "data": {
  2101. "turn": 1,
  2102. "step": 9,
  2103. "message": {
  2104. "role": "system",
  2105. "content": [
  2106. {
  2107. "type": "text",
  2108. "text": "{{system}}"
  2109. }
  2110. ],
  2111. "source": {
  2112. "kind": "plugin",
  2113. "plugin": "@deepseek-ai/dsh-system-prompt"
  2114. },
  2115. "id": "{{messageId}}"
  2116. }
  2117. },
  2118. "sourceEventSeqs": [
  2119. 29
  2120. ],
  2121. "surfaceOp": {
  2122. "op": "replace",
  2123. "startSeq": 29,
  2124. "endSeq": 29
  2125. }
  2126. },
  2127. {
  2128. "type": "request/header",
  2129. "seq": 78,
  2130. "time": 0,
  2131. "data": {
  2132. "header": {
  2133. "config": {
  2134. "provider": "deepseek-official",
  2135. "model": "smoke-model",
  2136. "maxTokens": 256000,
  2137. "reasoningEffort": "high"
  2138. },
  2139. "adapterDefaults": {
  2140. "reasoningEffort": true,
  2141. "maxTokens": true
  2142. },
  2143. "tools": [
  2144. "cordis_define",
  2145. "cordis_inspect_list",
  2146. "cordis_inspect_query",
  2147. "cordis_inspect_self",
  2148. "cordis_run",
  2149. "cordis_stop",
  2150. "cordis_undefine",
  2151. "job_kill",
  2152. "job_list",
  2153. "job_output",
  2154. "run_code",
  2155. "subagent",
  2156. "workflow"
  2157. ]
  2158. },
  2159. "reason": "change",
  2160. "startsSeries": true
  2161. }
  2162. },
  2163. {
  2164. "type": "session-log-deepseek/delivery-accepted",
  2165. "seq": 79,
  2166. "time": 0,
  2167. "data": {
  2168. "sessionId": "{{parent}}",
  2169. "sessionFormatVersion": 3,
  2170. "throughSeq": 78
  2171. }
  2172. },
  2173. {
  2174. "type": "assistant/message",
  2175. "seq": 80,
  2176. "time": 0,
  2177. "data": {
  2178. "turn": 1,
  2179. "step": 9,
  2180. "message": {
  2181. "role": "assistant",
  2182. "content": [
  2183. {
  2184. "type": "text",
  2185. "text": "ADVANCED_EXECUTABLE_OK"
  2186. }
  2187. ],
  2188. "source": {
  2189. "kind": "model",
  2190. "provider": "deepseek-official",
  2191. "model": "smoke-model",
  2192. "replayState": {
  2193. "response": {
  2194. "kind": "deepseek-messages",
  2195. "version": 1,
  2196. "model": "smoke-model"
  2197. },
  2198. "blocks": [
  2199. {
  2200. "type": "text"
  2201. }
  2202. ]
  2203. }
  2204. },
  2205. "id": "{{message:1}}"
  2206. },
  2207. "usage": {
  2208. "inputTokens": 3,
  2209. "outputTokens": 3,
  2210. "totalTokens": 6
  2211. },
  2212. "stream": [
  2213. {
  2214. "type": "chunk",
  2215. "time": 0,
  2216. "chunk": {
  2217. "type": "block-start",
  2218. "index": 0,
  2219. "blockType": "text"
  2220. }
  2221. },
  2222. {
  2223. "type": "text-chunks",
  2224. "time0": 0,
  2225. "index": 0,
  2226. "dt": [],
  2227. "texts": [
  2228. "ADVANCED_EXECUTABLE_OK"
  2229. ]
  2230. },
  2231. {
  2232. "type": "chunk",
  2233. "time": 0,
  2234. "chunk": {
  2235. "type": "block-end",
  2236. "index": 0,
  2237. "block": {
  2238. "type": "text",
  2239. "text": "ADVANCED_EXECUTABLE_OK"
  2240. }
  2241. }
  2242. },
  2243. {
  2244. "type": "chunk",
  2245. "time": 0,
  2246. "chunk": {
  2247. "type": "usage",
  2248. "usage": {
  2249. "inputTokens": 3,
  2250. "outputTokens": 3,
  2251. "totalTokens": 6
  2252. }
  2253. }
  2254. },
  2255. {
  2256. "type": "chunk",
  2257. "time": 0,
  2258. "chunk": {
  2259. "type": "finish",
  2260. "reason": {
  2261. "kind": "stop"
  2262. },
  2263. "replayState": {
  2264. "response": {
  2265. "kind": "deepseek-messages",
  2266. "version": 1,
  2267. "model": "smoke-model"
  2268. },
  2269. "blocks": [
  2270. {
  2271. "type": "text"
  2272. }
  2273. ]
  2274. }
  2275. }
  2276. }
  2277. ]
  2278. },
  2279. "surfaceOp": "append"
  2280. },
  2281. {
  2282. "type": "step/end",
  2283. "seq": 81,
  2284. "time": 0,
  2285. "data": {
  2286. "turn": 1,
  2287. "step": 9
  2288. }
  2289. },
  2290. {
  2291. "type": "command/run",
  2292. "seq": 82,
  2293. "time": 0,
  2294. "data": {
  2295. "commandId": "{{command:1}}",
  2296. "name": "feedback",
  2297. "source": {
  2298. "kind": "user"
  2299. }
  2300. }
  2301. },
  2302. {
  2303. "type": "feedback/record",
  2304. "seq": 83,
  2305. "time": 0,
  2306. "data": {
  2307. "text": "The session needs a clearer explanation."
  2308. }
  2309. },
  2310. {
  2311. "type": "command/done",
  2312. "seq": 84,
  2313. "time": 0,
  2314. "data": {
  2315. "commandId": "{{command:1}}",
  2316. "kind": "success",
  2317. "text": "Feedback recorded for session {{parent}}\nAnonymous user: {{anonymous-user}}."
  2318. }
  2319. },
  2320. {
  2321. "type": "feedback/record",
  2322. "seq": 85,
  2323. "time": 0,
  2324. "data": {
  2325. "category": "other"
  2326. }
  2327. },
  2328. {
  2329. "type": "feedback/message-put",
  2330. "seq": 86,
  2331. "time": 0,
  2332. "data": {
  2333. "sessionId": "{{parent}}",
  2334. "item": {
  2335. "messageId": "{{message:1}}",
  2336. "rating": "negative",
  2337. "note": "Explain the result.",
  2338. "category": "task-result",
  2339. "version": "{{feedback-version:1}}",
  2340. "createdAt": 0,
  2341. "updatedAt": 0
  2342. }
  2343. }
  2344. },
  2345. {
  2346. "type": "feedback/message-put",
  2347. "seq": 87,
  2348. "time": 0,
  2349. "data": {
  2350. "sessionId": "{{parent}}",
  2351. "item": {
  2352. "messageId": "{{message:1}}",
  2353. "rating": "positive",
  2354. "note": "The explanation is clear now.",
  2355. "version": "{{feedback-version:2}}",
  2356. "createdAt": 0,
  2357. "updatedAt": 0
  2358. }
  2359. }
  2360. },
  2361. {
  2362. "type": "feedback/message-delete",
  2363. "seq": 88,
  2364. "time": 0,
  2365. "data": {
  2366. "sessionId": "{{parent}}",
  2367. "messageId": "{{message:1}}"
  2368. }
  2369. },
  2370. {
  2371. "type": "turn/end",
  2372. "seq": 89,
  2373. "time": 0,
  2374. "data": {
  2375. "turn": 1,
  2376. "reason": {
  2377. "kind": "completed"
  2378. }
  2379. }
  2380. }
  2381. ],
  2382. "notifications": [
  2383. {
  2384. "method": "session.event",
  2385. "payload": {
  2386. "sessionId": "{{parent}}",
  2387. "event": {
  2388. "type": "agent/inbox/spliced",
  2389. "seq": 3,
  2390. "time": 0,
  2391. "data": {
  2392. "target": "next-turn",
  2393. "start": 0,
  2394. "inserted": [
  2395. {
  2396. "content": [
  2397. {
  2398. "type": "text",
  2399. "text": "Run the advanced packaged-runtime snapshot scenario."
  2400. }
  2401. ],
  2402. "source": {
  2403. "kind": "user"
  2404. },
  2405. "role": "user",
  2406. "id": "{{messageId}}"
  2407. }
  2408. ]
  2409. }
  2410. }
  2411. }
  2412. },
  2413. {
  2414. "method": "session.status",
  2415. "payload": {
  2416. "sessionId": "{{parent}}",
  2417. "status": "running"
  2418. }
  2419. },
  2420. {
  2421. "method": "session.event",
  2422. "payload": {
  2423. "sessionId": "{{parent}}",
  2424. "event": {
  2425. "type": "turn/start",
  2426. "seq": 4,
  2427. "time": 0,
  2428. "data": {
  2429. "turn": 1
  2430. }
  2431. }
  2432. }
  2433. },
  2434. {
  2435. "method": "session.event",
  2436. "payload": {
  2437. "sessionId": "{{parent}}",
  2438. "event": {
  2439. "type": "agent/inbox/spliced",
  2440. "seq": 5,
  2441. "time": 0,
  2442. "data": {
  2443. "target": "next-turn",
  2444. "start": 0,
  2445. "removedCount": 1,
  2446. "inserted": []
  2447. }
  2448. }
  2449. }
  2450. },
  2451. {
  2452. "method": "session.event",
  2453. "payload": {
  2454. "sessionId": "{{parent}}",
  2455. "event": {
  2456. "type": "step/start",
  2457. "seq": 6,
  2458. "time": 0,
  2459. "data": {
  2460. "turn": 1,
  2461. "step": 1
  2462. }
  2463. }
  2464. }
  2465. },
  2466. {
  2467. "method": "session.event",
  2468. "payload": {
  2469. "sessionId": "{{parent}}",
  2470. "event": {
  2471. "type": "system/message",
  2472. "seq": 7,
  2473. "time": 0,
  2474. "data": {
  2475. "turn": 1,
  2476. "step": 1,
  2477. "message": {
  2478. "role": "system",
  2479. "content": [
  2480. {
  2481. "type": "text",
  2482. "text": "{{system}}"
  2483. }
  2484. ],
  2485. "source": {
  2486. "kind": "plugin",
  2487. "plugin": "@deepseek-ai/dsh-system-prompt"
  2488. },
  2489. "id": "{{messageId}}"
  2490. }
  2491. },
  2492. "surfaceOp": "append"
  2493. }
  2494. }
  2495. },
  2496. {
  2497. "method": "session.event",
  2498. "payload": {
  2499. "sessionId": "{{parent}}",
  2500. "event": {
  2501. "type": "user/message",
  2502. "seq": 8,
  2503. "time": 0,
  2504. "data": {
  2505. "content": [
  2506. {
  2507. "type": "text",
  2508. "text": "Run the advanced packaged-runtime snapshot scenario."
  2509. }
  2510. ],
  2511. "source": {
  2512. "kind": "user"
  2513. },
  2514. "role": "user",
  2515. "id": "{{messageId}}"
  2516. },
  2517. "surfaceOp": "append"
  2518. }
  2519. }
  2520. },
  2521. {
  2522. "method": "session.event",
  2523. "payload": {
  2524. "sessionId": "{{parent}}",
  2525. "event": {
  2526. "type": "user/message",
  2527. "seq": 9,
  2528. "time": 0,
  2529. "data": {
  2530. "content": [
  2531. {
  2532. "type": "text",
  2533. "text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
  2534. }
  2535. ],
  2536. "source": {
  2537. "kind": "plugin",
  2538. "plugin": "@deepseek-ai/dsh-system-prompt",
  2539. "form": "snapshot",
  2540. "sections": [
  2541. {
  2542. "name": "sandbox:policy",
  2543. "text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
  2544. },
  2545. {
  2546. "name": "approval:policy",
  2547. "text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
  2548. }
  2549. ]
  2550. },
  2551. "role": "user",
  2552. "id": "{{messageId}}"
  2553. },
  2554. "surfaceOp": "append"
  2555. }
  2556. }
  2557. },
  2558. {
  2559. "method": "session.event",
  2560. "payload": {
  2561. "sessionId": "{{parent}}",
  2562. "event": {
  2563. "type": "user/message",
  2564. "seq": 10,
  2565. "time": 0,
  2566. "data": {
  2567. "id": "{{messageId}}",
  2568. "role": "user",
  2569. "content": [
  2570. {
  2571. "type": "image",
  2572. "attachment": {
  2573. "attachmentId": "sha256:b1ff9c8ea3a780bad09b346c423d2d0e46815926879b18e841d928376a946640",
  2574. "mediaType": "image/png",
  2575. "width": 1,
  2576. "height": 1,
  2577. "bytes": 69
  2578. }
  2579. }
  2580. ],
  2581. "source": {
  2582. "kind": "plugin",
  2583. "plugin": "python-snapshot-image-offload"
  2584. }
  2585. },
  2586. "surfaceOp": "append"
  2587. }
  2588. }
  2589. },
  2590. {
  2591. "method": "session.event",
  2592. "payload": {
  2593. "sessionId": "{{parent}}",
  2594. "event": {
  2595. "type": "request/header",
  2596. "seq": 11,
  2597. "time": 0,
  2598. "data": {
  2599. "header": {
  2600. "config": {
  2601. "provider": "deepseek-official",
  2602. "model": "smoke-model",
  2603. "maxTokens": 256000,
  2604. "reasoningEffort": "high"
  2605. },
  2606. "adapterDefaults": {
  2607. "reasoningEffort": true,
  2608. "maxTokens": true
  2609. },
  2610. "tools": [
  2611. "cordis_define",
  2612. "cordis_inspect_list",
  2613. "cordis_inspect_query",
  2614. "cordis_inspect_self",
  2615. "cordis_run",
  2616. "cordis_stop",
  2617. "cordis_undefine",
  2618. "job_kill",
  2619. "job_list",
  2620. "job_output",
  2621. "run_code",
  2622. "subagent",
  2623. "workflow"
  2624. ]
  2625. },
  2626. "reason": "initial"
  2627. }
  2628. }
  2629. }
  2630. },
  2631. {
  2632. "method": "session.event",
  2633. "payload": {
  2634. "sessionId": "{{parent}}",
  2635. "event": {
  2636. "type": "request/context",
  2637. "seq": 12,
  2638. "time": 0,
  2639. "data": {
  2640. "provider": "deepseek-official",
  2641. "model": "smoke-model",
  2642. "contextWindow": 1000000
  2643. }
  2644. }
  2645. }
  2646. },
  2647. {
  2648. "method": "session.event",
  2649. "payload": {
  2650. "sessionId": "{{parent}}",
  2651. "event": {
  2652. "type": "session/title",
  2653. "seq": 13,
  2654. "time": 0,
  2655. "data": {
  2656. "title": "Run the advanced packaged-runtime snapsh",
  2657. "messageSeqs": [
  2658. 8
  2659. ],
  2660. "source": {
  2661. "kind": "fallback"
  2662. }
  2663. }
  2664. }
  2665. }
  2666. },
  2667. {
  2668. "method": "session.event",
  2669. "payload": {
  2670. "sessionId": "{{parent}}",
  2671. "event": {
  2672. "type": "assistant/attempt",
  2673. "seq": 14,
  2674. "time": 0,
  2675. "data": {
  2676. "turn": 1,
  2677. "step": 1,
  2678. "stream": [
  2679. {
  2680. "type": "chunk",
  2681. "time": 0,
  2682. "chunk": {
  2683. "type": "finish",
  2684. "reason": {
  2685. "kind": "error",
  2686. "failure": {
  2687. "code": "IMAGE_OFFLOAD_REQUIRED",
  2688. "message": "authored image budget failure",
  2689. "offloadImages": 1
  2690. }
  2691. }
  2692. }
  2693. }
  2694. ]
  2695. }
  2696. }
  2697. }
  2698. },
  2699. {
  2700. "method": "session.event",
  2701. "payload": {
  2702. "sessionId": "{{parent}}",
  2703. "event": {
  2704. "type": "image/offload",
  2705. "seq": 15,
  2706. "time": 0,
  2707. "data": {
  2708. "targets": [
  2709. {
  2710. "seq": 10,
  2711. "imageIndexes": [
  2712. 0
  2713. ]
  2714. }
  2715. ]
  2716. }
  2717. }
  2718. }
  2719. },
  2720. {
  2721. "method": "session.event",
  2722. "payload": {
  2723. "sessionId": "{{parent}}",
  2724. "event": {
  2725. "type": "request/header",
  2726. "seq": 16,
  2727. "time": 0,
  2728. "data": {
  2729. "header": {
  2730. "config": {
  2731. "provider": "deepseek-official",
  2732. "model": "smoke-model",
  2733. "maxTokens": 256000,
  2734. "reasoningEffort": "high"
  2735. },
  2736. "adapterDefaults": {
  2737. "reasoningEffort": true,
  2738. "maxTokens": true
  2739. },
  2740. "tools": [
  2741. "cordis_define",
  2742. "cordis_inspect_list",
  2743. "cordis_inspect_query",
  2744. "cordis_inspect_self",
  2745. "cordis_run",
  2746. "cordis_stop",
  2747. "cordis_undefine",
  2748. "job_kill",
  2749. "job_list",
  2750. "job_output",
  2751. "run_code",
  2752. "subagent",
  2753. "workflow"
  2754. ]
  2755. },
  2756. "reason": "series"
  2757. }
  2758. }
  2759. }
  2760. },
  2761. {
  2762. "method": "session.event",
  2763. "payload": {
  2764. "sessionId": "{{parent}}",
  2765. "event": {
  2766. "type": "session-log-deepseek/delivery-accepted",
  2767. "seq": 17,
  2768. "time": 0,
  2769. "data": {
  2770. "sessionId": "{{parent}}",
  2771. "sessionFormatVersion": 3,
  2772. "throughSeq": 16
  2773. }
  2774. }
  2775. }
  2776. },
  2777. {
  2778. "method": "session.event",
  2779. "payload": {
  2780. "sessionId": "{{parent}}",
  2781. "event": {
  2782. "type": "assistant/message",
  2783. "seq": 18,
  2784. "time": 0,
  2785. "data": {
  2786. "turn": 1,
  2787. "step": 1,
  2788. "message": {
  2789. "role": "assistant",
  2790. "content": [
  2791. {
  2792. "type": "tool-call",
  2793. "id": "advanced-define",
  2794. "name": "cordis_define",
  2795. "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  2796. }
  2797. ],
  2798. "source": {
  2799. "kind": "model",
  2800. "provider": "deepseek-official",
  2801. "model": "smoke-model",
  2802. "replayState": {
  2803. "response": {
  2804. "kind": "deepseek-messages",
  2805. "version": 1,
  2806. "model": "smoke-model"
  2807. },
  2808. "blocks": [
  2809. {
  2810. "type": "tool-call"
  2811. }
  2812. ]
  2813. }
  2814. },
  2815. "id": "{{messageId}}"
  2816. },
  2817. "usage": {
  2818. "inputTokens": 3,
  2819. "outputTokens": 3,
  2820. "totalTokens": 6
  2821. },
  2822. "stream": [
  2823. {
  2824. "type": "chunk",
  2825. "time": 0,
  2826. "chunk": {
  2827. "type": "block-start",
  2828. "index": 0,
  2829. "blockType": "tool-call"
  2830. }
  2831. },
  2832. {
  2833. "type": "tool-call-chunks",
  2834. "time0": 0,
  2835. "index": 0,
  2836. "dt": [],
  2837. "id": "advanced-define",
  2838. "name": "cordis_define",
  2839. "args": [
  2840. ""
  2841. ]
  2842. },
  2843. {
  2844. "type": "tool-call-chunks",
  2845. "time0": 0,
  2846. "index": 0,
  2847. "dt": [],
  2848. "id": "advanced-define",
  2849. "args": [
  2850. "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  2851. ]
  2852. },
  2853. {
  2854. "type": "chunk",
  2855. "time": 0,
  2856. "chunk": {
  2857. "type": "block-end",
  2858. "index": 0,
  2859. "block": {
  2860. "type": "tool-call",
  2861. "id": "advanced-define",
  2862. "name": "cordis_define",
  2863. "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  2864. }
  2865. }
  2866. },
  2867. {
  2868. "type": "chunk",
  2869. "time": 0,
  2870. "chunk": {
  2871. "type": "usage",
  2872. "usage": {
  2873. "inputTokens": 3,
  2874. "outputTokens": 3,
  2875. "totalTokens": 6
  2876. }
  2877. }
  2878. },
  2879. {
  2880. "type": "chunk",
  2881. "time": 0,
  2882. "chunk": {
  2883. "type": "finish",
  2884. "reason": {
  2885. "kind": "tool-calls"
  2886. },
  2887. "replayState": {
  2888. "response": {
  2889. "kind": "deepseek-messages",
  2890. "version": 1,
  2891. "model": "smoke-model"
  2892. },
  2893. "blocks": [
  2894. {
  2895. "type": "tool-call"
  2896. }
  2897. ]
  2898. }
  2899. }
  2900. }
  2901. ]
  2902. },
  2903. "surfaceOp": "append"
  2904. }
  2905. }
  2906. },
  2907. {
  2908. "method": "session.event",
  2909. "payload": {
  2910. "sessionId": "{{parent}}",
  2911. "event": {
  2912. "type": "tool/call",
  2913. "seq": 19,
  2914. "time": 0,
  2915. "data": {
  2916. "turn": 1,
  2917. "step": 1,
  2918. "callId": "advanced-define",
  2919. "name": "cordis_define",
  2920. "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n ctx.on('tools/pre-execute', (exec, next) => {\\n if (exec.name !== 'snapshot_double' || exec.arguments.value !== -1) return next()\\n return {\\n kind: 'deny',\\n reason: 'Auto review rejected tool \\\"snapshot_double\\\"; its body was not executed',\\n info: {\\n name: 'AutoReviewDeniedError', code: 'AUTO_REVIEW_DENIED',\\n reason: ' transport raw\\\\r\\\\nreason ',\\n },\\n }\\n })\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"
  2921. }
  2922. }
  2923. }
  2924. },
  2925. {
  2926. "method": "session.event",
  2927. "payload": {
  2928. "sessionId": "{{parent}}",
  2929. "event": {
  2930. "type": "tool/result",
  2931. "seq": 20,
  2932. "time": 0,
  2933. "data": {
  2934. "turn": 1,
  2935. "step": 1,
  2936. "message": {
  2937. "source": {
  2938. "kind": "tool",
  2939. "callId": "advanced-define"
  2940. },
  2941. "content": [
  2942. {
  2943. "type": "tool-result",
  2944. "toolCallId": "advanced-define",
  2945. "content": [
  2946. {
  2947. "type": "text",
  2948. "text": "Defined snap-1/pkg-1 (Snapshot Double); it is not running yet. Use cordis_run to activate this Package."
  2949. }
  2950. ],
  2951. "isError": false
  2952. }
  2953. ],
  2954. "role": "user",
  2955. "id": "{{messageId}}"
  2956. },
  2957. "meta": {
  2958. "pluginId": "snap-1",
  2959. "packageId": "pkg-1"
  2960. }
  2961. },
  2962. "sourceEventSeqs": [
  2963. 19
  2964. ],
  2965. "surfaceOp": "append"
  2966. }
  2967. }
  2968. },
  2969. {
  2970. "method": "session.event",
  2971. "payload": {
  2972. "sessionId": "{{parent}}",
  2973. "event": {
  2974. "type": "step/end",
  2975. "seq": 21,
  2976. "time": 0,
  2977. "data": {
  2978. "turn": 1,
  2979. "step": 1
  2980. }
  2981. }
  2982. }
  2983. },
  2984. {
  2985. "method": "session.event",
  2986. "payload": {
  2987. "sessionId": "{{parent}}",
  2988. "event": {
  2989. "type": "step/start",
  2990. "seq": 22,
  2991. "time": 0,
  2992. "data": {
  2993. "turn": 1,
  2994. "step": 2
  2995. }
  2996. }
  2997. }
  2998. },
  2999. {
  3000. "method": "session.event",
  3001. "payload": {
  3002. "sessionId": "{{parent}}",
  3003. "event": {
  3004. "type": "session-log-deepseek/delivery-accepted",
  3005. "seq": 23,
  3006. "time": 0,
  3007. "data": {
  3008. "sessionId": "{{parent}}",
  3009. "sessionFormatVersion": 3,
  3010. "throughSeq": 22
  3011. }
  3012. }
  3013. }
  3014. },
  3015. {
  3016. "method": "session.event",
  3017. "payload": {
  3018. "sessionId": "{{parent}}",
  3019. "event": {
  3020. "type": "assistant/message",
  3021. "seq": 24,
  3022. "time": 0,
  3023. "data": {
  3024. "turn": 1,
  3025. "step": 2,
  3026. "message": {
  3027. "role": "assistant",
  3028. "content": [
  3029. {
  3030. "type": "tool-call",
  3031. "id": "advanced-run",
  3032. "name": "cordis_run",
  3033. "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  3034. }
  3035. ],
  3036. "source": {
  3037. "kind": "model",
  3038. "provider": "deepseek-official",
  3039. "model": "smoke-model",
  3040. "replayState": {
  3041. "response": {
  3042. "kind": "deepseek-messages",
  3043. "version": 1,
  3044. "model": "smoke-model"
  3045. },
  3046. "blocks": [
  3047. {
  3048. "type": "tool-call"
  3049. }
  3050. ]
  3051. }
  3052. },
  3053. "id": "{{messageId}}"
  3054. },
  3055. "usage": {
  3056. "inputTokens": 3,
  3057. "outputTokens": 3,
  3058. "totalTokens": 6
  3059. },
  3060. "stream": [
  3061. {
  3062. "type": "chunk",
  3063. "time": 0,
  3064. "chunk": {
  3065. "type": "block-start",
  3066. "index": 0,
  3067. "blockType": "tool-call"
  3068. }
  3069. },
  3070. {
  3071. "type": "tool-call-chunks",
  3072. "time0": 0,
  3073. "index": 0,
  3074. "dt": [],
  3075. "id": "advanced-run",
  3076. "name": "cordis_run",
  3077. "args": [
  3078. ""
  3079. ]
  3080. },
  3081. {
  3082. "type": "tool-call-chunks",
  3083. "time0": 0,
  3084. "index": 0,
  3085. "dt": [],
  3086. "id": "advanced-run",
  3087. "args": [
  3088. "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  3089. ]
  3090. },
  3091. {
  3092. "type": "chunk",
  3093. "time": 0,
  3094. "chunk": {
  3095. "type": "block-end",
  3096. "index": 0,
  3097. "block": {
  3098. "type": "tool-call",
  3099. "id": "advanced-run",
  3100. "name": "cordis_run",
  3101. "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  3102. }
  3103. }
  3104. },
  3105. {
  3106. "type": "chunk",
  3107. "time": 0,
  3108. "chunk": {
  3109. "type": "usage",
  3110. "usage": {
  3111. "inputTokens": 3,
  3112. "outputTokens": 3,
  3113. "totalTokens": 6
  3114. }
  3115. }
  3116. },
  3117. {
  3118. "type": "chunk",
  3119. "time": 0,
  3120. "chunk": {
  3121. "type": "finish",
  3122. "reason": {
  3123. "kind": "tool-calls"
  3124. },
  3125. "replayState": {
  3126. "response": {
  3127. "kind": "deepseek-messages",
  3128. "version": 1,
  3129. "model": "smoke-model"
  3130. },
  3131. "blocks": [
  3132. {
  3133. "type": "tool-call"
  3134. }
  3135. ]
  3136. }
  3137. }
  3138. }
  3139. ]
  3140. },
  3141. "surfaceOp": "append"
  3142. }
  3143. }
  3144. },
  3145. {
  3146. "method": "session.event",
  3147. "payload": {
  3148. "sessionId": "{{parent}}",
  3149. "event": {
  3150. "type": "tool/call",
  3151. "seq": 25,
  3152. "time": 0,
  3153. "data": {
  3154. "turn": 1,
  3155. "step": 2,
  3156. "callId": "advanced-run",
  3157. "name": "cordis_run",
  3158. "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"
  3159. }
  3160. }
  3161. }
  3162. },
  3163. {
  3164. "method": "session.event",
  3165. "payload": {
  3166. "sessionId": "{{parent}}",
  3167. "event": {
  3168. "type": "tool/result",
  3169. "seq": 26,
  3170. "time": 0,
  3171. "data": {
  3172. "turn": 1,
  3173. "step": 2,
  3174. "message": {
  3175. "source": {
  3176. "kind": "tool",
  3177. "callId": "advanced-run"
  3178. },
  3179. "content": [
  3180. {
  3181. "type": "tool-result",
  3182. "toolCallId": "advanced-run",
  3183. "content": [
  3184. {
  3185. "type": "text",
  3186. "text": "snap-1/pkg-1 is running (run-1)."
  3187. }
  3188. ],
  3189. "isError": false
  3190. }
  3191. ],
  3192. "role": "user",
  3193. "id": "{{messageId}}"
  3194. },
  3195. "meta": {
  3196. "pluginId": "snap-1",
  3197. "packageId": "pkg-1",
  3198. "pluginRunId": "run-1"
  3199. }
  3200. },
  3201. "sourceEventSeqs": [
  3202. 25
  3203. ],
  3204. "surfaceOp": "append"
  3205. }
  3206. }
  3207. },
  3208. {
  3209. "method": "session.event",
  3210. "payload": {
  3211. "sessionId": "{{parent}}",
  3212. "event": {
  3213. "type": "step/end",
  3214. "seq": 27,
  3215. "time": 0,
  3216. "data": {
  3217. "turn": 1,
  3218. "step": 2
  3219. }
  3220. }
  3221. }
  3222. },
  3223. {
  3224. "method": "session.event",
  3225. "payload": {
  3226. "sessionId": "{{parent}}",
  3227. "event": {
  3228. "type": "step/start",
  3229. "seq": 28,
  3230. "time": 0,
  3231. "data": {
  3232. "turn": 1,
  3233. "step": 3
  3234. }
  3235. }
  3236. }
  3237. },
  3238. {
  3239. "method": "session.event",
  3240. "payload": {
  3241. "sessionId": "{{parent}}",
  3242. "event": {
  3243. "type": "system/message",
  3244. "seq": 29,
  3245. "time": 0,
  3246. "data": {
  3247. "turn": 1,
  3248. "step": 3,
  3249. "message": {
  3250. "role": "system",
  3251. "content": [
  3252. {
  3253. "type": "text",
  3254. "text": "{{system}}"
  3255. }
  3256. ],
  3257. "source": {
  3258. "kind": "plugin",
  3259. "plugin": "@deepseek-ai/dsh-system-prompt"
  3260. },
  3261. "id": "{{messageId}}"
  3262. }
  3263. },
  3264. "sourceEventSeqs": [
  3265. 7
  3266. ],
  3267. "surfaceOp": {
  3268. "op": "replace",
  3269. "startSeq": 7,
  3270. "endSeq": 7
  3271. }
  3272. }
  3273. }
  3274. },
  3275. {
  3276. "method": "session.event",
  3277. "payload": {
  3278. "sessionId": "{{parent}}",
  3279. "event": {
  3280. "type": "request/header",
  3281. "seq": 30,
  3282. "time": 0,
  3283. "data": {
  3284. "header": {
  3285. "config": {
  3286. "provider": "deepseek-official",
  3287. "model": "smoke-model",
  3288. "maxTokens": 256000,
  3289. "reasoningEffort": "high"
  3290. },
  3291. "adapterDefaults": {
  3292. "reasoningEffort": true,
  3293. "maxTokens": true
  3294. },
  3295. "tools": [
  3296. "cordis_define",
  3297. "cordis_inspect_list",
  3298. "cordis_inspect_query",
  3299. "cordis_inspect_self",
  3300. "cordis_run",
  3301. "cordis_stop",
  3302. "cordis_undefine",
  3303. "job_kill",
  3304. "job_list",
  3305. "job_output",
  3306. "run_code",
  3307. "snapshot_double",
  3308. "subagent",
  3309. "workflow"
  3310. ]
  3311. },
  3312. "reason": "change",
  3313. "startsSeries": true
  3314. }
  3315. }
  3316. }
  3317. },
  3318. {
  3319. "method": "session.event",
  3320. "payload": {
  3321. "sessionId": "{{parent}}",
  3322. "event": {
  3323. "type": "session-log-deepseek/delivery-accepted",
  3324. "seq": 31,
  3325. "time": 0,
  3326. "data": {
  3327. "sessionId": "{{parent}}",
  3328. "sessionFormatVersion": 3,
  3329. "throughSeq": 30
  3330. }
  3331. }
  3332. }
  3333. },
  3334. {
  3335. "method": "session.event",
  3336. "payload": {
  3337. "sessionId": "{{parent}}",
  3338. "event": {
  3339. "type": "assistant/message",
  3340. "seq": 32,
  3341. "time": 0,
  3342. "data": {
  3343. "turn": 1,
  3344. "step": 3,
  3345. "message": {
  3346. "role": "assistant",
  3347. "content": [
  3348. {
  3349. "type": "tool-call",
  3350. "id": "advanced-code",
  3351. "name": "run_code",
  3352. "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  3353. }
  3354. ],
  3355. "source": {
  3356. "kind": "model",
  3357. "provider": "deepseek-official",
  3358. "model": "smoke-model",
  3359. "replayState": {
  3360. "response": {
  3361. "kind": "deepseek-messages",
  3362. "version": 1,
  3363. "model": "smoke-model"
  3364. },
  3365. "blocks": [
  3366. {
  3367. "type": "tool-call"
  3368. }
  3369. ]
  3370. }
  3371. },
  3372. "id": "{{messageId}}"
  3373. },
  3374. "usage": {
  3375. "inputTokens": 3,
  3376. "outputTokens": 3,
  3377. "totalTokens": 6
  3378. },
  3379. "stream": [
  3380. {
  3381. "type": "chunk",
  3382. "time": 0,
  3383. "chunk": {
  3384. "type": "block-start",
  3385. "index": 0,
  3386. "blockType": "tool-call"
  3387. }
  3388. },
  3389. {
  3390. "type": "tool-call-chunks",
  3391. "time0": 0,
  3392. "index": 0,
  3393. "dt": [],
  3394. "id": "advanced-code",
  3395. "name": "run_code",
  3396. "args": [
  3397. ""
  3398. ]
  3399. },
  3400. {
  3401. "type": "tool-call-chunks",
  3402. "time0": 0,
  3403. "index": 0,
  3404. "dt": [],
  3405. "id": "advanced-code",
  3406. "args": [
  3407. "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  3408. ]
  3409. },
  3410. {
  3411. "type": "chunk",
  3412. "time": 0,
  3413. "chunk": {
  3414. "type": "block-end",
  3415. "index": 0,
  3416. "block": {
  3417. "type": "tool-call",
  3418. "id": "advanced-code",
  3419. "name": "run_code",
  3420. "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  3421. }
  3422. }
  3423. },
  3424. {
  3425. "type": "chunk",
  3426. "time": 0,
  3427. "chunk": {
  3428. "type": "usage",
  3429. "usage": {
  3430. "inputTokens": 3,
  3431. "outputTokens": 3,
  3432. "totalTokens": 6
  3433. }
  3434. }
  3435. },
  3436. {
  3437. "type": "chunk",
  3438. "time": 0,
  3439. "chunk": {
  3440. "type": "finish",
  3441. "reason": {
  3442. "kind": "tool-calls"
  3443. },
  3444. "replayState": {
  3445. "response": {
  3446. "kind": "deepseek-messages",
  3447. "version": 1,
  3448. "model": "smoke-model"
  3449. },
  3450. "blocks": [
  3451. {
  3452. "type": "tool-call"
  3453. }
  3454. ]
  3455. }
  3456. }
  3457. }
  3458. ]
  3459. },
  3460. "surfaceOp": "append"
  3461. }
  3462. }
  3463. },
  3464. {
  3465. "method": "session.event",
  3466. "payload": {
  3467. "sessionId": "{{parent}}",
  3468. "event": {
  3469. "type": "tool/call",
  3470. "seq": 33,
  3471. "time": 0,
  3472. "data": {
  3473. "turn": 1,
  3474. "step": 3,
  3475. "callId": "advanced-code",
  3476. "name": "run_code",
  3477. "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"
  3478. }
  3479. }
  3480. }
  3481. },
  3482. {
  3483. "method": "session.event",
  3484. "payload": {
  3485. "sessionId": "{{parent}}",
  3486. "event": {
  3487. "type": "tool/ptc-dispatch-start",
  3488. "seq": 34,
  3489. "time": 0,
  3490. "data": {
  3491. "rootCallId": "advanced-code",
  3492. "parentCallId": "advanced-code",
  3493. "subCallId": "advanced-code:ptc:1",
  3494. "name": "snapshot_double",
  3495. "arguments": {
  3496. "value": 21
  3497. }
  3498. }
  3499. }
  3500. }
  3501. },
  3502. {
  3503. "method": "session.event",
  3504. "payload": {
  3505. "sessionId": "{{parent}}",
  3506. "event": {
  3507. "type": "tool/ptc-dispatch",
  3508. "seq": 35,
  3509. "time": 0,
  3510. "data": {
  3511. "rootCallId": "advanced-code",
  3512. "parentCallId": "advanced-code",
  3513. "subCallId": "advanced-code:ptc:1",
  3514. "name": "snapshot_double",
  3515. "arguments": {
  3516. "value": 21
  3517. },
  3518. "isError": false,
  3519. "content": [
  3520. {
  3521. "type": "text",
  3522. "text": "42"
  3523. }
  3524. ]
  3525. }
  3526. }
  3527. }
  3528. },
  3529. {
  3530. "method": "session.event",
  3531. "payload": {
  3532. "sessionId": "{{parent}}",
  3533. "event": {
  3534. "type": "tool/result",
  3535. "seq": 36,
  3536. "time": 0,
  3537. "data": {
  3538. "turn": 1,
  3539. "step": 3,
  3540. "message": {
  3541. "source": {
  3542. "kind": "tool",
  3543. "callId": "advanced-code"
  3544. },
  3545. "content": [
  3546. {
  3547. "type": "tool-result",
  3548. "toolCallId": "advanced-code",
  3549. "content": [
  3550. {
  3551. "type": "text",
  3552. "text": "42"
  3553. }
  3554. ],
  3555. "isError": false
  3556. }
  3557. ],
  3558. "role": "user",
  3559. "id": "{{messageId}}"
  3560. }
  3561. },
  3562. "sourceEventSeqs": [
  3563. 33
  3564. ],
  3565. "surfaceOp": "append"
  3566. }
  3567. }
  3568. },
  3569. {
  3570. "method": "session.event",
  3571. "payload": {
  3572. "sessionId": "{{parent}}",
  3573. "event": {
  3574. "type": "step/end",
  3575. "seq": 37,
  3576. "time": 0,
  3577. "data": {
  3578. "turn": 1,
  3579. "step": 3
  3580. }
  3581. }
  3582. }
  3583. },
  3584. {
  3585. "method": "session.event",
  3586. "payload": {
  3587. "sessionId": "{{parent}}",
  3588. "event": {
  3589. "type": "step/start",
  3590. "seq": 38,
  3591. "time": 0,
  3592. "data": {
  3593. "turn": 1,
  3594. "step": 4
  3595. }
  3596. }
  3597. }
  3598. },
  3599. {
  3600. "method": "session.event",
  3601. "payload": {
  3602. "sessionId": "{{parent}}",
  3603. "event": {
  3604. "type": "session-log-deepseek/delivery-accepted",
  3605. "seq": 39,
  3606. "time": 0,
  3607. "data": {
  3608. "sessionId": "{{parent}}",
  3609. "sessionFormatVersion": 3,
  3610. "throughSeq": 38
  3611. }
  3612. }
  3613. }
  3614. },
  3615. {
  3616. "method": "session.event",
  3617. "payload": {
  3618. "sessionId": "{{parent}}",
  3619. "event": {
  3620. "type": "assistant/message",
  3621. "seq": 40,
  3622. "time": 0,
  3623. "data": {
  3624. "turn": 1,
  3625. "step": 4,
  3626. "message": {
  3627. "role": "assistant",
  3628. "content": [
  3629. {
  3630. "type": "tool-call",
  3631. "id": "advanced-denied-native",
  3632. "name": "snapshot_double",
  3633. "arguments": "{\"value\": -1}"
  3634. }
  3635. ],
  3636. "source": {
  3637. "kind": "model",
  3638. "provider": "deepseek-official",
  3639. "model": "smoke-model",
  3640. "replayState": {
  3641. "response": {
  3642. "kind": "deepseek-messages",
  3643. "version": 1,
  3644. "model": "smoke-model"
  3645. },
  3646. "blocks": [
  3647. {
  3648. "type": "tool-call"
  3649. }
  3650. ]
  3651. }
  3652. },
  3653. "id": "{{messageId}}"
  3654. },
  3655. "usage": {
  3656. "inputTokens": 3,
  3657. "outputTokens": 3,
  3658. "totalTokens": 6
  3659. },
  3660. "stream": [
  3661. {
  3662. "type": "chunk",
  3663. "time": 0,
  3664. "chunk": {
  3665. "type": "block-start",
  3666. "index": 0,
  3667. "blockType": "tool-call"
  3668. }
  3669. },
  3670. {
  3671. "type": "tool-call-chunks",
  3672. "time0": 0,
  3673. "index": 0,
  3674. "dt": [],
  3675. "id": "advanced-denied-native",
  3676. "name": "snapshot_double",
  3677. "args": [
  3678. ""
  3679. ]
  3680. },
  3681. {
  3682. "type": "tool-call-chunks",
  3683. "time0": 0,
  3684. "index": 0,
  3685. "dt": [],
  3686. "id": "advanced-denied-native",
  3687. "args": [
  3688. "{\"value\": -1}"
  3689. ]
  3690. },
  3691. {
  3692. "type": "chunk",
  3693. "time": 0,
  3694. "chunk": {
  3695. "type": "block-end",
  3696. "index": 0,
  3697. "block": {
  3698. "type": "tool-call",
  3699. "id": "advanced-denied-native",
  3700. "name": "snapshot_double",
  3701. "arguments": "{\"value\": -1}"
  3702. }
  3703. }
  3704. },
  3705. {
  3706. "type": "chunk",
  3707. "time": 0,
  3708. "chunk": {
  3709. "type": "usage",
  3710. "usage": {
  3711. "inputTokens": 3,
  3712. "outputTokens": 3,
  3713. "totalTokens": 6
  3714. }
  3715. }
  3716. },
  3717. {
  3718. "type": "chunk",
  3719. "time": 0,
  3720. "chunk": {
  3721. "type": "finish",
  3722. "reason": {
  3723. "kind": "tool-calls"
  3724. },
  3725. "replayState": {
  3726. "response": {
  3727. "kind": "deepseek-messages",
  3728. "version": 1,
  3729. "model": "smoke-model"
  3730. },
  3731. "blocks": [
  3732. {
  3733. "type": "tool-call"
  3734. }
  3735. ]
  3736. }
  3737. }
  3738. }
  3739. ]
  3740. },
  3741. "surfaceOp": "append"
  3742. }
  3743. }
  3744. },
  3745. {
  3746. "method": "session.event",
  3747. "payload": {
  3748. "sessionId": "{{parent}}",
  3749. "event": {
  3750. "type": "tool/call",
  3751. "seq": 41,
  3752. "time": 0,
  3753. "data": {
  3754. "turn": 1,
  3755. "step": 4,
  3756. "callId": "advanced-denied-native",
  3757. "name": "snapshot_double",
  3758. "arguments": "{\"value\": -1}"
  3759. }
  3760. }
  3761. }
  3762. },
  3763. {
  3764. "method": "session.event",
  3765. "payload": {
  3766. "sessionId": "{{parent}}",
  3767. "event": {
  3768. "type": "tool/result",
  3769. "seq": 42,
  3770. "time": 0,
  3771. "data": {
  3772. "turn": 1,
  3773. "step": 4,
  3774. "message": {
  3775. "source": {
  3776. "kind": "tool",
  3777. "callId": "advanced-denied-native"
  3778. },
  3779. "content": [
  3780. {
  3781. "type": "tool-result",
  3782. "toolCallId": "advanced-denied-native",
  3783. "content": [
  3784. {
  3785. "type": "text",
  3786. "text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
  3787. }
  3788. ],
  3789. "isError": true
  3790. }
  3791. ],
  3792. "role": "user",
  3793. "id": "{{messageId}}"
  3794. },
  3795. "error": {
  3796. "name": "AutoReviewDeniedError",
  3797. "code": "AUTO_REVIEW_DENIED",
  3798. "reason": " transport raw\r\nreason "
  3799. }
  3800. },
  3801. "sourceEventSeqs": [
  3802. 41
  3803. ],
  3804. "surfaceOp": "append"
  3805. }
  3806. }
  3807. },
  3808. {
  3809. "method": "session.event",
  3810. "payload": {
  3811. "sessionId": "{{parent}}",
  3812. "event": {
  3813. "type": "step/end",
  3814. "seq": 43,
  3815. "time": 0,
  3816. "data": {
  3817. "turn": 1,
  3818. "step": 4
  3819. }
  3820. }
  3821. }
  3822. },
  3823. {
  3824. "method": "session.event",
  3825. "payload": {
  3826. "sessionId": "{{parent}}",
  3827. "event": {
  3828. "type": "step/start",
  3829. "seq": 44,
  3830. "time": 0,
  3831. "data": {
  3832. "turn": 1,
  3833. "step": 5
  3834. }
  3835. }
  3836. }
  3837. },
  3838. {
  3839. "method": "session.event",
  3840. "payload": {
  3841. "sessionId": "{{parent}}",
  3842. "event": {
  3843. "type": "session-log-deepseek/delivery-accepted",
  3844. "seq": 45,
  3845. "time": 0,
  3846. "data": {
  3847. "sessionId": "{{parent}}",
  3848. "sessionFormatVersion": 3,
  3849. "throughSeq": 44
  3850. }
  3851. }
  3852. }
  3853. },
  3854. {
  3855. "method": "session.event",
  3856. "payload": {
  3857. "sessionId": "{{parent}}",
  3858. "event": {
  3859. "type": "assistant/message",
  3860. "seq": 46,
  3861. "time": 0,
  3862. "data": {
  3863. "turn": 1,
  3864. "step": 5,
  3865. "message": {
  3866. "role": "assistant",
  3867. "content": [
  3868. {
  3869. "type": "tool-call",
  3870. "id": "advanced-denied-ptc",
  3871. "name": "run_code",
  3872. "arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  3873. }
  3874. ],
  3875. "source": {
  3876. "kind": "model",
  3877. "provider": "deepseek-official",
  3878. "model": "smoke-model",
  3879. "replayState": {
  3880. "response": {
  3881. "kind": "deepseek-messages",
  3882. "version": 1,
  3883. "model": "smoke-model"
  3884. },
  3885. "blocks": [
  3886. {
  3887. "type": "tool-call"
  3888. }
  3889. ]
  3890. }
  3891. },
  3892. "id": "{{messageId}}"
  3893. },
  3894. "usage": {
  3895. "inputTokens": 3,
  3896. "outputTokens": 3,
  3897. "totalTokens": 6
  3898. },
  3899. "stream": [
  3900. {
  3901. "type": "chunk",
  3902. "time": 0,
  3903. "chunk": {
  3904. "type": "block-start",
  3905. "index": 0,
  3906. "blockType": "tool-call"
  3907. }
  3908. },
  3909. {
  3910. "type": "tool-call-chunks",
  3911. "time0": 0,
  3912. "index": 0,
  3913. "dt": [],
  3914. "id": "advanced-denied-ptc",
  3915. "name": "run_code",
  3916. "args": [
  3917. ""
  3918. ]
  3919. },
  3920. {
  3921. "type": "tool-call-chunks",
  3922. "time0": 0,
  3923. "index": 0,
  3924. "dt": [],
  3925. "id": "advanced-denied-ptc",
  3926. "args": [
  3927. "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  3928. ]
  3929. },
  3930. {
  3931. "type": "chunk",
  3932. "time": 0,
  3933. "chunk": {
  3934. "type": "block-end",
  3935. "index": 0,
  3936. "block": {
  3937. "type": "tool-call",
  3938. "id": "advanced-denied-ptc",
  3939. "name": "run_code",
  3940. "arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  3941. }
  3942. }
  3943. },
  3944. {
  3945. "type": "chunk",
  3946. "time": 0,
  3947. "chunk": {
  3948. "type": "usage",
  3949. "usage": {
  3950. "inputTokens": 3,
  3951. "outputTokens": 3,
  3952. "totalTokens": 6
  3953. }
  3954. }
  3955. },
  3956. {
  3957. "type": "chunk",
  3958. "time": 0,
  3959. "chunk": {
  3960. "type": "finish",
  3961. "reason": {
  3962. "kind": "tool-calls"
  3963. },
  3964. "replayState": {
  3965. "response": {
  3966. "kind": "deepseek-messages",
  3967. "version": 1,
  3968. "model": "smoke-model"
  3969. },
  3970. "blocks": [
  3971. {
  3972. "type": "tool-call"
  3973. }
  3974. ]
  3975. }
  3976. }
  3977. }
  3978. ]
  3979. },
  3980. "surfaceOp": "append"
  3981. }
  3982. }
  3983. },
  3984. {
  3985. "method": "session.event",
  3986. "payload": {
  3987. "sessionId": "{{parent}}",
  3988. "event": {
  3989. "type": "tool/call",
  3990. "seq": 47,
  3991. "time": 0,
  3992. "data": {
  3993. "turn": 1,
  3994. "step": 5,
  3995. "callId": "advanced-denied-ptc",
  3996. "name": "run_code",
  3997. "arguments": "{\"code\": \"try { await tools.snapshot_double({ value: -1 }) } catch (error) { return error.message }\", \"description\": \"Catch a structured inner tool denial\"}"
  3998. }
  3999. }
  4000. }
  4001. },
  4002. {
  4003. "method": "session.event",
  4004. "payload": {
  4005. "sessionId": "{{parent}}",
  4006. "event": {
  4007. "type": "tool/ptc-dispatch-start",
  4008. "seq": 48,
  4009. "time": 0,
  4010. "data": {
  4011. "rootCallId": "advanced-denied-ptc",
  4012. "parentCallId": "advanced-denied-ptc",
  4013. "subCallId": "advanced-denied-ptc:ptc:1",
  4014. "name": "snapshot_double",
  4015. "arguments": {
  4016. "value": -1
  4017. }
  4018. }
  4019. }
  4020. }
  4021. },
  4022. {
  4023. "method": "session.event",
  4024. "payload": {
  4025. "sessionId": "{{parent}}",
  4026. "event": {
  4027. "type": "tool/ptc-dispatch",
  4028. "seq": 49,
  4029. "time": 0,
  4030. "data": {
  4031. "rootCallId": "advanced-denied-ptc",
  4032. "parentCallId": "advanced-denied-ptc",
  4033. "subCallId": "advanced-denied-ptc:ptc:1",
  4034. "name": "snapshot_double",
  4035. "arguments": {
  4036. "value": -1
  4037. },
  4038. "isError": true,
  4039. "error": {
  4040. "name": "AutoReviewDeniedError",
  4041. "code": "AUTO_REVIEW_DENIED",
  4042. "reason": " transport raw\r\nreason "
  4043. },
  4044. "content": [
  4045. {
  4046. "type": "text",
  4047. "text": "Error: Auto review rejected tool \"snapshot_double\"; its body was not executed"
  4048. }
  4049. ]
  4050. }
  4051. }
  4052. }
  4053. },
  4054. {
  4055. "method": "session.event",
  4056. "payload": {
  4057. "sessionId": "{{parent}}",
  4058. "event": {
  4059. "type": "tool/result",
  4060. "seq": 50,
  4061. "time": 0,
  4062. "data": {
  4063. "turn": 1,
  4064. "step": 5,
  4065. "message": {
  4066. "source": {
  4067. "kind": "tool",
  4068. "callId": "advanced-denied-ptc"
  4069. },
  4070. "content": [
  4071. {
  4072. "type": "tool-result",
  4073. "toolCallId": "advanced-denied-ptc",
  4074. "content": [
  4075. {
  4076. "type": "text",
  4077. "text": "Auto review rejected tool \"snapshot_double\"; its body was not executed"
  4078. }
  4079. ],
  4080. "isError": false
  4081. }
  4082. ],
  4083. "role": "user",
  4084. "id": "{{messageId}}"
  4085. }
  4086. },
  4087. "sourceEventSeqs": [
  4088. 47
  4089. ],
  4090. "surfaceOp": "append"
  4091. }
  4092. }
  4093. },
  4094. {
  4095. "method": "session.event",
  4096. "payload": {
  4097. "sessionId": "{{parent}}",
  4098. "event": {
  4099. "type": "step/end",
  4100. "seq": 51,
  4101. "time": 0,
  4102. "data": {
  4103. "turn": 1,
  4104. "step": 5
  4105. }
  4106. }
  4107. }
  4108. },
  4109. {
  4110. "method": "session.event",
  4111. "payload": {
  4112. "sessionId": "{{parent}}",
  4113. "event": {
  4114. "type": "step/start",
  4115. "seq": 52,
  4116. "time": 0,
  4117. "data": {
  4118. "turn": 1,
  4119. "step": 6
  4120. }
  4121. }
  4122. }
  4123. },
  4124. {
  4125. "method": "session.event",
  4126. "payload": {
  4127. "sessionId": "{{parent}}",
  4128. "event": {
  4129. "type": "session-log-deepseek/delivery-accepted",
  4130. "seq": 53,
  4131. "time": 0,
  4132. "data": {
  4133. "sessionId": "{{parent}}",
  4134. "sessionFormatVersion": 3,
  4135. "throughSeq": 52
  4136. }
  4137. }
  4138. }
  4139. },
  4140. {
  4141. "method": "session.event",
  4142. "payload": {
  4143. "sessionId": "{{parent}}",
  4144. "event": {
  4145. "type": "assistant/message",
  4146. "seq": 54,
  4147. "time": 0,
  4148. "data": {
  4149. "turn": 1,
  4150. "step": 6,
  4151. "message": {
  4152. "role": "assistant",
  4153. "content": [
  4154. {
  4155. "type": "tool-call",
  4156. "id": "advanced-direct-child",
  4157. "name": "subagent",
  4158. "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  4159. }
  4160. ],
  4161. "source": {
  4162. "kind": "model",
  4163. "provider": "deepseek-official",
  4164. "model": "smoke-model",
  4165. "replayState": {
  4166. "response": {
  4167. "kind": "deepseek-messages",
  4168. "version": 1,
  4169. "model": "smoke-model"
  4170. },
  4171. "blocks": [
  4172. {
  4173. "type": "tool-call"
  4174. }
  4175. ]
  4176. }
  4177. },
  4178. "id": "{{messageId}}"
  4179. },
  4180. "usage": {
  4181. "inputTokens": 3,
  4182. "outputTokens": 3,
  4183. "totalTokens": 6
  4184. },
  4185. "stream": [
  4186. {
  4187. "type": "chunk",
  4188. "time": 0,
  4189. "chunk": {
  4190. "type": "block-start",
  4191. "index": 0,
  4192. "blockType": "tool-call"
  4193. }
  4194. },
  4195. {
  4196. "type": "tool-call-chunks",
  4197. "time0": 0,
  4198. "index": 0,
  4199. "dt": [],
  4200. "id": "advanced-direct-child",
  4201. "name": "subagent",
  4202. "args": [
  4203. ""
  4204. ]
  4205. },
  4206. {
  4207. "type": "tool-call-chunks",
  4208. "time0": 0,
  4209. "index": 0,
  4210. "dt": [],
  4211. "id": "advanced-direct-child",
  4212. "args": [
  4213. "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  4214. ]
  4215. },
  4216. {
  4217. "type": "chunk",
  4218. "time": 0,
  4219. "chunk": {
  4220. "type": "block-end",
  4221. "index": 0,
  4222. "block": {
  4223. "type": "tool-call",
  4224. "id": "advanced-direct-child",
  4225. "name": "subagent",
  4226. "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  4227. }
  4228. }
  4229. },
  4230. {
  4231. "type": "chunk",
  4232. "time": 0,
  4233. "chunk": {
  4234. "type": "usage",
  4235. "usage": {
  4236. "inputTokens": 3,
  4237. "outputTokens": 3,
  4238. "totalTokens": 6
  4239. }
  4240. }
  4241. },
  4242. {
  4243. "type": "chunk",
  4244. "time": 0,
  4245. "chunk": {
  4246. "type": "finish",
  4247. "reason": {
  4248. "kind": "tool-calls"
  4249. },
  4250. "replayState": {
  4251. "response": {
  4252. "kind": "deepseek-messages",
  4253. "version": 1,
  4254. "model": "smoke-model"
  4255. },
  4256. "blocks": [
  4257. {
  4258. "type": "tool-call"
  4259. }
  4260. ]
  4261. }
  4262. }
  4263. }
  4264. ]
  4265. },
  4266. "surfaceOp": "append"
  4267. }
  4268. }
  4269. },
  4270. {
  4271. "method": "session.event",
  4272. "payload": {
  4273. "sessionId": "{{parent}}",
  4274. "event": {
  4275. "type": "tool/call",
  4276. "seq": 55,
  4277. "time": 0,
  4278. "data": {
  4279. "turn": 1,
  4280. "step": 6,
  4281. "callId": "advanced-direct-child",
  4282. "name": "subagent",
  4283. "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"
  4284. }
  4285. }
  4286. }
  4287. },
  4288. {
  4289. "method": "subagent.started",
  4290. "payload": {
  4291. "parentSessionId": "{{parent}}",
  4292. "childSessionId": "{{child-1}}"
  4293. }
  4294. },
  4295. {
  4296. "method": "session.event",
  4297. "payload": {
  4298. "sessionId": "{{child-1}}",
  4299. "event": {
  4300. "type": "agent/inbox/spliced",
  4301. "seq": 3,
  4302. "time": 0,
  4303. "data": {
  4304. "target": "next-turn",
  4305. "start": 0,
  4306. "inserted": [
  4307. {
  4308. "content": [
  4309. {
  4310. "type": "text",
  4311. "text": "Reply with exactly DIRECT_CHILD_OK and nothing else."
  4312. }
  4313. ],
  4314. "source": {
  4315. "kind": "user"
  4316. },
  4317. "role": "user",
  4318. "id": "{{messageId}}"
  4319. }
  4320. ]
  4321. }
  4322. }
  4323. }
  4324. },
  4325. {
  4326. "method": "session.status",
  4327. "payload": {
  4328. "sessionId": "{{child-1}}",
  4329. "status": "running"
  4330. }
  4331. },
  4332. {
  4333. "method": "session.event",
  4334. "payload": {
  4335. "sessionId": "{{child-1}}",
  4336. "event": {
  4337. "type": "turn/start",
  4338. "seq": 4,
  4339. "time": 0,
  4340. "data": {
  4341. "turn": 1
  4342. }
  4343. }
  4344. }
  4345. },
  4346. {
  4347. "method": "session.event",
  4348. "payload": {
  4349. "sessionId": "{{child-1}}",
  4350. "event": {
  4351. "type": "agent/inbox/spliced",
  4352. "seq": 5,
  4353. "time": 0,
  4354. "data": {
  4355. "target": "next-turn",
  4356. "start": 0,
  4357. "removedCount": 1,
  4358. "inserted": []
  4359. }
  4360. }
  4361. }
  4362. },
  4363. {
  4364. "method": "session.event",
  4365. "payload": {
  4366. "sessionId": "{{parent}}",
  4367. "event": {
  4368. "type": "subagent/catalog",
  4369. "seq": 56,
  4370. "time": 0,
  4371. "data": {
  4372. "version": 0,
  4373. "childId": "{{child-1}}",
  4374. "childCreatedAt": 0,
  4375. "mode": "one-shot",
  4376. "label": "Check direct child"
  4377. }
  4378. }
  4379. }
  4380. },
  4381. {
  4382. "method": "session.event",
  4383. "payload": {
  4384. "sessionId": "{{child-1}}",
  4385. "event": {
  4386. "type": "subagent/descriptor",
  4387. "seq": 6,
  4388. "time": 0,
  4389. "data": {
  4390. "version": 3,
  4391. "mode": "one-shot",
  4392. "provider": "spawn",
  4393. "label": "Check direct child"
  4394. }
  4395. }
  4396. }
  4397. },
  4398. {
  4399. "method": "session.event",
  4400. "payload": {
  4401. "sessionId": "{{child-1}}",
  4402. "event": {
  4403. "type": "step/start",
  4404. "seq": 7,
  4405. "time": 0,
  4406. "data": {
  4407. "turn": 1,
  4408. "step": 1
  4409. }
  4410. }
  4411. }
  4412. },
  4413. {
  4414. "method": "session.event",
  4415. "payload": {
  4416. "sessionId": "{{child-1}}",
  4417. "event": {
  4418. "type": "system/message",
  4419. "seq": 8,
  4420. "time": 0,
  4421. "data": {
  4422. "turn": 1,
  4423. "step": 1,
  4424. "message": {
  4425. "role": "system",
  4426. "content": [
  4427. {
  4428. "type": "text",
  4429. "text": "{{system}}"
  4430. }
  4431. ],
  4432. "source": {
  4433. "kind": "plugin",
  4434. "plugin": "@deepseek-ai/dsh-system-prompt"
  4435. },
  4436. "id": "{{messageId}}"
  4437. }
  4438. },
  4439. "surfaceOp": "append"
  4440. }
  4441. }
  4442. },
  4443. {
  4444. "method": "session.event",
  4445. "payload": {
  4446. "sessionId": "{{child-1}}",
  4447. "event": {
  4448. "type": "user/message",
  4449. "seq": 9,
  4450. "time": 0,
  4451. "data": {
  4452. "content": [
  4453. {
  4454. "type": "text",
  4455. "text": "Reply with exactly DIRECT_CHILD_OK and nothing else."
  4456. }
  4457. ],
  4458. "source": {
  4459. "kind": "user"
  4460. },
  4461. "role": "user",
  4462. "id": "{{messageId}}"
  4463. },
  4464. "surfaceOp": "append"
  4465. }
  4466. }
  4467. },
  4468. {
  4469. "method": "session.event",
  4470. "payload": {
  4471. "sessionId": "{{child-1}}",
  4472. "event": {
  4473. "type": "user/message",
  4474. "seq": 10,
  4475. "time": 0,
  4476. "data": {
  4477. "content": [
  4478. {
  4479. "type": "text",
  4480. "text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
  4481. }
  4482. ],
  4483. "source": {
  4484. "kind": "plugin",
  4485. "plugin": "@deepseek-ai/dsh-system-prompt",
  4486. "form": "snapshot",
  4487. "sections": [
  4488. {
  4489. "name": "sandbox:policy",
  4490. "text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
  4491. },
  4492. {
  4493. "name": "approval:policy",
  4494. "text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
  4495. },
  4496. {
  4497. "name": "subagent:delegation",
  4498. "text": "You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
  4499. }
  4500. ]
  4501. },
  4502. "role": "user",
  4503. "id": "{{messageId}}"
  4504. },
  4505. "surfaceOp": "append"
  4506. }
  4507. }
  4508. },
  4509. {
  4510. "method": "session.event",
  4511. "payload": {
  4512. "sessionId": "{{child-1}}",
  4513. "event": {
  4514. "type": "request/header",
  4515. "seq": 11,
  4516. "time": 0,
  4517. "data": {
  4518. "header": {
  4519. "config": {
  4520. "provider": "deepseek-official",
  4521. "model": "smoke-model",
  4522. "reasoningEffort": "high",
  4523. "maxTokens": 256000
  4524. },
  4525. "adapterDefaults": {
  4526. "maxTokens": true
  4527. },
  4528. "tools": [
  4529. "cordis_define",
  4530. "cordis_inspect_list",
  4531. "cordis_inspect_query",
  4532. "cordis_inspect_self",
  4533. "cordis_run",
  4534. "cordis_stop",
  4535. "cordis_undefine",
  4536. "job_kill",
  4537. "job_list",
  4538. "job_output",
  4539. "run_code",
  4540. "snapshot_double",
  4541. "subagent",
  4542. "workflow"
  4543. ]
  4544. },
  4545. "reason": "initial"
  4546. }
  4547. }
  4548. }
  4549. },
  4550. {
  4551. "method": "session.event",
  4552. "payload": {
  4553. "sessionId": "{{child-1}}",
  4554. "event": {
  4555. "type": "request/context",
  4556. "seq": 12,
  4557. "time": 0,
  4558. "data": {
  4559. "provider": "deepseek-official",
  4560. "model": "smoke-model",
  4561. "contextWindow": 1000000
  4562. }
  4563. }
  4564. }
  4565. },
  4566. {
  4567. "method": "session.event",
  4568. "payload": {
  4569. "sessionId": "{{child-1}}",
  4570. "event": {
  4571. "type": "session/title",
  4572. "seq": 13,
  4573. "time": 0,
  4574. "data": {
  4575. "title": "Reply with exactly DIRECT_CHILD_OK and",
  4576. "messageSeqs": [
  4577. 9
  4578. ],
  4579. "source": {
  4580. "kind": "fallback"
  4581. }
  4582. }
  4583. }
  4584. }
  4585. },
  4586. {
  4587. "method": "session.event",
  4588. "payload": {
  4589. "sessionId": "{{child-1}}",
  4590. "event": {
  4591. "type": "session-log-deepseek/delivery-accepted",
  4592. "seq": 14,
  4593. "time": 0,
  4594. "data": {
  4595. "sessionId": "{{child-1}}",
  4596. "sessionFormatVersion": 3,
  4597. "throughSeq": 13
  4598. }
  4599. }
  4600. }
  4601. },
  4602. {
  4603. "method": "session.event",
  4604. "payload": {
  4605. "sessionId": "{{child-1}}",
  4606. "event": {
  4607. "type": "assistant/message",
  4608. "seq": 15,
  4609. "time": 0,
  4610. "data": {
  4611. "turn": 1,
  4612. "step": 1,
  4613. "message": {
  4614. "role": "assistant",
  4615. "content": [
  4616. {
  4617. "type": "text",
  4618. "text": "DIRECT_CHILD_OK"
  4619. }
  4620. ],
  4621. "source": {
  4622. "kind": "model",
  4623. "provider": "deepseek-official",
  4624. "model": "smoke-model",
  4625. "replayState": {
  4626. "response": {
  4627. "kind": "deepseek-messages",
  4628. "version": 1,
  4629. "model": "smoke-model"
  4630. },
  4631. "blocks": [
  4632. {
  4633. "type": "text"
  4634. }
  4635. ]
  4636. }
  4637. },
  4638. "id": "{{messageId}}"
  4639. },
  4640. "usage": {
  4641. "inputTokens": 3,
  4642. "outputTokens": 3,
  4643. "totalTokens": 6
  4644. },
  4645. "stream": [
  4646. {
  4647. "type": "chunk",
  4648. "time": 0,
  4649. "chunk": {
  4650. "type": "block-start",
  4651. "index": 0,
  4652. "blockType": "text"
  4653. }
  4654. },
  4655. {
  4656. "type": "text-chunks",
  4657. "time0": 0,
  4658. "index": 0,
  4659. "dt": [],
  4660. "texts": [
  4661. "DIRECT_CHILD_OK"
  4662. ]
  4663. },
  4664. {
  4665. "type": "chunk",
  4666. "time": 0,
  4667. "chunk": {
  4668. "type": "block-end",
  4669. "index": 0,
  4670. "block": {
  4671. "type": "text",
  4672. "text": "DIRECT_CHILD_OK"
  4673. }
  4674. }
  4675. },
  4676. {
  4677. "type": "chunk",
  4678. "time": 0,
  4679. "chunk": {
  4680. "type": "usage",
  4681. "usage": {
  4682. "inputTokens": 3,
  4683. "outputTokens": 3,
  4684. "totalTokens": 6
  4685. }
  4686. }
  4687. },
  4688. {
  4689. "type": "chunk",
  4690. "time": 0,
  4691. "chunk": {
  4692. "type": "finish",
  4693. "reason": {
  4694. "kind": "stop"
  4695. },
  4696. "replayState": {
  4697. "response": {
  4698. "kind": "deepseek-messages",
  4699. "version": 1,
  4700. "model": "smoke-model"
  4701. },
  4702. "blocks": [
  4703. {
  4704. "type": "text"
  4705. }
  4706. ]
  4707. }
  4708. }
  4709. }
  4710. ]
  4711. },
  4712. "surfaceOp": "append"
  4713. }
  4714. }
  4715. },
  4716. {
  4717. "method": "session.event",
  4718. "payload": {
  4719. "sessionId": "{{child-1}}",
  4720. "event": {
  4721. "type": "step/end",
  4722. "seq": 16,
  4723. "time": 0,
  4724. "data": {
  4725. "turn": 1,
  4726. "step": 1
  4727. }
  4728. }
  4729. }
  4730. },
  4731. {
  4732. "method": "session.event",
  4733. "payload": {
  4734. "sessionId": "{{child-1}}",
  4735. "event": {
  4736. "type": "turn/end",
  4737. "seq": 17,
  4738. "time": 0,
  4739. "data": {
  4740. "turn": 1,
  4741. "reason": {
  4742. "kind": "completed"
  4743. }
  4744. }
  4745. }
  4746. }
  4747. },
  4748. {
  4749. "method": "session.status",
  4750. "payload": {
  4751. "sessionId": "{{child-1}}",
  4752. "status": "idle"
  4753. }
  4754. },
  4755. {
  4756. "method": "subagent.finished",
  4757. "payload": {
  4758. "provider": "spawn",
  4759. "agentId": "{{child-1}}",
  4760. "parentSessionId": "{{parent}}",
  4761. "childSessionId": "{{child-1}}",
  4762. "status": "ok",
  4763. "stopReason": "completed",
  4764. "lastAssistantMessage": [
  4765. {
  4766. "type": "text",
  4767. "text": "DIRECT_CHILD_OK"
  4768. }
  4769. ]
  4770. }
  4771. },
  4772. {
  4773. "method": "session.event",
  4774. "payload": {
  4775. "sessionId": "{{parent}}",
  4776. "event": {
  4777. "type": "tool/result",
  4778. "seq": 57,
  4779. "time": 0,
  4780. "data": {
  4781. "turn": 1,
  4782. "step": 6,
  4783. "message": {
  4784. "source": {
  4785. "kind": "tool",
  4786. "callId": "advanced-direct-child"
  4787. },
  4788. "content": [
  4789. {
  4790. "type": "tool-result",
  4791. "toolCallId": "advanced-direct-child",
  4792. "content": [
  4793. {
  4794. "type": "text",
  4795. "text": "DIRECT_CHILD_OK"
  4796. }
  4797. ],
  4798. "isError": false
  4799. }
  4800. ],
  4801. "role": "user",
  4802. "id": "{{messageId}}"
  4803. }
  4804. },
  4805. "sourceEventSeqs": [
  4806. 55
  4807. ],
  4808. "surfaceOp": "append"
  4809. }
  4810. }
  4811. },
  4812. {
  4813. "method": "session.event",
  4814. "payload": {
  4815. "sessionId": "{{parent}}",
  4816. "event": {
  4817. "type": "step/end",
  4818. "seq": 58,
  4819. "time": 0,
  4820. "data": {
  4821. "turn": 1,
  4822. "step": 6
  4823. }
  4824. }
  4825. }
  4826. },
  4827. {
  4828. "method": "session.event",
  4829. "payload": {
  4830. "sessionId": "{{parent}}",
  4831. "event": {
  4832. "type": "step/start",
  4833. "seq": 59,
  4834. "time": 0,
  4835. "data": {
  4836. "turn": 1,
  4837. "step": 7
  4838. }
  4839. }
  4840. }
  4841. },
  4842. {
  4843. "method": "session.event",
  4844. "payload": {
  4845. "sessionId": "{{parent}}",
  4846. "event": {
  4847. "type": "session-log-deepseek/delivery-accepted",
  4848. "seq": 60,
  4849. "time": 0,
  4850. "data": {
  4851. "sessionId": "{{parent}}",
  4852. "sessionFormatVersion": 3,
  4853. "throughSeq": 59
  4854. }
  4855. }
  4856. }
  4857. },
  4858. {
  4859. "method": "session.event",
  4860. "payload": {
  4861. "sessionId": "{{parent}}",
  4862. "event": {
  4863. "type": "assistant/message",
  4864. "seq": 61,
  4865. "time": 0,
  4866. "data": {
  4867. "turn": 1,
  4868. "step": 7,
  4869. "message": {
  4870. "role": "assistant",
  4871. "content": [
  4872. {
  4873. "type": "tool-call",
  4874. "id": "advanced-workflow",
  4875. "name": "workflow",
  4876. "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  4877. }
  4878. ],
  4879. "source": {
  4880. "kind": "model",
  4881. "provider": "deepseek-official",
  4882. "model": "smoke-model",
  4883. "replayState": {
  4884. "response": {
  4885. "kind": "deepseek-messages",
  4886. "version": 1,
  4887. "model": "smoke-model"
  4888. },
  4889. "blocks": [
  4890. {
  4891. "type": "tool-call"
  4892. }
  4893. ]
  4894. }
  4895. },
  4896. "id": "{{messageId}}"
  4897. },
  4898. "usage": {
  4899. "inputTokens": 3,
  4900. "outputTokens": 3,
  4901. "totalTokens": 6
  4902. },
  4903. "stream": [
  4904. {
  4905. "type": "chunk",
  4906. "time": 0,
  4907. "chunk": {
  4908. "type": "block-start",
  4909. "index": 0,
  4910. "blockType": "tool-call"
  4911. }
  4912. },
  4913. {
  4914. "type": "tool-call-chunks",
  4915. "time0": 0,
  4916. "index": 0,
  4917. "dt": [],
  4918. "id": "advanced-workflow",
  4919. "name": "workflow",
  4920. "args": [
  4921. ""
  4922. ]
  4923. },
  4924. {
  4925. "type": "tool-call-chunks",
  4926. "time0": 0,
  4927. "index": 0,
  4928. "dt": [],
  4929. "id": "advanced-workflow",
  4930. "args": [
  4931. "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  4932. ]
  4933. },
  4934. {
  4935. "type": "chunk",
  4936. "time": 0,
  4937. "chunk": {
  4938. "type": "block-end",
  4939. "index": 0,
  4940. "block": {
  4941. "type": "tool-call",
  4942. "id": "advanced-workflow",
  4943. "name": "workflow",
  4944. "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  4945. }
  4946. }
  4947. },
  4948. {
  4949. "type": "chunk",
  4950. "time": 0,
  4951. "chunk": {
  4952. "type": "usage",
  4953. "usage": {
  4954. "inputTokens": 3,
  4955. "outputTokens": 3,
  4956. "totalTokens": 6
  4957. }
  4958. }
  4959. },
  4960. {
  4961. "type": "chunk",
  4962. "time": 0,
  4963. "chunk": {
  4964. "type": "finish",
  4965. "reason": {
  4966. "kind": "tool-calls"
  4967. },
  4968. "replayState": {
  4969. "response": {
  4970. "kind": "deepseek-messages",
  4971. "version": 1,
  4972. "model": "smoke-model"
  4973. },
  4974. "blocks": [
  4975. {
  4976. "type": "tool-call"
  4977. }
  4978. ]
  4979. }
  4980. }
  4981. }
  4982. ]
  4983. },
  4984. "surfaceOp": "append"
  4985. }
  4986. }
  4987. },
  4988. {
  4989. "method": "session.event",
  4990. "payload": {
  4991. "sessionId": "{{parent}}",
  4992. "event": {
  4993. "type": "tool/call",
  4994. "seq": 62,
  4995. "time": 0,
  4996. "data": {
  4997. "turn": 1,
  4998. "step": 7,
  4999. "callId": "advanced-workflow",
  5000. "name": "workflow",
  5001. "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"
  5002. }
  5003. }
  5004. }
  5005. },
  5006. {
  5007. "method": "session.event",
  5008. "payload": {
  5009. "sessionId": "{{parent}}",
  5010. "event": {
  5011. "type": "tool-workflow/run-start",
  5012. "seq": 63,
  5013. "time": 0,
  5014. "data": {
  5015. "runId": "{{workflow-run}}",
  5016. "name": "advanced-exe-snapshot"
  5017. }
  5018. }
  5019. }
  5020. },
  5021. {
  5022. "method": "subagent.started",
  5023. "payload": {
  5024. "parentSessionId": "{{parent}}",
  5025. "childSessionId": "{{child-2}}"
  5026. }
  5027. },
  5028. {
  5029. "method": "session.event",
  5030. "payload": {
  5031. "sessionId": "{{child-2}}",
  5032. "event": {
  5033. "type": "agent/inbox/spliced",
  5034. "seq": 3,
  5035. "time": 0,
  5036. "data": {
  5037. "target": "next-turn",
  5038. "start": 0,
  5039. "inserted": [
  5040. {
  5041. "content": [
  5042. {
  5043. "type": "text",
  5044. "text": "Reply with exactly WORKFLOW_CHILD_OK and nothing else."
  5045. }
  5046. ],
  5047. "source": {
  5048. "kind": "user"
  5049. },
  5050. "role": "user",
  5051. "id": "{{messageId}}"
  5052. }
  5053. ]
  5054. }
  5055. }
  5056. }
  5057. },
  5058. {
  5059. "method": "session.status",
  5060. "payload": {
  5061. "sessionId": "{{child-2}}",
  5062. "status": "running"
  5063. }
  5064. },
  5065. {
  5066. "method": "session.event",
  5067. "payload": {
  5068. "sessionId": "{{child-2}}",
  5069. "event": {
  5070. "type": "turn/start",
  5071. "seq": 4,
  5072. "time": 0,
  5073. "data": {
  5074. "turn": 1
  5075. }
  5076. }
  5077. }
  5078. },
  5079. {
  5080. "method": "session.event",
  5081. "payload": {
  5082. "sessionId": "{{child-2}}",
  5083. "event": {
  5084. "type": "agent/inbox/spliced",
  5085. "seq": 5,
  5086. "time": 0,
  5087. "data": {
  5088. "target": "next-turn",
  5089. "start": 0,
  5090. "removedCount": 1,
  5091. "inserted": []
  5092. }
  5093. }
  5094. }
  5095. },
  5096. {
  5097. "method": "session.event",
  5098. "payload": {
  5099. "sessionId": "{{parent}}",
  5100. "event": {
  5101. "type": "subagent/catalog",
  5102. "seq": 64,
  5103. "time": 0,
  5104. "data": {
  5105. "version": 0,
  5106. "childId": "{{child-2}}",
  5107. "childCreatedAt": 0,
  5108. "mode": "one-shot"
  5109. }
  5110. }
  5111. }
  5112. },
  5113. {
  5114. "method": "session.event",
  5115. "payload": {
  5116. "sessionId": "{{parent}}",
  5117. "event": {
  5118. "type": "tool-workflow/agent-start",
  5119. "seq": 65,
  5120. "time": 0,
  5121. "data": {
  5122. "runId": "{{workflow-run}}",
  5123. "seq": 1,
  5124. "label": "workflow-child",
  5125. "phase": "Delegate",
  5126. "childId": "{{child-2}}"
  5127. }
  5128. }
  5129. }
  5130. },
  5131. {
  5132. "method": "session.event",
  5133. "payload": {
  5134. "sessionId": "{{child-2}}",
  5135. "event": {
  5136. "type": "subagent/descriptor",
  5137. "seq": 6,
  5138. "time": 0,
  5139. "data": {
  5140. "version": 3,
  5141. "mode": "one-shot",
  5142. "provider": "spawn"
  5143. }
  5144. }
  5145. }
  5146. },
  5147. {
  5148. "method": "session.event",
  5149. "payload": {
  5150. "sessionId": "{{child-2}}",
  5151. "event": {
  5152. "type": "step/start",
  5153. "seq": 7,
  5154. "time": 0,
  5155. "data": {
  5156. "turn": 1,
  5157. "step": 1
  5158. }
  5159. }
  5160. }
  5161. },
  5162. {
  5163. "method": "session.event",
  5164. "payload": {
  5165. "sessionId": "{{child-2}}",
  5166. "event": {
  5167. "type": "system/message",
  5168. "seq": 8,
  5169. "time": 0,
  5170. "data": {
  5171. "turn": 1,
  5172. "step": 1,
  5173. "message": {
  5174. "role": "system",
  5175. "content": [
  5176. {
  5177. "type": "text",
  5178. "text": "{{system}}"
  5179. }
  5180. ],
  5181. "source": {
  5182. "kind": "plugin",
  5183. "plugin": "@deepseek-ai/dsh-system-prompt"
  5184. },
  5185. "id": "{{messageId}}"
  5186. }
  5187. },
  5188. "surfaceOp": "append"
  5189. }
  5190. }
  5191. },
  5192. {
  5193. "method": "session.event",
  5194. "payload": {
  5195. "sessionId": "{{child-2}}",
  5196. "event": {
  5197. "type": "user/message",
  5198. "seq": 9,
  5199. "time": 0,
  5200. "data": {
  5201. "content": [
  5202. {
  5203. "type": "text",
  5204. "text": "Reply with exactly WORKFLOW_CHILD_OK and nothing else."
  5205. }
  5206. ],
  5207. "source": {
  5208. "kind": "user"
  5209. },
  5210. "role": "user",
  5211. "id": "{{messageId}}"
  5212. },
  5213. "surfaceOp": "append"
  5214. }
  5215. }
  5216. },
  5217. {
  5218. "method": "session.event",
  5219. "payload": {
  5220. "sessionId": "{{child-2}}",
  5221. "event": {
  5222. "type": "user/message",
  5223. "seq": 10,
  5224. "time": 0,
  5225. "data": {
  5226. "content": [
  5227. {
  5228. "type": "text",
  5229. "text": "Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
  5230. }
  5231. ],
  5232. "source": {
  5233. "kind": "plugin",
  5234. "plugin": "@deepseek-ai/dsh-system-prompt",
  5235. "form": "snapshot",
  5236. "sections": [
  5237. {
  5238. "name": "sandbox:policy",
  5239. "text": "Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."
  5240. },
  5241. {
  5242. "name": "approval:policy",
  5243. "text": "Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."
  5244. },
  5245. {
  5246. "name": "subagent:delegation",
  5247. "text": "You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."
  5248. }
  5249. ]
  5250. },
  5251. "role": "user",
  5252. "id": "{{messageId}}"
  5253. },
  5254. "surfaceOp": "append"
  5255. }
  5256. }
  5257. },
  5258. {
  5259. "method": "session.event",
  5260. "payload": {
  5261. "sessionId": "{{child-2}}",
  5262. "event": {
  5263. "type": "request/header",
  5264. "seq": 11,
  5265. "time": 0,
  5266. "data": {
  5267. "header": {
  5268. "config": {
  5269. "provider": "deepseek-official",
  5270. "model": "smoke-model",
  5271. "reasoningEffort": "high",
  5272. "maxTokens": 256000
  5273. },
  5274. "adapterDefaults": {
  5275. "maxTokens": true
  5276. },
  5277. "tools": [
  5278. "cordis_define",
  5279. "cordis_inspect_list",
  5280. "cordis_inspect_query",
  5281. "cordis_inspect_self",
  5282. "cordis_run",
  5283. "cordis_stop",
  5284. "cordis_undefine",
  5285. "job_kill",
  5286. "job_list",
  5287. "job_output",
  5288. "run_code",
  5289. "snapshot_double",
  5290. "subagent",
  5291. "workflow"
  5292. ]
  5293. },
  5294. "reason": "initial"
  5295. }
  5296. }
  5297. }
  5298. },
  5299. {
  5300. "method": "session.event",
  5301. "payload": {
  5302. "sessionId": "{{child-2}}",
  5303. "event": {
  5304. "type": "request/context",
  5305. "seq": 12,
  5306. "time": 0,
  5307. "data": {
  5308. "provider": "deepseek-official",
  5309. "model": "smoke-model",
  5310. "contextWindow": 1000000
  5311. }
  5312. }
  5313. }
  5314. },
  5315. {
  5316. "method": "session.event",
  5317. "payload": {
  5318. "sessionId": "{{child-2}}",
  5319. "event": {
  5320. "type": "session/title",
  5321. "seq": 13,
  5322. "time": 0,
  5323. "data": {
  5324. "title": "Reply with exactly WORKFLOW_CHILD_OK and",
  5325. "messageSeqs": [
  5326. 9
  5327. ],
  5328. "source": {
  5329. "kind": "fallback"
  5330. }
  5331. }
  5332. }
  5333. }
  5334. },
  5335. {
  5336. "method": "session.event",
  5337. "payload": {
  5338. "sessionId": "{{child-2}}",
  5339. "event": {
  5340. "type": "session-log-deepseek/delivery-accepted",
  5341. "seq": 14,
  5342. "time": 0,
  5343. "data": {
  5344. "sessionId": "{{child-2}}",
  5345. "sessionFormatVersion": 3,
  5346. "throughSeq": 13
  5347. }
  5348. }
  5349. }
  5350. },
  5351. {
  5352. "method": "session.event",
  5353. "payload": {
  5354. "sessionId": "{{child-2}}",
  5355. "event": {
  5356. "type": "assistant/message",
  5357. "seq": 15,
  5358. "time": 0,
  5359. "data": {
  5360. "turn": 1,
  5361. "step": 1,
  5362. "message": {
  5363. "role": "assistant",
  5364. "content": [
  5365. {
  5366. "type": "text",
  5367. "text": "WORKFLOW_CHILD_OK"
  5368. }
  5369. ],
  5370. "source": {
  5371. "kind": "model",
  5372. "provider": "deepseek-official",
  5373. "model": "smoke-model",
  5374. "replayState": {
  5375. "response": {
  5376. "kind": "deepseek-messages",
  5377. "version": 1,
  5378. "model": "smoke-model"
  5379. },
  5380. "blocks": [
  5381. {
  5382. "type": "text"
  5383. }
  5384. ]
  5385. }
  5386. },
  5387. "id": "{{messageId}}"
  5388. },
  5389. "usage": {
  5390. "inputTokens": 3,
  5391. "outputTokens": 3,
  5392. "totalTokens": 6
  5393. },
  5394. "stream": [
  5395. {
  5396. "type": "chunk",
  5397. "time": 0,
  5398. "chunk": {
  5399. "type": "block-start",
  5400. "index": 0,
  5401. "blockType": "text"
  5402. }
  5403. },
  5404. {
  5405. "type": "text-chunks",
  5406. "time0": 0,
  5407. "index": 0,
  5408. "dt": [],
  5409. "texts": [
  5410. "WORKFLOW_CHILD_OK"
  5411. ]
  5412. },
  5413. {
  5414. "type": "chunk",
  5415. "time": 0,
  5416. "chunk": {
  5417. "type": "block-end",
  5418. "index": 0,
  5419. "block": {
  5420. "type": "text",
  5421. "text": "WORKFLOW_CHILD_OK"
  5422. }
  5423. }
  5424. },
  5425. {
  5426. "type": "chunk",
  5427. "time": 0,
  5428. "chunk": {
  5429. "type": "usage",
  5430. "usage": {
  5431. "inputTokens": 3,
  5432. "outputTokens": 3,
  5433. "totalTokens": 6
  5434. }
  5435. }
  5436. },
  5437. {
  5438. "type": "chunk",
  5439. "time": 0,
  5440. "chunk": {
  5441. "type": "finish",
  5442. "reason": {
  5443. "kind": "stop"
  5444. },
  5445. "replayState": {
  5446. "response": {
  5447. "kind": "deepseek-messages",
  5448. "version": 1,
  5449. "model": "smoke-model"
  5450. },
  5451. "blocks": [
  5452. {
  5453. "type": "text"
  5454. }
  5455. ]
  5456. }
  5457. }
  5458. }
  5459. ]
  5460. },
  5461. "surfaceOp": "append"
  5462. }
  5463. }
  5464. },
  5465. {
  5466. "method": "session.event",
  5467. "payload": {
  5468. "sessionId": "{{child-2}}",
  5469. "event": {
  5470. "type": "step/end",
  5471. "seq": 16,
  5472. "time": 0,
  5473. "data": {
  5474. "turn": 1,
  5475. "step": 1
  5476. }
  5477. }
  5478. }
  5479. },
  5480. {
  5481. "method": "session.event",
  5482. "payload": {
  5483. "sessionId": "{{child-2}}",
  5484. "event": {
  5485. "type": "turn/end",
  5486. "seq": 17,
  5487. "time": 0,
  5488. "data": {
  5489. "turn": 1,
  5490. "reason": {
  5491. "kind": "completed"
  5492. }
  5493. }
  5494. }
  5495. }
  5496. },
  5497. {
  5498. "method": "session.status",
  5499. "payload": {
  5500. "sessionId": "{{child-2}}",
  5501. "status": "idle"
  5502. }
  5503. },
  5504. {
  5505. "method": "subagent.finished",
  5506. "payload": {
  5507. "provider": "spawn",
  5508. "agentId": "{{child-2}}",
  5509. "parentSessionId": "{{parent}}",
  5510. "childSessionId": "{{child-2}}",
  5511. "status": "ok",
  5512. "stopReason": "completed",
  5513. "lastAssistantMessage": [
  5514. {
  5515. "type": "text",
  5516. "text": "WORKFLOW_CHILD_OK"
  5517. }
  5518. ]
  5519. }
  5520. },
  5521. {
  5522. "method": "session.event",
  5523. "payload": {
  5524. "sessionId": "{{parent}}",
  5525. "event": {
  5526. "type": "tool-workflow/agent-end",
  5527. "seq": 66,
  5528. "time": 0,
  5529. "data": {
  5530. "runId": "{{workflow-run}}",
  5531. "seq": 1,
  5532. "outcome": "completed"
  5533. }
  5534. }
  5535. }
  5536. },
  5537. {
  5538. "method": "session.event",
  5539. "payload": {
  5540. "sessionId": "{{parent}}",
  5541. "event": {
  5542. "type": "tool-workflow/run-end",
  5543. "seq": 67,
  5544. "time": 0,
  5545. "data": {
  5546. "runId": "{{workflow-run}}",
  5547. "stopReason": "completed"
  5548. }
  5549. }
  5550. }
  5551. },
  5552. {
  5553. "method": "session.event",
  5554. "payload": {
  5555. "sessionId": "{{parent}}",
  5556. "event": {
  5557. "type": "tool/result",
  5558. "seq": 68,
  5559. "time": 0,
  5560. "data": {
  5561. "turn": 1,
  5562. "step": 7,
  5563. "message": {
  5564. "source": {
  5565. "kind": "tool",
  5566. "callId": "advanced-workflow"
  5567. },
  5568. "content": [
  5569. {
  5570. "type": "tool-result",
  5571. "toolCallId": "advanced-workflow",
  5572. "content": [
  5573. {
  5574. "type": "text",
  5575. "text": "workflow \"advanced-exe-snapshot\" completed (1 agent).\nReturn value:\n{\n \"reply\": \"WORKFLOW_CHILD_OK\"\n}"
  5576. }
  5577. ],
  5578. "isError": false
  5579. }
  5580. ],
  5581. "role": "user",
  5582. "id": "{{messageId}}"
  5583. }
  5584. },
  5585. "sourceEventSeqs": [
  5586. 62
  5587. ],
  5588. "surfaceOp": "append"
  5589. }
  5590. }
  5591. },
  5592. {
  5593. "method": "session.event",
  5594. "payload": {
  5595. "sessionId": "{{parent}}",
  5596. "event": {
  5597. "type": "step/end",
  5598. "seq": 69,
  5599. "time": 0,
  5600. "data": {
  5601. "turn": 1,
  5602. "step": 7
  5603. }
  5604. }
  5605. }
  5606. },
  5607. {
  5608. "method": "session.event",
  5609. "payload": {
  5610. "sessionId": "{{parent}}",
  5611. "event": {
  5612. "type": "step/start",
  5613. "seq": 70,
  5614. "time": 0,
  5615. "data": {
  5616. "turn": 1,
  5617. "step": 8
  5618. }
  5619. }
  5620. }
  5621. },
  5622. {
  5623. "method": "session.event",
  5624. "payload": {
  5625. "sessionId": "{{parent}}",
  5626. "event": {
  5627. "type": "session-log-deepseek/delivery-accepted",
  5628. "seq": 71,
  5629. "time": 0,
  5630. "data": {
  5631. "sessionId": "{{parent}}",
  5632. "sessionFormatVersion": 3,
  5633. "throughSeq": 70
  5634. }
  5635. }
  5636. }
  5637. },
  5638. {
  5639. "method": "session.event",
  5640. "payload": {
  5641. "sessionId": "{{parent}}",
  5642. "event": {
  5643. "type": "assistant/message",
  5644. "seq": 72,
  5645. "time": 0,
  5646. "data": {
  5647. "turn": 1,
  5648. "step": 8,
  5649. "message": {
  5650. "role": "assistant",
  5651. "content": [
  5652. {
  5653. "type": "tool-call",
  5654. "id": "advanced-undefine",
  5655. "name": "cordis_undefine",
  5656. "arguments": "{\"pluginId\": \"snap-1\"}"
  5657. }
  5658. ],
  5659. "source": {
  5660. "kind": "model",
  5661. "provider": "deepseek-official",
  5662. "model": "smoke-model",
  5663. "replayState": {
  5664. "response": {
  5665. "kind": "deepseek-messages",
  5666. "version": 1,
  5667. "model": "smoke-model"
  5668. },
  5669. "blocks": [
  5670. {
  5671. "type": "tool-call"
  5672. }
  5673. ]
  5674. }
  5675. },
  5676. "id": "{{messageId}}"
  5677. },
  5678. "usage": {
  5679. "inputTokens": 3,
  5680. "outputTokens": 3,
  5681. "totalTokens": 6
  5682. },
  5683. "stream": [
  5684. {
  5685. "type": "chunk",
  5686. "time": 0,
  5687. "chunk": {
  5688. "type": "block-start",
  5689. "index": 0,
  5690. "blockType": "tool-call"
  5691. }
  5692. },
  5693. {
  5694. "type": "tool-call-chunks",
  5695. "time0": 0,
  5696. "index": 0,
  5697. "dt": [],
  5698. "id": "advanced-undefine",
  5699. "name": "cordis_undefine",
  5700. "args": [
  5701. ""
  5702. ]
  5703. },
  5704. {
  5705. "type": "tool-call-chunks",
  5706. "time0": 0,
  5707. "index": 0,
  5708. "dt": [],
  5709. "id": "advanced-undefine",
  5710. "args": [
  5711. "{\"pluginId\": \"snap-1\"}"
  5712. ]
  5713. },
  5714. {
  5715. "type": "chunk",
  5716. "time": 0,
  5717. "chunk": {
  5718. "type": "block-end",
  5719. "index": 0,
  5720. "block": {
  5721. "type": "tool-call",
  5722. "id": "advanced-undefine",
  5723. "name": "cordis_undefine",
  5724. "arguments": "{\"pluginId\": \"snap-1\"}"
  5725. }
  5726. }
  5727. },
  5728. {
  5729. "type": "chunk",
  5730. "time": 0,
  5731. "chunk": {
  5732. "type": "usage",
  5733. "usage": {
  5734. "inputTokens": 3,
  5735. "outputTokens": 3,
  5736. "totalTokens": 6
  5737. }
  5738. }
  5739. },
  5740. {
  5741. "type": "chunk",
  5742. "time": 0,
  5743. "chunk": {
  5744. "type": "finish",
  5745. "reason": {
  5746. "kind": "tool-calls"
  5747. },
  5748. "replayState": {
  5749. "response": {
  5750. "kind": "deepseek-messages",
  5751. "version": 1,
  5752. "model": "smoke-model"
  5753. },
  5754. "blocks": [
  5755. {
  5756. "type": "tool-call"
  5757. }
  5758. ]
  5759. }
  5760. }
  5761. }
  5762. ]
  5763. },
  5764. "surfaceOp": "append"
  5765. }
  5766. }
  5767. },
  5768. {
  5769. "method": "session.event",
  5770. "payload": {
  5771. "sessionId": "{{parent}}",
  5772. "event": {
  5773. "type": "tool/call",
  5774. "seq": 73,
  5775. "time": 0,
  5776. "data": {
  5777. "turn": 1,
  5778. "step": 8,
  5779. "callId": "advanced-undefine",
  5780. "name": "cordis_undefine",
  5781. "arguments": "{\"pluginId\": \"snap-1\"}"
  5782. }
  5783. }
  5784. }
  5785. },
  5786. {
  5787. "method": "session.event",
  5788. "payload": {
  5789. "sessionId": "{{parent}}",
  5790. "event": {
  5791. "type": "tool/result",
  5792. "seq": 74,
  5793. "time": 0,
  5794. "data": {
  5795. "turn": 1,
  5796. "step": 8,
  5797. "message": {
  5798. "source": {
  5799. "kind": "tool",
  5800. "callId": "advanced-undefine"
  5801. },
  5802. "content": [
  5803. {
  5804. "type": "tool-result",
  5805. "toolCallId": "advanced-undefine",
  5806. "content": [
  5807. {
  5808. "type": "text",
  5809. "text": "Removed dynamic Plugin snap-1 and all of its Packages."
  5810. }
  5811. ],
  5812. "isError": false
  5813. }
  5814. ],
  5815. "role": "user",
  5816. "id": "{{messageId}}"
  5817. }
  5818. },
  5819. "sourceEventSeqs": [
  5820. 73
  5821. ],
  5822. "surfaceOp": "append"
  5823. }
  5824. }
  5825. },
  5826. {
  5827. "method": "session.event",
  5828. "payload": {
  5829. "sessionId": "{{parent}}",
  5830. "event": {
  5831. "type": "step/end",
  5832. "seq": 75,
  5833. "time": 0,
  5834. "data": {
  5835. "turn": 1,
  5836. "step": 8
  5837. }
  5838. }
  5839. }
  5840. },
  5841. {
  5842. "method": "session.event",
  5843. "payload": {
  5844. "sessionId": "{{parent}}",
  5845. "event": {
  5846. "type": "step/start",
  5847. "seq": 76,
  5848. "time": 0,
  5849. "data": {
  5850. "turn": 1,
  5851. "step": 9
  5852. }
  5853. }
  5854. }
  5855. },
  5856. {
  5857. "method": "session.event",
  5858. "payload": {
  5859. "sessionId": "{{parent}}",
  5860. "event": {
  5861. "type": "system/message",
  5862. "seq": 77,
  5863. "time": 0,
  5864. "data": {
  5865. "turn": 1,
  5866. "step": 9,
  5867. "message": {
  5868. "role": "system",
  5869. "content": [
  5870. {
  5871. "type": "text",
  5872. "text": "{{system}}"
  5873. }
  5874. ],
  5875. "source": {
  5876. "kind": "plugin",
  5877. "plugin": "@deepseek-ai/dsh-system-prompt"
  5878. },
  5879. "id": "{{messageId}}"
  5880. }
  5881. },
  5882. "sourceEventSeqs": [
  5883. 29
  5884. ],
  5885. "surfaceOp": {
  5886. "op": "replace",
  5887. "startSeq": 29,
  5888. "endSeq": 29
  5889. }
  5890. }
  5891. }
  5892. },
  5893. {
  5894. "method": "session.event",
  5895. "payload": {
  5896. "sessionId": "{{parent}}",
  5897. "event": {
  5898. "type": "request/header",
  5899. "seq": 78,
  5900. "time": 0,
  5901. "data": {
  5902. "header": {
  5903. "config": {
  5904. "provider": "deepseek-official",
  5905. "model": "smoke-model",
  5906. "maxTokens": 256000,
  5907. "reasoningEffort": "high"
  5908. },
  5909. "adapterDefaults": {
  5910. "reasoningEffort": true,
  5911. "maxTokens": true
  5912. },
  5913. "tools": [
  5914. "cordis_define",
  5915. "cordis_inspect_list",
  5916. "cordis_inspect_query",
  5917. "cordis_inspect_self",
  5918. "cordis_run",
  5919. "cordis_stop",
  5920. "cordis_undefine",
  5921. "job_kill",
  5922. "job_list",
  5923. "job_output",
  5924. "run_code",
  5925. "subagent",
  5926. "workflow"
  5927. ]
  5928. },
  5929. "reason": "change",
  5930. "startsSeries": true
  5931. }
  5932. }
  5933. }
  5934. },
  5935. {
  5936. "method": "session.event",
  5937. "payload": {
  5938. "sessionId": "{{parent}}",
  5939. "event": {
  5940. "type": "session-log-deepseek/delivery-accepted",
  5941. "seq": 79,
  5942. "time": 0,
  5943. "data": {
  5944. "sessionId": "{{parent}}",
  5945. "sessionFormatVersion": 3,
  5946. "throughSeq": 78
  5947. }
  5948. }
  5949. }
  5950. },
  5951. {
  5952. "method": "session.event",
  5953. "payload": {
  5954. "sessionId": "{{parent}}",
  5955. "event": {
  5956. "type": "assistant/message",
  5957. "seq": 80,
  5958. "time": 0,
  5959. "data": {
  5960. "turn": 1,
  5961. "step": 9,
  5962. "message": {
  5963. "role": "assistant",
  5964. "content": [
  5965. {
  5966. "type": "text",
  5967. "text": "ADVANCED_EXECUTABLE_OK"
  5968. }
  5969. ],
  5970. "source": {
  5971. "kind": "model",
  5972. "provider": "deepseek-official",
  5973. "model": "smoke-model",
  5974. "replayState": {
  5975. "response": {
  5976. "kind": "deepseek-messages",
  5977. "version": 1,
  5978. "model": "smoke-model"
  5979. },
  5980. "blocks": [
  5981. {
  5982. "type": "text"
  5983. }
  5984. ]
  5985. }
  5986. },
  5987. "id": "{{message:1}}"
  5988. },
  5989. "usage": {
  5990. "inputTokens": 3,
  5991. "outputTokens": 3,
  5992. "totalTokens": 6
  5993. },
  5994. "stream": [
  5995. {
  5996. "type": "chunk",
  5997. "time": 0,
  5998. "chunk": {
  5999. "type": "block-start",
  6000. "index": 0,
  6001. "blockType": "text"
  6002. }
  6003. },
  6004. {
  6005. "type": "text-chunks",
  6006. "time0": 0,
  6007. "index": 0,
  6008. "dt": [],
  6009. "texts": [
  6010. "ADVANCED_EXECUTABLE_OK"
  6011. ]
  6012. },
  6013. {
  6014. "type": "chunk",
  6015. "time": 0,
  6016. "chunk": {
  6017. "type": "block-end",
  6018. "index": 0,
  6019. "block": {
  6020. "type": "text",
  6021. "text": "ADVANCED_EXECUTABLE_OK"
  6022. }
  6023. }
  6024. },
  6025. {
  6026. "type": "chunk",
  6027. "time": 0,
  6028. "chunk": {
  6029. "type": "usage",
  6030. "usage": {
  6031. "inputTokens": 3,
  6032. "outputTokens": 3,
  6033. "totalTokens": 6
  6034. }
  6035. }
  6036. },
  6037. {
  6038. "type": "chunk",
  6039. "time": 0,
  6040. "chunk": {
  6041. "type": "finish",
  6042. "reason": {
  6043. "kind": "stop"
  6044. },
  6045. "replayState": {
  6046. "response": {
  6047. "kind": "deepseek-messages",
  6048. "version": 1,
  6049. "model": "smoke-model"
  6050. },
  6051. "blocks": [
  6052. {
  6053. "type": "text"
  6054. }
  6055. ]
  6056. }
  6057. }
  6058. }
  6059. ]
  6060. },
  6061. "surfaceOp": "append"
  6062. }
  6063. }
  6064. },
  6065. {
  6066. "method": "session.event",
  6067. "payload": {
  6068. "sessionId": "{{parent}}",
  6069. "event": {
  6070. "type": "step/end",
  6071. "seq": 81,
  6072. "time": 0,
  6073. "data": {
  6074. "turn": 1,
  6075. "step": 9
  6076. }
  6077. }
  6078. }
  6079. },
  6080. {
  6081. "method": "session.event",
  6082. "payload": {
  6083. "sessionId": "{{parent}}",
  6084. "event": {
  6085. "type": "command/run",
  6086. "seq": 82,
  6087. "time": 0,
  6088. "data": {
  6089. "commandId": "{{command:1}}",
  6090. "name": "feedback",
  6091. "source": {
  6092. "kind": "user"
  6093. }
  6094. }
  6095. }
  6096. }
  6097. },
  6098. {
  6099. "method": "session.event",
  6100. "payload": {
  6101. "sessionId": "{{parent}}",
  6102. "event": {
  6103. "type": "feedback/record",
  6104. "seq": 83,
  6105. "time": 0,
  6106. "data": {
  6107. "text": "The session needs a clearer explanation."
  6108. }
  6109. }
  6110. }
  6111. },
  6112. {
  6113. "method": "session.event",
  6114. "payload": {
  6115. "sessionId": "{{parent}}",
  6116. "event": {
  6117. "type": "command/done",
  6118. "seq": 84,
  6119. "time": 0,
  6120. "data": {
  6121. "commandId": "{{command:1}}",
  6122. "kind": "success",
  6123. "text": "Feedback recorded for session {{parent}}\nAnonymous user: {{anonymous-user}}."
  6124. }
  6125. }
  6126. }
  6127. },
  6128. {
  6129. "method": "session.event",
  6130. "payload": {
  6131. "sessionId": "{{parent}}",
  6132. "event": {
  6133. "type": "feedback/record",
  6134. "seq": 85,
  6135. "time": 0,
  6136. "data": {
  6137. "category": "other"
  6138. }
  6139. }
  6140. }
  6141. },
  6142. {
  6143. "method": "session.event",
  6144. "payload": {
  6145. "sessionId": "{{parent}}",
  6146. "event": {
  6147. "type": "feedback/message-put",
  6148. "seq": 86,
  6149. "time": 0,
  6150. "data": {
  6151. "sessionId": "{{parent}}",
  6152. "item": {
  6153. "messageId": "{{message:1}}",
  6154. "rating": "negative",
  6155. "note": "Explain the result.",
  6156. "category": "task-result",
  6157. "version": "{{feedback-version:1}}",
  6158. "createdAt": 0,
  6159. "updatedAt": 0
  6160. }
  6161. }
  6162. }
  6163. }
  6164. },
  6165. {
  6166. "method": "session.event",
  6167. "payload": {
  6168. "sessionId": "{{parent}}",
  6169. "event": {
  6170. "type": "feedback/message-put",
  6171. "seq": 87,
  6172. "time": 0,
  6173. "data": {
  6174. "sessionId": "{{parent}}",
  6175. "item": {
  6176. "messageId": "{{message:1}}",
  6177. "rating": "positive",
  6178. "note": "The explanation is clear now.",
  6179. "version": "{{feedback-version:2}}",
  6180. "createdAt": 0,
  6181. "updatedAt": 0
  6182. }
  6183. }
  6184. }
  6185. }
  6186. },
  6187. {
  6188. "method": "session.event",
  6189. "payload": {
  6190. "sessionId": "{{parent}}",
  6191. "event": {
  6192. "type": "feedback/message-delete",
  6193. "seq": 88,
  6194. "time": 0,
  6195. "data": {
  6196. "sessionId": "{{parent}}",
  6197. "messageId": "{{message:1}}"
  6198. }
  6199. }
  6200. }
  6201. },
  6202. {
  6203. "method": "session.event",
  6204. "payload": {
  6205. "sessionId": "{{parent}}",
  6206. "event": {
  6207. "type": "turn/end",
  6208. "seq": 89,
  6209. "time": 0,
  6210. "data": {
  6211. "turn": 1,
  6212. "reason": {
  6213. "kind": "completed"
  6214. }
  6215. }
  6216. }
  6217. }
  6218. },
  6219. {
  6220. "method": "session.status",
  6221. "payload": {
  6222. "sessionId": "{{parent}}",
  6223. "status": "idle"
  6224. }
  6225. }
  6226. ]
  6227. }