result.json 160 KB

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