result.json 171 KB

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